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 21–25 of 46
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. If the sequence number of a segment is m, then the sequence number of the subsequent segment is always m+1.
II. If the estimated round trip time at any given point of time is t sec, the value of the retransmission timeout is always set to greater than or equal to t sec.
III. The size of the advertised window never changes during the course of the TCP connection.
IV. The number of unacknowledged bytes at the sender is always less than or equal to the advertised window.
I. If the sequence number of a segment is m, then the sequence number of the subsequent segment is always m+1.
II. If the estimated round trip time at any given point of time is t sec, the value of the retransmission timeout is always set to greater than or equal to t sec.
III. The size of the advertised window never changes during the course of the TCP connection.
IV. The number of unacknowledged bytes at the sender is always less than or equal to the advertised window.
Answer: (B)
The question asks for the FALSE statements. Let us go through each statement:
- I: TCP counts bytes, so the next sequence number is m + (segment length), not always m + 1. The statement is False.
- II: RTO = EstimatedRTT + 4 DevRTT, and DevRTT is never negative, so RTO is always at least EstimatedRTT. The statement is True.
- III: The advertised window changes when the receive buffer fills up and empties. The statement is False.
- IV: The sender keeps the unacknowledged bytes within the window the receiver advertised. The statement is True.
So I and III are false.
Answer: (B)
- I: TCP counts bytes, so the next sequence number is m + (segment length), not always m + 1. The statement is False.
- II: RTO = EstimatedRTT + 4 DevRTT, and DevRTT is never negative, so RTO is always at least EstimatedRTT. The statement is True.
- III: The advertised window changes when the receive buffer fills up and empties. The statement is False.
- IV: The sender keeps the unacknowledged bytes within the window the receiver advertised. The statement is True.
So I and III are false.
Answer: (B)
Host A sends a UDP datagram containing 8880 bytes of user data to host B over an Ethernet LAN. Ethernet frames may carry data up to 1500 bytes (i.e. MTU=1500 bytes). Size of UDP header is 8 bytes and size of IP header is 20 bytes. There is no option field in IP header. How many total number of IP fragments will be transmitted and what will be the contents of offset field in the last fragment?
Answer: (C)
Data to send in IP = 8880 + 8 (UDP header) = 8888 bytes. Each fragment can hold at most 1500 20 = 1480 bytes of data.
6 fragments carry 6 1480 = 8880 bytes. 8 bytes are left over, so 7 fragments in total.
Offset of the last fragment = 8880 / 8 = 1110
Answer: 7 and 1110
6 fragments carry 6 1480 = 8880 bytes. 8 bytes are left over, so 7 fragments in total.
Offset of the last fragment = 8880 / 8 = 1110
Answer: 7 and 1110
Assume that the bandwidth for a TCP connection is 1048560 bits/sec. Let be the value of RTT in milliseconds (rounded off to the nearest integer) after which the TCP window scale option is needed. Let be the maximum possible window size with window scale option. Then the values of and are
Answer: (C)
A TCP window with no scaling can be at most 65535 bytes. The bandwidth in bytes is 1048560 / 8 = 131070 bytes/s.
The window scale option becomes necessary when bandwidth RTT is more than 65535. So RTT = 65535 / 131070 = 0.5 s = 500 ms.
The largest scale shift allowed is 14, so .
Answer: 500 milliseconds, 65535
The window scale option becomes necessary when bandwidth RTT is more than 65535. So RTT = 65535 / 131070 = 0.5 s = 500 ms.
The largest scale shift allowed is 14, so .
Answer: 500 milliseconds, 65535
Consider the following statements.
I. TCP connections are full duplex
II. TCP has no option for selective acknowledgement
III. TCP connections are message streams
I. TCP connections are full duplex
II. TCP has no option for selective acknowledgement
III. TCP connections are message streams
Answer: (A)
Let us look at each statement one by one:
- I: TCP connections are full duplex. Data can flow in both directions at the same time on one connection. This is true.
- II: "TCP has no option for selective acknowledgement". This is false, because TCP does have a SACK (selective acknowledgement) option (RFC 2018).
- III: "TCP connections are message streams". This is false, because TCP is a byte stream and does not keep message boundaries.
Only I is correct.
Answer: (A)
- I: TCP connections are full duplex. Data can flow in both directions at the same time on one connection. This is true.
- II: "TCP has no option for selective acknowledgement". This is false, because TCP does have a SACK (selective acknowledgement) option (RFC 2018).
- III: "TCP connections are message streams". This is false, because TCP is a byte stream and does not keep message boundaries.
Only I is correct.
Answer: (A)
Let the size of congestion window of a TCP connection be 32 KB when a timeout occurs. The round trip time of the connection is 100 msec and the maximum segment size used is 2kB. The time taken (in msec) by the TCP connection to get back to 32KB congestion window is ______
Answer: 1100 to 1300
When the timeout happens, ssthresh becomes 16 KB and cwnd drops to 2 KB (1 MSS).
- Slow start: cwnd grows 2 4 8 16 KB. This takes 3 RTTs.
- Congestion avoidance: cwnd rises by 2 KB every RTT, so 18, 20, , 32 KB. This takes 8 RTTs.
In total there are 11 RTTs, so 11 RTTs 100 ms = 1100 ms.
Answer: 1100
- Slow start: cwnd grows 2 4 8 16 KB. This takes 3 RTTs.
- Congestion avoidance: cwnd rises by 2 KB every RTT, so 18, 20, , 32 KB. This takes 8 RTTs.
In total there are 11 RTTs, so 11 RTTs 100 ms = 1100 ms.
Answer: 1100
Keep practising
Topics in Computer Networks
OSI LayerPhysical LayerData Link LayerNetwork Layer Protocol
Transport Layer ProtocolYou are here
Application Layer ProtocolsNetwork Security