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.

The tunnel mode is used whenever either end of a Security Association is a<br />

gateway. Therefore, between two firewalls the tunnel mode is always used.<br />

Gateways often also support transport mode. This mode is allowed when the<br />

gateway acts as a host, that is, in cases when traffic is destined to the gateway<br />

itself. For example, SNMP comm<strong>and</strong>s can be sent to the gateway using transport<br />

mode.<br />

In tunnel mode the outer header's <strong>IP</strong> addresses does not need to be the same as<br />

the inner headers' addresses. For example, two security gateways can operate<br />

an ESP tunnel that is used to secure all traffic between the networks they<br />

connect together. Hosts are not required to support tunnel mode.<br />

The advantages of tunnel mode are total protection of the encapsulated <strong>IP</strong><br />

datagram <strong>and</strong> the possibility of using private addresses. However, there is an<br />

extra processing charge associated with this mode.<br />

<strong>IP</strong>v6 considerations<br />

As with AH, ESP is an integral part of <strong>IP</strong>v6 (see 9.2.1, “Extension headers” on<br />

page 333). In an <strong>IP</strong>v6 environment, ESP is considered an end-to-end payload<br />

<strong>and</strong> it appears after hop-by-hop, routing, <strong>and</strong> fragmentation extension headers.<br />

The destination options extension header(s) could appear either before or after<br />

the AH header. Figure 22-31 illustrates the positioning of the AH header in<br />

transport mode for a typical <strong>IP</strong>v6 packet. The position of the extension headers<br />

marked with an asterisk (*) is variable, if present at all.<br />

For more details, refer to RFC 2406.<br />

Ext. Hdr<br />

<strong>IP</strong> Hdr hop, dest*,<br />

routing, frag<br />

Figure 22-31 ESP in transport mode for <strong>IP</strong>v6<br />

Two authentication protocols<br />

Knowing about the security services of ESP, you might ask if there is really a<br />

requirement for AH. Why does ESP authentication not cover the <strong>IP</strong> header as<br />

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

ESP<br />

Hdr<br />

Dest<br />

options*<br />

Payload<br />

Encrypted<br />

Authenticated<br />

ESP<br />

Trl<br />

ESP<br />

Auth

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

Saved successfully!

Ooh no, something went wrong!