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.

ESP in transport mode<br />

In this mode, the ESP header is inserted right after the <strong>IP</strong> header, as shown in<br />

Figure 22-29. If the datagram already has <strong>IP</strong>Sec header or headers, the ESP<br />

header is inserted before any of those. The ESP trailer <strong>and</strong> the optional<br />

authentication data are appended to the payload.<br />

<strong>IP</strong> H dr<br />

<strong>IP</strong> H dr<br />

Payload<br />

ESP<br />

Hdr<br />

Encrypted<br />

A uthenticated<br />

Figure 22-29 ESP in transport mode<br />

ESP in transport mode provides neither authentication nor encryption for the <strong>IP</strong><br />

header. This is a disadvantage, because false packets might be delivered for<br />

ESP processing. The advantage of transport mode is the lower processing cost.<br />

As in the case of AH, ESP in transport mode is used by hosts, not gateways.<br />

Gateways are not required to support transport mode.<br />

ESP in tunnel mode<br />

As expected, this mode applies the tunneling principle. A new <strong>IP</strong> packet is<br />

constructed with a new <strong>IP</strong> header. ESP is then applied, as in transport mode.<br />

This is illustrated in Figure 22-30. Because the original datagram becomes the<br />

payload data for the new ESP packet, it is completely protected if both encryption<br />

<strong>and</strong> authentication are selected. However, the new <strong>IP</strong> header is still not<br />

protected.<br />

<strong>IP</strong> Hdr Payload<br />

New<br />

<strong>IP</strong> Hdr<br />

New<br />

<strong>IP</strong> Hdr<br />

Payload<br />

<strong>IP</strong> Hdr Payload<br />

ESP<br />

Hdr<br />

<strong>IP</strong> Hdr Payload<br />

Figure 22-30 ESP in tunnel mode<br />

Encrypted<br />

Authenticated<br />

ESP<br />

Trl<br />

ESP<br />

Auth<br />

ESP<br />

Trl<br />

O riginal <strong>IP</strong> datagram<br />

Datagram with ESP<br />

in transport mode<br />

ESP<br />

Auth<br />

Original <strong>IP</strong> datagram<br />

Tunneled datagram<br />

Datagram with ESP<br />

in transport mode<br />

Chapter 22. <strong>TCP</strong>/<strong>IP</strong> security 821

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

Saved successfully!

Ooh no, something went wrong!