23 Qs · since 2012 · 33 marks · 1.3 marks/paperMedium yield
GATE CS tests TCP across three primary areas: congestion control dynamics (window growth phases, timeout recovery, and round-by-round segment tracking), sequence number wrap-around… Guide
close to terminate the connection and a FIN segment is sent to the TCP server. Server-side TCP responds by sending an ACK, which is received by the client-side TCP. As per the TCP…connect function has already been called. Which of the following statements is/are CORRECT?
I. A connected UDP socket can be used to communicate with multiple peers simultaneously.…accept, bind, listen, and recv according to UNIX socket API.Topic guide
GATE CS tests TCP across three primary areas: congestion control dynamics (window growth phases, timeout recovery, and round-by-round segment tracking), sequence number wrap-around time and bit-budget calculations against MSL, and connection lifecycle mechanics (3-way handshake flags, state transitions during active/passive close, and crash recovery with RST segments). Questions are balanced between computational NATs involving RTTs and discrete bit math, and conceptual MSQ/MCQs focusing on byte-stream mechanics, piggybacking, and RFC 793 protocol invariants.
Congestion Window Evolution and Round Tracing
common · mixed · 2 marks · 2026, 2020, 2014
Calculations tracking cwnd size, round index, or cumulative segments transmitted across Slow Start (exponential growth by doubling per RTT) and Congestion Avoidance (linear growth by 1 MSS per RTT), taking into account ssthresh and timeout events.
Sequence Number Wrap-Around and Header Field Sizing
common · mixed · 2 marks · 2023, 2022, 2018
Calculating the minimum time to wrap around the 32-bit sequence number space at a given line rate, or determining the minimum bit-width required to avoid sequence number re-use within the Maximum Segment Lifetime (MSL).
TCP Connection Establishment, Teardown, and State Diagram
common · MSQ · 1 marks · 2025, 2024, 2021, 2017
Analyzing flag combinations (SYN, ACK, FIN, RST) in connection handshake/teardown, sequence/acknowledgement number increments across SYN/FIN consumption, and exact RFC 793 state transitions (e.g., FIN-WAIT-1 to FIN-WAIT-2).
TCP Protocol Invariants and Socket Behavior
occasional · MCQ · 1 marks · 2025, 2021, 2018, 2015
True/false evaluations of protocol rules including byte-stream numbering vs packet numbering, dynamic rwnd vs static buffers, retransmission timeout bounds (), piggybacking capability, and half-open socket behavior on remote host reboot.
System Call Function and State Transition
occasional · MCQ · 1 marks · 2014
Identifying the specific socket API call responsible for altering socket state (e.g., active vs. passive socket roles, listening state).
Server-Side Execution Sequence
occasional · MCQ · 1 marks · 2015
Determining the mandatory chronological order of socket system calls invoked by a TCP server process during connection establishment and data transfer.
Protocol-Specific Socket Semantics
occasional · MCQ · 1 marks · 2017
Evaluating true/false statements regarding nuanced socket behavior across transport protocols, such as calling `connect()` on a UDP socket.
TCP Connection Lifecycle and Property Verification
rare · MCQ · 1 marks · 2026
Evaluation of true/false conceptual statements regarding TCP connection establishment (3-way handshake), duplex mode (full-duplex), and symmetry of connection teardown (including simultaneous close).
TCP Congestion Window Tracing
common · NAT · 2 marks · 2024, 2012
Tracing the evolution of cwnd and ssthresh across multiple RTTs or transmission rounds, including slow start exponential doubling, additive increase during congestion avoidance, and reset behaviors upon timeout or packet loss.
Token Bucket / Traffic Shaping Time Calculation
occasional · NAT · 2 marks · 2016
Calculating the total time or burst duration required to transmit a given volume of data through a token bucket shaper having a specified burst capacity, maximum transmission rate, and sustained token arrival rate.
TCP Connection Control & Handshake Signaling
occasional · MCQ · 1 marks · 2021
Identifying the exact header flag settings (SYN, ACK, FIN) and sequence/acknowledgement numbers during TCP three-way handshake connection establishment or four-way teardown.
Protocol Property Verification
occasional · MCQ · 1 marks · 2015
A set of numbered statements asserting specific architectural characteristics of transport protocols (such as duplexity, byte-stream vs message-stream orientation, and options like SACK) are evaluated for correctness.
Slow Start Window Growth
Used to compute congestion window size at round during Slow Start before reaching ssthresh.
Cumulative Packets Sent in Slow Start
Used to determine which transmission round or time interval contains a specific segment sequence number.
Congestion Avoidance Window Growth
Used when cwnd has reached or exceeded ssthresh to track linear additive increase.
Timeout Parameter Reset
Used immediately upon encountering a retransmission timeout (Tahoe/Reno base behavior).
Sequence Number Wrap-Around Time
Used to find time before a 32-bit (or -bit) sequence space exhausts at link rate .
Minimum Sequence Number Bits to Avoid Wrap in MSL
Used when sizing the sequence number field in custom or standard transport protocols over high-speed links.
Slow-Start Threshold Update on Timeout
Used immediately when a packet loss or retransmission timeout (RTO) occurs to adjust the threshold before resetting cwnd.
Slow-Start Window Growth per RTT
Used to compute congestion window growth during the slow-start phase when all transmitted segments in an RTT are acknowledged.
Congestion Avoidance Growth per RTT
Used to compute additive increase of the congestion window per RTT once ssthresh is reached or exceeded.
Token Bucket Maximum Burst Duration
Used when a full bucket of capacity discharges at peak rate while receiving new tokens at sustained rate .
Total Transmission Time with Token Bucket
Used to calculate minimum time to send total data exceeding initial bucket capacity under token bucket rate limiting.
Introduction of multi-select questions (MSQs) testing multi-scenario connection handling such as server crashes, half-open connections, and valid range of header field widths.
2025, 2024, 2023, 2021
Shift from simple timeout-recovery tracking to cumulative packet-index interval mapping and discrete transmission round counting.
2026, 2020
Increasing granularity in testing header flag patterns (SYN, ACK) and 1-sequence-number logical consumption for control flags.
2025, 2024
Shifted from direct recall of TCP function roles and standard server sequences to deeper, subtle behavioral mechanics of socket calls under UDP.
2017, 2015, 2014
Focus on precise protocol edge behaviors such as simultaneous close alongside standard handshake and full-duplex definitions in 1-mark conceptual MCQs.
2026
Shift from multiple-choice ambiguity-prone tracing questions to precise Numerical Answer Type (NAT) questions specifying exact RTT boundaries and initial conditions.
2024, 2012
Focus on discrete state transitions after packet loss (timeout resetting cwnd to 1 MSS vs threshold halving) as high-yield 2-mark NAT problems.
2024
Concept-checking 1-mark MCQs evaluate precise RFC standard behaviors and definitions of TCP against common protocol misconceptions.
2015
Easy items (1 mark) test standard 3-way handshake flag settings, state machine names (FIN-WAIT-2), or basic growth rates (slow start doubles per RTT). Medium items (2 marks) require multi-step tracking: computing the exact RTT when cwnd crosses ssthresh and reaches a target KB, finding sequence number field bit boundaries against MSL, or determining socket behavior when an unannounced reboot triggers an RST segment.