What is
CSMA/CD in Computer networking?
CSMA/CD
stands for carrier sense multiple access
with collision detection.
CSMA/CD is a
technology which is used to avoid collision even though there are thousands of
computer connected through a network.
A technology
was developed not only to help avoid collision, but also to respond correctly
if a collision happens.
The CSMA/CD
was early used in Ethernet networks to improve the performance of the
communication. I.e. in half duplex networks that utilize coaxial cable and
twisted pair cable.
How CSMA/CD
works?
It basically works by each computer in the network first sense if the wire/channel is idle and if it is idle it sends its data
But if 2
computer sense the channel idle at the same time and send data at the same
time, a collision will
happen.
And if the collision happens they immediately stop sending data this reduce the time of
collision because we do not want to waste time in sending the data packet completely
when collision is already detected and computer will wait for random amount of
time and this random time will now be double of what it was in previous
collision which means the waiting time increase exponentially after every
collision
And
if in the next attempt it successfully send the data packet then the waiting
time will again come back to normal that means it will not exponentially increase
of the previous waiting time.
Note: CSMA/CD is only used in Half duplex communication
network.In Full duplex communication network CSMA/CA is used.
What is
CSMA/CA in Computer networking?
CSMA/CA
stands for carrier sense multiple access
with collision Avoidance.
CSMA/CA is a
technology which is used to avoid collision even though there are thousands of
computer connected through a wireless network.
A technology
was developed not only to help avoid collision, but also to respond correctly
if a collision happens.
The CSMA/CA
is used in wireless networks to improve the performance of the communication. I.e.
in full duplex networks.
How CSMA/CA
works?
So, CSMA/CA (carrier sense multiple access with collision
avoidance) is used in wire networks.
So when a
computer wants to send a data on
wireless network it can’t sense or hear If there are any collision on the
network because there is no cable involved so instead it does its best to avoid
collision altogether.
So in this
method when a computer wants to send data it will first sense if there are any
other transmission happening and if it detects any other transmissions, it will
wait a short amount of time before checking the channel again.
And when it
checks the channel again, and if it doesn’t sense any transmission it will again
wait a short random amount of time and then it will go ahead and send its data then
once the destination device receives the data it will acknowledgement the
sender that it has received the data but if the sending computer does not
receive an acknowledgement from the destination it will assume that it did not
get the data and it will start the process all over again.
Now another method CSMA/CA use
to avoid collision is the optional RTS (Ready to send), CTS (Clear to send) protocol.
This is an optional protocol that’s used with CSMA/CA on wireless networks this
protocol enables a computer to send out an RTS to the wireless access point
requesting for an opportunity to send out its data and if the wireless access
point grants this request the access point will temporarily stop all other
communication on the network and then it will respond back to the computer with
CTS which tells the computer to go ahead and send it’s data so, when this
protocol the wireless access point is basically the traffic controller on the
wireless network.
Comments
Post a Comment
Please do not post any spam link in comment box