Description
The Security Association Database (SAD), sometimes denoted SADB, is a critical component in the implementation of security protocols like IPsec (Internet Protocol Security). Within 3GPP architectures, it is maintained by network entities such as the Packet Data Network Gateway (PGW), Trusted WLAN Access Gateway (TWAG), or security gateways that apply IPsec to protect user data or control plane traffic. A Security Association (SA) is a set of parameters that define how security services are provided to a specific communication flow. The SAD is the repository where these parameter sets are stored and managed for all active SAs.
Each entry in the SAD corresponds to one SA and contains a comprehensive set of fields necessary for processing secured packets. Key components of an SAD entry include: the Security Parameters Index (SPI), a unique identifier for the SA; the destination IP address (and often source address); the cryptographic algorithms to be used (e.g., AES for encryption, SHA-256 for integrity); the specific keys for those algorithms; the mode of operation (Transport or Tunnel); the lifetime of the SA (in time or bytes processed); and anti-replay window parameters. For inbound packets, the receiving node uses the SPI and destination address to look up the correct SAD entry, retrieve the keys and algorithms, and then decrypt and validate the packet. For outbound packets, the sending node consults the SAD to determine how to encrypt and encapsulate the packet before transmission.
The SAD works in conjunction with the Security Policy Database (SPD). The SPD defines the policy rules that dictate *whether* traffic should be protected and the general requirements for that protection. When traffic matches a SPD rule requiring protection, the system either uses an existing SA (whose parameters are in the SAD) or triggers the creation of a new SA via a key management protocol like IKEv2. The newly established SA's parameters are then installed in the SAD. The SAD is dynamically updated as SAs are created, deleted, or refreshed. Management of the SAD is a core function of the IPsec implementation, ensuring that keys are available, lifetimes are monitored, and stale entries are purged.
In 3GPP networks, the SAD is essential for securing interfaces like N3 and N9 in 5G using IPsec, or for securing UE-to-network tunnels in scenarios like WLAN integration. It enables the network to maintain simultaneous secure associations for millions of devices, each with its own cryptographic context. The robustness and performance of the SAD implementation directly impact the security and scalability of the mobile core network.
Purpose & Motivation
The Security Association Database exists to solve the problem of managing the complex, stateful parameters required for cryptographic protection of communications. Early secure communications often used static, pre-shared keys for entire links, which was inflexible and insecure for large-scale, dynamic networks. As protocols like IPsec evolved to provide per-flow or per-session security with dynamic key establishment, a mechanism was needed to store and retrieve the multitude of parameters for each active security context.
The SAD was created as part of the IPsec architecture (defined in IETF RFCs) to provide this stateful storage. Without a SAD, a security gateway would have no efficient way to associate incoming secured packets with the correct decryption keys and algorithms, rendering IPsec unusable for multiple simultaneous connections. It addresses the limitation of earlier ad-hoc security implementations that could not scale. The SAD, paired with the SPD, provides a structured, database-driven approach to enforcing security policies.
Within 3GPP, the adoption of IPsec for protecting core network interfaces (e.g., between network functions) and user data tunnels became paramount with the move to all-IP architectures and later cloud-native 5G cores. The SAD concept is integral to specifications defining security for interfaces like GTP-U, N3, N9, and for UE access via untrusted networks. Its purpose in 3GPP is to enable standardized, scalable, and secure IP communications across the mobile ecosystem, ensuring each secured flow has its dedicated cryptographic state managed reliably by network elements.
Classification
Detected Changes Across Releases
from 3GPP Change RequestsSpecific changes extracted from the „Change history“ tables of 3GPP specifications (3 CRs across 1 releases). Complements the general historical overview above with the evidence-based evolution of this function.
Studied in Rel-4, normative work from Rel-17.
In Release 17, the Security Association Database (SAD) function was updated with new security algorithms and protocols, as specified in the technical domain of security. Furthermore, the IPSec references within the SAD context were revised, moving from obsolete RFCs to the current standards of RFC 8221 and RFC 8247.
Explore further
Broader topics and technologies where SAD plays a role.
Defining Specifications
3GPP specifications that define or reference SAD, with the latest known release. Sourced from the 3GPP document catalog — see methodology.
| Specification | Title | Release |
|---|---|---|
| TR 21.905 vj00 | 3GPP Technical Terms and Definitions | Rel-19 |
| TS 26.253 vj00 | IVAS Codec Algorithmic Description | Rel-19 |
| TS 26.441 vj00 | EVS Audio Processing Introduction | Rel-19 |
| TS 26.442 vj00 | EVS Codec Fixed Point ANSI-C Code | Rel-19 |
| TS 26.443 vj00 | EVS Codec Floating-Point C Code | Rel-19 |
| TS 26.444 vj00 | EVS Codec Conformance Test Sequences | Rel-19 |
| TS 26.450 vj00 | EVS Codec DTX System Level Aspects | Rel-19 |
| TS 26.451 vj00 | EVS Codec Voice Activity Detector (VAD) Specification | Rel-19 |
| TS 26.452 vj00 | EVS Codec Fixed-Point C Code Implementation | Rel-19 |
| TR 26.952 vj00 | EVS Codec Selection, Verification & Characterization | Rel-19 |
| TS 29.204 vj00 | SS7 Security Gateway Functional Description | Rel-19 |
| TS 33.204 vj00 | TCAP Security (TCAPsec) Stage 2 Specification | Rel-19 |
| TS 33.210 vj20 | UMTS Security for IP Networks | Rel-19 |