FAKULTA INFORMATIKY
} w
A|
y
<
5
4
23
1
0
/
-.
,
)+
(
%&'
$
#
!"
Æ
M ASTER T HESIS
Martin Tomeš
Brno, 2014
Declaration
Hereby I declare, that this paper is my original authorial work,
which I have worked out by my own. All sources, references and lit-
erature used or excerpted during elaboration of this work are prop-
erly cited and listed in complete reference to the due source.
Martin Tomeš
ii
Acknowledgement
I would like to thank to my supervisor doc. RNDr. Eva Hladká,
Ph.D., for help and encouragement throughout the work. I would
also like to thank my wife Alena for proofreading and linguistic sup-
port during the work on my thesis.
iii
Abstract
IP Multimedia Subsystem has been developed by the 3GPP or-
ganization for the purpose of convergence of voice and multimedia
services (chat, Internet, video, etc.) and it is now used by mobile op-
erators worldwide. The development of particular IMS components
is quite specific and depends rather on good communication and un-
derstanding between IMS architects and developers. This work is an
attempt to contribute to the improvement of this communication by
presenting a high-level developer manual, so called “white paper”,
on IMS emergency calls. This “white paper” is written from the per-
spective of an IMS architect who knows the 3GPP standard in detail.
The manual is primarily intended for developers, who do not need
to have such knowledge about 3GPP, but they can appreciate a suffi-
ciently informative high-level document. The goal of this thesis is to
contribute to better understanding and communication during var-
ious stages of software development life-cycle of those IMS compo-
nents which are related to emergency session.
iv
Keywords
IP, SIP, IMS, HSS, CSCF, 3GPP, Emergency, GSM, UMTS, GPRS,
LTE, VoLTE
v
Abbreviations:
3G Third Generation
3GPP Third Generation Partnership Project
AAA Authentication Authorization Accounting
ACK Acknowledgement
AuC Authentication Centre
AVP Attribute Value Pairs
BGCF Breakout Gateway Control Function
CDMA Code Division Multiple Access
CDR Call Data Record
CSCF Call Session Control Function
DHCP Dynamic Host Configuration Protocol
DNS Domain Name Server
GGSN Gateway GPRS Support Node
GPRS General Packet Radio Services
HSS Home Subscriber Server
HTTP Hyper Text Transfer Protocol
I-CSCF Interrogating CSCF
ID Identifier
IETF Internet Engineering Task Force
IMEI International Mobile Equipment Identity
IMS IP Multimedia Subsystem
IP Internet Protocol
IPsec IP Security Protocol
LRR Location Retrieval Function
LTE Long-Term Evolution
MGCF Media Gateway Controller Function
MGW Media Gateway
MRFC Media Resource Function Controler
MRFP Media Resource Function Processor
MSISDN Mobile Subscriber Integrated Services Digital Network Number
NGN Next Generation Network
OSA-SCS Open Service Access Service Capability Server
P-CSCF Proxy CSCF
PDF Policy Decision Function
PLMN Public Land Mobile Network
vi
PoC Push-to-talk over Cellular
PSI Public Service Identifier
PSTN Public Switching Telephone Network
QoS Quality of Service
RSVP ReSerVation Protocol
RTP Real-time Transport Protocol
RTR Response Time Reporter
S-CSCF Serving CSCF
SCTP Stream Control Transmission Protocol
SIM Subscriber Identity Module
SIP Session Initiation Protocol
SIP-AS Session Initiation Protocol Application Server
SLF Subscriber Location Function
SQN Sequence Number
SRVLOC Service Location Protocol
TCP Transmission Control Protocol
TDMA Time Division Multiple Access
THIG Topology Hiding Inter-network Gateway
TLS Transport Layer Security
TMSI Temporary Mobile Subscriber Identity
UDP User Datagram Protocol
UE User Equipment/Endpoint
UMTS Universal Mobile Telecommunication System
UPSF User Profile Server Function
URI Uniform Resource Identifier
VoIP Voice over IP
vii
Contents
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2 IMS Architecture . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.1 History . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.2 IMS Components . . . . . . . . . . . . . . . . . . . . . . 6
2.3 IMS Layers . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.3.1 Device Layer . . . . . . . . . . . . . . . . . . . . 7
2.3.2 Transport Layer . . . . . . . . . . . . . . . . . . 9
2.3.3 Control Layer . . . . . . . . . . . . . . . . . . . . 9
2.3.4 Service Layer . . . . . . . . . . . . . . . . . . . . 10
2.4 IMS Core Components . . . . . . . . . . . . . . . . . . . 10
2.4.1 Proxy Call Session Control Function (P-CSCF) . 10
2.4.2 Serving Call Session Control Function (S-CSCF) 11
2.4.3 Interrogating Call Session Control Function (I-
CSCF) . . . . . . . . . . . . . . . . . . . . . . . . 12
2.4.4 Emergency Call Session Control Function (E-
CSCF) . . . . . . . . . . . . . . . . . . . . . . . . 12
2.4.5 Home Subscriber Server (HSS) . . . . . . . . . . 13
2.5 Signaling . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.5.1 SIP Architecture . . . . . . . . . . . . . . . . . . 15
2.5.1.1 User Agents . . . . . . . . . . . . . . . 15
2.5.1.2 Servers . . . . . . . . . . . . . . . . . . 15
2.5.2 SIP Messagging . . . . . . . . . . . . . . . . . . 16
2.5.2.1 Message Header . . . . . . . . . . . . . 16
2.5.2.2 SIP Requests . . . . . . . . . . . . . . . 17
2.5.2.3 SIP Responses . . . . . . . . . . . . . . 18
2.5.3 SDP Protocol . . . . . . . . . . . . . . . . . . . . 21
3 Supported Mobile Technologies in IMS . . . . . . . . . . . 23
3.1 GSM (2G) . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.2 GPRS (2,5G) . . . . . . . . . . . . . . . . . . . . . . . . . 24
3.3 UMTS (3G) . . . . . . . . . . . . . . . . . . . . . . . . . . 27
3.4 LTE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
4 IMS Emergency Sessions . . . . . . . . . . . . . . . . . . . . 30
4.1 State of the Arts . . . . . . . . . . . . . . . . . . . . . . . 30
4.2 History of Changes in 3GPP Standard . . . . . . . . . . 31
4.3 Emergency calls - General Introduction . . . . . . . . . 33
1
4.4 IMS Emergency Architecture . . . . . . . . . . . . . . . 35
4.4.1 User Equipment . . . . . . . . . . . . . . . . . . 36
4.4.2 Proxy-CSCF . . . . . . . . . . . . . . . . . . . . . 36
4.4.3 Emergency CSCF . . . . . . . . . . . . . . . . . . 37
4.4.4 Location Retrieval Function . . . . . . . . . . . 38
4.4.5 Serving-CSCF . . . . . . . . . . . . . . . . . . . . 38
4.4.6 Emergency Access Transfer Function (EATF) . . 40
4.4.7 Interrogation-CSCF . . . . . . . . . . . . . . . . 40
4.4.8 Application Server . . . . . . . . . . . . . . . . . 40
4.4.9 HSS . . . . . . . . . . . . . . . . . . . . . . . . . 41
4.5 Establishing of IMS Emergency Session . . . . . . . . . 41
4.5.1 IMS Emergency Registration . . . . . . . . . . . 41
4.5.2 Emergency Service Request . . . . . . . . . . . . 42
4.5.2.1 Non UE detectable emergency service
request . . . . . . . . . . . . . . . . . . . 42
4.5.2.2 Emergency service request without reg-
istration . . . . . . . . . . . . . . . . . . 44
4.5.2.3 Emergency service request with nor-
mal registration . . . . . . . . . . . . . . 45
4.5.2.4 Emergency service request with emer-
gency registration . . . . . . . . . . . . 45
4.6 Emergency session in LTE . . . . . . . . . . . . . . . . . 45
5 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
2
1 Introduction
We have telephony to talk to each other, messaging to dispatch
mail or instant messages, browsing to read published content and
search engines to locate content sites. Mobile telephony with the cur-
rent technology has been hugely successful and shows that there is
an immense value in communicating with peers while being mobile.
3
2 IMS Architecture
IP Multimedia Subsystem is a technology framework that allows
delivering IP multimedia services in the telecommunication area. IMS
architecture has evolved from the currently out-dated GSM technol-
ogy. The main change is adding the support of multimedia traffic –
services including audio, video, text, chat, etc. – using packet switch-
ing technology. It is a network based on a wide range of protocols
defined primarily by the IETF (Internet Engineering Task Force). The
main protocol is SIP (Session Initiation Protocol) defined by IETF,
which is used to provide secure signaling. The main goal of this ar-
chitecture is to converge cable and mobile networks.[19]
There are several main characteristics[28] which make the IMS net-
work unique:
4
2. IMS A RCHITECTURE
2.1 History
IMS was originally standardized in 2003 by the 3GPP as part of
Release 5 specification as a new layer on the top of 3G IP networks.
In Release 6 released in 2005, cooperation with existing IMS circuit-
switched and IP networks was defined. The following specifications
Release 7 include a reduction in delays, which brings improvement
for real-time applications such as VoIP. [19]
Long Term Evolution (LTE) is the latest generation of the 3GPP radio
technology and it was introduced in Release 8 around 2008. LTE no
5
2. IMS A RCHITECTURE
CSCF (Call Session Control Function) – This is the root node of the
IMS architecture, which cares primarily about signaling. Four types
of CSCF can be distinguished: Proxy-CSCF, Interrogating-CSCF, Serving-
CSCF and Emergency-CSCF.
MGW (Media Gateway) – The final element for bearer channel from
6
2. IMS A RCHITECTURE
7
2. IMS A RCHITECTURE
8
2. IMS A RCHITECTURE
The layer acts as an intersection point between the access layers and
the IP network above it. It is responsible for initial IP provisioning
(assigning an IP address and a default gateway via DHCP) as well as
facilitating the connection of devices to the higher layers.
This layer also enables an IMS device to create and make calls to the
PSTN network or to other circuit-switched (CS) networks through
the PSTN gateway . The main characteristic of this layer is that every-
thing above this layer is IP-based, while the access networks below
it need not be strictly IP-based. [29]
9
2. IMS A RCHITECTURE
10
2. IMS A RCHITECTURE
The Serving CSCF is the central node across the IMS and it is al-
ways located in the home network. It supervises the connection and
registration services. When the UE casts a session, the S-CSCF main-
tains the session and mutually communicates with the control plat-
form and the Charging function according to the requirements of the
network operator. The S-CSCF can have many[19] functions based
on the configuration by the network operator, the main ones[28] in-
clude:
SIP Registrar: User equipment (UE) registers within the IMS when
it is switched on. At this point in time the S-SCCF is assigned to that
UE, it loads the corresponding IMS user profile from the Home Sub-
scriber Server (HSS), and stores information related to the UE, such
as the SIP signaling path towards that UE. UE registered at the S-
CSCF is called "served UE".
Session Control: Each SIP session setup establishes media flows from
or to served UE, which will be routed through the S-CSCF assigned
to that UE. The S-CSCF controls whether the user is entitled for the
desired session according to the policies of the operator, as described
in the user profile. The S-CSCF may also adjust the session according
to this policy.
11
2. IMS A RCHITECTURE
12
2. IMS A RCHITECTURE
2.5 Signaling
The IMS communication is based on SIP signaling. The SIP is
a protocol developed within the IETF standardization organization
and described in RFC 2543 document.
13
2. IMS A RCHITECTURE
SIP URI contains domain names, and is interconnected with the DNS
(Domain Name System). Where the SIP network is connected to a
public telephony network, the standard telephone numbers can be
used as a telephone URI:
tel:555486325
Despite the fact a telephone URI does not contain a domain name
it can be mapped to a particular domain using the ENUM (E.164
Number Mapping), which is a DNS extension enabling to search a
given domain for a given telephone URI.[4]
14
2. IMS A RCHITECTURE
2.5.1.2 Servers
Servers in the SIP architecture are devices that are used to medi-
ate contact among User Agents. Three types of servers can be distin-
guished: Proxy, Redirect and Registrar servers[31].
Proxy server
Proxy servers are divided into stateless ones forwarding each mes-
sage they receive, and state ones which starts a transaction state ma-
chine for each message and ensures that the message is successfully
delivered.
Redirect server
15
2. IMS A RCHITECTURE
The redirect server is also used to route requests to the target but
it does not send a message forward. It transmits information about
how to route the request to the target and the US must send the new
request to the changed address.
Registrar server
Via: This field contains the version of the SIP protocol, the version
of the transport protocol used and the IP address of the originator of
the message. Each server that sends the message forward inserts a
new VIA record with its IP address into the header.
16
2. IMS A RCHITECTURE
ACK – The ACK request is used to confirm that the endpoint has
17
2. IMS A RCHITECTURE
OPTIONS – This request is used to ask the other party for the list
of SIP methods it supports. The response may also contain the set of
capabilities (i.e. audio/video codecs) of the responding party.[21]
In category 1xx there are provisional answers. They inform the sender
of the request that the message has been received and it is being pro-
cessed by the server. They are sent mostly when the INVITE method
is used. For instance, code 100 confirms the receipt of a request, code
180 indicates ringing:
100 Trying
180 Ringing
181 Call forwarded
182 Queued
183 Session progress
The 3xx class indicates redirection for further action. They are used
by redirect servers to route requests to the target:
18
2. IMS A RCHITECTURE
19
2. IMS A RCHITECTURE
20
2. IMS A RCHITECTURE
v=0
o=alice 2890844526 2890844526 IN IP4 starfleet.gov
s=-
c=IN IP4 192.0.2.101
t=0 0
m=audio 49172 RTP/AVP 0
v – protocol version.
o – session owner and identifier (o=<username> <session id>
<version> <network type> <address type> <address>)
s – session name.
t – time the session is active (t=<start time> <stop time>) m – media
type, format, and transport address (m=<media> <port> <transport>
<format list>).
21
2. IMS A RCHITECTURE
The <media> field is either "audio" or "video" (if the call contained
both audio and video, there would be two "m=" lines). The <port>
should always be even (the even port is used by RTP and the next
odd port by RTCP).
22
3 Supported Mobile Technologies in IMS
3GPP IMS currently supports all available mobile technologies,
even the old 2G Circuit Switched ones. Despite being outdated nowa-
days, these technologies are still currently in use worldwide.
1. For example: Time Division Multiple Access (TDMA) or Code Division Mul-
tiple Access(CDMA).
23
3. S UPPORTED M OBILE T ECHNOLOGIES IN IMS
24
3. S UPPORTED M OBILE T ECHNOLOGIES IN IMS
Price: A customer pays for the amount of data transferred and not
for time spent on the line.
Priority of voice traffic: GPRS exists along with GSM networks and
it is used only as a secondary network channel for data transmission.
Voice transmission always has a higher priority.
Class A – allows simultaneous use of voice and GPRS data. This fea-
ture is known as Dual Transfer Mode.
Class C – allows data traffic only from devices that can not make
phone calls (PCMCIA data cards, special industrial modules).
SGSN nodes
SGSN nodes are responsible for delivering data to/from mobile sta-
25
3. S UPPORTED M OBILE T ECHNOLOGIES IN IMS
It must always be able to find out where the relevant terminal is lo-
cated, verify its identity, ensure proper billing for services, etc. There-
fore the SGSN node has access to some registers (for example HLR –
a subscriber database).[30]
Quality of Service
Priority – three priority levels are defined: high, medium and low.
Reliability – there are three reliability classes that define the prob-
ability of packet loss.
26
3. S UPPORTED M OBILE T ECHNOLOGIES IN IMS
3.4 LTE
LTE technology is a 3GPP mobile system of 3rd generation im-
proving the current data-transmitting system (e.g. GPRS) and all com-
munication takes place only via packets. The LTE technology theo-
retically enables 100 Mbps of wireless transmission downlink speed
and 50 Mbps for uplink. In comparison with the previous systems,
27
3. S UPPORTED M OBILE T ECHNOLOGIES IN IMS
LTE consists of two basic parts - EPC (Evolved Packet Core) and
E-UTRAN (Evolved Universal Terrestrial Radio Access Network).
E-UTRAN is the concentration of the individual base stations eNB
(evolved Node Bs) that forms a gateway between the radio interface
and backbone network. The radio interface between the UE (User
Equipment) and the eNB is called the Uu interface.[24]
LTE Architecture
E–UTRAN
28
3. S UPPORTED M OBILE T ECHNOLOGIES IN IMS
EPC
The main control element in LTE is MME, which can support sev-
eral UE, eNB and S-GW. Its main features include identity verifica-
tion and assigning temporary identification to each UE called GUTI
(Globally Unique Temporary Identity).[16]
29
4 IMS Emergency Sessions
There are two areas of problems which this thesis touches upon:
Communication between an architect and developer and lack of high-
level information about IMS emergency emergency call.
I have often faced situations which could have been easily avoided
if there had been a high-level overview of a part of IMS architecture.
But there was not such white paper, which often caused lots of un-
necessary questions, mail-chains and meetings. Because of this expe-
30
4. IMS E MERGENCY S ESSIONS
31
4. IMS E MERGENCY S ESSIONS
Release-9
Release-10
Release-11
32
4. IMS E MERGENCY S ESSIONS
33
4. IMS E MERGENCY S ESSIONS
34
4. IMS E MERGENCY S ESSIONS
in an IMS network.
35
4. IMS E MERGENCY S ESSIONS
4.4.2 Proxy-CSCF
The IMS P-CSCF detects the emergency session requests from an
UE even if the UE is roaming and a user dials an emergency number
specific for the visiting network. The Proxy-CSCF, if located in home
network, is able to recognize an emergency request whether it is in-
dicated by the UE or not. After accepting an emergency request,2 the
Proxy-CSCF forwards the request to an Emergency-CSCF.
36
4. IMS E MERGENCY S ESSIONS
37
4. IMS E MERGENCY S ESSIONS
4.4.5 Serving-CSCF
The Serving CSCF handles emergency registration requests re-
ceived from the Proxy CSCF. After receiving a request it determines
the duration of the registration by checking the value of the Expires
header in the received REGISTER request.7
6. For example, this information may include the ESQK, ESRN, LRO in North
America, location number in EU usually contains PSAP, SIP-URI or TEL-URI.
7. The value of the emergency registration time is subject to local regulations and
can be subject to roaming agreements.
38
4. IMS E MERGENCY S ESSIONS
39
4. IMS E MERGENCY S ESSIONS
scription the Serving CSCF check that the user status in HSS is set to
UNREGISTERED.
4.4.7 Interrogation-CSCF
I-CSCF supports IMS emergency session continuity, which is spec-
ified in TS 23.237.
40
4. IMS E MERGENCY S ESSIONS
• Inserting the TEL URI associated with the public user identity
into the session request.
4.4.9 HSS
In the course of an emergency registration, the HSS does not ap-
ply any barring condition and/or roaming restriction associated with
the Public User Identity received in the emergency registration request.[5]
41
4. IMS E MERGENCY S ESSIONS
registrations.
42
4. IMS E MERGENCY S ESSIONS
43
4. IMS E MERGENCY S ESSIONS
44
4. IMS E MERGENCY S ESSIONS
45
4. IMS E MERGENCY S ESSIONS
46
4. IMS E MERGENCY S ESSIONS
call. After finishing the call, the UE does not detach – MME releases
the call.
47
5 Summary
The aim of this thesis was to provide a high-level overview of
IMS emergency session handling detailed enough to be usable for
IMS developers. The purpose of this challenge is to overcome a gap
in communication between an IMS architect and IMS developer.
48
5. S UMMARY
49
Bibliography
[1] Ip multimedia subsystem. In Wikipedia : the free ency-
clopedia. [online] http://en.wikipedia.org/wiki/IP_
Multimedia_Subsystem. Accessed: 2014-04-03.
[2] Rfc: 3551. rtp profile for audio and video conferences with
minimal control. [online] http://www.ietf.org/rfc/
rfc3551.txt. Accessed: 2014-04-09.
[3] Rfc: 3665. session initiation protocol (sip) basic call flow exam-
ples. [online] https://tools.ietf.org/html/rfc3665.
Accessed: 2014-04-03.
50
5. S UMMARY
51
5. S UMMARY
52