Menu
Latest
12 meetings · Prague, Jeju · 12–16 Oct
Reports
RAN1#126-bis · SA2#177

Glossary term · Identifier

SIM code

SIM Code

Identifier →

SIM code is the portion of an IMSI, specifically digits 8 to 15, that uniquely identifies a SIM within a specific network and network subset when combined with the network and NS codes.

Introduced
Rel-4
Where
Services
Specifications
1 specs
SIM code Description Purpose What changed Neighbours Specifications

Description

The SIM code is a component of the International Mobile Subscriber Identity (IMSI) structure used to uniquely identify a SIM card within a specific network and network subset. According to the 3GPP definition, the SIM code is formed by digits 8 through 15 of the IMSI. When combined with the Mobile Network Code (MNC) and the Mobile Subscriber Identification Number (MSIN) network subset code, it provides a globally unique reference to a particular SIM. This hierarchical identification scheme is fundamental to the operation of GSM, UMTS, and LTE networks, enabling routing, authentication, and billing functions.

The IMSI is a 15-digit number (or shorter in some cases) composed of three parts: the Mobile Country Code (MCC, 3 digits), the Mobile Network Code (MNC, 2 or 3 digits), and the Mobile Subscriber Identification Number (MSIN, up to 10 digits). Within the MSIN, further structure exists: the network subset code and the SIM code. The SIM code occupies digits 8 to 15 of the IMSI, which means it spans the latter part of the MSIN. This structure allows network operators to partition their subscriber base into subsets for administrative, routing, or service differentiation purposes. The SIM code itself is typically assigned sequentially or according to an operator-defined scheme.

In practice, the SIM code is used by network elements such as the Home Location Register (HLR), Visitor Location Register (VLR), and Mobile Switching Center (MSC) to identify and authenticate subscribers. When a mobile device attaches to the network, it provides its IMSI, and the network extracts the SIM code to look up the subscriber's profile and authentication vectors. The SIM code also plays a role in roaming scenarios, where the visited network uses the IMSI structure to route authentication requests back to the home network. Additionally, the SIM code can be used for number portability and for managing large subscriber databases.

The definition of the SIM code has remained stable across 3GPP releases from Rel-4 through Rel-19, reflecting the maturity and stability of the IMSI numbering plan. This stability is essential because the IMSI is a fundamental identifier that must remain consistent across generations of mobile technology. Even with the introduction of 5G and the new 5G-S-TMSI and SUCI (Subscription Concealed Identifier) for privacy, the IMSI and its constituent parts, including the SIM code, continue to be used for initial authentication and for legacy interoperability.

While the SIM code is a relatively low-level identifier, its correct management is critical for network operations. Errors in SIM code assignment can lead to duplicate identities, authentication failures, and billing discrepancies. Therefore, operators use sophisticated provisioning systems to ensure that each SIM code is unique within its network and network subset. The SIM code also has implications for privacy and security, as it is part of the permanent subscriber identifier that can be used to track users if exposed. Consequently, 3GPP has introduced privacy mechanisms in 5G to conceal the IMSI during transmission, but the underlying structure, including the SIM code, remains in use within the secure elements and home network databases.

Purpose & Motivation

The SIM code exists to provide a structured, hierarchical way to identify individual SIM cards within a mobile network. In the early days of GSM, operators needed a scalable numbering scheme that could accommodate millions of subscribers while allowing for administrative partitioning and efficient routing. The IMSI was designed with this in mind, and the SIM code was defined as a specific segment of the IMSI to serve as the unique identifier for a SIM within a network and network subset. This allowed operators to delegate blocks of SIM codes to different regions, service classes, or distribution channels, simplifying management and enabling targeted services.

Without a standardized SIM code, each operator might have devised its own internal numbering scheme, leading to interoperability problems and complicating roaming. The 3GPP definition ensures that all vendors and operators interpret the IMSI structure consistently, so that a SIM from one network can be recognized and authenticated when roaming in another. The SIM code also facilitates the separation of the subscriber identity from the device identity, allowing users to move their SIM between devices while retaining their subscription.

Over time, the SIM code has remained relevant because the IMSI remains the primary permanent identifier for subscribers. Even as new identifiers like the 5G-GUTI and SUCI have been introduced for privacy and efficiency, the SIM code continues to be used in the home network for provisioning and in the authentication center (AuC) for generating authentication vectors. Its persistence across releases underscores the importance of stable, backward-compatible identification schemes in telecommunications.

What changed in its specifications

The latest release-to-release comparison of specifications that define SIM code. Each summary describes the whole specification, not only this term.

TR 21.905Rel-17 → Rel-18

Rel-18 brings only minor changes to TS 21.905: 0 clauses changed, with no change attributed to a release feature.

Full comparison in TR 21.905 →

Release Timeline

Evolution Across Releases

An overview written from the defining specifications, not a verified change history. For the exact text, open the specifications listed below.

Rel-4 Initial

Initial definition: 'Code which when combined with the network and NS codes refers to a unique SIM. The code is provided by the digits 8 to 15 of the IMSI.' This established the fundamental structure of the SIM code within the IMSI.

Definition carried over unchanged from Rel-4.

Definition carried over unchanged from Rel-4.

Definition carried over unchanged from Rel-4.

Definition carried over unchanged from Rel-4.

Definition carried over unchanged from Rel-4.

Definition carried over unchanged from Rel-4, with only minor formatting differences.

Definition carried over unchanged from Rel-4.

Definition carried over unchanged from Rel-4.

Definition carried over unchanged from Rel-4.

Definition carried over unchanged from Rel-4, with only minor formatting differences.

Definition carried over unchanged from Rel-4, with only minor formatting differences.

Definition carried over unchanged from Rel-4.

Definition carried over unchanged from Rel-4, with only minor formatting differences.

Definition carried over unchanged from Rel-4.

Definition carried over unchanged from Rel-4, with only minor formatting differences.

Defining Specifications

3GPP specifications that define or reference SIM code, with the latest known release. Sourced from the 3GPP document catalog — see methodology.

SpecificationTitleRelease
TR 21.905 vj20 3GPP Terminology and Definitions Rel-19 read