Ts 131115v090000p PDF
Ts 131115v090000p PDF
Ts 131115v090000p PDF
0 (2010-01)
Technical Specification
Reference
RTS/TSGC-0631115v900
Keywords
GSM, LTE, UMTS
ETSI
Important notice
The present document may be made available in more than one electronic version or in print. In any case of existing or
perceived difference in contents between such versions, the reference version is the Portable Document Format (PDF).
In case of dispute, the reference shall be the printing on ETSI printers of the PDF version kept on a specific network drive
within ETSI Secretariat.
Users of the present document should be aware that the document may be subject to revision or change of status.
Information on the current status of this and other ETSI documents is available at
http://portal.etsi.org/tb/status/status.asp
If you find errors in the present document, please send your comment to one of the following services:
http://portal.etsi.org/chaircor/ETSI_support.asp
Copyright Notification
ETSI
3GPP TS 31.115 version 9.0.0 Release 9 2 ETSI TS 131 115 V9.0.0 (2010-01)
Pursuant to the ETSI IPR Policy, no investigation, including IPR searches, has been carried out by ETSI. No guarantee
can be given as to the existence of other IPRs not referenced in ETSI SR 000 314 (or the updates on the ETSI Web
server) which are, or may be, or may become, essential to the present document.
Foreword
This Technical Specification (TS) has been produced by ETSI 3rd Generation Partnership Project (3GPP).
The present document may refer to technical specifications or reports using their 3GPP identities, UMTS identities or
GSM identities. These should be interpreted as being references to the corresponding ETSI deliverables.
The cross reference between GSM, UMTS, 3GPP and ETSI identities can be found under
http://webapp.etsi.org/key/queryform.asp.
ETSI
3GPP TS 31.115 version 9.0.0 Release 9 3 ETSI TS 131 115 V9.0.0 (2010-01)
Contents
Intellectual Property Rights ................................................................................................................................2
Foreword.............................................................................................................................................................2
Foreword.............................................................................................................................................................4
Introduction ........................................................................................................................................................4
1 Scope ........................................................................................................................................................5
2 References ................................................................................................................................................5
3 Definitions and abbreviations ...................................................................................................................6
3.1 Definitions .......................................................................................................................................................... 6
3.2 Abbreviations ..................................................................................................................................................... 6
4 Implementation for SMS-PP ....................................................................................................................6
4.1 Structure of the UDH in a secured Short Message Point to Point ...................................................................... 6
4.2 Structure of the Command Packet contained in a Single Short Message Point to Point .................................... 7
4.3 A Command Packet contained in Concatenated Short Messages Point to Point ................................................ 8
4.4 Structure of the Response Packet ....................................................................................................................... 9
4.5 A Response Packet contained in Concatenated Short Messages Point to Point ............................................... 10
5 Implementation for SMS-CB .................................................................................................................11
5.1 Structure of the CBS page in the SMS-CB Message ........................................................................................ 11
5.2 A Command Packet contained in a SMS-CB message..................................................................................... 11
5.3 Structure of the Response Packet for a SMS-CB Message .............................................................................. 12
6 Implementation for USSD ......................................................................................................................12
6.1 Structure of the Command Packet contained in a Single USSD Message........................................................ 12
6.2 Structure of the Command Packet contained in concatenated USSD Messages .............................................. 13
6.3 Structure of the Response Packet ..................................................................................................................... 13
6.4 Structure of the Response Packet contained in concatenated USSD Messages ............................................... 14
7 Specific Response Status Codes .............................................................................................................15
8 Implementation for HTTP ......................................................................................................................15
Annex A (normative): USSD String format .......................................................................................16
Annex B (informative): Change History ..............................................................................................18
History ..............................................................................................................................................................19
ETSI
3GPP TS 31.115 version 9.0.0 Release 9 4 ETSI TS 131 115 V9.0.0 (2010-01)
Foreword
This Technical Specification has been produced by the 3rd Generation Partnership Project (3GPP).
The contents of the present document are subject to continuing work within the TSG and may change following formal
TSG approval. Should the TSG modify the contents of the present document, it will be re-released by the TSG with an
identifying change of release date and an increase in version number as follows:
Version x.y.z
where:
Y the second digit is incremented for all changes of substance, i.e. technical enhancements, corrections,
updates, etc.
z the third digit is incremented when editorial only changes have been incorporated in the document.
Introduction
The present document is the result of a split of TS 23.048 Release 5 between the generic part and the bearers specific
application. The generic part has been transferred to SCP. The present document is the bearers specific part.
ETSI
3GPP TS 31.115 version 9.0.0 Release 9 5 ETSI TS 131 115 V9.0.0 (2010-01)
1 Scope
The present document specifies the structure of the Secured Packets in implementations using Short Message Service
Point to Point (SMS-PP), Short Message Service Cell Broadcast (SMS-CB), Unstructured Supplementary Service Data
(USSD) and and Hyper Text Transfer Protocol (HTTP) based on ETSI TS 102 225 [9].
The structure of the Secured Packets shall comply with the one defined in ETSI TS 102 225 [9]. The present document
only contains additional requirements or explicit limitations for SIM/USIM applications.
It is applicable to the exchange of secured packets between an entity in a 3G or GSM PLMN and an entity in the
(U)SIM.
Secured Packets contain application messages to which certain mechanisms according to ETSI TS 102 224 [2] have
been applied. Application messages are commands or data exchanged between an application resident in or behind the
3G or GSM PLMN and on the (U)SIM. The Sending/Receiving Entity in the 3G or GSM PLMN and the UICC are
responsible for applying the security mechanisms to the application messages and thus turning them into Secured
Packets.
2 References
The following documents contain provisions which, through reference in this text, constitute provisions of the present
document.
• References are either specific (identified by date of publication and/or edition number or version number) or
non-specific.
• For a non-specific reference, the latest version applies. In the case of a reference to a 3GPP document (including
a GSM document), a non-specific reference implicitly refers to the latest version of that document in the same
Release as the present document.
[2] ETSI TS 102 224 V8.0.0: "Smart Cards; Security mechanisms for UICC based Applications –
Functional requirements".
[3] 3GPP TS 23.040: "Technical realization of the Short Message Service (SMS)".
[4] 3GPP TS 24.011: "Point-to-Point (PP) Short Message Service (SMS) support on mobile radio
interface".
[5] ETSI TS 101 220 "Smart Cards; ETSI numbering system for telecommunication application
providers".
[7] 3GPP TS 24.012: "Short Message Service Cell Broadcast (SMSCB) support on the mobile radio
interface".
[9] ETSI TS 102 225 V9.0.0: "Smart Cards; Secured packet structure for UICC based applications".
[10] 3GPP TS 24.090: "Unstructured Supplementary Service Data (USSD) – Stage 3".
ETSI
3GPP TS 31.115 version 9.0.0 Release 9 6 ETSI TS 131 115 V9.0.0 (2010-01)
3.1 Definitions
For the purposes of the present document, the terms and definitions given in ETSI TS 102 225 [9] and the following
apply:
Message Identifier: two-octet field used to identify the source and type of the message
Page Parameter: single octet field used to represent the CBS page number in the sequence and the total number of
pages in the SMS-CB message
Short Message: information that may be conveyed by means of the SMS Service as defined in TS 23.040 [3].
USSD message: information that may be conveyed in the USSD-String field of a Facility message as defined in
TS 24.090 [10].
3.2 Abbreviations
For the purpose of the present document, the abbreviations given in ETSI TS 102 225 [9] and the following apply:
ETSI
3GPP TS 31.115 version 9.0.0 Release 9 7 ETSI TS 131 115 V9.0.0 (2010-01)
However, in the case of a Response Packet originating from the UICC, due to the inability of the UICC to indicate to a
ME that the UDHI bit should be set, the Response Packet SMS will not have the UDHI bit set, and the Sending Entity
shall treat the Response Packet as if the UDHI bit was set.
The generalised structure of the UDH in the Short Message element is contained in the User Data part of the Short
Message element and is described in TS 23.040 [3]. The Command Packet and the Response Packet are partially
mapped into this UDH structure.
Information Element Identifiers (IEI's) values range '70 – 7F' are reserved in TS 23.040 [3] for use in the present
document and allocated as follows:
If a Response Packet (Response Header + Data) is too large to be contained in a single Short Message (including the
Response Header), it shall be concatenated according to TS 23.040 [3].
If it is indicated in the SPI2 of a Command Packet to send back a PoR using SMS-DELIVER-REPORT and if the
Response Packet is too large to be contained in a single SMS-DELIVER-REPORT – TP element, then:
- One single Response Packet shall be sent back to the SE using SMS-DELIVER-REPORT. This Response
Packet:
- Shall contain the Response Status Code set to "Actual response data to be sent using SMS-SUBMIT".
- The security applied to this Response Packet shall be the one indicated in the SPI2 of the Command Packet.
- This shall be followed by a complete Response Packet, contained in one SMS-SUBMIT element or in a
concatenated Short Message composed of several SMS-SUBMIT elements.
The relationship between the Command Packet and its inclusion in the UDH structure of a single Short Message
defined in TS 23.040 [3] is as following:
- CPI is mapped to IEIa defined in TS 23.040 [3] and shall be set to '70'.
- IEDa defined in TS 23.040 [3] shall be a null field and its length IEIDLa shall be set to '00'.
The following Table 1 indicates the Command Packet contained in a single SMS-PP. It is a particular implementation
for single SMS-PP of the generic Command Packet structure described in ETSI TS 102 225 [9].
ETSI
3GPP TS 31.115 version 9.0.0 Release 9 8 ETSI TS 131 115 V9.0.0 (2010-01)
NOTE: Whilst not absolutely necessary in this particular instance, this field is necessary for the case where
concatenated Short Message is employed (see subclause 4.3).
It is recognised that most checksum algorithms require input data in modulo 8 length. In order to achieve a modulo 8
length of the data before the RC/CC/DS field in the Command Header the Length of the Command Packet and the
Length of the Command Header shall be included in the calculation of RC/CC/DS if used. These fields shall not be
ciphered.
The SPI shall be coded as specified in ETSI TS 102 225 [9]. The b6 of the second octet is used for SMS only and shall
be coded as followed:
Second Octet:
b8 b7 b6 b5 b4 b3 b2 b1
The relationship between the Command Packet and its inclusion in the structure of a concatenated Short Message
defined in TS 23.040 [3] is as following:
- The entire Command Packet including the Command Header shall be separated into its component concatenated
parts. The structure of the Command Packet contained in a concatenated SMS-PP is as described in Table 1 of
this specification.
- The first Short Message shall contain the Concatenation Control Header as defined in TS 23.040 [3] identified
by IEIx and the Command Packet Identifier (CPI) in the User Data Header. The relationship between the
Command Packet and its inclusion in the structure of the first concatenated Short Message is as described in
clause 4.2 for a single Short Message.
ETSI
3GPP TS 31.115 version 9.0.0 Release 9 9 ETSI TS 131 115 V9.0.0 (2010-01)
NOTE: The ordering of the various elements of the UDH defined in TS 23.040 [3] is not important.
Figure 2009In each subsequent Short Message in the concatenated series, the Concatenation Control Header shall be
present. The Concatenation Control Header shall be set as defined in TS 23.040[3]. The CPI, CPL and
Command Header shall not be present.
If the data is ciphered, then it is ciphered as described above, before being broken down into individual concatenated
elements. The Concatenation Control Header of the UDH in each SM shall not be ciphered.
In order to achieve a modulo 8 length of the data before the RC/CC/DS field in the Command Header, the Length of the
Command Packet and the Length of the Command Header shall be included in the calculation of RC/CC/DS if used.
These fields shall not be ciphered.
The SPI shall be coded as specified in TS 102 225 [9]. The b6 of the second octet is used only for SMS and shall be
coded as described for a single short message.
An example illustrating the relationship between a Command Packet split over a sequence of three Short Messages is
shown below.
- retrieved by the ME from the UICC, and included in the User-Data part of the SMS-DELIVER-REPORT
returned to the network; or
- fetched by the ME from the UICC after the Send Short Message proactive command.
RPI identifies the Response Packet and indicates that the first portion of the SM (8 bit data) contains the Response
Packet Length (RPL), the Response Header Length (RHL) followed by the remainder of the Response Header: the
Secured Data follows on immediately as the remainder of the SM element.
ETSI
3GPP TS 31.115 version 9.0.0 Release 9 10 ETSI TS 131 115 V9.0.0 (2010-01)
The relationship between the Response Packet and its inclusion in the UDH structure of a single Short Message defined
in TS 23.040 [3] is as following:
- RPI is mapped to IEIa defined in TS 23.040 [3] and shall be set to '71'.
- IEDa defined in TS 23.040 [3] shall be a null field and its length IEIDLa shall be set to '00'.
The following Table 3 indicates the Response Packet contained in a single SMS-PP. It is a particular implementation for
single SMS-PP of the generic Response Packet structure described in ETSI TS 102 225 [9].
NOTE: This field is not absolutely necessary but is placed here to maintain compatibility with the structure of the
Command Packet when included in a SMS-SUBMIT or SMS-DELIVER.
In order to achieve a modulo 8 length of the data before the RC/CC/DS field in the Response Header, the Length of the
Response Packet, the Length of the Response Header and the three preceding octets (UDHL, IEIa and IEIDLa defined
in TS 23.040 [3]) shall be included in the calculation of RC/CC/DS if used. These fields shall not be ciphered.
- The first Short Message shall contain the Concatenation Control Header as defined in TS 23.040 [3] identified
by IEIxand the Response Packet Identifier (RPI) in the User Data Header. The relationship between the
Response Packet and its inclusion in the structure of the first concatenated Short Message is as described in
clause 4.4 for a single Short Message.
NOTE: The ordering of the various elements of the UDH defined in TS 23.040 [3] is not important.
Figure 2009In each subsequent Short Message in the concatenated series, the Concatenation Control Header shall be
present. The concatenation Control Header shall be set as defined in TS 23.040 [3]. The RPI, RPL and
Response Header shall not be present.
ETSI
3GPP TS 31.115 version 9.0.0 Release 9 11 ETSI TS 131 115 V9.0.0 (2010-01)
If the data is ciphered, then it is ciphered as specified in ETSI TS 102 225 [9], before being broken down into individual
concatenated elements. The concatenation Control Header of the UDH in each SM shall not be ciphered.
In order to achieve a modulo 8 length of the data before the RC/CC/DS field in the Response Header, the RPL, the RHL
and three octets set to '02' '71' '00', which precede the RPL, shall be included in the calculation of RC/CC/DS if used.
These fields shall not be ciphered.
The 6-octet header is used to indicate the message content as defined in TS 23.041 [6]. This information is required to
be transmitted unsecured in order for the ME to handle the message in the correct manner (e.g. interpretation of the
DCS).
A range of values has been reserved in TS 23.041 [6] to indicate SMS-CB Data Download messages that are secured
and unsecured. A subset of these values is used to indicate the Command Packet for CBS messages.
- CPI coded on 2 octets is mapped to MID defined in TS 23.041 [6] and the range is from (hexadecimal) '1080' to
'109F'. This range is reserved in TS 23.041 [6].
NOTE: Generally, the CPI is coded on 1 octet, as specified in table 1 of ETSI TS 102 225 [9]. However, the CPI
for the SMS-CB message is coded on 2 octets as the values reserved in TS 23.041 [6] to identify the
Command Packet are MID values which are coded on 2 octets.
Figure 2009 SN, DCS, PP shall be coded as defined in TS 23.041 [6] for GSM Cell Broadcast.
The structure of the Command Packet contained in the Content of Message of the first CBS page is as described in
Table 1 of this specification.
It is recognised that most checksum algorithms require input data in modulo 8 length. In order to achieve a modulo 8
length of the data before the RC/CC/DS field in the Command Header the Length of the Command Packet and the
ETSI
3GPP TS 31.115 version 9.0.0 Release 9 12 ETSI TS 131 115 V9.0.0 (2010-01)
Length of the Command Header shall be included in the calculation of RC/CC/DS if used. These fields shall not be
ciphered.
Securing of the complete CBS message is achieved outside the 3G and GSM specifications by the Sending Entity. The
Secured CBS message is formatted in accordance with the 3G and GSM specifications and transmitted to the MS as
CBS pages. The CBS pages are received by the ME and sent directly to the UICC, by analysing the MID value. The
UICC shall then reassemble, decrypt and process the message.
An example illustrating the relationship between a Command Packet split over a sequence of three SMS-CB pages is
shown below.
First CBS page in the sequence Second CBS page Third and final CBS page
In the above figure, Header = 6 Octet header as defined in TS 23.041 [6] (i.e. SN, MID, DCS and PP) and
CH = Command Header includes here the CPL, CHL, SPI to RC/CC/DS.
The Data Coding Scheme of the USSD String (as defined in TS 23.038 [8]) shall be set to 0x96 (DCS = '10010110') to
indicate that data is binary (8 bit data), and formatted according to annex X. In USSD Application mode, which uses an
8-bit character set, the maximum length of the USSD String field is 160 bytes.
Command and Response packets exceeding 159 bytes shall be segmented as described in sections 6.2 and 6.4.
The Command Packet shall be coded as the generic Command Packet described in TS 102 225 [9].
In the Command Packet, the Command Packet Identifier (CPI) value is '03' and the Command Header Identifier (CHI)
is a Null field.
CPI, CPL and CHL shall be included in the calculation of the RC/CC/DS.
ETSI
3GPP TS 31.115 version 9.0.0 Release 9 13 ETSI TS 131 115 V9.0.0 (2010-01)
- The entire Command Packet including the Command Header shall be separated into its component concatenated
parts.
- The Command Packet is handled as a Concatenated USSD Message as described in annex X of the present
document.
- The Command Packet Header will only be present in the first segment of a concatenated message.
If the data is ciphered, then it is ciphered as described above, before being broken down into individual concatenated
elements.
CPI, CPL and CHL shall be included in the calculation of the RC/CC/DS.
An example illustrating a Command Packet split over a sequence of three messages is shown below.
The Response Packet shall be coded as the generic Response Packet described in TS 102 225 [9].
In the Response Packet, the Response Packet Identifier (RPI) value is '04' and the Response Header Identifier (RHI) is a
Null field.
RPI, RPL and RHL shall be included in the calculation of the RC/CC/DS.
ETSI
3GPP TS 31.115 version 9.0.0 Release 9 14 ETSI TS 131 115 V9.0.0 (2010-01)
- The entire Response Packet including the Response Header shall be separated into its component concatenated
parts.
- The Response Packet is handled as a Concatenated USSD Message as described in annex X of the present
document.
- The Response Packet Header will only be present in the first segment of a concatenated message.
If the data is ciphered, then it is ciphered as described above, before being broken down into individual concatenated
elements.
RPI, RPL and RHL shall be included in the calculation of the RC/CC/DS.
An example illustrating a Response Packet split over a sequence of three messages is shown below.
If it is indicated in the SPI2 of a Command Packet to send back a PoR and if the Response Packet is too large to be
contained in a single USSD String, then:
- One single Response Packet shall be sent back to the SE using the Return Result Component contained in the
subsequent Facility message. This Response Packet:
- Shall contain the Response Status Code set to '0C' ('Actual response data to be sent using a
ProcessUnstructuredSS-Request invoke component (i.e. using SEND USSD proactive command) ').
- The security applied to this Response Packet shall be the one indicated in the SPI2 of the Command Packet.
- This shall be followed by a complete Response Packet, contained in a concatenated USSD Message as defined
above
ETSI
3GPP TS 31.115 version 9.0.0 Release 9 15 ETSI TS 131 115 V9.0.0 (2010-01)
ETSI
3GPP TS 31.115 version 9.0.0 Release 9 16 ETSI TS 131 115 V9.0.0 (2010-01)
Annex A (normative):
USSD String format
For the purpose of UICC-based application, the USSD String shall be coded as follows:
Header
- A mandatory PFI field, which is coded on 1 byte. The PFI contains information on the format of the USSD
String.
- An optional CCF field, which is coded on 3 bytes. The CCF field presence is indicated by the PFI.
B8 b7 b6 b5 b4 b3 b2 b1
The usage of CCF field allows USSD Messages to be concatenated to form a longer message. The CCF field contains
information set by the application so that the receiving entity is able to re-assemble the received Ums in the correct
order. Additionally, the CCF contains a reference number, which allows the receiving entity to discriminate between
messages. The CCF octets shall be coded as follows.
This octet shall contain a modulo-256 counter indicating the reference number for a particular USSD
Message, Concatenated or not. This reference number shall remain constant for every USSD Message
that makes up a particular Concatenated USSD Message.
This octet shall contain a value in the range 1 to 255 indicating the total number of USSD Messages
constituting the Concatenated USSD Message. The value shall start at 1 and remain constant for every
USSD Message that makes up the Concatenated USSD message. If the value is zero then the receiving
entity shall ignore the whole USSD Message.
This octet shall contain a value in the range 1 to 255 indicating the sequence number of a particular USSD
Message within the Concatenated USSD Message. The value shall start at 1 and increment by one for
every USSD Message sent within the Concatenated USSD Message. If the value is zero or the value is
greater than the value in octet 2 then the receiving entity shall ignore the whole USSD Message.
The UM field contains the actual application data (e.g. secure Command/Response Packets coded according to the
present document).
ETSI
3GPP TS 31.115 version 9.0.0 Release 9 17 ETSI TS 131 115 V9.0.0 (2010-01)
In each USSD String in a concatenated series, the PFI and CCF fields shall be present.
ETSI
3GPP TS 31.115 version 9.0.0 Release 9 18 ETSI TS 131 115 V9.0.0 (2010-01)
Annex B (informative):
Change History
History Table
Date Meeting Tdoc CR Rev Rel Cat Changes Old New
2005-06 CP-28 CP-050141 0005 - Rel-7 B Introduction of secured data download for USSD 6.50. 7.0.0
2007-06 CP-36 CP-070301 0007 1 Rel-7 F Correction of the reference to ETSI TS 102 225 7.0.0 7.1.0
2008-12 CP-42 CP-080907 0008 1 Rel-8 B Introduction of AES and deprecation of DES 7.1.0 8.0.0
2009-03 - - - - - - Figure 2 fixed 8.0.0 8.0.1
2009-12 CT-46 CP-091011 0010 1 Rel-8 F References update 8.0.1 8.1.0
2009-12 CT-46 CP-090995 0011 1 Rel-9 B Secured message structure for HTTP 8.1.0 9.0.0
ETSI
3GPP TS 31.115 version 9.0.0 Release 9 19 ETSI TS 131 115 V9.0.0 (2010-01)
History
Document history
V9.0.0 January 2010 Publication
ETSI