This document is an introduction to Ethernet networks and the IEEE 802.3 standards. It describes the CSMA/CD protocol used in 802.3 networks where nodes wait random time periods before transmitting to avoid collisions. It also contains pseudocode for the backoff algorithm used which doubles the maximum random backoff time after each unsuccessful attempt, up to a limit.
This document is an introduction to Ethernet networks and the IEEE 802.3 standards. It describes the CSMA/CD protocol used in 802.3 networks where nodes wait random time periods before transmitting to avoid collisions. It also contains pseudocode for the backoff algorithm used which doubles the maximum random backoff time after each unsuccessful attempt, up to a limit.
This document is an introduction to Ethernet networks and the IEEE 802.3 standards. It describes the CSMA/CD protocol used in 802.3 networks where nodes wait random time periods before transmitting to avoid collisions. It also contains pseudocode for the backoff algorithm used which doubles the maximum random backoff time after each unsuccessful attempt, up to a limit.
PROCEDURE backoff (attemps: INTEGER; VAR maxbackoff: INTEGER);
CONST slot_time = 51.2e-6; backoff_limit = 10; VAR delay: INTEGER; BEGIN delay:=0; IF attempts = 1 THEN maxbackoff:=2 ELSE BEGIN IF attempts <= backoff_limit THEN maxbackoff := maxbackoff*2 ELSE erreur; delay := int(random*maxbackoff); END; wait(delay*slot_time); END; backoff backoff(nb_essai, maxbackoff) random int random