1. Gyanastra
  2. Computer Networks
  3. Congestion Control
  4. Need for Congestion Control: Network Capacity vs Receiver Capacity
Free lesson, no account needed 5 min read 45 practice questions after it
Asked in past papers9 times
  • GATE CSE20262024202020182014201220082006
  • UGC NET2017

Computer Networks · Congestion Control

Need for Congestion Control: Network Capacity vs Receiver Capacity

Overview

Congestion control protects the network (routers and links) from being overloaded, while flow control protects the receiver from being overwhelmed.
The sender must limit its data to the smaller of the receiver's advertised capacity and the network's capacity, but only the receiver's capacity is known directly.

Key concepts

  • Congestion Control: The mechanism that protects the network — the routers and links between sender and receiver — from being overloaded with data. It answers how much data the network can carry.
  • Flow Control: The mechanism that protects the receiver from being overwhelmed.
    It is implemented using the advertisement window field carried inside the TCP packet, which tells the sender how much data the receiver is willing to accept.
  • Key distinction: Flow control protects the receiver; congestion control protects the network.
  • Receiver capacity (WRW_R): Known explicitly, because the receiver advertises it in the advertisement window.
  • Network capacity (WCW_C): Not directly known; there is no direct way to find out the capacity of the network.
  • Sender window: Set from the advertised receiver window, but must never exceed what the network can handle either.

How it works

  1. The receiver sends an advertisement window stating its capacity (for example, 1 GB). The sender sets its sender window size to that value.
  2. The window is converted to segments using the Maximum Segment Size (MSS). With MSS = 1 MB, a 1 GB window holds 1024 segments, which the sender could send all at once.
  3. The problem: sending all 1024 packets dumps them onto the network.
    Even though the receiver can absorb 1 GB, the network may not hold 1024 packets — routers may be heavily loaded, and the total network capacity may be less than 1 GB.
  4. The sender must therefore never send more than the network can handle, nor more than the receiver can handle.
  5. The sender sends the minimum of the two capacities, min⁡(WR,WC)\min(W_R, W_C).
  6. If the sender sends more than this minimum, either the network or the receiver will discard the data, forcing unnecessary retransmissions. Sending only the minimum keeps both safe.
  7. Protecting the receiver is done by flow control (advertisement window field); protecting the network is done by congestion control.

Formulas

Number of segments in window=Sender window sizeMSS\text{Number of segments in window} = \frac{\text{Sender window size}}{\text{MSS}}

  • where Sender window size = advertised receiver window (in bytes) and MSS = Maximum Segment Size (bytes per segment).

Actual sender window=min⁡(WR,WC)\text{Actual sender window} = \min(W_R, W_C)

  • where WRW_R = receiver capacity (advertised window) and WCW_C = network capacity.

Worked examples

Example 1 — Window in segments

  • Advertised window WRW_R = 1 GB, MSS = 1 MB
  • Segments in window = 1 GB/1 MB=10241\text{ GB} / 1\text{ MB} = 1024 segments
  • The sender could send all 1024 at once, but the network may not hold 1024 packets.

Example 2 — Receiver larger than network

  • WRW_R = 1 GB, WCW_C = 1 MB
  • Actual sender window = min⁡(1 GB,1 MB)=1 MB\min(1\text{ GB}, 1\text{ MB}) = 1\text{ MB}
  • Sending more would cause the network to discard data.

Example 3 — Network larger than receiver

  • WCW_C = 1 GB, WRW_R = 1 MB
  • Actual sender window = min⁡(1 GB,1 MB)=1 MB\min(1\text{ GB}, 1\text{ MB}) = 1\text{ MB}
  • Sending more would cause the receiver to discard data.

Comparison

AspectFlow ControlCongestion Control
ProtectsThe receiverThe network (routers/links)
Capacity known?Yes — receiver advertises it explicitlyNo — network capacity cannot be found out directly
MechanismAdvertisement window field in the packetCongestion control algorithm
Sender limitWRW_RWCW_C (estimated)

Revision summary

  • Flow control protects the receiver; congestion control protects the network.
  • The receiver's capacity is advertised explicitly; the network's capacity is not directly known.
  • Always send min⁡(WR,WC)\min(W_R, W_C) — never more than either capacity.
  • A large receiver window does not mean the network can carry that much data; dumping data can overload routers.
  • Sending more than the minimum causes discards at the network or the receiver and unnecessary retransmissions.
  • Window in segments = window size / MSS (1 GB / 1 MB = 1024 segments).
  • The core challenge of congestion control is that network capacity cannot be determined directly, unlike receiver capacity.

Previous-year exam insights

  • TCP congestion window evolution: in slow start cwnd starts at 1 MSS and doubles every RTT (increases by 1 MSS per ACK, i.e. exponentially) until it reaches ssthresh; in congestion avoidance cwnd increases by 1 MSS per RTT (additive increase, roughly +MSS/cwnd per ACK).
    Asked inGATE 2026GATE 2024GATE 2020GATE 2018GATE 2012GATE 2008
  • On a timeout, ssthresh is set to half the current cwnd (max(cwnd/2, 2 MSS)) and cwnd is reset to 1 MSS, restarting slow start;
    on 3 duplicate ACKs (fast retransmit), ssthresh = cwnd/2 and cwnd = ssthresh (fast recovery), continuing in congestion avoidance.
    Asked inGATE 2024GATE 2014GATE 2012
  • The effective sender window is min(cwnd, receiver advertised window); the receiver window caps the congestion window, so growth stops once cwnd reaches the advertised window.
    Asked inGATE 2026GATE 2020
  • Time to reach a given cwnd is counted in RTTs: in slow start cwnd doubles each RTT (1, 2, 4, 8, ... MSS), so reaching cwnd = 2k2^{k} MSS takes k RTTs;
    after crossing ssthresh, each further RTT adds only 1 MSS.
    Asked inGATE 2026GATE 2014
  • TCP performs both flow control (via the receiver advertised window) and congestion control (via cwnd); UDP performs neither, and slow start/fast retransmit are congestion-control mechanisms only.
    Asked inGATE 2008
  • Congestion-control algorithms: slow start, congestion avoidance (AIMD), fast retransmit and fast recovery; AIMD means additive increase of cwnd per RTT and multiplicative decrease (halving) on loss.
    Asked inGATE 2012GATE 2008
Pages 1–2 of 2