Transport Layer Protocol · Computer Networks
46 questions · asked in 22 of 27 years (2000–2026)
MCQ 33 · MSQ 6 · NAT 71-mark 29 · 2-mark 17
2000Questions per year2026
Questions 16–20 of 46
Consider the following statements regarding the slow start phase of the TCP congestion control algorithm. Note that stands for the TCP congestion window and MSS denotes the Maximum Segment Size.
(i) The cwnd increases by 2 MSS on every successful acknowledgment.
(ii) The cwnd approximately doubles on every successful acknowledgement.
(iii) The cwnd increases by 1 MSS every round trip time.
(iv) The cwnd approximately doubles every round trip time.
Which one of the following is correct?
(i) The cwnd increases by 2 MSS on every successful acknowledgment.
(ii) The cwnd approximately doubles on every successful acknowledgement.
(iii) The cwnd increases by 1 MSS every round trip time.
(iv) The cwnd approximately doubles every round trip time.
Which one of the following is correct?
Answer: (C)
During slow start, each ACK raises cwnd by 1 MSS. Within one RTT, the ACKs for a whole window of segments arrive, so cwnd roughly doubles every RTT. This means only (iv) is correct.
Answer: Only (iv) is true
Answer: Only (iv) is true
Consider a long-lived TCP session with an end-to-end bandwidth of 1 Gbps (= bits-per-second). The session starts with a sequence number of 1234. The minimum time (in seconds, rounded to the closest integer) before this sequence number can be used again is _______.
Answer: 34 to 35
TCP gives a number to every byte. The sequence number is 32 bits long, so it starts again after bytes.
Time taken = s 34 s.
Answer: 34
Time taken = s 34 s.
Answer: 34
Consider a TCP client and a TCP server running on two different machines. After completing data transfer, the TCP client calls 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 connections state diagram (RFC 793), in which state does the client-side TCP connection wait for the FIN from the sever-side TCP?
Answer: (D)
The client sends its FIN and moves to FIN-WAIT-1. Once the ACK for that FIN is received, it moves to FIN-WAIT-2. In this state it waits for the FIN from the server.
Answer: FIN-WAIT-2
Answer: FIN-WAIT-2
Consider socket API on a Linux machine that supports connected UDP sockets. A connected UDP socket is a UDP socket on which 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.
II. A process can successfully call connect function again for an already connected UDP socket.
I. A connected UDP socket can be used to communicate with multiple peers simultaneously.
II. A process can successfully call connect function again for an already connected UDP socket.
Answer: (B)
Let us check each statement:
- I: A connected UDP socket is fixed to one peer. It ignores datagrams that come from any other peer. So this is False.
- II: A process may call connect again on a UDP socket, either to change the peer or to disconnect. So this is True.
Answer: II only
- I: A connected UDP socket is fixed to one peer. It ignores datagrams that come from any other peer. So this is False.
- II: A process may call connect again on a UDP socket, either to change the peer or to disconnect. So this is True.
Answer: II only
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 rate is 20 megabytes per second. Tokens arrive at a rate to sustain output at a rate of 10megabytes per second. The token bucket is currently full and the machine needs to send 12megabytes of data. The minimum time required to transmit the data is _____seconds.
Answer: 1.1
The bucket is full at the start, so it holds 1 MB. While the bucket empties, the host sends at 20 MB/s and new tokens come in at 10 MB/s:
s, and 2 MB is sent in this time.
The other 10 MB is sent at 10 MB/s, which takes 1 s.
Total time = 0.1 + 1 = 1.1 s
Answer: 1.1
s, and 2 MB is sent in this time.
The other 10 MB is sent at 10 MB/s, which takes 1 s.
Total time = 0.1 + 1 = 1.1 s
Answer: 1.1
Keep practising
Topics in Computer Networks
OSI LayerPhysical LayerData Link LayerNetwork Layer Protocol
Transport Layer ProtocolYou are here
Application Layer ProtocolsNetwork Security