Alternating bit protocol: Difference between revisions

Content deleted Content added
SmackBot (talk | contribs)
m References: Clean up
Dilcoe (talk | contribs)
mNo edit summary
Line 4:
'''Alternating bit protocol''' (ABP) means a simple [[data link layer]] [[network protocol]] that retransmits lost or corrupted messages.
 
[[Message]]s are sent from [[transmitter]] A to [[receiver (Information Theory)|receiver]] B. Assume that the [[channel (communications)|channel]] from A to B is initialized and that there are no messages in transit. Each message from A to B contains a data part and a one-bit sequence number, i.e., a value that is 0 or 1. B has two [[acknowledge character]]s that it can send to A: ACK0 and ACK1. We assume that the channel may corrupt a message and that there is a way in which A and B can decide whether or not they have received a correct message. How and to whichwhat extent that is possible is the subject of [[coding theory]].
 
When A sends a message, it sends it continuously, with the same sequence number, until it receives an acknowledgment from B that contains the same sequence number. When that happens, A complements (flips) the sequence number and starts transmitting the next message.