Professional Documents
Culture Documents
This tutorial presents an overview of the Global System for Mobile Communications Short Message Service from the viewpoint of implementing
new telematic services. SMS offers the users of GSM networks the ability to exchange alphanumeric messages up to the limit of 160 characters.
The tutorial is motivated by an acute absence of research publications in this field. The information gathered in the tutorial was required
considering the increasing potential SMS offers for integration with existing messaging services and its ability to offer a successful replacement
for the Transmission Control and Internet Protocols as far as low-bandwidth-demanding applications are concerned. Initially, the tutorial gives a
brief overview of the building blocks of GSM networks — the mobile station, base station, and network subsystem — and then emphasizes the
SMS network and protocol architecture. The most widely used protocols for message submission are then introduced (text-based, SMS2000,
ETSI 0705, TAP) and compared in terms of features provided and flexibility to handle extended alphabets or two-way messaging. Finally the
tutorial outlines a summary of current and future issues for further development and research in the light of novel features for submission
protocols and telematic services.
ME
BTS
VLR AuC EIR HLR
BSC
SIM
Data communication
Other base station subsystem SMSC network
Network subsystem
PSTN/ISDN
BTS: Base transceiver station AuC: Authentication centre
BSC: Base station controller EIR: Equipment identity register
SIM: Subscriber identity module HLR: Home location register
ME: Mobile equipment VLR: Visitor location register
■ Figure 1. The basic GSM network architecture.
tor. It also receives and passes on any confirmation messages to SIM. Because the IMEI and IMSI are independent, personal
any GSM mobile on any network. However, in practice, there mobility is possible. The SIM can be protected against unau-
are no agreements to allow SMS to travel between networks. thorized use by a personal identity number (PIN).
There are several ways in which a short message can be
submitted, depending on the interfaces supported by the GSM The Base Station Subsystem
network SMSC. Users can call a central paging bureau (i.e., The base station subsystem is composed of two parts, the
an operator), or directly create the message on the keypad of base transceiver station (BTS) and base station controller
their handset. Typing the messages is made easier when using (BSC). They communicate across the specified Abis inter-
a personal digital assistant (PDA) or a laptop connected to face, thus allowing network operators to use components
the handset. A few SMSC equipment manufacturers and com- made by different suppliers. The BTS houses the radio
panies have also developed their own protocols for short mes- transceivers that define a cell and handle the radio link pro-
sage submission. Consequently, more and more GSM tocols with the MS. Depending on the density of the area,
networks now offer access to their SMSC using these proto- more or fewer BTSs are needed to provide the appropriate
cols over a variety of hardware interfaces: modem dialup, capacity to the cell. Digital communications system (DCS)
X25, and even the Internet. networks working at 1800 MHz need twice the number of
BTSs to cover the same area as GSM networks, but provide
GSM Network Architecture twice the capacity.
The BSC manages the radio resources for one or more
The layout of a generic GSM network with its several func- BTSs via the standardized Abis interface. It handles radio
tional entities is shown in Fig. 1 [3]. The architecture can be channel setup, frequency hopping, and handovers. The BSC is
divided in three main components: the connection between the MS and the mobile switching cen-
• The subscriber holds the MS, namely the GSM terminal ter (MSC). The BSC also takes care of converting the 13 kb/s
• The base station subsystem controls the radio link with the voice channel used over the radio link (Um interface) to the
MS standardized 64 kb/s channel used by the public switched tele-
• The network subsystem performs the switching of calls and phone network (PSTN).
other management tasks such as authentication.
The Network Subsystem
The Mobile Station The MSC is the main component of the network subsystem.
The MS and base station subsystem communicate across the Its provides the same functionality as a switching node in a
Um interface, also known as the air interface or radio link. PSTN or integrated services digital network (ISDN), but also
The base station subsystem communicates with the network takes care of all the functionality needed to handle a mobile
subsystem across the A interface. The MS consists of the subscriber such as registration, authentication, location updat-
physical terminal and contains the radio transceiver, the dis- ing, handovers, and routing to a roaming subscriber. The
play and digital signal processors, and the Subscriber Identity MSC also acts as a gateway to the PSTN or ISDN, and pro-
Module (SIM). The SIM provides the user with the ability to vides the interface to the SMSC.
access their subscribed services regardless of the location and The international roaming and call routing capabilities of
the terminal used. The insertion of the SIM in any GSM cel- GSM networks are provided by the home location register
lular phone allows the user to access a network, make and (HLR) and visitor location register (VLR) together with the
receive phone calls, and use all the subscribed services. MSC. The HLR database contains all the administrative infor-
The International Mobile Equipment Identity (IMEI) mation about each registered user of a GSM network along
uniquely identifies the mobile terminal according to the Inter- with the current location of the MS. The current location of
national Mobile Subscriber Identity (IMSI) contained in the an MS is in the form of a Mobile Station Roaming Number
CM
CM ISDN
BSS UP
MAP TUP
MM
MM
BSSAP BSSAP
RM RR
SCCP SCCP SCCP
LAPDm LAPDm
MTP MTP level 3
MTP MTP level 2
MTP level 1
TDMA/FDMA TDMA/FDMA
(MSRN), typically the SS7 number of tion over the radio link to transmit
the visited MSC, and used to route a MAP call-related signaling information such
call to the MSC where the mobile is TUP ISUP as the establishment of the signaling
actually located. TCAP and traffic channel between the MS
The VLR is usually located within and the BSS.
the MSC to speed up access to the On the MSC side, the message layer
information required during a call and SCCP is divided into four sublayers. The
simplify the signaling. The content of Base System Substation Application
the VLR is a selection of the informa- MTP level 3 Part (BSSAP) of the MSC provides
tion from the HLR, basically all neces- the channel switching functions, radio
sary information for call control and MTP level 2
resources management, and internet-
provision of the subscribed services, working functions. The Message
for each single mobile currently locat- Transfer Part (MTP) and Signaling
ed in the geographical area controlled MTP level 1 Connection Control Part (SCCP) pro-
by the VLR. tocols are used to implement the data
The network subsystem uses two link layer and layer 3 transport func-
other databases for authentication and ■ Figure 3. The SS7 protocol stack. tions for carrying the call control and
security purposes. The Equipment mobility management signaling mes-
Identity Register (EIR) contains a list sages across the A interface. SCCP
of each MS IMEI allowed on the network. The authentication packets are also used to carry the messages for SMS.
center (AuC) database contains each single PIN stored in the Signaling between the different entity uses the Internation-
MS SIM. al Telecommunication Union (ITU) SS7, widely used in ISDN
and current public networks. SS7 is currently the only element
The GSM Signaling Protocol of the GSM infrastructure capable of packet switching as well
The exchange of signaling messages regarding mobility, radio as circuit switching. It is used to transport control signals and
resources, and connection management between the different short message packets for SMS. The protocol consists of the
entities of a GSM network is handled through the protocol Mobile Application Part (MAP), Transaction Capability
architecture, as shown on Fig. 2. Application Part (TCAP), SCCP, MTP, and ISDN-User Part
The architecture consists of three layers: physical, data (ISUP) or Telephone User Part (TUP). Figure 3 depicts the
link, and message. The physical layer and channel structure SS7 protocol stack.
are described in detail by M. Mouly and M. Pautet [4]. Layer The ISUP provides the signaling functions needed to sup-
2 implements the data link layer using a modified flavor of the port switched voice and data applications in the ISDN envi-
Link Access Protocol (LAPD) to operate within the con- ronment. The TUP provides the basic functionality for call
straints set by the radio path. On the MS side, the message control functions for ordinary national and international tele-
layer consists of three sublayers: connection management phone calls. The TCAP is an application layer protocol. It
(CM), mobility management (MM), and resource manage- allows an application at one node to invoke an execution of a
ment (RR). The CM sublayer manages call-related supple- procedure at another node and exchange the results of such
mentary services, SMS, and call-independent supplementary invocation. It isolates the user application from the complexity
services support. The MM sublayer provides functions to of the transaction layer by automatically handling transaction
establish, maintain, and release a connection between the MS and invocation state changes, and generating the abort or
and the MSC, over which an instance of the CM sublayer can reject messages in full accordance with ITU and American
exchange information with its peer. It also performs location National Standards Institute (ANSI) standards. The MAP
updating, IMSI management, and Temporary Mobile Sub- uses the TCAP services to provide the signaling capabilities
scriber Identity (TMSI) identification, authentication, and required to support the mobile capabilities.
reallocation. The RR sublayer establishes the physical connec- The MTP and SCCP (Fig. 4) correspond to the lower three
TP-Data-Coding-Scheme
The data coding scheme field (TP-DCS) is used to iden-
tify the coding scheme used by the user data, which can TP-message-type-indicator
be 7- or 8-bit or even Unicode [6], as defined in GSM
03.38 [7].
TP-message-type-indicator TP-reject-duplicate
TP-Validity-Period
The TP-VP field contains an information element
enabling an MS to specify a validity period for the short TP-more-message-to-send TP-validity-period format
message it is submitting. The value specifies how long an
SMSC will guarantee the existence of a short message
before delivery to the recipient has been carried out. TP-reply-path TP-reply-path
TP-More-Message-To-Send
TP-user-data-header-indicator TP-user-data-header-indicator
The SMSC uses the TP-MMS field to inform the MS that
one or more short messages are waiting to be delivered.
TP-status-report TP-message reference
TP-User-Data-Header-Indicator
The 1-bit TP-UDHI field indicates whether the TP-UD
includes an additional header as well as the short message. TP-originating-address TP-destination-address
TP-Protocol Identifier
The TP-PID is used by the MS or SMSC to identify the TP-protocol-ID TP-protocol-ID
higher-layer protocol being used for internetworking
with a certain type of telematic device (Telefax group 3
or 4, Ermes, etc.) TP-data-coding-scheme TP-data-coding-scheme
TP-User-Data (TP-UD)
The TP-UD field is used to carry the short message. It TP-service-center-time-stamp TP-validity-period
can store up to 140 octets of data for point-to-point SMS,
together with a header depending on the setting of the TP-user-data-length TP-user-data-length
TP-UDHI field. The amount of space taken by the header
reduces the amount of data the PDU can carry. Figure 8
shows a representation of the layout of the TP-UD for 7- TP-user-data TP-user-data
and 8-bit data schemes.
The header has at least three fields. The first field,
the information element identifier, is used to identify SMS-deliver SMS-submit
concatenated short messages. Information data length
(IDL) is used to indicate the length of the information ■ Figure 7. An SMS TL-PDU.
UDL UDHL IEIa IELa IEDa IEIb … IEIn Padding SM (7-bit data)
Septet boundary
Total number of octets
Length indicator
Short Message Routing Considerations also lead to the short message not being understood and
being rejected. All the above-mentioned problems can lead to
In Fig. 9, user A in network 1 is sending a short message to packets getting lost along the way with different conse-
user B in network 3 roaming in network 4 . User A is using quences:
the SMSC in network 1 to submit his short message [8]. • A negative acknowledgment received by the sender (phone
The local cellular exchange routes the short message in an displaying “message failed” or a similar message) although
SCCP packet according to the SMSC global title as defined by the short message reaches its destination (loss of packet 1 )
the E.164 numbering plan [9]. The SCCP packet is forwarded • Reception of duplicate short messages by user B (loss of
from exchange to exchange until it reaches the destination packet 5 or 9 ); could also be due to the timeout value
SMSC (1). The routing has to be set up in all the SCCP switches being set too low in the SMSC
along the route for the message to successfully reach the SMSC • Or, in the worst case the message might not be delivered at
in network 1 . all (loss of packet 1 , 3 , 4 , 5 )
Once the SCCP packet carrying the message arrives at the Even if Fig. 9 shows the most complicated routing scenario
destination SMSC, a confirmation message is sent back to the there is still much that can go wrong with short message rout-
handset using another SCCP packet (2). ing, and a lot of research is currently underway to overcome
To deliver the short message to user B, the SMSC has to these.
access the HLR database of his home network. A location
request SCCP packet, based on user B’s mobile number, is
sent by the SMSC (3). Protocols for
This international SCCP network then routes the location Short Message Submission
request SCCP packet to the appropriate HLR. When the
HLR receives the request, it will return the location informa- The European Telecommunications Standards Institute
tion in another SCCP packet to the SMSC (4). (ETSI) specified a protocol for short message submission as
The SMSC then sends the message to the VMSC of user part of the overall GSM standard [10]. This specification
B, based on the information received from the HLR (5). defines three interface protocols for the transfer of SMS short
Finally, this VMSC interrogates the VLR (6, 7), and delivers messages between an MS and terminal equipment (TE) via an
the message to user B (8). Upon successful delivery a confir- asynchronous interface. The protocols clearly overlap in func-
mation SCCP packet is sent back to the SMSC (9). tions, and it is not clear why three have been defined.
Throughout these routing procedures, the SCCP packets
can get lost if one of the cellular exchanges along the route Block Mode
does not know where to forward the SCCP packet. SCCP The block mode is a binary protocol which encapsulates the
routing is based on the global title used for switches and the SMS PDU used for short message transfer between an MS
SMSC. The routing information has to be in place in the and the SMSC defined in GSM 03.40 [2]. This protocol
international SCCP transit switches for the messages to suc- includes error detection and is suitable for use where the
cessfully reach their destination. Some international switches link between the application and the phone is subject to
only check the country code prefix (e.g., 44 for the United errors. It will be of particular use where control of remote
Kingdom) and forward the packet to the next exchange, while devices is required. The application has to construct a bina-
others also check for the network prefix (e.g., 447976 for ry string including a header and the short message PDU
Orange). If the exchange routing table does not include all (SMS-TPDU).
the prefixes allocated to the subscribers, some messages will Once the application has requested the phone to enter
be rejected. Incompatible implementation of the SMSC can block mode a group of functions is available:
Foreign SMSC
2 network Recipient 3
home network
(1) (1)
(2) (2)
(3) (3) (3) (3) (3) HL
(4) (4) (4) (4) (4) R
(5) (5) (5)
(9) (9) (9)
Local
SMSC Local International International SCCP switch
SMS-IWMSC SCCP switch SCCP switch SCCP switch (x): Message number
• Submit a short message or PDU mode. The text mode does not support or automati-
• Delete messages from the phone cally pass incoming messages to the application (only notify it).
• List messages in the phone
• Transfer all messages or one from the phone to the application PDU Mode
• Set the phone so that the application is notified every time PDU mode is very similar to text mode, except that it leaves to
a new short message is received the application the responsibility to build the short message
Each of these commands contains a number of predefined TPDU. This mode adds to the convenience of the AT command
elements as described in the specification. For example, the set the possibility to construct more sophisticated PDUs (i.e.,
Insert Message command format used to submit a short mes- allowing binary data to be transmitted, not just characters).
sage is depicted in Table 2.
SEMA SMS2000
Text Mode Sema Group Telecoms developed SMS2000 as an implemen-
Text mode is a character-based protocol based on the AT tation of a GSM SMSC [11]. The specification mainly
command set modified for GSM. This mode is suitable for describes the delivery of short messages to MSs, but also spec-
unintelligent terminals or terminal emulators, and for applica- ifies the protocols for short message submission. The protocol
tion software built on command structures like those defined has been designed to operate over a variety of interfaces such
in ITU V25ter. The application passes the message in plain as X25, DECnet, and SS7. The SMS2000 SMSC is usually
text to the phone that constructs the TPDU (Table 3). This accessed via the general X25 access gateway -either using a
means that text mode offers a lot less functionality than block radio Packet Assembler Disassembler (PAD) or a dedicated
link to the message center.
Once connected to the SMSC, an SME can
Information element Meaning Length byte request any of the operations listed in Table 4. The
SMS2000 SMSC can also send the commands listed
Message type Insert SMS type: the value defined 1 in Table 5 to an SME.
in the specification is 0x07
<CR> [12] Telocator Alphanumeric Protocol (PCIA) v. 1.2 Functional Spec for TAP-
AIM ver 2.6 (Aldiscon)
ID=
Additional Reading
[1] M. Rahnema, “Overview of the GSM System and Protocol Architecture,”
<ESC>PG1<Password><CR>
IEEE Commun. Mag., vol. 3, no. 4, Apr. 1993, pp. 92–100.
<CR><ACK><CR>
Biographies
GUILLAUME PEERSMAN (G.Peersman@dcs.shef.ac.uk) graduated from the Insti-
<ESC>[p<CR> tut Superieur d’Electronique de Paris (ISEP) in 1996 with a double M.Eng.
in electronics and computer networks. He then joined the University of
Sheffield, and is currently reading for a Ph.D. degree in the Computer Sci-
<STX><MISDN><CR><Message><CR><ETX><Checksum<CR>
ence Department. His research interests focus on the development and per-
formance analysis of two-way messaging gateways for the GSM Short
<Message response><CR><ACK><CR> Message Service. He also recently extended his field of research to the
Wireless Application Protocol gateway design.