25.02.2013 Views

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

packet, the destination address is checked if it is used by NAT. When this is true,<br />

the address is translated to the original internal address. Figure 3-13 shows the<br />

Basic NAT configuration.<br />

To be translated<br />

Exclude<br />

Figure 3-13 Basic NAT configuration<br />

When Basic NAT translates an address for an <strong>IP</strong> packet, the checksum is also<br />

adjusted. For FTP packets, the task is even more difficult, because the packets<br />

can contain addresses in the data of the packet. For example, the FTP PORT<br />

comm<strong>and</strong> contains an <strong>IP</strong> address in ASCII. These addresses should also be<br />

translated correctly; checksum updates <strong>and</strong> <strong>TCP</strong> sequence <strong>and</strong><br />

acknowledgement updates should also be made accordingly.<br />

In order to make the routing tables work, the <strong>IP</strong> network design needs to choose<br />

addresses as though connecting two or more <strong>IP</strong> networks or subnets through a<br />

router. The NAT <strong>IP</strong> addresses need to come from separate networks or subnets,<br />

<strong>and</strong> the addresses need to be unambiguous with respect to other networks or<br />

subnets in the non-secure network. If the external network is the Internet, the<br />

NAT addresses need to come from a public network or subnet; in other words,<br />

the NAT addresses need to be assigned by IANA.<br />

The assigned addresses need to be reserved in a pool in order to use them when<br />

needed. If connections are established from the internal network, NAT can just<br />

pick the next free public address in the NAT pool <strong>and</strong> assign that to the<br />

requesting internal host. The NAT service keeps track of which internal <strong>IP</strong><br />

addresses are mapped to which external <strong>IP</strong> addresses at any given point in time,<br />

so it will be able to map a response it receives from the external network into the<br />

corresponding secure <strong>IP</strong> address.<br />

92 <strong>TCP</strong>/<strong>IP</strong> <strong>Tutorial</strong> <strong>and</strong> <strong>Technical</strong> <strong>Overview</strong><br />

N<br />

A<br />

Map<br />

T Exclude<br />

Reserve<br />

Pool<br />

Secure network Firewall<br />

Non-secure network

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

Saved successfully!

Ooh no, something went wrong!