CS FundamentalsVery hardGATE CS
A router decrements TTL from 0x3F to 0x3E in a packet whose header checksum is 0xB1E6 (the 16-bit word holding TTL and protocol changes from 0x3F11 to 0x3E11). Using the incremental update HC' = ~(~HC + ~m + m') in ones'-complement arithmetic, what is the new checksum?
- A. 0xB0E6
- B. 0xB2E6
- C. 0xB1E6
- D. 0xB1E7
Correct answer: B. 0xB2E6
The covered sum drops by 0x0100, so its complement (the checksum) rises by 0x0100: 0xB1E6 → 0xB2E6. Subtracting 0x100 from the checksum moves it the wrong way; leaving it unchanged would make the next hop discard the packet.
More Computer Networks questions
- Why does the IPv6 base header have no header checksum?
- A TCP receiver sends ACK = 2000 with a window of 1000 bytes. The sender has already sent up to byte 2499. What is the highest byte number…
- A TCP connection's RTO is 1 s when a segment's first transmission is lost, and its retransmissions are lost twice more. Under exponential…
- A Go-Back-N receiver expecting frame 4 receives frames 5 and 6 (frame 4 was lost). What does it do with them?
- A CRC uses G(x) = x³ + x² + x + 1 = (x + 1)(x² + 1). Which error pattern E(x) would go undetected (bits from the highest power down)?
- A single-error-correcting Hamming code uses 5 check bits. What is the maximum number of data bits it can protect, and what is its code rate?