Bitzu

100-150 CCST ยท IP addressing and subnetting

Network Address Translation (NAT)

Why NAT exists, static NAT, dynamic NAT and PAT (overload), and what NAT does to source addresses.

Key points

  • NAT lets hosts with private addresses reach the internet by rewriting the source address of outbound packets to a public one.
  • Static NAT maps one inside address to one fixed public address (also used to publish a server).
  • Dynamic NAT picks from a pool of public addresses.
  • PAT (overload) maps many inside hosts to a single public address by also rewriting the source port, so the router can tell the sessions apart.

Source: https://www.rfc-editor.org/rfc/rfc3022

Practice questions

Single choice

What does PAT (overload) do?

  1. Maps many inside hosts to one public address using different port numbers
  2. Maps each inside host to its own permanent public address
  3. Encrypts traffic between the inside network and the internet
  4. Assigns private addresses to hosts automatically
Show answer

Answer: A. Maps many inside hosts to one public address using different port numbers

PAT lets many inside hosts share one public address by giving each session its own source port. Static NAT is one-to-one, and neither form encrypts anything.

Select all that apply

Which statements about NAT are correct?

  1. It rewrites the source address of packets leaving the private network
  2. Static NAT creates a fixed one-to-one address mapping
  3. PAT tells sessions apart by their port numbers
  4. It encrypts the payload of translated packets
  5. It lets any outside host open sessions to any inside host by default
Show answer

Answer: A. It rewrites the source address of packets leaving the private network, B. Static NAT creates a fixed one-to-one address mapping, C. PAT tells sessions apart by their port numbers

NAT rewrites the source address of outbound packets, static NAT is a fixed one-to-one mapping, and PAT tells sessions apart with port numbers. NAT does not encrypt, and it does not let arbitrary outside hosts start sessions to inside hosts.

True or false

True or false: NAT encrypts the packet payload so people on the internet cannot read it.

Show answer

Answer: False

False. NAT only rewrites addresses (and ports for PAT). The payload is unchanged; encryption needs something like TLS or a VPN.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More 100-150 CCST topics in this module