CS FundamentalsHardGATE CS · networking placement

Three PCs behind one NAT router ping the same public server at the same time. ICMP Echo messages have no port numbers. How does the NAT deliver each Echo Reply to the right PC?

  1. A. It keeps one ping at a time per server and queues the others until a reply returns
  2. B. It maps on the ICMP query Identifier field, rewriting it if needed, as it would a port
  3. C. It gives each PC its own public address taken from a pool for ICMP traffic only
  4. D. It matches the replies by IP Identification field, which the server copies back

Correct answer: B. It maps on the ICMP query Identifier field, rewriting it if needed, as it would a port

For ICMP query messages NAT treats the 16-bit Identifier as the 'port': it records (inside address, identifier) and may rewrite the identifier to keep it unique. The IP Identification field is set fresh by the replying host, so it cannot be used.

More Computer Networks questions

Exams that ask this topic