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

Glossary term · Management

Expected state

Expected State (SIM/USIM Test)

Management →

Expected state is the reference state of a SIM or USIM after a test procedure, used in terminal conformance testing to verify correct behavior against given initial conditions.

Introduced
Rel-8
Where
User Equipment › SIM/USIM
Specifications
2 specs
Expected state Description Purpose What changed Neighbours Specifications

Description

The term 'Expected state' is a fundamental concept in 3GPP terminal conformance testing, specifically for the (U)SIM (Universal Subscriber Identity Module). It refers to the precise state that the (U)SIM is supposed to be in after a defined test procedure has been executed, starting from a set of relevant initial conditions. This concept is defined in the 3GPP test specifications TS 31.213 (for USIM) and TS 51.013 (for SIM), which are part of the terminal conformance testing framework.

In the context of conformance testing, the (U)SIM is a critical component that stores subscriber identity, authentication keys, and other network-related information. Test procedures are designed to exercise various functions of the (U)SIM, such as authentication, file access, and command handling. The 'Expected state' serves as the reference outcome that the test equipment compares against the actual state of the (U)SIM after the test. If the actual state matches the expected state, the test passes; otherwise, it fails, indicating a potential non-compliance or defect.

The expected state is typically defined in terms of the contents of specific (U)SIM files, the status of certain flags, or the response to commands. For example, after a successful authentication procedure, the expected state might include a specific value in the authentication response file or a particular status word returned by the (U)SIM. The test specifications provide detailed descriptions of the initial conditions and the expected state for each test case, ensuring that tests are repeatable and unambiguous.

This concept is essential for ensuring interoperability and compliance of (U)SIM implementations with 3GPP standards. It allows test laboratories to verify that a (U)SIM behaves as specified, which is crucial for network operators and device manufacturers to ensure that subscribers can access services reliably. The expected state is not a physical state but a logical one, defined by the values of data elements and the outcomes of procedures.

Over the releases, the definition of 'Expected state' has remained largely unchanged, reflecting the stability of the testing methodology. However, in Rel-19, the definition was slightly revised to refer to 'SIM' instead of '(U)SIM', possibly to align with terminology changes or to include the broader SIM family. This subtle change does not alter the fundamental meaning but reflects ongoing maintenance of the specifications.

Purpose & Motivation

The 'Expected state' concept exists to provide a clear, unambiguous reference for conformance testing of (U)SIM implementations. Without a defined expected state, test results would be subjective and difficult to interpret, leading to inconsistent verification of compliance. It solves the problem of how to objectively determine whether a (U)SIM has correctly executed a test procedure under specified initial conditions.

Historically, as mobile networks evolved and (U)SIM functionality became more complex, the need for standardized testing became paramount. The expected state concept was introduced in Rel-8 to formalize the outcome of test procedures, ensuring that tests could be automated and results compared reliably. It addresses the limitations of previous ad-hoc testing approaches by providing a precise, specification-based definition of the desired outcome.

The expected state also facilitates interoperability by ensuring that (U)SIMs from different vendors can be tested against the same criteria. This is particularly important in multi-vendor environments where network operators deploy equipment from various suppliers. By adhering to the expected state definitions, manufacturers can demonstrate that their (U)SIM products meet the 3GPP requirements, thereby reducing the risk of field failures and improving user experience.

What changed in its specifications

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

TS 31.213Rel-6 → Rel-7

Rel-7 added USSD message delivery and transfer to USIM with formatted and unformatted events, concatenation processing, and conformance requirements for formatted SMS events plus test coverage for unformatted SMS and USSD events.

Full comparison in TS 31.213 →
TS 51.013Rel-4 → Rel-5

Rel-5 added new handler methods, events, channel allocation, proactive command control, and concatenation processing to the USIM toolkit.

Full comparison in TS 51.013 →

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-8 Initial

Initial definition introduced: 'state in which the (U)SIM is supposed to be after the execution of the test procedure applied on the relevant initial conditions'. This established the baseline for conformance testing of (U)SIM.

Definition carried over unchanged from Rel-8.

Definition carried over unchanged from Rel-8.

Definition carried over unchanged from Rel-8.

Definition carried over unchanged from Rel-8.

Definition carried over unchanged from Rel-8.

Definition carried over unchanged from Rel-8.

Definition carried over unchanged from Rel-8.

Definition carried over unchanged from Rel-8.

Definition carried over unchanged from Rel-8.

Definition carried over unchanged from Rel-8.

Definition revised to refer to 'SIM' instead of '(U)SIM': 'state in which the SIM is supposed to be after the execution of the test procedure applied on the relevant initial conditions'. This change reflects updated terminology but maintains the same technical meaning.

Defining Specifications

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

SpecificationTitleRelease
TS 31.213 vi50 USIM API for Java Card Test Specification Rel-18 read
TS 51.013 vj00 SIM API for Java Card Test Specification Rel-19 read