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.

An SA can be in either of two modes, transport or tunnel, depending on the mode<br />

of the protocol in that SA. You can find the explanation of these protocol modes<br />

later in this chapter.<br />

SAs are simplex, thus, for bidirectional communication between two <strong>IP</strong>Sec<br />

systems, there must be two SAs defined, one in each direction.<br />

A single SA gives security services to the traffic carried by it either by using AH or<br />

ESP, but not both. In other words, for a connection that needs to be protected by<br />

both AH <strong>and</strong> ESP, two SAs must be defined for each direction. In this case, the<br />

set of SAs that define the connection is referred to as an SA bundle. The SAs in<br />

the bundle do not have to terminate at the same endpoint. For example, a mobile<br />

host can use an AH SA between itself <strong>and</strong> a firewall <strong>and</strong> a nested ESP SA that<br />

extends to a host behind the firewall.<br />

An <strong>IP</strong>Sec implementation maintains two databases related to SAs:<br />

► Security Policy Database (SPD)<br />

The Security Policy Database specifies what security services are to be<br />

offered to the <strong>IP</strong> traffic, depending on factors such as source, destination,<br />

whether it is inbound, outbound, <strong>and</strong> so on. It contains an ordered list of policy<br />

entries, separate for inbound <strong>and</strong> outbound traffic. These entries might<br />

specify that some traffic must bypass the <strong>IP</strong>Sec processing, some must be<br />

discarded, <strong>and</strong> the rest must be processed by the <strong>IP</strong>Sec module. Entries in<br />

this database are similar to firewall rules or packet filters.<br />

► Security Association Database (SAD)<br />

The Security Association Database contains parameter information about<br />

each SA, such as AH or ESP algorithms <strong>and</strong> keys, sequence numbers,<br />

protocol mode, <strong>and</strong> SA lifetime. For outbound processing, an SPD entry<br />

points to an entry in the SAD. That is, the SPD determines which SA is to be<br />

used for a given packet. For inbound processing, the SAD is consulted to<br />

determine how the packet must be processed.<br />

Note: The user interface of an <strong>IP</strong>Sec implementation usually hides or<br />

presents these databases in a friendlier way.<br />

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

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

Saved successfully!

Ooh no, something went wrong!