1. Gyanastra
  2. Computer Networks
  3. Flow Control and Sliding Window
  4. Need for Flow Control and Buffer Overflow at Receiver
Free lesson, no account needed 3 min read 36 practice questions after it
Asked in past papers1 time
  • UGC NET2007

Computer Networks · Flow Control and Sliding Window

Need for Flow Control and Buffer Overflow at Receiver

Overview

Flow control is the technique that keeps a fast sender from overwhelming a slower receiver. Without it, the receiver's buffer fills up and every further packet is discarded, so data is lost. The sender must therefore transmit only at a rate the receiver can receive and process.

Key concepts

  • Flow Control: A technique used between a sender and a receiver, where the sender keeps sending packets and the receiver keeps receiving them.
    It ensures the sender does not send data faster than the receiver can process or consume it.
  • Buffer: Storage available at the receiver side to temporarily hold incoming packets before they are processed.
  • The core problem: The sender produces data and sends packets continuously, but the receiver's processor may be slow — it cannot consume data at the same rate at which the sender produces it.
  • The core principle: The sender must send packets only at a rate the receiver can receive and process.

How it works

  1. The receiver has a buffer.
  2. The sender sends packet 1, packet 2, packet 3, packet 4 — all are sent and stored in the buffer.
  3. The buffer becomes completely full.
  4. If the sender sends one more packet (packet 5), there is no place to accommodate it, so packet 5 is discarded.
  5. Similarly, packet 6 is discarded, packet 7 is discarded, and so on.

Conclusion: packets should not be sent at such a high rate that the receiver cannot handle them. Flow control methods ensure the sender sends packets in such a way that the receiver is able to receive and process them.

Revision summary

  • Flow control exists because the receiver's processing speed may be slower than the sender's transmission rate.
  • If the sender overruns the receiver's buffer, excess packets are discarded — this is packet loss.
  • The sender must send only at a rate the receiver can receive and process.
  • In numericals, the two terms without an exact formula are generally taken as zero; this is the reason most numerical problems treat them as zero.

Previous-year exam insights

  • Flow control is implemented by two main mechanisms: windowing (sliding window / advertised window) and buffering at the receiver; routing and RPC are not flow-control techniques.
    Asked inUGC NET 2007
  • Flow control is an end-to-end (receiver-driven) control of the sender's rate, whereas congestion control is a network-wide control of the number of packets injected into the subnet; the two are distinct and can operate together.
  • In sliding window protocols the receiver advertises a window size (in the header) equal to its free buffer space; the sender may have at most that many unacknowledged bytes/PDUs outstanding, and a zero window means the sender must stop until a window update arrives.
  • Stop-and-Wait is a sliding-window protocol with sender and receiver window sizes of 1;
    its efficiency is 1/(1+2a) where a = propagation time / transmission time, and it needs sequence numbers of at least 1 bit.
  • Go-Back-N uses a sender window of at most 2m−12^{m} - 1 and a receiver window of 1 for an m-bit sequence number; Selective Repeat needs a window of at most 2m−12^{m−1} on both sides.
  • Flow control is not the same as error control: flow control prevents buffer overflow at the receiver, while error control (ACK/NAK, timers, retransmission) recovers lost or corrupted frames; sliding window protocols perform both.

Receiver Buffer Overflow

Shows how a fast sender fills the receiver buffer and further packets are discarded.

Pages 1–2 of 2