We can detect collisions on both by means of listening CSMA/CD, and by the lack of an ACK in CSMA/CA. a network contention protocol that listens to a network in order to avoid collisions, unlike CSMA/CD that deals with network transmissions once collisions have been detected. CSMA/CA contributes to network traffic because, before any real data is transmitted, it has to broadcast a signal onto the network in order to listen for collision scenarios and to tell other devices not to broadcast.
CSMA/CD is used on Ethernet networks (or similar). We can detect any collisions because all the receivers are on the same wire as the transmitters.senses the medium and then immediately transmits. If it detects a collision, it backs off for a random period.
CSMA/CD, when a station has data to send, it first listens to determine whether any other station on the network is occupying the medium. If the channel is busy, the station will wait until it becomes idle before transmitting data. Since it is possible for two stations to listen at the same time and discover an idle channel, it is also possible that two stations could then transmit at the same time. When this occurs a collision will take place, and then a jamming signal is sent throughout the network in order to notify all stations of the collision. The stations will then wait for a random period of time before re-transmitting their respective frames.
CSMA/CA cannot do this as the receivers may suffer a collision due to the hidden terminal problem. Senses the medium, then waits a random number of slots, then senses again. This avoids the problem of all stations waiting until the medium is free, and then immediately all transmitting (i.e. colliding). Therefore introduces slight delays, because of this extra random wait time.
CSMA/CA is a modified version of the CSMA/CD access system. Under the CSMA/CA technique, as before stations are listening to the medium at all times. A station that is ready to transmit a frame will sense the medium, if the medium is busy, it will wait for an additional predetermined time period of DIFS (DCF Interframe Space) length and then, based upon a random calculation, picks a time slot within a contention window to transmit its frame. If there were no other transmissions before this time slot has arrived, it will start transmitting its frame. On the other hand if there were transmissions by other stations during this back-off time period, the station will freeze its counter and will pick-up the count where it left off after the other station has completed its frame transmission. The collisions can now occur only when two or more stations select the same time slot to transmit. These stations will have to reenter the contention procedure to select new time slots to transmit the collided frames.
0 comments:
Post a Comment