Truncated binary exponential backoff

This is an old revision of this page, as edited by Jheiv (talk | contribs) at 01:53, 22 September 2010 (Expected backoff). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In a variety of computer networks, binary exponential backoff or truncated binary exponential backoff refers to an algorithm used to space out repeated retransmissions of the same block of data.

Examples are the retransmission of frames in carrier sense multiple access with collision avoidance (CSMA/CA) and carrier sense multiple access with collision detection (CSMA/CD) networks, where this algorithm is part of the channel access method used to send data on these network. In Ethernet networks, the algorithm is commonly used to schedule retransmissions after collisions. The retransmission is delayed by an amount of time derived from the slot time and the number of attempts to retransmit.

After c collisions, a random number of slot times between 0 and is chosen. For the first collision, each sender will wait 0 or 1 slot times. After the second collision, the senders will wait anywhere from 0 to 3 slot times (inclusive). After the third collision, the senders will wait anywhere from 0 to 7 slot times (inclusive), and so forth. As the number of retransmission attempts increases, the number of possibilities for delay increases exponentially.

The 'truncated' simply means that after a certain number of increases, the exponentiation stops; i.e. the retransmission timeout reaches a ceiling, and thereafter does not increase any further. For example, if the ceiling is set at i=10 (as it is in the IEEE 802.3 CSMA/CD standard[1]), then the maximum delay is 1023 slot times.

Expected backoff

Given a uniform distribution of backoff times, the expected backoff time is the mean of the possibilities. That is, after c collisions, the number of backoff slots is in [0, 1, ..., N] where N = 2c - 1 and the expected backoff time (in slots) is  .

For example, the expected backoff time for the third (c = 3) collision, one could first calculate the maximum backoff time, N:

 
 
 

... and then calculate the mean of the backoff time possibilities:

 
 
 

... obtaining 3.5 as the expected number of back off slots after 3 collisions.

The above derivation is largely unnecessary when you realize that the mean of consecutive integers is equal to the mean of the largest and smallest numbers in the set. That is, the mean of a set A of consecutive integers a0, a1, a2, ... am is simply the mean of a0 and am or (a0 + am) / 2.

When applied to the above problem of finding the expected backoff time, the formula becomes simply:

 

... or otherwise interpreted as half of the maximum backoff time.

Because these delays cause other stations who are sending to collide as well, there is a possibility that, on a busy network, hundreds of people may be caught in a single collision set. Because of this possibility, after 16 attempts at transmission, the process is aborted.[citation needed]

See also

References

  1. ^ "IEEE Standard 802.3-2008" (PDF). IEEE. Retrieved 22 September 2010.