IMS Basic Signaling Procedure SIP IMS Procedures
IMS Basic Signaling Procedure SIP IMS Procedures
IMS Basic Signaling Procedure SIP IMS Procedures
Procedure
www.huawei.com
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 3
Objectives
Upon completion of this course, you will be able to:
Describe the basic SIP concepts and SIP basic procedure.
Describe the basic registration procedure on the IMS network.
Describe the basic session procedure on the IMS network.
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 4
Contents
1. SIP Overview
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 5
Contents
1. SIP Overview
1.1 SIP Overview
1.2 SIP Message Structure
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 6
Origination and Development of SIP
The SIP was originated in the Mbone (multicast backbone)
experiment in 1996.
In 1999, the SIP was defined by the IETF-MMUSIC in RFC2543.
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 7
What’s SIP?
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 8
Session Related Protocols
Signaling protocol
�Registration, user locating, and routing
�Session establishment, modification, and release
Media transport protocol
�Transmission of voice and video
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 9
Simplified SIP Network Architecture
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 10
Logical Entities of SIP
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 11
Contents
1. SIP Overview
1.1 SIP Overview
1.2 SIP Message Structure
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 12
SIP Message Structure
The SIP consists of three parts:
Message type
Message structure
Message parameter
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 13
Message Types
Response
Responds to a request.
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 14
SIP Message Type -- Request
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 15
SIP Message Type -- Response
SIP response type:
1xx: Provisional -- request received, continuing to process the
request;
2xx: Success -- the action was successfully received, understood, and
accepted;
3xx: Redirection -- further action needs to be taken in order to
complete the request;
4xx: Client Error -- the request contains bad syntax or cannot be
fulfilled at this server;
5xx: Server Error -- the server failed to fulfill an apparently valid
request;
6xx: Global Failure -- the request cannot be fulfilled at any server.
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 16
SIP Basic Flow
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 17
SIP Message Structure
SIP is a Text-
based protocol
and comprise
by 3 parts:
Request-Line
Header
Body
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 19
SIP Header Fields
TO : the target of this request Record-Route : It is added by a proxy in a request to
FROM : the logical identity of the initiator of the request force subsequent requests in the session to be routed
through the proxy. It is used to create the Route header
Cseq : command sequence No., unique in the Call-ID range
field in subsequent requests.
Consists of a sequence number and a method Route: It is used to forcibly route a request through the
The SIP method must be the same as that carried in the listed set of proxies.
request.
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 20
SIP Extension Header
Example
Call-ID : [email protected]
CSeq : 1826 REGISTER
Contact : <sip : [email protected] : 5061>;
Expires : 7200
Content-Length : 0
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 21
Some Extension Header Examples in IMS
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 22
SDP Example (Explanations of
Related Parameters)
v=0
o=HuaweiSoftX3000 868 868 IN IP4 10.216.9.200
s=Sip Call
c=IN IP4 10.216.6.108
t=0 0
m=audio 17368 RTP/AVP 8
a=rtpmap : 8 PCMA/8000
SDP Parameter
Remarks
Parameter Name
v Version number v=0
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 24
IMS User Registration Procedure
S-CSCF
HSS
Register
I-CSCF
Register
P-CSCF
Register
UE
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 25
Contents
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 26
P-CSCF Discovery
S-CSCF
HSS
Register
I-CSCF
Register
P-CSCF
Register
U
E
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 27
Proxy‑CSCF Discovery
Proxy-CSCF discovery
The procedure of UE getting to know the address of P-CSCF.
In order to communicate with IMS network, UE must know at least 1 IP
address of P-CSCF.
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 28
P-CSCF Discovery
UMTS
a t ion
t ac ti v GGS allocate IP address
of the P-CSCF and IP
ontex dure N
for UE
D P c proce
P
DNS
query/resp
o nse
qu
er D H C
y/r
es P
po IP
ns
e DHCP relay
DHCP server DNS server
Other access
networks
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 29
Contents
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 30
S-CSCF Assignment
S-CSCF
HSS
Register
I-CSCF
Register
P-CSCF
Register
U
E
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 31
S-CSCF Assignment
When a user is registered with the network for accessing the IMS service,
the I-CSCF allocates an S-CSCF to the UE.
The I-CSCF communicates with the HSS by using the Cx interface to obtain
the information required for selecting an S-CSCF.
If the HSS returns the name of an S-CSCF, the I-CSCF checks the IP
address of the S-CSCF by using the S-CSCF name returned by the
HSS.
f the HSS returns the capability set of an S-CSCF, the I-CSCF executes
an algorithm according to the capability set of each received S-CSCF to
select an appropriate S-CSCF.
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 32
S-CSCF Assignment
I-CSCF selects the S-CSCF according to their capabilities
Capability ID and meaning is defined by the operator.
P-CSCF I-CSCF
SIP extending
function 1 2
S-CSCF3
SIP extending 3 Capability : 1,2,3
function 2 HSS
… …
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 33
Contents
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 34
Related Concepts of Registration Procedures
Why registration is required
Users use IMPUs (SIP URIs) for communication.
Current IP address of users are mapped to IMPUs.
The information about the locations and service capabilities of users can be obtained.
Authentication and authorization during registration ensures network security.
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 35
Initial Register in Home or Visited Network
HSS
Home
network
Au atio t
(5 enti
th n
)
c e
(3)
s
S-CSCF assignment
Au atio t
(5 enti
th n
)
c se
(3)
S-CSCF assignment
(6
(8 (7
)
) ) 401
401 401
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved.
Related Concepts - Authentication
Authentication
Authentication is a method used to identify a user and ensure the validity of the user.
The home network authenticates users by using the user initial registration procedure.
When a user terminal initiates initial registration, the S-CSCF authenticates the
terminal according to the header field carried in the Register message and the
authentication mode selected when the user is defined on the HSS.
Currently, the HTTP Digest authentication mode is adopted for fixed terminals. That
is, the authentication is performed on the basis of user names and passwords.
Authentication and authorization during registration ensures network security.
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 37
Related Concepts – Service Profile
Third-Party Registration
If a user has subscribed to IMS services, after the user is registered
successfully, the S-CSCF checks the downloaded iFC and triggers the route to
the AS which serves the user.
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 39
Registration Procedure
(3) (12)
Register Register
(8 (17)
200 OK
)
401
P-CSCF-A
P-CSCF-A
Home Network
Caller UE P-CSCF DNS I-CSCF S-CSCF HSS
Initiate 1.REGISTER
2.DNS Query S-CSCF
register 3.DNS Query assignment
Resp
4. REGISTER 5. Diameter: UAR
6. Diameter: UAA
Send the 7.REGISTER
authentication Download the
8.Diameter: MAR authentication
parameters to UE 10. 401 9.Diameter: MAA sets
Unauthorized
12. 401 11. 401 Unauthorized
Unauthorized
13.REGISTER
14.DNS Query
15.DNS Query
S-CSCF
Resp assignment
16. REGISTER
17. Diameter: UAR
Message Explanation
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 42
Functions of NEs During Registration
The following table describes the functions of the main NEs during the registration:
NE Function
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 44
De-registration Procedures
UE initiated de-registration
Network initiated de-registration
HSS initiated the de-registration procedures before the register timer expires
AS initiated the de-registration procedures before the register timer expires
The register timer expires, network initiated the de-registration procedures
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 45
User Initiate the Deregister
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 46
S-CSCF Initiate the Deregister
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 47
Questions
What are the IMS NEs that perform registration on IMS users?
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 48
Contents
1. SIP Overview
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 49
Session Procedure Related Network Nodes
UE Main Functions
P-CSCF 1: Caller part: the 1st contact point to access to the IMS
2: Callee part: P-CSCF forwards the messages to the callee
S-CSCF Realize the call control function for both caller part and callee part
I-CSCF Contact point to access to the callee’s home network .
AS Implement service for both caller and callee side.
DNS/ DNS: Reply the ICSCF IP address for S-CSCF query
ENUM ENUM: Map the TEL format IMPU to SIPURI format
HSS Only used in the callee part. I-CSCF locate the SCSCF by query the
HSS
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 50
Procedures Involved in a Session
Session Session
establishment release
procedure procedure
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 51
Internal Phases of the IMS Session Procedure
Establishment of sessions include: Origination procedures, SS
procedures and Termination procedures
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 52
Simple Model for Call Procedure
During a call between IMS users, the P-CSCF, I-CSCF, and S-CSCF completes the
entire signaling routing procedure.
MO S MT
S
2.request 5.request
DNS/ENU
M HSS
P-CSCF P-CSCF
1.request 6.request
media
Signalin
Media
g
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 53
DNS&ENUM
ENUM
DNS function function
huawei.com +8675528780808
P- HSS
CSCF P-CSCF
DNS/ENUM ENU
M
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 54
Basic Session Establishment
Procedure Between IMS Users
Calling party Called party
S-CSCF-A I-CSCF-B
Invite
183
HSS-A
183 Invite HSS-B
Invite
I-CSCF-A
S-CSCF-B
DNS/ENUM
183
Invite
183
P-CSCF-A
P-CSCF-B
Invite Invite
183
183
media
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 55
Processing of Service Triggering
HSS-B
Invite 5 Invite 6
S-CSCF-A
HSS-A 183
I-CSCF-B S-CSCF-B
Invite 2
183 Invite 9
I-CSCF-A 183
DNS/ENUM
P-CSCF-B
P-CSCF-A
Invite 1 Invite 10
183 183
IP media stream
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 56
IMS User Call to a PSTN User
Fail
Query
I-CSCF-A Tel MGCF PST
Invite
IAM N
Invite
P-CSCF-A ENUM
Media
control
Invite
UMG
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 57
PSTN User Call to an IMS User
HSS-A
Invite Invite
S-CSCF-A
MGCF PSTN/PLMN
IAM
Invite
P-CSCF-A
Invite
UMG
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 58
Routing During the Session
Establishment Procedure
MO procedure (Mobile origination)
From the calling UE to the P-CSCF:
The UE obtains the P-CSCF address through P-CSCF discovery and thus routes the call
to the P-CSCF.
From the calling P-CSCF to the calling S-CSCF:
Both the UE and P-CSCF obtain the S-CSCF address through the registration procedure.
SS procedure
From the calling S-CSCF to the called I-CSCF:
The host part (domain name) of the public user identity of the callee is resolved through
DNS. The calling S-CSCF receives an I-CSCF address returned by DNS.
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 59
Routing During the Session Establishment
Procedure (2)
MT procedure (Mobile termination)
From the called I-CSCF to the called S-CSCF:
Serving as the ingress of the home network of the callee, the I-CSCF queries the local
HSS to obtain the S-CSCF address selected by the callee during the registration.
From the called S-CSCF to the called P-CSCF:
The called S-CSCF obtains the address of the called P-CSCF during the registration of the
callee. Note that the S-CSCF, serving as the registrar, converts the SIP URI of the called
UE into the contact address.
From the called P-CSCF to the called UE:
The message is forwarded to the called UE according to the contact address of the called
UE.
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 60
Session Signaling Procedure of IMS Users
UE1/PCSCF1 SCSCF1/AS1 ICSCF2 SCSCF2/AS2 PCSCF2/UE2
INVITE
INVITE INVITE
INVITE
The session is
established.
Media Characteristics Negotiation
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 62
Media Characteristics Negotiation
Media
A SIP Message “INVITE”
Characteristics
are described in
the SDP in the
SIP message
Support codec
types
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 63
Media Characteristics Negotiations
SIP messages can contain SDP to initiate media negotiation
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 64
Questions
What are the phases of the session establishment procedure?
What are the main NEs that are passed through in the basic
session establishment procedure?
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 65
Summary
Copyright © 2009 Huawei Technologies Co., Ltd. All rights reserved. Page 66
Thanks
www.huawei.com