Skip to main content

About this free course

Download this course

Share this free course

Discovering computer networks: hands on in the Open Networking Lab
Discovering computer networks: hands on in the Open Networking Lab

Start this free course now. Just create an account and sign in. Enrol and complete the course for a free statement of participation or digital badge if available.

5.4 NAT in detail

In this part you will examine the IP packets in detail to see network address translation happening at the router.

Now watch the video below, which is about 3 minutes long.

NAT in detail

Download this video clip.Video player: 31_nat_in_detail.mp4
Copy this transcript to the clipboard
Print this transcript
Show transcript|Hide transcript
 
Interactive feature not available in single page view (see it in standard view).

Network address translation happens in the router. The router inspects each outgoing IP packet: if the source address is a private address, the router will replace this with its own public IP address. It will also record which translations it has made. Returning traffic will arrive with the router’s own IP address as the apparent destination, but the router will inspect each packet and replace the destination address, using the information it stored earlier to reverse the translation back to a private address. The packet can then be switched over the LAN in the normal way.

Activity 6 Test yourself

5 minutes

Identify the one correct statement in the list below.

a. 

A router will not look at a packet containing a private address; it will just pass it on unchanged.


b. 

NAT changes private addresses in IP packets to a random IP address.


c. 

NAT changes private addresses in IP packets to the router’s own public address.


d. 

Computers and other devices in a private network always substitute the router’s address for their own before they send IP packets over the LAN.


The correct answer is c.