CS FundamentalsModerateGATE CS · Product company CS fundamentals
An IPv4 packet has HLEN = 8 and total length = 1000. How many bytes of options does the header carry, and how many bytes of payload does the packet carry?
- A. 12 bytes of options, 968 bytes of payload
- B. 0 bytes of options, 992 bytes of payload
- C. 3 bytes of options, 992 bytes of payload
- D. 12 bytes of options, 980 bytes of payload
Correct answer: A. 12 bytes of options, 968 bytes of payload
HLEN counts 4-byte words: 8 × 4 = 32-byte header, of which 20 are the fixed part, so 12 bytes of options. Total length includes the header: 1000 − 32 = 968 bytes of payload.
More Computer Networks questions
- A long-lived TCP Reno flow is in steady state congestion avoidance: its window grows by 1 MSS per RTT up to W = 40 segments, then a single…
- A transport protocol numbers BYTES (like TCP). On a 10 Gbps link with a maximum segment lifetime of 120 s, how many sequence-number bits…
- In a TCP connection the client calls close() first and the server closes later. Which sequence of states does the SERVER go through from…
- A remote-shell client writes one keystroke (1 byte) at a time to a TCP socket with Nagle's algorithm enabled; the RTT is 50 ms and the…
- Which pair correctly matches the fix with the side that causes silly window syndrome? (i) receiving application reads data one byte at a…
- How many of the following statements about UDP are correct? 1. The UDP checksum covers a pseudo-header containing the source and…