Skip to content
Surf Wiki
Save to docs
technology/networking

From Surf Wiki (app.surf) — the open knowledge base

Alternating bit protocol

Type of data link layer protocol about transmission fidelity


Type of data link layer protocol about transmission fidelity

Alternating bit protocol (ABP) is a simple network protocol operating at the data link layer (OSI layer 2) that retransmits lost or corrupted messages using FIFO semantics. It is the foundational form of a stop-and-wait ARQ, which is the simplest possible implementation of a sliding window protocol, where a simple timer restricts the order of messages to ensure receivers send messages in turn while using a window of 1 bit.

History

Donald Davies' team at the National Physical Laboratory introduced the concept of an alternating bit protocol in 1967 for the proposed NPL network and published their work in 1968 and 1969. An ABP was used by the ARPANET and by the European Informatics Network.

Bounded Retransmission Protocol (BRP) is a variant of the alternating bit protocol introduced by Philips in the mid-1970s.

Design

Messages are sent from transmitter A to receiver B. Assume that the 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 codes that it can send to A: ACK0 and ACK1.

When A sends a message, it resends 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.

When B receives a message that is not corrupted and has sequence number 0, it starts sending ACK0 and keeps doing so until it receives a valid message with number 1. Then it starts sending ACK1, etc.

This means that A may still receive ACK0 when it is already transmitting messages with sequence number one. (And vice versa.) It treats such messages as negative-acknowledge codes (NAKs). The simplest behaviour is to ignore them all and continue transmitting.

The protocol may be initialized by sending bogus messages and acks with sequence number 1. The first message with sequence number 0 is a real message.

Bounded Retransmission Protocol

The service it delivers is to transfer in a reliable manner, if possible, large files (sequence of data of arbitrary length) from a sender to a receiver. Unlike ABP, BRP deals with sequence numbers of datum in the file and interrupts transfer after fixed number of retransmissions for a datum.

References

References

  1. Tel, Gerard. (2000). "Introduction to distributed algorithms". Cambridge.
  2. Cambell-Kelly, Martin. (1987). "Data Communications at the National Physical Laboratory (1965-1975)". Annals of the History of Computing.
  3. "The Alternating Bit Protocol".
  4. Davies, Donald Watts. (1979). "Computer networks and their protocols". Chichester, [Eng.]; New York : Wiley.
  5. (October 22, 2019). "ARPANET is now 50 years old {{!}} Inria".
  6. (2022-10-25). "Oral Histories of the Internet and the Web". Taylor & Francis.
  7. Burnett, D.J.. (1977). "Packet Switching at Philips Research Laboratories". Computer Networks.
  8. {{foldoc. Alternating+bit+protocol
  9. "TreX's Examples -- Bounded Retransmission Protocol".
Info: Wikipedia Source

This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.

Want to explore this topic further?

Ask Mako anything about Alternating bit protocol — get instant answers, deeper analysis, and related topics.

Research with Mako

Free with your Surf account

Content sourced from Wikipedia, available under CC BY-SA 4.0.

This content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.

Report