CSS NEXUS
CSS Solved Computer Science

CSS 2026Computer SciencePaper II, Q. 4

In large-scale distributed networks, congestion control and avoidance mechanisms are essential for maintaining service quality. Provide a detailed analysis of the congestion-handling strategies employed in TCP, and contrast them with the limitations of UDP in similar conditions. Explain why transport-layer design decisions influence overall network stability.

By CSS Nexus Team ·

Original CSS 2026 Computer Science I paper Original CSS 2026 Computer Science II paper Original CSS 2016–2026 Computer Science paper

This answer to the CSS 2026 Computer Science paper (Paper II, Q. 4) was written by the CSS Nexus team. Read the outline first, then see how each point is developed.

Outline

  • 1. Introduction
  • 2. Overview: what congestion is and where it is controlled
  • 3. Congestion-handling strategies in TCP
  • ✓Congestion window; slow start; congestion avoidance (AIMD); fast retransmit; fast recovery; retransmission timeout; ECN and active queue management; modern algorithms (CUBIC, BBR)
  • 4. Limitations of UDP under congestion
  • ✓No congestion control; no flow control; no reliability; no ordering; unfairness to TCP; congestion collapse risk; burden on the application; middlebox treatment
  • 5. Why transport-layer design decisions influence network stability
  • 6. Critical evaluation
  • 7. Way forward
  • 8. Conclusion

Answer

Introduction

In his landmark paper, Van Jacobson recorded: "In October of '86, the Internet had the first of what became a series of 'congestion collapses'. During this period, the data throughput from LBL to UC Berkeley (sites separated by 400 yards and three IMP hops) dropped from 32 Kbps to 40 bps." (Congestion Avoidance and Control, ACM SIGCOMM, 1988.) The network had not failed physically; senders were simply retransmitting faster than routers could forward, so links stayed full of useless duplicate packets. Jacobson's remedy, built into TCP, is the reason the Internet scaled from a few thousand hosts to billions. The episode shows that congestion is a problem of end-host behaviour, and that the design of the transport layer decides whether a shared network stays stable.

Overview

Congestion occurs when the total offered load on a link or router exceeds its capacity. Router buffers fill, queuing delay rises and packets are dropped. If senders respond to loss by sending more, the network enters congestion collapse: throughput falls towards zero while load stays high. Because the Internet's IP layer is deliberately "best effort" and keeps no per-flow state, the job of controlling the sending rate falls on the transport layer at the end hosts. TCP does this through an elaborate, self-regulating window mechanism; UDP does not do it at all. (Reference: James Kurose and Keith Ross, Computer Networking: A Top-Down Approach, 8th ed., Pearson, 2021, Chapter 3.)

Path to congestion collapse

  1. Offered load exceeds capacity
  2. Buffers fill
  3. Delay and loss rise
  4. Senders retransmit
  5. Useful throughput collapses

Congestion-handling strategies in TCP

1. The congestion window (cwnd).

TCP limits the data in flight to the minimum of the receiver's advertised window (flow control) and a sender-side congestion window. The sender has no direct view of the network, so it infers congestion from two signals: lost segments and rising round-trip time. The congestion window is raised when acknowledgements (ACKs) arrive and cut when loss is detected, so TCP is "self-clocking": new data enters the network only as fast as old data leaves it. (Reference: RFC 5681, TCP Congestion Control, Allman, Paxson and Blanton, IETF, 2009.)

2. Slow start.

A new connection does not know the available bandwidth, so cwnd starts small (an initial window of up to 10 segments under RFC 6928) and grows by one segment for every ACK received. This doubles the window each round-trip time, an exponential probe that quickly finds the path capacity. Slow start continues until cwnd reaches the slow-start threshold (ssthresh) or a loss occurs. (Reference: RFC 5681, Section 3.1; RFC 6928, Increasing TCP's Initial Window, 2013.)

3. Congestion avoidance through AIMD.

Above ssthresh, TCP switches to additive increase: cwnd grows by about one segment per round-trip time. On loss it applies multiplicative decrease, halving the window. Chiu and Jain proved that additive-increase, multiplicative-decrease (AIMD) is the policy that drives competing flows to both efficiency and fairness, which is why the sawtooth pattern of TCP throughput appears in every textbook. (Reference: Dah-Ming Chiu and Raj Jain, "Analysis of the Increase and Decrease Algorithms for Congestion Avoidance in Computer Networks", Computer Networks and ISDN Systems, 1989.)

4. Fast retransmit.

Waiting for a timeout wastes time. When a receiver gets an out-of-order segment it repeats the last ACK; when the sender sees three duplicate ACKs, it assumes one segment was lost and retransmits it immediately, without waiting for the timer. (Reference: RFC 5681, Section 3.2.)

5. Fast recovery.

Duplicate ACKs prove that later segments are still reaching the receiver, so the network is congested but not jammed. TCP Reno therefore halves cwnd (setting ssthresh to half the flight size) and continues in congestion avoidance instead of falling back to a window of one. NewReno improved recovery from several losses in one window, and Selective Acknowledgement (SACK) tells the sender exactly which blocks arrived. (Reference: RFC 6582, The NewReno Modification to TCP's Fast Recovery Algorithm, 2012; RFC 2018, TCP Selective Acknowledgment Options, 1996.)

6. Retransmission timeout (RTO).

If ACKs stop entirely, TCP treats it as severe congestion: it sets ssthresh to half the flight size, resets cwnd to one segment and re-enters slow start. The timeout is computed from a smoothed round-trip time and its variance, and it doubles after each successive timeout (exponential backoff), so a congested path is relieved rather than flooded. (Reference: RFC 6298, Computing TCP's Retransmission Timer, Paxson et al., 2011.)

7. Explicit Congestion Notification and active queue management.

Loss is a late and costly signal. With ECN, routers mark packets instead of dropping them when queues start to build, and the receiver echoes the mark so the sender slows down before loss occurs. Router algorithms such as Random Early Detection (RED) and CoDel drop or mark packets early to keep queues short and avoid "bufferbloat". (Reference: RFC 3168, The Addition of ECN to IP, 2001; Sally Floyd and Van Jacobson, "Random Early Detection Gateways for Congestion Avoidance", IEEE/ACM Transactions on Networking, 1993; RFC 7567, 2015.)

8. Modern algorithms: CUBIC and BBR.

On fast long-distance links, linear growth of one segment per RTT takes far too long to fill the pipe. CUBIC, the default in Linux, Windows and macOS, grows the window as a cubic function of time since the last loss, so it is gentle near the previous capacity and aggressive far from it. Google's BBR abandons loss as the main signal and instead models the path's bottleneck bandwidth and minimum round-trip time, pacing packets at the estimated rate. (Reference: RFC 9438, CUBIC for Fast and Long-Distance Networks, 2023; Neal Cardwell et al., "BBR: Congestion-Based Congestion Control", ACM Queue, 2016.)

TCP congestion-control states

  1. 1

    Slow start: cwnd doubles each RTT

  2. 2

    ssthresh reached: congestion avoidance, +1 per RTT

  3. 3

    Three duplicate ACKs: fast retransmit

  4. 4

    Fast recovery: cwnd halved

  5. 5

    Timeout: cwnd = 1, back to slow start

Limitations of UDP under congestion

1. No congestion control.

UDP, defined in a three-page specification, simply adds port numbers and a checksum to IP. It sends at whatever rate the application chooses and does not slow down when packets are lost. (Reference: RFC 768, User Datagram Protocol, Jon Postel, 1980.)

2. No flow control.

A UDP sender can overrun a slow receiver. Datagrams arriving at a full socket buffer are silently discarded. (Reference: Kurose and Ross, 2021, Section 3.3.)

3. No reliability.

There are no acknowledgements or retransmissions. Under congestion, lost datagrams are lost for good unless the application notices and resends them. (Reference: RFC 768.)

4. No ordering or duplicate protection.

Datagrams can arrive reordered or duplicated, so applications must handle sequencing themselves. (Reference: Andrew Tanenbaum and David Wetherall, Computer Networks, 5th ed., Pearson, 2011, Section 6.4.)

5. Unfairness to TCP flows.

When a UDP flow and TCP flows share a bottleneck, the TCP flows back off on loss while the UDP flow does not. The UDP flow therefore captures an ever larger share of the link and starves well-behaved traffic. (Reference: Sally Floyd and Kevin Fall, "Promoting the Use of End-to-End Congestion Control in the Internet", IEEE/ACM Transactions on Networking, 1999.)

6. Risk of congestion collapse.

If unresponsive traffic grows large, the network returns to the 1986 situation, which Floyd and Fall call "congestion collapse from undelivered packets": bandwidth is consumed by packets that are dropped before reaching their destination. (Reference: RFC 2914, Congestion Control Principles, Sally Floyd, 2000.)

7. The burden falls on the application.

The IETF requires that applications using UDP over the open Internet implement their own congestion control, for example TCP-Friendly Rate Control (TFRC) or circuit breakers for media streams. Many poorly written applications do not. (Reference: RFC 8085, UDP Usage Guidelines, 2017; RFC 5348, TCP Friendly Rate Control, 2008.)

8. Treatment by networks and middleboxes.

Because UDP is unresponsive and is often used in amplification attacks (DNS, NTP), some operators rate-limit or block UDP. Applications then suffer worse service under load than equivalent TCP traffic. (Reference: RFC 8085, Section 3.)

UDP under congestion

  • 01No congestion control
  • 02No flow control
  • 03No retransmission
  • 04No ordering
  • 05Unfair to TCP
  • 06Collapse risk
  • 07Application burden
  • 08Rate-limited by networks

Why transport-layer design decisions influence network stability

The Internet follows the end-to-end principle: the core is kept simple and intelligence sits at the edges. (Reference: Saltzer, Reed and Clark, "End-to-End Arguments in System Design", ACM Transactions on Computer Systems, 1984.) Routers do not police individual flows, so the stability of the whole network depends on billions of end hosts voluntarily obeying a common rule: slow down when the network signals congestion. TCP's AIMD acts as a distributed feedback controller. Each sender reacts to loss, and together they converge to a stable, fair allocation without any central authority. Design choices at this layer therefore have network-wide consequences:

- Responsiveness determines whether overload dissipates or builds into collapse.

- Fairness decides whether one aggressive protocol can starve all others, which is why new protocols are required to be "TCP-friendly".

- Signal choice (loss, delay or ECN marks) shapes queue length, latency and buffer bloat across the Internet.

- Timer behaviour, such as exponential backoff, prevents synchronised retransmission storms.

- Deployment scale: a single change to a dominant algorithm, such as CUBIC replacing Reno or BBR being deployed across YouTube, alters traffic dynamics for the entire Internet.

Transport design and stability

  • End-host rate rules
  • Collective feedback loop
  • Fair share and short queues
  • Stable shared network

Critical evaluation

TCP's congestion control is one of the great engineering successes of computing, yet it is not perfect. Loss-based algorithms misread random wireless losses as congestion and cut the window unnecessarily, while deep router buffers allow them to fill queues and add large delays before any loss occurs. BBR reduces delay but early versions were shown to be unfair to CUBIC flows sharing the same bottleneck, which led to BBRv2 and BBRv3. UDP, on the other hand, is not a "bad" protocol; its lack of control is exactly what real-time voice, video, gaming and DNS need, because a late packet is useless and retransmission would only add delay. The real modern trend is to build new transport logic on top of UDP: QUIC, which carries HTTP/3, runs over UDP but implements its own reliability and a congestion control modelled on TCP (NewReno by default, with CUBIC and BBR common in practice). (Reference: RFC 9000, QUIC, 2021; RFC 9002, QUIC Loss Detection and Congestion Control, 2021.) The lesson is that stability depends not on which protocol header is used but on whether the sender responds to congestion.

Way forward

1.

Require congestion control for every high-volume application, whether on TCP, QUIC or UDP, as RFC 8085 recommends.

2.

Deploy ECN end-to-end, so congestion is signalled before packets are lost.

3.

Use active queue management (CoDel, FQ-CoDel, PIE) in routers and home gateways to end bufferbloat.

4.

Adopt delay-aware algorithms such as BBR, but test them for fairness against existing traffic.

5.

Use QUIC for web and mobile traffic to get modern congestion control with faster connection set-up.

6.

Apply rate limiting and anti-spoofing filters (BCP 38) to curb UDP amplification attacks.

7.

Use L4S (Low Latency, Low Loss, Scalable throughput) for interactive applications that need both high throughput and low delay.

8.

For Pakistan's growing broadband and data-centre networks, ISPs and PTA should adopt AQM and ECN standards so that service quality holds up during peak-hour congestion.

Conclusion

The collapse that Van Jacobson described in 1988, with throughput falling from 32 Kbps to 40 bps, showed that a shared network survives only if its senders restrain themselves. TCP turned that restraint into a protocol through the congestion window, slow start, AIMD, fast retransmit, fast recovery, backoff timers and, later, ECN, CUBIC and BBR. UDP offers speed and simplicity but leaves congestion entirely to the application, which makes it unfair and potentially dangerous at scale. Because the Internet's core deliberately trusts its edges, transport-layer design is the foundation of network stability, and any new protocol, QUIC included, must respect that responsibility.

Tags

Browse every CSS Computer Science solved past paper or the full library of CSS solved past papers, and compare with the original CSS 2026 Computer Science question paper.

Corrections and discussion

Nothing here yet. Spotted a mistake in this answer, or have a suggestion? Tell us below.

Add your comment, correction or suggestion

Everything is checked by our team before it appears. Please keep it respectful and on topic.

Your rating (optional)

Answered this question differently?

Submit your own answer — approved answers are published with your name.

Submit your answer

Get new solved papers on WhatsApp

Follow the CSS Nexus channel to hear first when new answers are published.

Follow our WhatsApp channel