CS FundamentalsVery hardGATE CS
The first 20 bytes of an IPv4 header are (hex): 45 00 05 DC 1C 46 40 00 3F 11 B1 E6 C0 A8 00 01 C0 A8 00 C7. How many bytes of payload does the packet carry, which protocol does it carry, and may routers fragment it?
- A. 1500 bytes of UDP; no, DF is set
- B. 1480 bytes of TCP; yes, DF is clear
- C. 1480 bytes of UDP; yes, MF is clear
- D. 1480 bytes of UDP; no, DF is set
Correct answer: D. 1480 bytes of UDP; no, DF is set
45: version 4, IHL 5 → 20-byte header. Total length 0x05DC = 1500, so payload = 1480. Flags/offset 0x4000 has the DF bit set. Protocol 0x11 = 17 = UDP (TCP would be 6). TTL is 0x3F = 63.
More Computer Networks questions
- A TCP header begins (hex): 01 BB C3 50 00 00 00 00 7A 3F 10 01 50 12 FA F0. Which statement is correct?
- A 2024-byte IPv4 datagram has a 24-byte header (4 bytes of options that are copied into every fragment). It must cross a link with MTU…
- Stop-and-wait with 1-bit sequence numbers: the receiver gets frame 0 and its ACK is lost. What happens next?
- Go-Back-N with cumulative ACKs sends frames 0–9 with a window of 5. Only the ACK for frame 2 is lost; every frame and every other ACK…
- A 10 Gbps path has an RTT of 100 ms. With 1500-byte frames, at least how many frames must be outstanding to keep it fully busy?
- A client downloads a 64 KB file (MSS = 1 KB, so 64 segments) over a fast link with RTT = 100 ms. TCP starts with cwnd = 1 MSS, slow start…