09.12.2012 Views

Understanding the network.pdf - Back to Home

Understanding the network.pdf - Back to Home

Understanding the network.pdf - Back to Home

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Network Address Translation<br />

Internet access <strong>to</strong>day (from both <strong>the</strong> home and office) is almost as commonplace as<br />

<strong>the</strong> telephone. With <strong>the</strong> demand for access <strong>to</strong> <strong>the</strong> Internet <strong>to</strong>day almost doubling in<br />

size on a yearly basis, IPv4 address space is getting tight. Additionally, before<br />

Internet access became widespread. The TCP/IP pro<strong>to</strong>col was widely used on many<br />

private enterprise <strong>network</strong>s. Since <strong>the</strong>se <strong>network</strong>s were private (no Internet<br />

access), many administra<strong>to</strong>rs used "illegal" IP address ranges. These "illegal"<br />

address ranges, were IP addresses "assigned" <strong>to</strong> companies, by IANA for use on <strong>the</strong><br />

public Internet. O<strong>the</strong>r <strong>network</strong> administra<strong>to</strong>rs use <strong>the</strong> IANA provided "unregistered"<br />

IP address spaces <strong>to</strong> address <strong>the</strong>ir <strong>network</strong>s. Of course, in ei<strong>the</strong>r instance, when<br />

<strong>the</strong>se <strong>network</strong>s <strong>the</strong>n wanted <strong>to</strong> connect <strong>to</strong> <strong>the</strong> Internet <strong>the</strong>y were forced in<strong>to</strong> <strong>the</strong><br />

very unappealing and painful task of re-addressing <strong>the</strong> <strong>network</strong>s. Network Address<br />

Translation (NAT) was primarily developed <strong>to</strong> address <strong>the</strong>se troublesome issues.<br />

NAT provides <strong>the</strong> capability <strong>to</strong> have a group of end-stations utilize an "illegal" or<br />

"unregistered" IP address space. Sharing a group (or single address, if necessary)<br />

of "registered" IP addresses <strong>to</strong> access hosts (that is, web, ftp, database servers and<br />

so on). NAT, in its basic form, functions as described next.<br />

An internal (privately addressed) host establishes a connection with an external<br />

(publicly addressed) host. When <strong>the</strong> session is initially opened, <strong>the</strong> NAT gateway<br />

router assigns an externally routable IP address <strong>to</strong> <strong>the</strong> internal host establishing <strong>the</strong><br />

external session (a one-<strong>to</strong>-one IP address translation). This address is <strong>the</strong>n used <strong>to</strong><br />

readdress <strong>the</strong> source address of all <strong>the</strong> outgoing IP datagrams sent from <strong>the</strong> internal<br />

host. As far as <strong>the</strong> external host is concerned, this external address is <strong>the</strong> real IP<br />

address of <strong>the</strong> internal host. So, when <strong>the</strong> NAT gateway router receives traffic from<br />

<strong>the</strong> external host with a destination address being used by an internal host, <strong>the</strong><br />

incoming IP packets are readdressed again. This time <strong>the</strong> IP datagram's destination<br />

address is changed <strong>to</strong> reflect <strong>the</strong> actual internal address of <strong>the</strong> host. Along with<br />

translation, it is <strong>the</strong> job of <strong>the</strong> router <strong>to</strong> keep track of which host is assigned which<br />

address, how long <strong>the</strong>y have had <strong>the</strong> address, and how long since <strong>the</strong> last time <strong>the</strong>y<br />

have used <strong>the</strong> address. After a defined period of inactivity, external addresses are<br />

returned <strong>to</strong> <strong>the</strong> "address pool" and are reassigned <strong>to</strong> hosts who need <strong>the</strong>m.<br />

A variation of NAT known as Port Address Translation (PAT) is also often used <strong>to</strong><br />

provide addressing translation for <strong>the</strong> SOHO PPP dial connections. PAT allows a<br />

single IP address <strong>to</strong> be used <strong>to</strong> manage multiple Layer 4 sessions (a one-<strong>to</strong>-many IP<br />

address translation). PAT is often represented as NAT on equipment that typically<br />

operates over PPP asynchronous links, where <strong>the</strong> IP address is assigned randomly <strong>to</strong><br />

<strong>the</strong> router each time <strong>the</strong> link is connected.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!