CS FundamentalsVery hardGATE CS

A TCP sender's first data byte has sequence number 4,294,966,296 (that is, 2³² − 1000). It sends five 512-byte segments back to back. What is the sequence number of the third segment, and what ACK number acknowledges all five?

  1. A. 4294967320 and 4294968856
  2. B. 23 and 1559
  3. C. 536 and 1560
  4. D. 24 and 1560

Correct answer: D. 24 and 1560

The third segment starts 2 × 512 = 1024 bytes later: 2³² − 1000 + 1024 = 2³² + 24 → 24 after wrapping modulo 2³². All five cover 2560 bytes, so the ACK is 2³² − 1000 + 2560 = 1560 (mod 2³²). Sequence arithmetic must always be done modulo 2³².

More Computer Networks questions

Exams that ask this topic