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 1–5 of 46
With respect to a TCP connection between a client and a server, which one of the following statements is true?
Answer: (D)
Let us check every statement about a TCP connection:
- TCP sets up a connection with a three-way handshake (SYN, SYN-ACK, ACK). It does not use a two-way handshake. So this is false.
- Both sides, client or server, can start closing the connection first. The server does not have to wait for the client. So this is false.
- TCP is full-duplex. Data can move in both directions at the same time. So "half-duplex" is false.
- TCP allows a simultaneous close. The client and the server can both send a FIN at about the same time, and each one acknowledges the FIN of the other. This is a valid way to close a connection in the TCP state machine.
Answer: The client and server can initiate closing of the connection at the same time
- TCP sets up a connection with a three-way handshake (SYN, SYN-ACK, ACK). It does not use a two-way handshake. So this is false.
- Both sides, client or server, can start closing the connection first. The server does not have to wait for the client. So this is false.
- TCP is full-duplex. Data can move in both directions at the same time. So "half-duplex" is false.
- TCP allows a simultaneous close. The client and the server can both send a FIN at about the same time, and each one acknowledges the FIN of the other. This is a valid way to close a connection in the TCP state machine.
Answer: The client and server can initiate closing of the connection at the same time
A TCP sender successfully establishes a connection with a TCP receiver and starts the transmission of segments. The TCP congestion control mechanism's slow-start threshold is set to segments. Assume that the round-trip time is fixed at millisecond. Assume that the sender always has data to send, the segments are numbered from , and no segment is lost. Let denote the time (in milliseconds) at which the transmission of segment number starts.
Which one of the following options is correct?
Which one of the following options is correct?
Answer: (B)
In slow start, the congestion window (in segments) doubles every RTT as long as it stays below the threshold. It starts from segment. The threshold is , which is far above anything we will reach here.
Segment number is in the batch that starts at time ms, because that batch covers segments to .
Answer:
Segment number is in the batch that starts at time ms, because that batch covers segments to .
Answer:
Consider a new TCP connection between a sender and a receiver. The receiver advertised window is constant at KB, the maximum segment size (MSS) is KB, and the slow start threshold for TCP congestion control is KB. Assume that there are no timeouts or duplicate acknowledgements. The number of rounds of transmission required for the congestion control algorithm of the TCP connection to reach the congestion avoidance phase is ________. (answer in integer)
Note:
Note:
Answer: 4
In TCP slow start, begins at MSS ( KB) and doubles after every round trip. This goes on until it reaches the slow-start threshold ( KB). Then slow start stops and congestion avoidance (growth by 1 MSS per round) takes over. The receiver window of 48 KB is larger than all these values, so it does not limit the sender.
Count each round as one transmission of a full window:
In round , is exactly KB, which equals . So rounds of transmission are needed for the connection to reach the point where congestion avoidance begins.
Answer: 4
Count each round as one transmission of a full window:
In round , is exactly KB, which equals . So rounds of transmission are needed for the connection to reach the point where congestion avoidance begins.
Answer: 4
Consider the 3-way handshaking protocol for TCP connection establishment. Let the three packets exchanged during the connection establishment be denoted as P1, P2, and P3, in order. Which of the following option(s) is/are TRUE with respect to TCP header flags that are set in the packets?
One or more options are correct.
Answer: (B), (D)
Here is the TCP 3-way handshake, one packet at a time:
- P1 (client → server): The client starts the connection with SYN=1. ACK=0 because there is nothing to acknowledge yet.
- P2 (server → client): The server acknowledges the client's SYN and sends its own SYN. So both flags are set: SYN=1, ACK=1. This SYN-ACK packet is the hallmark of the TCP handshake.
- P3 (client → server): The client only has to acknowledge the server's SYN. So the flags are SYN=0, ACK=1. They are not SYN=1, ACK=1 as one wrong option says.
So the correct flags are P1: SYN=1, and P2: SYN=1 & ACK=1.
Answer: P2 (SYN=1, ACK=1), and P1 (SYN=1)
- P1 (client → server): The client starts the connection with SYN=1. ACK=0 because there is nothing to acknowledge yet.
- P2 (server → client): The server acknowledges the client's SYN and sends its own SYN. So both flags are set: SYN=1, ACK=1. This SYN-ACK packet is the hallmark of the TCP handshake.
- P3 (client → server): The client only has to acknowledge the server's SYN. So the flags are SYN=0, ACK=1. They are not SYN=1, ACK=1 as one wrong option says.
So the correct flags are P1: SYN=1, and P2: SYN=1 & ACK=1.
Answer: P2 (SYN=1, ACK=1), and P1 (SYN=1)
Consider the following statements:
(i) Address Resolution Protocol (ARP) provides a mapping from an IP address to the corresponding hardware (link-layer) address.
(ii) A single TCP segment from a sender S to a receiver R cannot carry both data from S to R and acknowledgement for a segment from R to S.
Which ONE of the following is CORRECT?
(i) Address Resolution Protocol (ARP) provides a mapping from an IP address to the corresponding hardware (link-layer) address.
(ii) A single TCP segment from a sender S to a receiver R cannot carry both data from S to R and acknowledgement for a segment from R to S.
Which ONE of the following is CORRECT?
Answer: (B)
Statement (i): ARP maps an IP address to a hardware (MAC) address. This is the definition of ARP, so the statement is TRUE.
Statement (ii): "A single TCP segment cannot carry both data and an acknowledgement." This is FALSE. TCP is full-duplex. A common method called piggybacking lets one segment carry new data (from S to R) and also an acknowledgement for data received earlier from R. The TCP header always has an ACK field, whether or not the segment carries data.
Answer: (i) is TRUE and (ii) is FALSE
Statement (ii): "A single TCP segment cannot carry both data and an acknowledgement." This is FALSE. TCP is full-duplex. A common method called piggybacking lets one segment carry new data (from S to R) and also an acknowledgement for data received earlier from R. The TCP header always has an ACK field, whether or not the segment carries data.
Answer: (i) is TRUE and (ii) is FALSE
Keep practising
Topics in Computer Networks
OSI LayerPhysical LayerData Link LayerNetwork Layer Protocol
Transport Layer ProtocolYou are here
Application Layer ProtocolsNetwork Security