GATE / CS ARCHIVE

GATE CSE 2024 SET 1 / QUESTION 31

Outbound NAT and the IPv4 header checksum

Computer Networks · IP Addressing, Fragmentation & Address Resolution · Full GATE CSE 2024 Set 1 paper

GATE 2024 Set 1, Q31 1 mark · MSQ
Report issue

IP Addressing, Fragmentation & Address Resolution

Question 31, GATE 2024: For a packet moving from an internal network to an external network through ordinary source NAT, which listed IP-header fields are modified? A Source IP; B Destination IP; C Header Checksum; D Total Length.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: A, C

Approach: Identify the address translated by outbound NAT, then consider which dependent header field must be repaired.
1. Outbound source NAT replaces the private/internal source address with an externally visible source address. The remote recipient needs an address to which replies can be routed. Select A.
2. The destination remains the remote host requested by the sender in this standard source-NAT scenario. Destination translation is a different function, so B is not selected.
3. IPv4's header checksum covers the IPv4 header, including the source address. Altering that address requires a checksum update so the new header validates. Select C.
4. Replacing one fixed-width address with another neither inserts nor removes bytes. Total Length therefore does not change merely because of NAT; D is false.
Answer: A and C. A device performing port translation also updates relevant transport-header fields, but those are not among these choices. The checksum option identifies the intended IPv4 model.

Original paper, page 20 · Answer key