chapter

    Ipv4 Addressing, Subnetting, Nat and Fragmentation Pyqs for Gate Cs

    Solve 11+ Ipv4 Addressing, Subnetting, Nat and Fragmentation previous year questions for GATE CS with answers and detailed solutions. Free sample questions be

    Try a question

    Answer it here to see how it works. Nothing is recorded until you sign in.

    Question 1
    2026 Slot Set2 PYQ
    Level 2: Moderate

    If an IP network uses a subnet mask of 255.255.240.0, the maximum number of IP addresses that can be assigned to network interfaces is __________. <i>(answer in integer)</i>

    Question 2
    2026 Slot Set1 PYQ
    Level 3: Exam Standard

    An ISP having an address block 202.16.0.0/15 assigns a block of 6000 IP addresses to a client, using the classless internet domain routing (CIDR) super-netting approach. Which of the following address blocks can be assigned by the ISP?

    Question 3
    2025 Slot Set2 PYQ
    Level 3: Exam Standard
    Consider a network that uses Ethernet and IPv4. Assume that IPv4 headers do not use any options field. Each Ethernet frame can carry a maximum of 1500 bytes in its data field. A UDP segment is transmitted. The payload (data) in the UDP segment is 7488 bytes.

    Which ONE of the following choices has the CORRECT total number of fragments transmitted and the size of the last fragment including IPv4 header?
    Question 4
    2025 Slot Set2 PYQ
    Level 2: Moderate
    A machine receives an IPv4 datagram. The protocol field of the IPv4 header has the protocol number of a protocol X.

    Which ONE of the following is NOT a possible candidate for X?
    Question 5
    2025 Slot Set1 PYQ
    Level 4: Challenger
    Suppose a message of size 15000 bytes is transmitted from a source to a destination using IPv4 protocol via two routers as shown in the figure. Each router has a defined maximum transmission unit (MTU) as shown in the figure, including IP header. The number of fragments that will be delivered to the destination is ________ . (Answer in integer)

    SourceRouter-1(MTU=5000 bytes)Router-2(MTU=3000 bytes)Destination
    Question 6
    2024 Slot Set2 PYQ
    Level 2: Moderate

    Which of the following statements about IPv4 fragmentation is/are TRUE?

    Question 7
    2024 Slot Set2 PYQ
    Level 3: Exam Standard

    Which one of the following CIDR prefixes exactly represents the range of IP addresses 10.12.2.0 to 10.12.3.255?

    Question 8
    2024 Slot Set2 PYQ
    Level 3: Exam Standard

    Which of the following fields of an IP header is/are always modified by any router before it forwards the IP packet?

    Question 9
    2024 Slot Set1 PYQ
    Level 4: Challenger

    Consider sending an IP datagram of size 1420 bytes (including 20 bytes of IP header) from a sender to a receiver over a path of two links with a router between them. The first link (sender to router) has an MTU (Maximum Transmission Unit) size of 542 bytes, while the second link (router to receiver) has an MTU size of 360 bytes. The number of fragments that would be delivered at the receiver is _________

    Question 10
    2024 Slot Set1 PYQ
    Level 3: Exam Standard

    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?

    Free preview ends here

    Login to view the complete previous-year questions and solutions

    Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.

    Explore complete test series, official past papers, and chapter-wise study tools.

    Why MastersUp

    Personalised first. High quality throughout.

    Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.

    Built around you, not around a syllabus PDF

    Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.

    Revision that hits your weak spots

    We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.

    Questions calibrated to the real exam

    Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.

    Notes written for recall, not for volume

    Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.

    One place for everything

    Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.

    Honest progress

    No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.

    Unlock the whole course

    Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.

    Ipv4 Addressing, Subnetting, Nat and Fragmentation PYQs for GATE CS

    Solve 11+ Ipv4 Addressing, Subnetting, Nat and Fragmentation previous year questions for GATE CS with answers and detailed solutions. Free sample questions below.

    Chapter Roadmap: IPv4 Addressing, Subnetting, NAT and Fragmentation

    Chapter Roadmap

    Step 1: Current Topic
    IPv4 Fragmentation and MTU Handling
    Master how large datagrams are split across links with smaller MTUs. High yield for numericals involving offset calculation and multi-router paths.
    Step 2: Upcoming
    IPv4 Header Fields, Protocols and NAT
    Understand the anatomy of the IP header, protocol numbers, and how Network Address Translation modifies packets.
    Step 3: Upcoming
    CIDR, Subnet Masks and Address Allocation
    Heavy calculation topic. Learn to aggregate routes, calculate subnet capacities, and allocate address blocks efficiently.

    Why Fragmentation Exists: The MTU Constraint

    The MTU Constraint

    Imagine trying to drive a large truck through a tunnel that is too short. The truck must be disassembled, shipped in smaller pieces, and reassembled at the destination.

    MTU Limit Data Frag 1 Frag 2

    In networking, the Maximum Transmission Unit (MTU) is that tunnel size limit. It is the maximum size of a data frame that a network link can transmit. When an IP datagram is larger than the MTU of a link, a router must fragment it into smaller pieces to cross that link. The destination host is solely responsible for reassembling these pieces back into the original datagram.

    Ipv4 Addressing, Subnetting, Nat and Fragmentation: Solved Questions with Step-by-Step Explanations (10 Problems)

    Question 1 · Computer Networks · 2026_Set2 NAT

    If an IP network uses a subnet mask of 255.255.240.0, the maximum number of IP addresses that can be assigned to network interfaces is __________. <i>(answer in integer)</i>

    Correct Answer:

    4094

    Step-by-Step Solution

    Insight: The subnet mask determines the number of host bits; usable IPs are always to exclude network and broadcast addresses.

    Exam route:

    1. Mask 255.255.240.0 in binary: 11111111.11111111.11110000.00000000.
    2. Number of 1s = 20, so it's a /20 mask.
    3. Host bits .
    4. Total addresses = .
    5. Usable addresses = .

    Learning route:

    A subnet mask separates the IP address into network and host portions. The contiguous 1s represent the network prefix, and the 0s represent the host identifier.

    For 255.255.240.0, the third octet 240 is 11110000 in binary. Counting all 1s across the 32 bits gives 20. This means 20 bits are for the network, leaving 12 bits for hosts.

    The total number of addresses in this block is . However, two addresses are reserved: the first address (all host bits 0) is the network address, and the last address (all host bits 1) is the directed broadcast address.

    Therefore, the maximum number of IP addresses that can be assigned to network interfaces is .

    Question 2 · Computer Networks · 2026_Set1 MSQ

    An ISP having an address block 202.16.0.0/15 assigns a block of 6000 IP addresses to a client, using the classless internet domain routing (CIDR) super-netting approach. Which of the following address blocks can be assigned by the ISP?

    1. A.

      202.16.0.0/19

    2. B.

      202.17.64.0/19

    3. C.

      202.16.32.0/19

    4. D.

      202.17.24.0/19

    Correct Answer:

    ["A","B","C"]

    Step-by-Step Solution

    Insight: A /19 block has a size of 8192, so its starting IP's third octet must be a multiple of 32; check both alignment and containment within the ISP's /15 block.

    Exam route:

    1. Client needs 6000 IPs. Smallest power of 2 is .
    2. Host bits , so prefix length . Block size = 8192.
    3. For a /19 block, the 19th bit is the 3rd bit of the 3rd octet. The 3rd octet must be a multiple of .
    4. ISP block 202.16.0.0/15 covers 202.16.0.0 to 202.17.255.255.
    5. Evaluate options:
    • A) 202.16.0.0/19: 3rd octet 0 (multiple of 32). Within /15. Valid.
    • B) 202.17.64.0/19: 3rd octet 64 (multiple of 32). Within /15. Valid.
    • C) 202.16.32.0/19: 3rd octet 32 (multiple of 32). Within /15. Valid.
    • D) 202.17.24.0/19: 3rd octet 24 (NOT a multiple of 32). Invalid alignment.

    Learning route:

    When allocating sub-blocks from a supernet, the block must be properly aligned. The starting IP address of any CIDR block must be a multiple of the block size.

    For a /19 block, the block size is . Since 8192 = 32 256, the third octet of the starting IP must be a multiple of 32 (0, 32, 64, 96, ...).

    The ISP's block is 202.16.0.0/15, which covers the range 202.16.0.0 to 202.17.255.255. Any assigned /19 block must fall entirely within this range.

    Checking the options:

    • 202.16.0.0/19: 0 is a multiple of 32, and it's within the /15 range.
    • 202.17.64.0/19: 64 is a multiple of 32, and 202.17.x.x is within the /15 range.
    • 202.16.32.0/19: 32 is a multiple of 32, and it's within the /15 range.
    • 202.17.24.0/19: 24 is not a multiple of 32, so this block is misaligned and invalid.
    Question 3 · Computer Networks · 2025_Set2 MCQ
    Consider a network that uses Ethernet and IPv4. Assume that IPv4 headers do not use any options field. Each Ethernet frame can carry a maximum of 1500 bytes in its data field. A UDP segment is transmitted. The payload (data) in the UDP segment is 7488 bytes.

    Which ONE of the following choices has the CORRECT total number of fragments transmitted and the size of the last fragment including IPv4 header?
    1. A.

      5 fragments, 1488 bytes

    2. B.

      6 fragments, 88 bytes

    3. C.

      6 fragments, 108 bytes

    4. D.

      6 fragments, 116 bytes

    Correct Answer:

    D

    Step-by-Step Solution

    Insight: The UDP segment includes an 8-byte header; IP fragmentation uses max data = MTU - 20, rounded down to a multiple of 8, and the last fragment's size is the remainder data plus the IP header.

    Exam route:

    1. UDP segment size = payload (7488) + UDP header (8) = 7496 bytes. This is the data given to IP.
    2. IP MTU = 1500. IP header = 20. Max data per fragment = 1500 - 20 = 1480 bytes.
    3. 1480 is a multiple of 8 (1480 / 8 = 185). So .
    4. Number of fragments = .
    5. First 5 fragments carry 1480 bytes each. Total data in first 5 = 5 1480 = 7400 bytes.
    6. Last fragment data = 7496 - 7400 = 96 bytes.
    7. Last fragment total size = 96 (data) + 20 (header) = 116 bytes.

    Learning route:

    When a UDP segment is passed to the IP layer, the entire segment (including the 8-byte UDP header) becomes the IP payload.

    The IP layer must fragment this payload if it exceeds the link's MTU. The maximum data per fragment is calculated as MTU minus the IP header size (20 bytes, assuming no options). This value must be rounded down to the nearest multiple of 8 to satisfy the fragment offset field's requirements.

    For an MTU of 1500, max data = 1500 - 20 = 1480. Since 1480 is already a multiple of 8, we use 1480.

    Dividing the total payload (7496) by 1480 gives 5.064, meaning we need 6 fragments. The first 5 fragments carry 1480 bytes each, totaling 7400 bytes. The sixth (last) fragment carries the remaining 96 bytes of data.

    The total size of the last fragment includes its data payload plus the IP header: 96 + 20 = 116 bytes.

    Question 4 · Computer Networks · 2025_Set2 MCQ
    A machine receives an IPv4 datagram. The protocol field of the IPv4 header has the protocol number of a protocol X.

    Which ONE of the following is NOT a possible candidate for X?
    1. A.

      Internet Control Message Protocol (ICMP)

    2. B.

      Internet Group Management Protocol (IGMP)

    3. C.

      Open Shortest Path First (OSPF)

    4. D.

      Routing Information Protocol (RIP)

    Correct Answer:

    D

    Step-by-Step Solution

    Insight: The IP protocol field identifies the encapsulated transport or network layer protocol; RIP is an application layer protocol that runs over UDP, so it does not have its own IP protocol number.

    Exam route:

    1. Recall standard IP protocol numbers: ICMP = 1, IGMP = 2, TCP = 6, UDP = 17, OSPF = 89.
    2. Evaluate options:
    • ICMP is protocol 1. Valid.
    • IGMP is protocol 2. Valid.
    • OSPF is protocol 89. Valid.
    • RIP is an application layer routing protocol that uses UDP port 520. Its IP protocol number is 17 (UDP), not RIP itself.
    1. Therefore, RIP is NOT a possible candidate for the protocol field.

    Learning route:

    The Protocol field in the IPv4 header is an 8-bit value that tells the receiving host which transport or network layer protocol the payload belongs to. This process is called demultiplexing.

    Common protocol numbers include:

    • 1: ICMP (Internet Control Message Protocol)
    • 2: IGMP (Internet Group Management Protocol)
    • 6: TCP (Transmission Control Protocol)
    • 17: UDP (User Datagram Protocol)
    • 89: OSPF (Open Shortest Path First)

    RIP (Routing Information Protocol) is an application layer protocol that uses UDP as its transport protocol (port 520). Therefore, when a RIP message is sent, the IP header's protocol field will be set to 17 (UDP), not a hypothetical "RIP" number. RIP does not have its own IP protocol number.

    Question 5 · Computer Networks · 2025_Set1 NAT
    Suppose a message of size 15000 bytes is transmitted from a source to a destination using IPv4 protocol via two routers as shown in the figure. Each router has a defined maximum transmission unit (MTU) as shown in the figure, including IP header. The number of fragments that will be delivered to the destination is ________ . (Answer in integer)

    SourceRouter-1(MTU=5000 bytes)Router-2(MTU=3000 bytes)Destination
    Correct Answer:

    7.00

    Step-by-Step Solution

    Insight: In multi-router fragmentation, routers never reassemble packets; each incoming fragment is independently evaluated against the new MTU, and the data payload of every fragment (except the last) must be a multiple of 8 bytes.

    Exam route:

    1. Total datagram size = 15000 bytes. IP header = 20 bytes. Data payload = 14980 bytes. (Note: Even if 15000 is interpreted as just the data payload, the final fragment count remains 7).
    2. Router 1: MTU = 5000. Max data = 5000 - 20 = 4980. Multiple of 8 4980 is 4976.
    3. Fragments at Router 1: . (Data sizes: 4976, 4976, 4976, 52).
    4. Router 2: MTU = 3000. Max data = 3000 - 20 = 2980. Multiple of 8 2980 is 2976.
    5. Evaluate each Router 1 fragment at Router 2:
    • Each 4976-byte fragment splits into fragments. (3 fragments 2 = 6).
    • The 52-byte fragment is 2976, so it remains 1 fragment.
    1. Total fragments at destination = 6 + 1 = 7.

    Learning route:

    This is a "Multi-Router Fragmentation" question, recognizable because it involves a path with multiple links having different MTUs.

    First, we calculate the fragmentation at the first router. The original datagram has 14980 bytes of data (15000 total - 20 header). The first link's MTU is 5000, so the maximum data per fragment is 5000 - 20 = 4980 bytes. Applying the multiple-of-8 rule, the actual data capacity is 4976 bytes.

    Dividing 14980 by 4976 gives 4 fragments. The first three carry 4976 bytes of data each, and the fourth carries the remaining 52 bytes.

    These four fragments then reach the second router, where the MTU is 3000. The maximum data per new fragment is 3000 - 20 = 2980 bytes. The multiple-of-8 rule gives a capacity of 2976 bytes.

    Crucially, routers do not reassemble packets. Each of the four incoming fragments is evaluated independently:

    • The three 4976-byte fragments each need sub-fragments.
    • The 52-byte fragment needs sub-fragment.

    The total number of fragments delivered to the receiver is (3 2) + 1 = 7.

    Question 6 · Computer Networks · 2024_Set2 MSQ

    Which of the following statements about IPv4 fragmentation is/are TRUE?

    1. A.

      The fragmentation of an IP datagram is performed only at the source of the datagram

    2. B.

      The fragmentation of an IP datagram is performed at any IP router which finds that the size of the datagram to be transmitted exceeds the MTU

    3. C.

      The reassembly of fragments is performed only at the destination of the datagram

    4. D.

      The reassembly of fragments is performed at all intermediate routers along the path from the source to the destination

    Correct Answer:

    ["B","C"]

    Step-by-Step Solution

    Insight: IPv4 fragmentation can occur at the source or any intermediate router if the packet exceeds the MTU, but reassembly is strictly performed only at the final destination host.

    Exam route:

    1. Evaluate Option A: Fragmentation only at source. False. Any router along the path can fragment if the packet is too large for its outgoing link.
    2. Evaluate Option B: Fragmentation at any IP router which finds size > MTU. True. This is the standard behavior of IPv4 routers (assuming DF is not set).
    3. Evaluate Option C: Reassembly only at destination. True. Routers do not reassemble; the destination host buffers fragments and reassembles them before passing to the transport layer.
    4. Evaluate Option D: Reassembly at all intermediate routers. False. This would add immense overhead and state-keeping to routers.
    5. Therefore, B and C are true.

    Learning route:

    This is a "Fragmentation Mechanics" question, recognizable because it asks about the locations where fragmentation and reassembly occur in the IPv4 protocol.

    In IPv4, the Maximum Transmission Unit (MTU) varies across different network links. If a router receives a datagram that is larger than the MTU of its outgoing link, it must fragment the datagram into smaller pieces to cross that link. This means fragmentation can happen at the source host or at any intermediate router along the path. Thus, statement B is true, and A is false.

    However, to keep routers fast and stateless, IPv4 delegates the complex task of reassembly to the end hosts. Intermediate routers never reassemble fragments; they simply forward them (or fragment them further if needed). The destination host collects all fragments, uses the Identification field to group them, and reassembles the original datagram before handing it to the transport layer. Thus, statement C is true, and D is false.

    Question 7 · Computer Networks · 2024_Set2 MCQ

    Which one of the following CIDR prefixes exactly represents the range of IP addresses 10.12.2.0 to 10.12.3.255?

    1. A.

      10.12.2.0/23

    2. B.

      10.12.2.0/24

    3. C.

      10.12.0.0/22

    4. D.

      10.12.2.0/22

    Correct Answer:

    A

    Step-by-Step Solution

    Insight: To find the CIDR prefix from a range, convert the first and last IPs to binary, find the longest matching leading bits, and verify the starting IP is properly aligned for that block size.

    Exam route:

    1. Range: 10.12.2.0 to 10.12.3.255.
    2. 3rd octet goes from 2 (00000010) to 3 (00000011).
    3. The first 7 bits of the 3rd octet (0000001) are identical. The 8th bit differs.
    4. Total matching bits = 16 (first two octets) + 7 = 23. Prefix is /23.
    5. Check alignment: For /23, the 3rd octet's last bit is a host bit. The network address must have this bit as 0. 2 in binary is 00000010 (last bit is 0). So 10.12.2.0 is a valid start.
    6. The exact CIDR is 10.12.2.0/23.

    Learning route:

    This is a "CIDR Block Extraction" question, recognizable because it gives a range of IPs and asks for the exact CIDR prefix.

    First, we find the prefix length by comparing the binary representations of the first and last IPs.

    10.12.2.0: 00001010.00001100.00000010.00000000

    10.12.3.255: 00001010.00001100.00000011.11111111

    The first 23 bits are identical (the first 16 bits of the first two octets, plus the first 7 bits of the 3rd octet: 0000001). The 24th bit is 0 in the first IP and 1 in the last IP. Thus, the prefix length is 23.

    Next, we must verify that the starting IP is a valid network address for a /23 block. In a /23 block, the block size is . This means the 3rd octet must be a multiple of 2 (since the last bit of the 3rd octet is a host bit). The starting 3rd octet is 2, which is a multiple of 2 (and its last bit is 0). Therefore, 10.12.2.0/23 is perfectly aligned and exactly represents the given range.

    Question 8 · Computer Networks · 2024_Set2 MSQ

    Which of the following fields of an IP header is/are always modified by any router before it forwards the IP packet?

    1. A.

      Source IP Address

    2. B.

      Protocol

    3. C.

      Time to Live (TTL)

    4. D.

      Header Checksum

    Correct Answer:

    ["C","D"]

    Step-by-Step Solution

    Insight: A standard router's job is to forward packets; to prevent infinite loops it decrements TTL, and because the header changes, it must recalculate the header checksum. It does not touch IP addresses or the protocol field.

    Exam route:

    1. Recall the "Router's Checklist": TTL is always decremented by 1.
    2. Because TTL changes, the 16-bit Header Checksum must be recalculated.
    3. Source/Destination IPs are only changed by NAT routers, not "any" standard router.
    4. The Protocol field is never modified by routers.
    5. Therefore, TTL and Header Checksum are always modified.

    Learning route:

    This is a "Router's Checklist" question, recognizable because it asks what changes "by any router" during transit.

    When a router receives an IP packet, it must decrement the Time to Live (TTL) field by exactly 1. This prevents packets from looping forever in the network.

    The IPv4 header includes a Header Checksum field that covers only the IP header (not the payload). Because the router modifies the TTL, the header's contents have changed, making the old checksum invalid. The router must recalculate the Header Checksum before forwarding the packet.

    A standard router does not modify the Source or Destination IP addresses (unless it is specifically configured for NAT, but the question says "any router", implying standard forwarding). The Protocol field, which identifies the transport layer protocol (e.g., TCP, UDP), is also never modified by routers.

    Thus, the fields always modified are TTL and Header Checksum.

    Question 9 · Computer Networks · 2024_Set1 NAT

    Consider sending an IP datagram of size 1420 bytes (including 20 bytes of IP header) from a sender to a receiver over a path of two links with a router between them. The first link (sender to router) has an MTU (Maximum Transmission Unit) size of 542 bytes, while the second link (router to receiver) has an MTU size of 360 bytes. The number of fragments that would be delivered at the receiver is _________

    Correct Answer:

    6.00

    Step-by-Step Solution

    Insight: In multi-router fragmentation, each router independently fragments any packet that exceeds its link's MTU. Routers never reassemble; they just break larger fragments into smaller ones, always respecting the multiple-of-8 rule for data payloads.

    Exam route:

    1. Original datagram: 1420 bytes. IP header = 20 bytes. Data = 1400 bytes.
    2. Link 1 MTU = 542. Max data = 542 - 20 = 522. Multiple of 8 522 is 520.
    3. Fragments at Router 1: fragments. Sizes: 520, 520, 360 bytes of data.
    4. Link 2 MTU = 360. Max data = 360 - 20 = 340. Multiple of 8 340 is 336.
    5. Fragment 1 (520) fragments.
    6. Fragment 2 (520) fragments.
    7. Fragment 3 (360) fragments.
    8. Total fragments at receiver = 2 + 2 + 2 = 6.

    Learning route:

    This is a "Multi-Router Fragmentation" question, recognizable because it involves a path with multiple links having different MTUs.

    First, we calculate the fragmentation at the first router. The original datagram has 1400 bytes of data (1420 total - 20 header). The first link's MTU is 542, so the maximum data per fragment is 542 - 20 = 522 bytes. Applying the multiple-of-8 rule, the actual data capacity is 520 bytes.

    Dividing 1400 by 520 gives 3 fragments. The first two carry 520 bytes of data each, and the third carries the remaining 360 bytes.

    These three fragments then reach the second router, where the MTU is 360. The maximum data per new fragment is 360 - 20 = 340 bytes. The multiple-of-8 rule gives a capacity of 336 bytes.

    Crucially, routers do not reassemble packets. Each of the three incoming fragments is evaluated independently:

    • The 520-byte fragment needs sub-fragments.
    • The second 520-byte fragment also needs 2 sub-fragments.
    • The 360-byte fragment needs sub-fragments.

    The total number of fragments delivered to the receiver is 2 + 2 + 2 = 6.

    Question 10 · Computer Networks · 2024_Set1 MSQ

    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?

    1. A.

      Source IP

    2. B.

      Destination IP

    3. C.

      Header Checksum

    4. D.

      Total Length

    Correct Answer:

    ["A","C"]

    Step-by-Step Solution

    Insight: A NAT device translating from internal to external replaces the private Source IP with a public IP; because the IP header changes, the Header Checksum must be recalculated. Destination IP and Total Length remain unchanged.

    Exam route:

    1. Packet goes from internal to external through NAT.
    2. NAT replaces the private Source IP with a public Source IP. (Option A is correct).
    3. The Destination IP is already a public IP on the external network; it is not changed. (Option B is incorrect).
    4. Because the Source IP changed, the IP header changed. The Header Checksum must be recalculated. (Option C is correct).
    5. NAT does not add or remove payload data, so Total Length is unchanged. (Option D is incorrect).

    Learning route:

    This is a "NAT Modifications" question, recognizable because it asks what changes when a packet passes through a NAT device.

    When a packet leaves an internal private network and goes to the external internet, the NAT router must translate the private Source IP address into a public IP address so that the return traffic can be routed back. Therefore, the Source IP is modified.

    The Destination IP is the final external server's public IP, which the NAT router does not change (in standard source NAT).

    The IPv4 Header Checksum covers the entire IP header. Since the Source IP address is part of the header and has been changed, the old checksum is now invalid. The NAT router must recalculate the Header Checksum.

    The Total Length field indicates the size of the IP datagram (header + data). NAT does not alter the payload or the header size, so the Total Length remains unchanged.

    More previous year questions (pyqs) in this unit