Question
Consider two hosts and connected through a router . The maximum transfer unit (MTU) value of the link between and is 1500 bytes, and between and is 820 bytes.
A TCP segment of size 1400 bytes was transferred from to through , with IP identification value as 0x1234. Assume that the IP header size is 20 bytes. Further, the packet is allowed to be fragmented, i.e., Don't Fragment (DF) flag in the IP header is not set by .
Which of the following statements is/are correct?
Official answer and solution
- Official answer
- A and C
- From
- Official GATE 2021 answer key
Solution
Calculate IP fragmentation parameters at router R based on outgoing link MTU and analyze fragment retransmission requirements.
Parameters:
- Original TCP segment size bytes.
- IP header size bytes.
- Total incoming IP datagram size from bytes.
Fragmentation at router (link has bytes):
- Maximum payload per fragment must be a multiple of 8 and fit within bytes.
- Since 800 is divisible by 8 (), fragment 1 carries 800 bytes of data (offset 0, ). Total size bytes.
- Fragment 2 carries the remaining bytes of data (offset , ). Total size bytes.
Thus, statement A is correct.
Statements B and C:
- IP is an unreliable, connectionless protocol that does not perform fragment-level retransmissions or buffer fragments at intermediate routers. Hence, will not resend any fragment (Statement B is false).
- If any fragment is lost, reassembly at destination fails and the entire IP datagram is discarded. TCP at sender will eventually time out and retransmit the entire 1400-byte segment (Statement C is correct).
Statement D:
The TCP header resides in the first 20 bytes of the TCP segment, which is placed exclusively inside the first fragment. The second fragment contains only data payload with no TCP header; therefore, the TCP destination port cannot be determined from the second fragment alone (Statement D is false).
Hence, statements A and C are correct.
A, C
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2021 Computer Science and Information Technology (CS, Set-1)
- Question
- 55 of 65, printed as CS Q.45
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.