Security Parameters Index

The Security Parameter Index (SPI) is an identification tag added to the header while using IPsec for tunneling the IP traffic. This tag helps the kernel discern between two traffic streams where different encryption rules and algorithms may be in use.

The SPI (as per RFC 4301) is a required part of an IPsec Security Association (SA) because it enables the receiving system to select the SA under which a received packet will be processed.[1] An SPI has only local significance, since it is defined by the creator of the SA; an SPI is generally viewed as an opaque bit string. However, the creator of an SA may interpret the bits in an SPI to facilitate local processing.

This works like port numbers in TCP and UDP connections. What it means is that there could be different SAs used to provide security to one connection. An SA could therefore act as a set of rules.

Carried in Encapsulating Security Payload (ESP) header or Authentication Header (AH), its length is 32 bits.[2]

References

[edit]
  1. ^ S. Kent; K. Seo (December 2005). Security Architecture for the Internet Protocol. Network Working Group. doi:10.17487/RFC4301. RFC 4301. Proposed Standard. Obsoletes RFC 2401. Updated by RFC 6040 and 7619.
  2. ^ Kent, Stephen (December 2005). "IP Encapsulating Security Payload (ESP)". doi:10.17487/RFC4303. {{cite journal}}: Cite journal requires |journal= (help)