TCP client P successfully establishes a connection to TCP server Q. Let denote the sequence number in the SYN sent from P to Q. Let denote the acknowledgement number in the SYN ACK from Q to P. Which of the following statements is/are CORRECT?
["A","D"]
Step-by-Step Solution
Insight: TCP handshakes synchronize initial sequence numbers (ISNs), which are randomized for security, and the ACK number always points to the next expected byte (ISN + 1 for a SYN).
Exam route: P's SYN has Seq = . SYN consumes 1 sequence number. Q's SYN-ACK must ACK the next expected byte from P, which is . ISNs are random to prevent spoofing.
Learning route:
- In TCP, the initial sequence number (ISN) is chosen randomly by the sender to prevent sequence prediction attacks. Thus, is random, not always 0. (A is correct, B is wrong).
- When P sends a SYN with Seq = , the SYN flag itself consumes 1 sequence number, even though it carries no data.
- The receiver (Q) must acknowledge the next expected sequence number. The next expected byte from P is .
- Therefore, in Q's SYN-ACK segment, the Acknowledgement number is exactly . (D is correct, C is wrong).