ArticleslgStudy

computer science

Alternating bit protocol

Alternating bit protocol is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Alternating bit protocol rather than just read about it. In short: 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…

Key takeaways

  • Alternating bit protocol belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Alternating bit protocol to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Alternating bit protocol from memory before moving on to harder problems.

Reference excerpt

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 acknowledgment 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 a fixed number of retransmissions for a datum.

See also Acknowledgement (data networks) Information theory

References

Further reading E. Rich, Automata, computability and complexity: theory and applications. Upper Saddle River, NJ: Pearson Prentice Hall, 2008. K. A. Bartlett, R. A. Scantlebury, and P. T. Wilkinson, "A note on reliable full-duplex transmission over half-duplex links," Commun. ACM, vol. 12, no. 5, pp. 260-261, May 1969 W. C. Lynch, "Reliable full-duplex file transmission over halfduplex telephone lines," Commun. ACM, vol. 11, no. 6, pp. 407 410, June 1968. I. Suzuki, "Formal analysis of the alternating bit protocol by temporal Petri nets," in IEEE Transactions on Software Engineering, vol. 16, no. 11, pp. 1273-1281, Nov 1990. doi: 10.1109/32.60315 Gildea, K.J.; Krishnamoorthy, M.S. (1992). "Modular Protocol Nets: The Alternating Bit Protocol Example". Proceedings of the Third International Conference on Computer Integrated Manufacturing. IEEE. pp. 86–95. doi:10.1109/CIM.1992.638998. ISBN 978-0-8186-2615-9. Berthomieu, B., Diaz, M., "Modeling slid Verification of Time Dependent Systems Using Time Petri Nets," IEEE Transactions on Software Engineering, March 1991.

External links Alternating Bit Protocol Simulator University of Sterling An Implementation for Alternating Bit Protocol (ABP) as an Application of Theory in Networking Western Michigan University Specification and Verification of Distributed Systems: Alternating Bit Protocol Japan Advanced Institute of Science and Technology Example: Alternating Bit Protocol Michigan Technological University Alternating Bit ProtocolDutch Research Outcomes

Worked examples

Example 1 — a first encounter with Alternating bit protocol

Start with the simplest possible case. Write down what Alternating bit protocol claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Alternating bit protocol before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Alternating bit protocol ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Alternating bit protocol

In research
Alternating bit protocol appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Alternating bit protocol in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Alternating bit protocol is common in secondary-school and first-year university syllabi. It links to neighbouring topics Network protocols, so understanding it makes those chapters shorter.
In everyday life
Look for Alternating bit protocol outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Alternating bit protocol” →

How to study Alternating bit protocol in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Alternating bit protocol means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Alternating bit protocol out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Alternating bit protocol in simple terms?

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…

Why does Alternating bit protocol matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Alternating bit protocol?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Alternating bit protocol.

Tags

  • Network protocols

Keep exploring