As I was saying in part 3: let’s get down to business ![]()
The 4G portion of the 4G – IMS registration has been described in Part 1;
The IP-CAN Session Establishment has been described in Part 2;
The generic IMS specifications (at least part of them) have been described in Part 3;
Now, let’s analyze the messages from the IMS – SIP signaling. As I was saying, these messages are tunneled between the eNodeB and PGW via GTPv1-U protocol. Then they reach the P-CSCF and are forwarded in the IMS core. This P-CSCF entity, often called simply P, can be located – and usually it is, specially in the roaming scenarios, … located in the visited network.
Before continuing to the description of each of the messages in the IMS registration, let’s take another look at the 4G – IMS architecture, as well as to the registration flow that we describe:
4G-IMS Architecture
4G-IMS RegistrationFlow
16. P-CSCF Discovery
- described in TS 23.228: section 5.1.1 Procedures related to Proxy-CSCF discovery and
section E.1.1.1 GPRS/EPS procedure for P-CSCF discovery
Because the procedure is pretty straight-forward, I will just copy-paste it from the spec above:
The DHCP relay agent within the IP-Connectivity Access Network relays DHCP messages between UE and the DHCP server.
1. Establish an IP-Connectivity Access Network bearer if not already available by using the procedures available in the IP-Connectivity Access Network.
2. The UE requests a DHCP server and additionally requests the domain name and/or IP address of the P‑CSCF and IP addresses of DNS servers. It may require a multiple DHCP Query/Response message exchange to retrieve the requested information.
3. The UE performs a DNS query to retrieve a list of P‑CSCF(s) IP addresses from which one is selected. If the response does not contain the IP addresses, an additional DNS query is needed to resolve a Fully Qualified Domain Name (FQDN) to an IP address.
After reception of domain name and IP address of a P‑CSCF the UE may initiate communication towards the IM subsystem.
Section E.1.1.1 describes the GPRS/EPS procedure for P-CSCF discovery
I will just show the 4G part, procedure valid for both E-UTRAN Initial Attach procedure, as well as for subsequent PDN Connectivity Requests:
1. During Initial Attach/PDN Connection Request, the UE indicates that it requests a P‑CSCF IP address(es).
2. The MME sends a Create Default Bearer Request to the S‑GW.
3. The S‑GW forwards the request to the P‑GW and the P‑GW gets the IP address(es) of the P‑CSCF(s). The mechanism to do this is a matter of internal configuration and is an implementation choice.
4. If requested by the UE, the P‑GW includes the IP address(es) of the P‑CSCF(s) in the Create Default Bearer Response.
5. The S‑GW forwards the response to the MME
6. Completion of procedures, as described in TS 23.401 [70].
After reception of the IP address of a P‑CSCF the UE may initiate communication towards the IM CN Subsystem.
17. Register message sent from the IMS terminal to the P-CSCF
Once the IMS terminal obtains its IP address, it must register to the IMS network. This happens in order for the UE to authenticate and obtain authorization to use the IMS network resources. The IMS registration is accomplished by the SIP REGISTER message – this being also the only SIP message that is authenticated by the network (subsequent SIP messages, like INVITE, 200 OK…and so on, are not being authenticated).
First of all, we should know that the IMS-SIP is a SIP (RFC 3261) on steroids (as my SIP colleague use to joke
), because it has a lot of 3GPP enhancements to meet the 3GPP requirements for this type of communication – I won’t get into details right now. One requirement is that, in IMS, unlike in regular SIP, a phone cannot make any call without first being registered to the IMS network.
Second of all, let’s establish the meaning of this “register” procedure. What the REGISTER procedure does is bind the public URI of that IMS user to a certain IP address and/or host name. The IP address/host name are the ones given by the IP-CAN Session during attach or later on. It is the means of locating that phone in the network. The point is to let the IMS network know at which actual address (IP/host name) it can find a user it has configured as subscriber.
Short note: this public URI thinggie is the identity of the subscriber, something like an e-mail address, only less pretty
. It can also contain a bunch of weird parameters that I won’t get into details with right now:
examples of SIP URIs:
sip:Alice.Smith@domain.com
sip:Bob.Brown@example.com
sip:carol@ws1234.domain2.com;transport=tcp
SIP URIs with SDP information (SDP – Session Description Protocol) :
v=0
o=Bob 234562566 236376607 IN IP4 192.0.0.2
s=Let’s talk about martial arts
c=IN IP4 22.22.22.22
t=0 0
m=audio 30000 RTP/AVP 0
a=sendrecv
m=video 30002 RTP/AVP 31
a=sendrecv
Before actually taking a look at this fancy SIP REGISTER message, let’s present the IMS requirements for SIP Registration:
[Bear in mind that many of the information below are inspired/taken from the following book:
http://www.amazon.com/3G-IP-Multimedia-Subsystem-IMS/dp/0470871563
The 3G IP Multimedia System: Merging the Internet and the Cellular Worlds
by Gonzalo Camarillo and Miguel-Angel Garcia-Martin ]
The IMS registration procedure satisfies the following requirements in two round trips:
(a) the user binds a Public User Identity to a contact address – this is the main purpose ofa SIP REGISTER request;
(b) the home network authenticates the user;
(c) the user authenticates the home network;
(d) the home network authorizes the SIP registration and the usage of IMS resources;
(e) in case the P-CSCF is located in a visited network, the home network verifies that there is an existing roaming agreement between the home and the visited network and authorizes the usage of the P-CSCF;
(f) the home network informs the user about other possible identities that the home network operator has allocated exclusively to that user;
(g) the IMS terminal and the P-CSCF negotiates the security mechanism that will be in place for subsequent signaling;
(h) the P-CSCF and the IMS terminal establish a set of security associations that protect the integrity of SIP messages sent between the P-CSCF and the terminal;
(i) both the IMS terminal and the P-CSCF upload to each other the algorithms used for compression of SIP messages.
Tags: 4G, Diameter, eNodeB, EPC, HSS, I-CSCF, IMS, LTE, MME, P-CSCF, passion, PCRF, PGW, Register, S-CSCF, SGW, techie, UE









