The GATE Grind

GATE Computer Networks: TCP: Flow Control, Congestion Control, Socket API – Previous Year Questions

32 GATE previous year questions on TCP: Flow Control, Congestion Control, Socket API (Computer Networks, Computer Science) with answers and explanations, from every paper.

32 questions worth 47 marks in all (17 1-mark, 15 2-mark). Asked between 2008 and 2026, so you can see how the topic has been tested over time.

  1. GATE 2008 CS Q14 (1 mark, Multiple choice) – What maximum data size can the application layer pass to TCP below it?
  2. GATE 2008 CS Q17 (1 mark, Multiple choice) – Which system call sends a SYN packet?
  3. GATE 2008 CS Q56 (2 marks, Multiple choice) – In TCP slow start, the congestion-window size
  4. GATE 2008 CS Q58 (2 marks, Multiple choice) – A computer on a10 Mbps network is regulated by a token bucket filled at2 Mbps, initially full with16 megabits. For how long can it transmit at10 Mbps?
  5. GATE 2008 CS Q59 (2 marks, Multiple choice) – Server S calls socket(), bind(), listen(), then is preempted before accept(). Client P subsequently calls socket(), connect() to S. Which event can…
  6. GATE 2009 CS Q47 (2 marks, Multiple choice) – Opening a TCP connection uses an initial sequence number from a time-of-day clock that runs even while the host is down. Its low-order32 bits are…
  7. GATE 2021 CS (CS2) Q17 (1 mark, Multiple choice) – P and Q choose initial TCP sequence numbers X and Y. P sends SYN=1,SEQ=X,ACK=0 to request a connection. Which header does Q return on accepting?
  8. GATE 2015 CS (CS3) Q19 (1 mark, Multiple choice) – Consider: I TCP connections are full duplex. II TCP has no selective-acknowledgement option. III TCP connections are message streams. Which are…
  9. GATE 2015 CS (CS2) Q33 (1 mark, Multiple choice) – In which order does a UNIX socket server invoke accept, bind, listen and recv?
  10. GATE 2015 CS (CS2) Q38 (2 marks, Multiple choice) – A TCP connection has bandwidth 1048560 bits/s. Let α be the RTT in milliseconds, rounded to the nearest integer, beyond which window scaling is…
  11. GATE 2013 CS Q22 (1 mark, Multiple choice) – Which transport protocols are used respectively for real-time multimedia, file transfer, DNS and email?
  12. GATE 2012 CS Q32 (1 mark, Multiple choice) – Which transport-layer protocol supports electronic mail?
  13. GATE 2012 CS Q55 (2 marks, MTA) – TCP AIMD starts slow start with window 2 MSS and initial threshold 8 MSS. A timeout occurs during transmission five. Find congestion window at the end…
  14. GATE 2017 CS (CS2) Q28 (1 mark, Multiple choice) – Linux supports connected UDP sockets, on which connect has already been called. Which hold? I: One connected UDP socket communicates with multiple…
  15. GATE 2014 CS (CS2) Q34 (1 mark, Multiple choice) – Which socket API converts an unconnected active TCP socket into a passive socket?
  16. GATE 2014 CS (CS1) Q37 (2 marks, Numerical answer) – A TCP connection has congestion window 32 KB when timeout occurs. RTT is 100 ms and MSS is 2 KB. Find time to recover a 32 KB congestion window (ms).
  17. GATE 2017 CS (CS1) Q24 (1 mark, Multiple choice) – Consider a TCP client and a TCP server running on two different machines. After completing data transfer, the TCP client calls `close` to terminate…
  18. GATE 2016 CS (CS1) Q64 (2 marks, Numerical answer) – For a host machine that uses the token bucket algorithm for congestion control, the token bucket has a capacity of 1 megabyte and the maximum output…
  19. GATE 2015 CS (CS1) Q23 (1 mark, Multiple choice) – Suppose two hosts use a TCP connection to transfer a large file. Which of the following statements is/are FALSE with respect to the TCP connection? I.…
  20. GATE 2018 CS Q24 (1 mark, Multiple choice) – Consider the following statements regarding the slow start phase of the TCP congestion control algorithm. Note that cwnd stands for the TCP congestion…
  21. GATE 2018 CS Q35 (1 mark, Numerical answer) – Consider a long-lived TCP session with an end-to-end bandwidth of 1 Gbps (=109 bits-per-second). The session starts with a sequence number of 1234.…
  22. GATE 2026 CS (CS2) Q58 (2 marks, Numerical answer) – Consider a new TCP connection between a sender and a receiver. The receiver advertised window is constant at 48 KB, the maximum segment size (MSS) is…
  23. GATE 2026 CS (CS1) Q18 (1 mark, Multiple choice) – With respect to a TCP connection between a client and a server, which one of the following statements is true?
  24. GATE 2026 CS (CS1) Q44 (2 marks, Multiple choice) – A TCP sender successfully establishes a connection with a TCP receiver and starts the transmission of segments. The TCP congestion control mechanism’s…
  25. GATE 2025 CS (CS2) Q16 (1 mark, Multiple choice) – Consider the following statements: (i) Address Resolution Protocol (ARP) provides a mapping from an IP address to the corresponding hardware…
  26. GATE 2025 CS (CS1) Q22 (1 mark, Multiple select) – Consider the 3-way handshaking protocol for TCP connection establishment. Let the three packets exchanged during the connection establishment be…
  27. GATE 2024 CS (CS2) Q54 (2 marks, Numerical answer) – Consider a TCP connection operating with a congestion window of size 12 MSS when a timeout occurs due to packet loss. Assuming that all the segments…
  28. GATE 2024 CS (CS1) Q29 (1 mark, Multiple select) – TCP client P successfully establishes a connection to TCP server Q. Let N P denote the sequence number in the SYN sent from P to Q. Let N Q denote the…
  29. GATE 2023 CS Q50 (2 marks, Multiple select) – Suppose you are asked to design a new reliable byte-stream transport protocol like TCP. This protocol, named myTCP, runs over a 100 Mbps network with…
  30. GATE 2022 CS Q60 (2 marks, Numerical answer) – Consider the data transfer using TCP over a 1 Gbps link. Assuming that the maximum segment lifetime (MSL) is set to 60 seconds, the minimum number of…
  31. GATE 2021 CS (CS1) Q54 (2 marks, Multiple select) – A TCP server application is programmed to listen on port number P on host S. A TCP client is connected to the TCP server over the network. Consider…
  32. GATE 2020 CS Q65 (2 marks, Numerical answer) – Consider a TCP connection between a client and a server with the following specifications: the round trip time is 6 ms, the size of the receiver…