Which of the following fields is/are modified in the IP header of a packet going out of a network address translation (NAT) device from an internal network to an external network?
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2024 Set 1 · Q31
Time
Select all that applyOne or more correct
Solution
Official answer: A) Source IP; C) Header Checksum
Network Address TranslationWhen an IP packet travels from an internal (private) network to an external (public) network through a NAT router:
Source IP Address: The private source IP address of the internal host is translated (replaced) with a globally routable public IP address assigned to the NAT device. Thus, the Source IP is modified.
Destination IP Address: The destination IP address remains that of the external server/host and is not modified for outbound packets.
Header Checksum: Because the Source IP address inside the IPv4 header has changed, the IPv4 Header Checksum must be recalculated and updated.
Total Length: Translating an IPv4 address does not change the size of the header or the payload, so the Total Length remains unchanged.
Therefore, the correct options are A and C.
Try the question first, then check your work.
Examiner trap
Recall that outbound NAT replaces private local addresses with a public address and requires recomputing the checksum.
This Network Address Translation previous year question is Q31 of the GATE CSE 2024 Set 1 paper. Find more GATE CSE PYQs on Network Address Translation in Computer Networks, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 1 related Network Address Translation PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
GATE CSE 2024 Set 1 Q31 is the only Network Address Translation question in the GATE CSE papers so far.
How GATE tests Network Address TranslationIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.