ELEC1401 Chap.10 Pipelining and Congestion Control
Pipelining and Congestion Control
Pipelining and Congestion Control increases useful work by allowing several packets to remain unacknowledged. A sender window separates acknowledged sequence numbers, outstanding packets and data not yet sent. Go-Back-N typically accepts only the next in-order packet and can retransmit a run after loss.
Selective Repeat buffers acceptable out-of-order packets and retransmits individual missing data, improving efficiency at the cost of receiver state and sequence-number care. A larger window fills a long, high-rate path more effectively than stop-and-wait, but growth stops helping when another limit binds.
Flow control protects receiver capacity, while congestion control responds to queues, delay and loss within the shared network. TCP combines cumulative acknowledgement and selective mechanisms in ways that do not fit perfectly into one textbook category. Sound answers label window state and identify whether endpoint space or network pressure supplies the limiting evidence.
What this chapter covers
- 01
Sliding sender window
- 02
Go-Back-N recovery
- 03
Selective Repeat buffering
- 04
Pipeline utilisation
- 05
Receiver flow control
- 06
Network congestion control
Worked example · free
Estimate pipeline window size
- 2Transmission time is 12,000 / 3,000,000 = 0.004 seconds, or 4 ms.
- 2Utilisation is 4 / (36 + 4) = 0.10, or 10%.
- 2Divide the 40 ms cycle by 4 ms per packet and round up, giving a window of 10 packets.
- 1State that processing, acknowledgement size and losses were ignored.
Key terms
- Sender window
- The set of sequence numbers allowed to be outstanding without acknowledgement.
- Go-Back-N
- A pipelined reliability method that can retransmit a missing packet and later outstanding packets.
- Selective Repeat
- A method that buffers acceptable out-of-order data and retransmits individual missing packets.
Pipelining and Congestion Control FAQ
Why does pipelining improve utilisation?
Several packets can be transmitted while earlier data waits for acknowledgements, so the sender avoids sitting idle for an entire round trip. The useful window depends on rate, packet size, delay and protocol limits.
How do Go-Back-N and Selective Repeat differ?
Go-Back-N keeps receiver behaviour simpler and may resend a run after one loss. Selective Repeat buffers out-of-order arrivals and resends only missing data, using more state and careful sequence-number management.
When does a larger window become harmful?
Once receiver capacity or safe network capacity binds, additional outstanding data can overflow buffers, lengthen queues and increase loss. Flow and congestion controls therefore limit the sending window for different reasons.
Which window limit should the sender obey?
The sender must respect both receiver capacity and the amount considered safe for the network path, so the tighter limit controls current transmission. A large receive buffer cannot override congestion evidence, and an uncongested path cannot force a slow receiving application to consume faster.
Exam move
Draw a sequence-number row and colour acknowledged, outstanding and unsent regions. Move the sender base after each acknowledgement and record whether the next sequence number can advance. Repeat one loss trace under Go-Back-N and Selective Repeat. For each protocol, label receiver acceptance, buffering, acknowledgement style and retransmission scope. This reveals the state cost behind the efficiency difference.
Practise utilisation calculations by finding packet transmission time first, adding the round-trip wait and then computing the smallest whole-number window that covers the simplified cycle. State ignored processing, acknowledgement and loss terms. Build two separate evidence lists for control. Receiver-advertised space points to flow control; queue growth, delay and path loss point to congestion control.
Create mixed cases where both limits exist and identify the tighter bound. Avoid saying every duplicate acknowledgement has one universal meaning; interpret it in the stated protocol context. For TCP questions, recognise that its behaviour can combine cumulative acknowledgements with selective mechanisms rather than matching a textbook category perfectly.
Under timed conditions, annotate sender base, next sequence number, window edge and receiver expectation before narrating the trace. Review errors caused by sliding the window too early, accepting forbidden out-of-order packets or confusing endpoint pressure with path pressure. Finish by explaining why maximum individual throughput is not the only objective when several flows share queues.
Count receiver buffers and network retransmissions in parallel for the same loss event. Change packet length while holding rate and round-trip time fixed, then recompute both transmission time and the window needed to cover waiting. Create one case where receiver space is the tighter bound and another where congestion state dominates. Explain why a large advertised receive window cannot authorise unsafe network load.
Test sequence-number wrap-around with a deliberately small space and verify that old data cannot be mistaken for new packets. Finish each trace by checking sender base, next sequence value, receiver expectation and application delivery count.
Working through Pipelining and Congestion Control in ELEC1401? Sia is AskSia’s AI Electrical Engineering tutor — ask any ELEC1401 Pipelining and Congestion Control question and get a clear, step-by-step explanation grounded in how ELEC1401 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.