Question:

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?

Show Hint

In NAT translation, the Source IP and Header Checksum fields are typically modified, while fields like Destination IP and Total Length remain unchanged.
Updated On: Jan 22, 2025
  • Source IP
  • Destination IP
  • Header Checksum
  • Total Length
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

Step 1: Analyze NAT behavior.
When a packet passes through a NAT device, the source IP address is replaced with the NAT device's external IP address to allow for communication with the external network. Hence, the Source IP is modified, making Option (1) TRUE. Step 2: Checksum recalculation.
Since the source IP in the header is modified, the checksum, which is computed based on the header fields, must also be recalculated. Thus, the Header Checksum is modified, making Option (3) TRUE. Step 3: Other fields.
The Destination IP remains unchanged, as it points to the intended external destination. Similarly, the Total Length of the packet is not affected by NAT translation. Thus, Options (2) and (4) are FALSE. Final Answer: \[ \boxed{(1) \text{ and } (3)} \]
Was this answer helpful?
0
0

Questions Asked in GATE CS exam

View More Questions