The following procedure is used to initiate a transmission. The procedure is complete when the frame is transmitted successfully or a collision is detected during transmission. • Is a frame ready for transmission? If not, wait for a frame. • Is medium idle? If not, wait until it becomes ready. • Start transmitting and monitor for collision during transmission. • Did a collision occur? If so, go to collision detected procedure. • Reset retransmission counters and complete frame transmission. The following procedure is used to resolve a detected collision. The procedure is complete when retransmission is initiated or the retransmission is aborted due to numerous collisions. • Continue transmission (with a jam signal instead of frame header/data/
CRC) until minimum packet time is reached to ensure that all receivers detect the collision. • Increment retransmission counter. • Was the maximum number of transmission attempts reached? If so, abort transmission. • Calculate and wait the random
backoff period based on number of collisions. • Re-enter main procedure at stage 1. Methods for collision detection are media dependent. On a shared, electrical bus such as
10BASE5 or
10BASE2, collisions can be detected by comparing transmitted data with received data or by recognizing a higher than normal signal amplitude on the bus. On all other media, a carrier sensed on the receive channel while transmitting triggers a collision event. Repeaters or
hubs detect collisions on their own and propagate jam signals. The collision recovery procedure can be likened to what happens at a dinner party, where all the guests talk to each other through a common medium (the air). Before speaking, each guest politely waits for the current speaker to finish. If two guests start speaking at the same time, both stop and wait for short, random periods of time (in Ethernet, this time is measured in microseconds). The hope is that by each choosing a random period of time, both guests will not choose the same time to try to speak again, thus avoiding another collision. ==Jam signal==