Computer NetworksTU Board 2078
What is flow control? Explain Stop and Wait ARQ with suitable example. How is it different from G Back N ARQ?
10Answer
Flow control is a data link layer technique that stops a fast sender from overwhelming a slow receiver. The sender may only send as much data as the receiver can accept, and waits for acknowledgements (ACKs) before sending more.
ARQ (Automatic Repeat reQuest) adds error control: frames that are lost or damaged are sent again automatically.
Stop-and-Wait ARQ
- The sender sends one frame and keeps a copy of it. It starts a timer.
- It waits for an ACK before sending the next frame.
- The receiver sends an ACK when the frame arrives correctly. A damaged frame is discarded without an ACK.
- If the timer expires before the ACK arrives, the sender retransmits the frame.
- Frames and ACKs are numbered 0 and 1 (a 1-bit sequence number) so the receiver can spot a duplicate frame when an ACK was lost.
Example: the sender sends Frame 0 and receives ACK 1, then sends Frame 1. Frame 1 is lost, so the timer expires and Frame 1 is sent again. ACK 0 arrives, and the sender sends the next Frame 0.
It is simple, but the link is idle while the sender waits, so efficiency is poor on long or fast links.
Stop-and-Wait vs Go-Back-N ARQ
| Stop-and-Wait ARQ | Go-Back-N ARQ |
|---|---|
| Sends one frame and waits for its ACK. | Sends up to N frames (a window) before waiting. |
| Sender window size = 1. | Sender window size up to 2ᵐ − 1 (m = sequence bits). |
| Sequence numbers 0 and 1. | Sequence numbers 0 to 2ᵐ − 1. |
| On error, only the one frame is resent. | On error, the lost frame and all frames after it are resent. |
| Low link utilisation. | Much better utilisation (pipelining). |
| Very simple; no buffering. | Needs a sender buffer; the receiver accepts frames only in order. |
Discussion
Loading…
More Computer Networks questions
What are the advantages of layered architecture in network communication? Explain the TCP/IP protocol stack in detail.TU Board 208210What are the services provided by the Transport Layer? Explain the working principle of the Distance Vector Algorithm with a suitable example.TU Board 208210Differentiate between IPV4 and IPV6 protocol in brief. Explain Cyclic Redundancy Check with a suitable numerical example.TU Board 208210How is a connection established in TCP protocol using 3 way handshaking? Explain.TU Board 20825Write the subnet ID, broadcast address and address range of each subnet if you divide a class C network 193.168.2.0/24 into 8 different subnets. What is the…TU Board 20825What is the major purpose of DNS? Explain how DNS resolves a domain name to an IP address.TU Board 20825