TAC Server and IPA Communication Modes & Protocols
The TAC eIM and IPA communicates with each other using ESipa interface as defined in GMSA SGP.32 specification.
1. eIM Package Transfer Modes
The eIM package transfer between the TAC server and the IPA can be either in Retrieval mode or Injection mode or Shouldertap mode followed by Retrieval mode.
1.1. Retrieval Mode
This procedure is used & initiated by the IPA to retrieve any pending eIM Package from the eIM. When a triggering condition occurs—such as Power On, Limited Service, or MCC/MNC change—the IPA initiates the polling to the TAC server with getEimPackage request to retrieve the eIM package. Most of the retrieval will happen in regular polling interval based on the polling period configured in the IPAe.
The following sequence diagram explains this procedure in detail:
Start Conditions:
The IoT Device can trigger the IPA through an internal event (e.g., a timer expiration) without any knowledge about pending eIM Package.
The IPA has the address (configured or retrieved using GetEimConfigurationData) of the Associated eIM. The IPA MAY have retrieved from the eUICC the Connectivity Parameters of the currently enabled Profile.
Procedure:
-
The eIM and IPA establish a secure connection as defined in section 3.1.2.
-
The IPA calls ESipa.GetEimPackage function including EID.
-
The eIM fetches pending eIM Package(s) for the EID.
-
The eIM returns the eIM Package to the IPA.
-
The IPA processes the eIM Package.
If the IPA sends eIM Package Result together with Notifications, or if the IPA needs acknowledgements of sending eIM Package Result and optionally Notifications, the procedure continues in step (6). Otherwise, the procedure continues in step (9).
-
The IPA calls ESipa.ProvideEimPackageResult function including the eIM Package Result and optionally one or more Notifications.
-
The eIM processes the eIM Package Result and manages the eIM Packages pending in the queue for the eUICC.
-
The eIM acknowledges the reception of the eIM Package Result and optionally Notifications by returning the corresponding sequence numbers.
-
The IPA calls ESipa.HandleNotification function comprising either the eIM Package Result or a Notification.
-
The eIM processes the eIM Package Result and manages the eIM Packages pending in the queue for the eUICC.
-
The eIM returns OK.
The IPA MAY repeat the above procedure until the eIM response is noEimPackageAvailable.
1.2. Injection Mode
This procedure is used & initiated by the eIM to inject eIM Package to the IPA. The TAC server sends(injects) eIM package to the IPA without waiting for getEimPackage polling request from IPA.
The following sequence diagram explains this procedure in detail:
Start Conditions:
The eIM and the IPA are part of a whole system responsible of maintaining the communication between the eIM and the IPA. The eIM and the IPA do not communicate directly with each other. Instead, an intermediate server like LwM2M server or MQTT broker manages the communication and message transfer between the eIM and IPA.
Procedure:
-
The eIM and IPA establish a secure connection.
-
The eIM calls ESipa.TransferEimPackage function to the IPA comprising the eIM Package.
An intermediate server like MQTT broker or LwM2M server is used in between the eIM and the IPA for message transfer. -
The IPA processes the eIM Package.
-
The IPA returns the eIM Package Result to the eIM.
1.3. Shouldertap mode
This procedure is used & initiated by the eIM. The IPA is first informed by the TAC server via a push notification called as Shouldertap message instructing the IPA to initiate the polling with the TAC server. Upon receipt of the shouldertap message, the IPA triggers the getEimPackage to the eIM initiating the further communication in Retrieval mode.
The TAC server sends shouldertap message either via OTA or MQTT broker depending on the configurations. The Shouldertap message via MQTT is delivered to the IPAe companion which then instructs the IPA to trigger the getEimPackage. An IPAe companion is the Thales proprietary application developed to receive shouldertap message from the TAC server via MQTT channel. So the Shouldertap via MQTT is applicable for IoT devices with thales IPAe companion installed on them.
1.3.1. Shouldertap mode with SMS
The TAC server supports configuring multiple Shouldertap servers to accommodate different deployment or operational requirements. Each configured Shouldertap server is uniquely identified by a label.
When an order is submitted with preferred_mode set to SHOULDER_TAP in communication_parameters, the TAC server selects the Shouldertap server according to the following priority:
-
If the order specifies a Shouldertap server label, TAC server validates the label and uses the corresponding configured Shouldertap server. If the label is invalid or not found, the request is rejected.
-
If no label is specified in the order, TAC server checks whether a Shouldertap server is associated with the target eUICC and uses the configured server, if available.
-
If no Shouldertap server is associated with the target eUICC, TAC server uses the tenant’s configured default Shouldertap server.
| A prerequisite is that the OTA platform has the required SCP80 keys for the target eID to generate the Shouldertap SMS. These keys are required to perform the SCP80 0348 SMS formatting. |
The following sequence describes the communication flow when an order is processed using Shouldertap mode with SMS:
-
TAC server persists the submitted order in a pending state for retrieval by the IPA.
-
TAC server selects the configured OTA server based on the ShoulderTap server configuration.
-
TAC server invokes the OTA API to generate and send the Shouldertap SMS to the device.
-
The OTA platform retrieves the required subscriber information, formats the SMS and delivers it through the SMS-C.
-
Upon receiving the Shouldertap SMS, the IPA initiates the ESipa
getEimPackagepolling request to TAC server. -
TAC server returns the pending eIM Package to the IPA, and the remaining communication follows the Retrieval Mode procedure.
2. Communication Protocols
The TAC server supports following transport protocols for communication with IPA:
-
HTTPs
-
COAP
-
MQTT
-
LwM2M
A secure connection must be established between the TAC server and IPA ensuring confidentiality, integrity, and authenticity for message transfer.
When using HTTPs or COAPs, a secure connection with server authentication is used. This means that only the eIM is authenticated by the IPA.
With other underlying protocols like MQTT or LwM2M a secure connection needs to be established with the server responsible to transfer messages between the IPA and the TAC server.
| With Thales IPAe only HTTPs is available. |
| LwM2M and MQTT require an integration of an IPAd with the client stack in the device. |
The next sub-sections provides high level view on message transfer between the TAC server and the IPA with different protocols and supported mode whether retrieval or injection.
2.1. HTTPs with Retrieval Mode
-
The IPA initiates the request with the TAC server using the ESipa getEimPackage polling request over http channel upon some triggering event in the device.
-
The TAC server after receiving the getEimPackage polling request, checks for any pending order to be executed on the device and returns the eIM package command to IPA for execution.
-
The IPA executes the received eIM package command on the eUICC and returns the eIM package result to the TAC server.
-
The TAC server sends acknowledgement for the received result from IPA. If no more orders to be executed, then TAC server returns noEimPackage to IPA to terminate the polling session.
2.2. MQTT with Retrieval Mode
-
MQTT protocol is based on Publish-Subscribe model and the message transfer between IPA and the TAC server is done via MQTT broker.
-
The IPA and the TAC server use topics on the MQTT broker to send and receive messages.
-
ipa-to-eim: Topic used by the IPA to publish the message on the MQTT broker. The TAC server subscribes to this topic to receive the IPA message from MQTT broker. -
eim-to-ipa/{eid}: Topic used by the TAC server to publish the eIM package message on the MQTT broker. The IPA subscribes to this topic to receive eIM package message from MQTT broker.
-
-
The IPA publishes the ESipa getEimPackage polling message to topic
ipa-to-eimon the MQTT broker. -
MQTT broker delivers the received IPA message to the TAC server.
-
The TAC server papares the eIM package command for the order to be executed on the IoT device and publishes it to topic
eim-to-ipa/{eid}on the MQTT broker. -
The MQTT broker delivers the received eIM package command message to the IPA. The IPA further transmits the command package to the eUICC for execution.
-
The further messages between IPA and the TAC server are transferred in same way via MQTT broker.
-
If no more orders to be executed, then TAC server publishes noEimPackage to topic eim-to-ipa/{eid}` on the MQTT broker which is then delivered IPA.
-
The IPA upon receipt of noEimPackage from the TAC server stops polling until next triggering event.
2.3. MQTT with Injection Mode
-
The IPA and the TAC server use topics on the MQTT broker to send and receive messages.
-
ipa-to-eim: Topic used by the IPA to publish the message on the MQTT broker. The TAC server subscribes to this topic to receive the IPA message from MQTT broker. -
eim-to-ipa/{eid}: Topic used by the TAC server to publish the eIM package message on the MQTT broker. The IPA subscribes to this topic to receive eIM package message from MQTT broker.
-
-
The IPA publishes the ESipa getEimPackage polling message to topic
ipa-to-eimon the MQTT broker. -
MQTT broker delivers the received IPA message to the TAC server.
-
The TAC server prepares the eIM package command for the order to be executed on the IoT device and publishes it to topic
eim-to-ipa/{eid}on the MQTT broker without waiting for the getEimPackage polling message from IPA. -
The MQTT broker delivers the received eIM package command message to the IPA. The IPA further transmits the eIM command package to the eUICC for execution.
-
After execution of the eIM package command and result from the eUICC, the IPA publishes the eIM package result to topic
ipa-to-eimon the MQTT broker. -
The MQTT broker delivers the received eIM package result to the TAC server.
-
The TAC server evaluates the received result and returns the acknowledgement of received result to topic
eim-to-ipa/{eid}on the MQTT broker which is then delivered to IPA. -
The further messages between Ithe PA and the TAC server are transferred in same way via MQTT broker.
2.4. LwM2M with Retrieval Mode
-
The IPA and the TAC server use LwM2M server to send and receive messages.
-
The TAC and LwM2M server communicates over HTTP protocol. The IPA and LwM2M server use LwM2M protocol to send and receive messages.
-
The IPA sends ESipa getEimPackage polling message to the LwM2M server via LwM2M client on the IoT device.
-
The LwM2M server delivers the received IPA message to the TAC server registered for callback with LwM2M server.
-
The TAC server prepares the eIM package command for the order to be executed on the IoT device and returns it to the LwM2M server.
-
The LwM2M server delivers the received eIM package command message to the LwM2M client on the IoT device which forwards it to the IPA.
-
The IPA upon execution of the eIM package command sends the Result to the LwM2M server via LwM2M client.
-
The LwM2M server delivers the received eIM package Result from IPA to the TAC server.
-
The TAC server evaluates the received result and returns the acknowledgement of received result to the LwM2M server which is then forwarded to the IPA.
-
The IPA upon receiving the acknowledgement from the TAC server returns the acknowledgement receipt message to the TAC server via LwM2M server.
-
If there are any notifications from IPA to the TAC server, they are sent same way via the LwM2M server.
2.5. LwM2M with Injection Mode
-
The IPA and the TAC server use LwM2M server to send and receive messages.
-
The TAC and LwM2M server communicates over HTTP protocol. The IPA and LwM2M server use LwM2M protocol to send and receive messages.
-
The TAC server prepares the eIM package command for the order to be executed on the IoT device and sends it to the LwM2M server without waiting for the getEimPackage polling message from IPA.
-
The LwM2M server delivers the received eIM package command message to the LwM2M client on the IoT device which forwards it to the IPA.
-
The IPA upon execution of the eIM package command sends the Result to the LwM2M server via LwM2M client.
-
The LwM2M server delivers the received eIM package Result from IPA to the TAC server.
-
The TAC server evaluates the received result and returns the acknowledgement of received result to the LwM2M server which is then forwarded to the IPA.
-
The IPA upon receiving the acknowledgement from the TAC server returns the acknowledgement receipt message to the TAC server via LwM2M server.
