The Bootstrapping Server Function (BSF) is a network element defined within the Generic Bootstrapping Architecture (GBA) as standardized by the 3rd Generation Partnership Project (3GPP). It is primarily specified in TS 33.220 (Generic Authentication Architecture; Generic Bootstrapping Architecture) and TS 24.109 (Bootstrapping interface (Ub) and network application function interface (Ua); Protocol details).
Role and Function
The BSF acts as the central server-side component responsible for the bootstrapping procedure, which establishes a shared secret session key material between a User Equipment (UE) and the network, derived from the user's long-term credentials (typically the IMSI/IMPI and the associated key K stored in the USIM/ISIM).
Key responsibilities include:
- Mutual Authentication: Executing an AKA (Authentication and Key Agreement) protocol run with the UE over the Ub interface to authenticate the user and the network.
- Key Derivation: Generating the Bootstrapping Transaction Identifier (B-TID) and the Key Material (Ks) (specifically Ks_Int_NAF and Ks_Ext_NAF) derived from the AKA session keys (CK, IK).
- Credential Storage: Storing the generated bootstrapping credentials (B-TID, Ks, expiry time, associated private/public user identities) for retrieval by Network Application Functions (NAFs).
- NAF Interaction: Providing the bootstrapping credentials to NAFs over the Zn interface (or Zn' interface in later releases) upon presentation of a valid B-TID by the UE, enabling the NAF to authenticate the UE without requiring the UE to run a full AKA exchange with every application server.
Architecture Context
The BSF operates within the Generic Authentication Architecture (GAA):
- Ub Interface: Between UE and BSF (HTTP/Digest AKA).
- Zn Interface: Between BSF and NAF (typically SOAP/XML or Diameter based).
- Ua Interface: Between UE and NAF (application specific, secured using keys derived from BSF credentials).
- HSS/UDM: The BSF retrieves subscriber authentication vectors (AVs) or keys from the Home Subscriber Server (HSS) in 4G/legacy or the Unified Data Management (UDM) in 5G via the Sh/Sh' or Nudm interfaces.
Evolution and Usage
- 3G/4G (GBA): Widely specified for services requiring application-layer security independent of the access network, such as IMS (early authentication), MBMS (Multicast/Broadcast), OMA DM (Device Management), and Presence.
- 5G (SBA): In the 5G Service Based Architecture, the BSF functionality is integrated into the Authentication Server Function (AUSF) and Unified Data Management (UDM). The 3GPP TS 33.501 specifies the Primary Authentication and Secondary Authentication frameworks which supersede the standalone GBA/BSF model for most native 5G services, though GBA support remains for backward compatibility and non-3GPP access scenarios.
Security Considerations
The BSF is a high-value target as it holds derived key material for active sessions. Security mechanisms include:
- Transport Layer Security (TLS) on Zn/Sh interfaces.
- Strict validation of AV freshness (sequence numbers/SQN) to prevent replay attacks.
- Short lifetime for bootstrapping credentials (configurable, typically hours to days) to limit exposure window.