Subscribe by Email


Showing posts with label Carrier Sense Multiple Access. Show all posts
Showing posts with label Carrier Sense Multiple Access. Show all posts

Monday, July 8, 2013

Explain Carrier Sense Multiple Access Protocols - CSMA

- CSMA or Carrier Sense Multiple Access is defined as a probabilistic MAC (media access control) protocol. 
- In this protocol the absence of the traffic is verified by the node prior to start transmitting through a transmission medium that is shared by a number of channels. 
- For example, a band of EM spectrum, electric bus and so on. 
- Feedback from the receiver is used by the transmitter for determining whether the channel is already occupied by some transmission process or not. - This is termed as the carrier sense. 
- The transmitter before starting a transmission starts detecting whether a carrier wave is present their transmitted by some another station. 
- If a carrier wave is present, the transmission has no other option other than waiting for the transmission in progress to end before starting its own transmission. 
- To put it simply we can say that the carrier sense is what the CSMA protocol is based up on. 
- By ‘multiple access’, it simply means that a number of stations can transmit and receive data through the same medium. 
- But in this case all the other stations receive the data transmitted by one node using that same medium. 

There are many types of CSMA protocols as mentioned below:

1. CSMA with collision detection: 
- In short, this protocol is known as the CSMA/CD. 
- This protocol is used for improving the performance. 
- This it does through the termination of the transmission once a collision occurs along making reductions in the probability of occurrence of the other collisions upon re-transmissions.

2. CSMA with collision avoidance: 
- CSMA/ CA is the abbreviated form of this type of CSMA protocol. 
- This protocol avoids collision for improving the performance of the same.
- It tends not to be greedy on the transmitting channel.
- If it happens to sense the channel as busy prior to transmission then it is said to defer to a random interval.
- This is a measure for reduction in the probability of the packet collisions occurring on the channel.

3. Virtual time CSMA: 
- In short, known as the VTCSMA.
- This type of CSMA protocol has been designed for avoiding the collisions that are generated by the nodes. 
- These are the nodes that translate the signals at the same time. 
- This CSMA protocol is employed in the hard real time systems. 
- Two clocks are used by each node namely a real clock (rc) and a virtual clock (vc) for telling ‘real time’. 
- If the channel happens to be busy, the virtual clock freezes and if not it is reset. 
- vc is not initialized if the channel is busy and it runs faster when compared to the real clock.

CSMA happens to operate in various modes as discussed below:

1-Persistent: 
- The sender stations keeps on sensing the transmission channel until it becomes idle if previously it was busy. 
- When it finally becomes, then it starts transmitting the data packet i.e., the frame. 
- If a collision is detected, the transmitter has to wait for a random period of time before attempting to re-transmit the signal. 
- It finds use in systems such as Ethernet i.e., the systems using CSMA/ CD.

P-Persistent: 
- This mode lies somewhere between the non–persistent and the 1–persistent CSMA access modes.
- Once the data is ready to be transmitted, it checks for the status of the medium and starts transmitting the data packets with a certain probability.

Non-persistent: 
Less aggressive when compared to the previous one.

O-Persistent:
It works based according to the assigned transmission order. 


Sunday, July 7, 2013

Differentiate between persistent and non-persistent CSMA?

- CSMA or Carrier Sense Multiple Access makes use of LBT or listen before technique before making any transmission. 
- It senses the channel for its status and if found free or idle, the data frames are transmitted otherwise the transmission is deferred till the channel becomes idle again. 
- In simple words, we can say that CSMA is an analogy to human behavior of not interrupting others when busy. 
- There are number of protocols out which the persistent and the non – persistent are the major ones. 
- CSMA is based on the idea that if the state of the channel can be listened or sensed prior to transmitting a packet, better throughput can be achieved.
- Also, using this methodology a number of collisions can be avoided. 
- However, it is necessary to make the following assumptions in CSMA technology:
  1. The length of the packets is constant.
  2. The errors can only be caused by collisions except which there are no errors.
  3. Capture effect is absent.
  4. The transmissions made by all the other hosts can be sensed by each of the hosts.
  5. The transmission time is always greater than the propagation delay.
About Persistent CSMA
- This protocol first senses the transmission channel and acts accordingly. 
- If the channel is found to be occupied by some other transmission, it keeps listening or sensing the channel and as soon as the channel becomes free or idle, starts its transmission. 
- On the other hand, if the channel is found empty, then it does not wait and starts transmitting immediately. 
- There are possibilities of collisions. 
- If one occurs, the transmitter must wait for random time duration and start again with the transmission. 
- It has a type called 1 – persistent protocol which makes transmission of probability 1 whenever the channel is idle. 
- In persistent CSMA there are possibilities of occurrence of collisions even if the propagation delay is 0. 
- However, collisions can only be avoided if the stations do not act so greedy. 
We can say that this CSMA protocol is aggressive and selfish. 
- There is another type of this protocol called the P – persistent CSMA. 
This is the most optimal strategy. 
- Here the channels are assumed to be slotted where one slot equals the period of contention i.e., 1 RTT delay. 
- The protocol has been named so because it transmits the packet with probability p if the channel is idle otherwise it waits for one slot and then transmits.

About Non–Persistent CSMA
- It is deferential and less aggressive when compared to its persistent counterpart. 
- It senses the channel and if it is busy it just waits and then again after sometime senses the channel unlike persistent CSMA which keeps on sensing the channel continuously. 
- As and when the channel is found free, the data packet is transmitted immediately. 
- If there occurs a collision it waits and starts again.
- In this protocol, even if the two stations become greedy in midst of transmission of some other station they do not collide probably whereas, in persistent CSMA they collide.
- Also, if only one of the stations become greedy in midst of some other transmission in progress, it has no choice but to wait. 
- In persistent CSMA this greedy stations takes over the channel up on completion of the current transmission.
Using non – persistent CSMA can reduce the number of collisions whereas persistent CSMA only increases the risk. 
- But the non – persistent CSMA is less efficient when compared to the persistent CSMA.
- Efficiency lies in the ability of the protocols of detecting the collisions before starting the transmission. 


Facebook activity