CS FundamentalsVery hardGATE CS
Compute the 16-bit Internet checksum (ones' complement of the ones' complement sum) of the words 0xABCD, 0xF00F, 0x1234 and 0x8E91.
- A. 0xC35C
- B. 0xC35E
- C. 0x3CA3
- D. 0xC35D
Correct answer: A. 0xC35C
Add with end-around carry: the ones' complement sum is 0x3CA3; inverting gives 0xC35C. Dropping the carries instead of folding them back gives 0xC35E, and 0x3CA3 forgets the final complement.
More Computer Networks questions
- A PPP-style link uses byte stuffing with a FLAG byte at each end of the frame and an ESC byte placed before any FLAG or ESC that occurs in…
- Link-state routing runs Dijkstra from S on an undirected network with link costs S–A 3, S–B 1, B–A 1, A–C 2, B–C 5, C–D 1, B–D 7, A–D 6…
- Which statement about split horizon with poisoned reverse in distance-vector routing is correct?
- A host that has just booted broadcasts an ARP request asking for its OWN IP address. Why?
- A DHCP server sits on 10.0.0.0/24 and serves clients on 10.5.7.0/24 through a relay agent on that client router interface (10.5.7.1). How…
- Classic UNIX traceroute sends UDP probes with increasing TTL. How does it know that a probe has reached the destination host itself?