CS FundamentalsVery hardGATE CS
The Internet checksum is computed over the three bytes 01 02 03 (hex). As the standard requires for an odd length, the data is padded with one zero byte. What checksum is sent?
- A. 0xFEFA
- B. 0xFBFD
- C. 0x0402
- D. 0xFDFB
Correct answer: B. 0xFBFD
Padding goes at the end, so the 16-bit words are 0x0102 and 0x0300; their sum is 0x0402 and its ones' complement is 0xFBFD. Padding at the front (0x0003) gives 0xFEFA, and 0x0402 forgets to complement.
More Computer Networks questions
- A link-state network sets each link's cost to the traffic it currently carries. Two equal routes connect the same pair of regions, and…
- Why does TCP wait for three duplicate ACKs, rather than one, before a fast retransmit?
- A 100,000-byte response is sent with MSS 1460 bytes over a path with plenty of bandwidth, no loss, no delayed ACKs and a large receive…
- A shared cache stores a response from origin that carries Vary: Accept-Encoding. A later client asks for the same URL with a different…
- A site's A record has a TTL of 86,400 s. The team will move the site to a new IP at 10:00 on Friday and wants every cache to pick up the…
- A bank sends Strict-Transport-Security: max-age=31536000 and is not on any browser's HSTS preload list. Which statement is correct?