In brief
eSIM is a SIM card in the form of an eUICC chip built into the device, onto which the operator's profile is downloaded remotely instead of inserting a plastic card. For the operator this means a new process: order management orders a profile on the SM-DP+ server, the customer gets an activation code (usually as a QR code), and software on the phone downloads and installs the profile. You have to test the whole chain, including device change, profile deletion and protection against number takeover.
What eSIM is made of
Remote profile management for consumer devices is defined by the GSMA: architecture and requirements in SGP.21, technical details in SGP.22 (RSP Technical Specification, version 3.1 from December 2023). The key elements are:
- eUICC: the chip in the device, which can hold several operator profiles;
- profile: the set of data and applications that used to live on the physical card, including the ICCID and the network access keys;
- SM-DP+ (Subscription Manager Data Preparation): the server that prepares the profile, binds it to a specific eUICC and releases it for download;
- SM-DS (Discovery Server): an optional server through which the device learns that a profile is waiting for it;
- LPA (Local Profile Assistant): software on the device that downloads the profile, shows the user consent screens and switches profiles.
The specification names the interfaces between these elements. For an operator's IT team two matter most: ES2+ between the operator's systems and the SM-DP+, and ES9+ between the LPA and the SM-DP+.
How a profile download works
A simplified flow for an order with an activation code:
- The customer orders an eSIM in the online store, a retail store or the app. BSS creates the order and reserves a number.
- The operator's system calls `ES2+.DownloadOrder` on the SM-DP+, which allocates a profile, optionally bound right away to a specific device identifier, the EID.
- After `ES2+.ConfirmOrder` the SM-DP+ returns the data needed for the activation code. The profile can require an additional confirmation code.
- The customer scans the QR code or types the code in. The LPA connects to the SM-DP+ over ES9+, device and server authenticate each other, and the profile is downloaded and installed.
- The SM-DP+ sends the operator progress notifications. After installation the user or the device enables the profile, and the network sees the new card.
On the SM-DP+ side the profile moves through states defined in the specification, including `Available`, `Allocated`, `Linked`, `Confirmed`, `Released`, `Downloaded`, `Installed` and `Error`. Operator systems should track these states, because they determine what to show the customer and when to issue the first bill.
What eSIM changes in operator systems
| Area | Physical card | eSIM |
|---|---|---|
| Logistics | card stock, shipping, returns | a profile pool on the SM-DP+, nothing to ship |
| Ordering | assigning the card serial number | ES2+ calls and handling their errors |
| Channels | store pickup or courier | activation in minutes from the app or website |
| Customer care | card swap in a store | re-download, transfer to a new device |
| Security | identity check when the card is handed over | identity check before the activation code is issued |
| Inventory | cards in the warehouse | profile states and ICCID to EID bindings |
Most of the work usually lands in BSS: new order states, new failure reasons and handling the “code issued, profile not downloaded” case. How an order travels from BSS into the network is covered in the article on service activation and provisioning.
Device change and security
SGP.22 version 3 describes device change and profile recovery procedures (Device Change and Profile Recovery). The operator decides whether the same profile moves to the new device or a new one is issued and the old one deleted. That decision determines what happens to the number when a customer sells the old phone without deleting the profile.
Issuing a new profile for an existing number is in practice a SIM swap. It is the same fraud vector as number porting: whoever takes over the number also gets the bank's SMS codes. That is why the most important control sits before `ES2+.DownloadOrder`: strong customer authentication in the app, restrictions for remote channels, a notification sent to the current number. More on this risk in the article on number portability and in the scenario on testing the SIM swap process.
eSIM in IoT devices
For meters, sensors and industrial modules the GSMA defined a separate model: architecture in SGP.31, technical details in SGP.32 (eSIM IoT Technical Specification). Instead of an app with a screen and user consent there is an eIM (eSIM IoT remote Manager), which manages profiles on many devices remotely, and an IPA (IoT Profile Assistant) in the device or in the eUICC itself. For the operator this means bulk operations on thousands of devices and different failure scenarios, for example losing coverage in the middle of a download.
How to test eSIM
The test plan should cover:
- the happy path in every channel: app, website, store, call center;
- ES2+ errors: profile unavailable, EID mismatch, timeout, retrying the same order;
- the activation code: used twice, expired, with a wrong confirmation code, scanned on a device without an eUICC;
- interrupted downloads: network loss, the app being closed, no room for another profile;
- the lifecycle: disable, delete, re-download, device change, deactivating the number in BSS while a profile exists;
- state consistency: do the profile state on the SM-DP+, the order state in BSS and the service state in the network match after every step;
- load: a new phone launch can concentrate thousands of activations into a few hours, as in the scenario on performance testing an activation system.
Device testing needs a pool of phones with an eUICC and a test SM-DP+ from the vendor. Some scenarios are worth automating on emulators and in API tests, and some should stay on physical devices, as we discuss in the article on mobile app testing.
Questions and answers
What is the difference between eSIM and eUICC?
The eUICC is the physical chip in the device that can store operator profiles and accept new ones remotely. eSIM is the everyday name for the whole technology, and often for a single profile on that chip. When talking to a vendor it pays to be precise: eUICC, profile and SM-DP+ are three different things with different owners.
Can one phone hold several eSIM profiles?
Yes, an eUICC can store several profiles, for example a personal and a work one, or a domestic and a travel one. How many can be active at the same time depends on the device and the specification version. For the operator this means a customer can have the operator's profile disabled but still installed, and systems have to tell those states apart.
What happens to an eSIM when you change phones?
It depends on the operator and the device. The GSMA specification version 3 describes a device change procedure, but the operator chooses whether to transfer the profile or issue a new one and invalidate the old one. Most often the customer requests a new code in the app or in a store, and the operator checks their identity again before issuing it.
Which GSMA specifications define eSIM?
For consumer devices: SGP.21 (architecture and requirements) and SGP.22 (technical specification). For IoT devices without a user interface: SGP.31 and SGP.32. The older M2M model, built on a different split of server roles, is covered by a separate family of specifications. You choose the versions together with the SM-DP+ vendor and the device makers.