CS FundamentalsVery hardGATE CS
A receiver has these fragments of one IPv4 datagram (all with 20-byte headers): offset 0, total length 1420, MF = 1; offset 175, total length 1420, MF = 1; offset 525, total length 620, MF = 0. How many data bytes are still missing, and what was the original datagram's total length?
- A. 1400 bytes missing; total length 4800
- B. 1200 bytes missing; total length 4820
- C. No bytes missing; total length 3460
- D. 1400 bytes missing; total length 4820
Correct answer: D. 1400 bytes missing; total length 4820
The fragments carry bytes 0–1399, 1400–2799 and 4200–4799 (offset × 8). Bytes 2800–4199 (1400 bytes) are missing. The last fragment ends at byte 4799, so the payload is 4800 bytes and the original total length 4800 + 20 = 4820.
More Computer Networks questions
- A TCP receiver has a 64 KB buffer with LastByteRcvd − LastByteRead = 20 KB. The sender has LastByteSent − LastByteAcked = 30 KB, and its…
- After a timeout a TCP sender restarts with cwnd = 1 MSS and ssthresh = 32 MSS (slow start doubles cwnd per RTT, capped at ssthresh…
- Host A pings host B through one store-and-forward router: A–router is 10 Mbps, router–B is 100 Mbps, each with 5 ms propagation delay. The…
- Host X on LAN1 sends an IP packet to host Y on LAN3. The path is X → router R1 → LAN2 → router R2 → Y. All ARP caches are empty, and…
- Stop-and-wait runs over a geostationary satellite hop with one-way propagation 270 ms at 1 Mbps (ACKs negligible). What is the smallest…
- A (7, 4) Hamming code is used for single-error correction. A codeword suffers exactly TWO bit errors. What does the decoder do?