Consider the three-way handshake mechanism followed during connection establishment between hosts and . Let and be two random -bit starting sequence numbers chosen by and respectively. Suppose sends a connection request message to with a segment having bit , number , and bit . Suppose accepts the connection request. Which one of the following choices represents the information present in the segment header that is sent by to ?
View worked solution
Answer: C
During the TCP three-way handshake, connection establishment proceeds as follows:
-
Step 1 (P to Q): Host sends a connection request (SYN segment) to Host .
- ,
- (initial sequence number of )
-
Step 2 (Q to P): Host accepts the request and sends a combined acknowledgment and connection request (SYN + ACK segment) back to .
- SYN bit: Since is also initiating its connection direction, .
- SEQ number: chooses its own random initial sequence number, so .
- ACK bit: Since this segment carries an acknowledgment, .
- ACK number: A SYN segment logically consumes sequence number. Since 's initial sequence number was , acknowledges it by expecting the next sequence number, which is .
- FIN bit: No connection termination is occurring, so .
Thus, the header fields in the segment sent by to are:
This matches Option C.
Free practice · Your answers on this page are not saved.
