Changes

no edit summary
Line 9: Line 9:  
==How NAT works==
 
==How NAT works==
    +
NAT works by applying '''IP masquerading''', which is a technique that hides an entire IP address space, usually consisting of private IP addresses, behind a single IP address in another, usually public address space. The address that has to be hidden is changed into a single (public) IP address as "new" source address of the outgoing IP packet so it appears as originating not from the hidden host but from the routing device itself:
   −
[[File:Private public ip 3 v2.png]]
+
[[File:Private public ip 3 v2.png|1000px]]
    
The scheme above roughly describes how devices with private IP addresses communicate with a remote host on the Internet (and ''vice versa'') with the help of NAT. Bellow the scheme is a depiction of a NAT mapping table. It illustrates how the router differentiates to which device in the local network to redirect incoming data packets.
 
The scheme above roughly describes how devices with private IP addresses communicate with a remote host on the Internet (and ''vice versa'') with the help of NAT. Bellow the scheme is a depiction of a NAT mapping table. It illustrates how the router differentiates to which device in the local network to redirect incoming data packets.