Computer Networking Basics

Host A (192.168.1.10), inside a router performing NAPT whose outside global address is 198.51.100.7, connects from source port 50000 to port 443 on web server 203.0.113.5. The router translates the source to port 61000 on 198.51.100.7. What is the destination of the response packets the web server sends back?

  1. APort 50000 on 192.168.1.10
  2. BPort 443 on 198.51.100.7
  3. CPort 61000 on 198.51.100.7
Show answer and explanation

Answer: C. Port 61000 on 198.51.100.7

The source the server sees is the translated port 61000 on 198.51.100.7, so the response goes there. The router finds the mapping "61000 ↔ port 50000 on 192.168.1.10" in its translation table, rewrites the destination address and port, and delivers the packet to host A. The server never learns the private address 192.168.1.10, and even if it did, the internet has no routes to private addresses, so packets would not arrive. 443 is the server-side port (HTTPS) and appears as the source port in the response.

  • A. This is the destination after the router rewrites it, not what the server sends to.
  • B. 443 is the server-side port; in the response it is the source port.
  • C. Correct. The server replies to the translated address and port, and the router passes it back to host A.
Practice this topic Back to topic

Related calculators

Books on Computer Networking Basics Ad

As an Amazon Associate I earn from qualifying purchases.

More Computer Networking Basics questions

  1. Which correctly describes the role of ARP?
  2. A host (192.168.1.10/24, default gateway 192.168.1.1) sends a packet to server 203.0.113.80 on a different network. With an empty ARP cache, whose MAC address does the host look up with ARP?
  3. A router's routing table has four routes: 0.0.0.0/0 (next hop router A), 10.0.0.0/8 (router B), 10.1.0.0/16 (router C) and 10.1.2.0/24 (router D). To which router is a packet for 10.1.5.9 sent?
  4. What is the role of the TTL (Time To Live) field in the IPv4 header?
  5. Which correctly describes dynamic routing?