Monday, January 30, 2012

Initial Network Attach -- EPC specific callflow with TEIDs

Ref: 3GPP TS 23.401




In this page, I want to discuss about the Initial Network attach call flow along with TEIDs. (Starting from MME, assuming the message flows from MME to eNodeB to UE are successful). Before going into the basics, lets just understand the GTP tunnels.

GTP tunnel:

GTP tunnels are used between two nodes communicating over a GTP based interface, to separate traffic into different communication flows. A GTP tunnel is identified in each node with a TEID, an IP address and a UDP port number.

A TEID is a 4 byte field in the GTP header. TEID values are exchanged between the tunnel end-points. Each sending node sends a message assigning a TEID the receiving end has to use.

Initial Attach:

Whenever UE attaches to a PDN, it gets an ip-address based on the PDN type (IPv4, IPv6 or IPv4v6) which it has requested for.  The call flow is as below:

1. MME sends CREATE_SESSION_REQUEST with a TEID '0' in its GTP header to SGW. It allocates an EPS Bearer Identity for the Default Bearer associated with the UE. This message has MME-CONTROL FTEID IE which MME is sending towards SGW so that SGW can use this TEID for sending any message on S11. (In the above figure it is D)

2. SGW creates a new entry in its EPS Bearer table and sends a Create Session Request to PGW on TEID '0'.  This message has SGW-CONTROL FTEID IE which SGW is sending towards PGW so that PGW can use this TEID for sending control messages on S5. (In the above figure it is C). Also this message has BEARER_CONTEXT_TO_BE_CREATED IE which has  SGW-DATA FTEID which PGW can use for sending GTP-PDUs on S5. (From the fig. it is F)

3. If dynamic PCC is deployed, PGW sends CCR-INITIAL to PCRF on Gx interface to pull all the policy and charging rules to be installed for the PDN session.

4. PCRF responds with CCA-INITIAL with all the rules to PCEF. This step determines the number of dedicated bearers to be created at the Initial attach. Based on the Bearer QoS (QCI, ARP), PGW initiates the creation of the Dedicated bearers.

5. The PGW creates a new entry in its EPS bearer context table and generates a Charging Id for the Default Bearer. The PGW returns the CREATE_SESSION_RESPONSE on TEID  'C'. It allocates an ip-address based on the PDN type selected. This message has PGW-CONTROL FTEID IE which SGW can use this TEID for sending control messages on S5. (In the above figure it is B). Also this message has BEARER_CONTEXT_CREATED IE which has  PGW-DATA FTEID which SGW can use for sending GTP-PDUs on S5. (From the fig. it is E).

6. SGW returns this Create Session Response on TEID 'D' to MME. This message has SGW-CONTROL FTEID IE which MME can use for sending any message on S11. (In the above figure it is A).

Till this point the, S11 tunnel and S5 control and Data tunnels got established successfully.

7.  eNodeB upon successful messaging with UE, sends the ENB-DATA FTEID to MME. Now MME sends MODIFY_BEARER_REQUEST message on TEID with this IE to SGW so that SGW uses this TEID for sending GTP-PDUs on S1-U interface. (In the above figure it is X).

8. SGW responds to MME with MODIFY_BEARER_RESPONSE on TEID D. In this message it sends SGW-DATA FTEID which eNodeB has to use on S1-U interface. (In the above figure it is Y). MME sends this TEID to eNodeB which successfully marks the S1-U tunnel creation.

After this phase, uplink traffic from eNodeB to PDN via SGW - PGW and downlink data from PDN to eNodeB via PGW-SGW can be sent successfully on the GTP tunnels established.




Friday, January 27, 2012

EPC Specific Interfaces


Interfaces:

S1-MME: This  is the interface between eNodeB and MME (Mobility Management Entity). As the MME handles control plane only, this interface manages all the control plane signalling between eNodeB and MME.

S1-U: This interface is between eNodeB and Serving GW (SGW). It handles all the userplane data. This interface works on GTPv1 protocol. 

S11:  This is the reference point between MME and SGW. This works on protocol GTPv2-C. The UDP Destination Port number for GTP-C request messages is 2123. It is the registered port number for GTPv2-C. This interface also handles control plane messages.

S5: This tunnel interface is between SGW and PDN-GW (PGW). This interface handles both Control plane and Data plane. S5 can be GTP based or PMIP based. If it is GTP based, the control plane messages use GTPv2-C where as the userplane uses GTPV1-U. The UDP Destination Port number for GTP-U is 2152. If it is PMIP based, the interface runs on PMIPv6.

 Gx:  This interface is between PCRF (Policy and Charging Rules Function) and PCEF (Policy and Charging Enforcement Function). Normally PCEF is colocated with PGW. This interface mainly provides transfer of all QoS policy and chargin rules from PCRF to PCEF.


Ref:  3GPP TS 23.401

Bearers in LTE

An EPS bearer uniquely identifies traffic flows that receive a common QoS treatment between a UE and a PDN GW for GTP-based S5/S8.

Whenever a UE attaches to a PDN, there will always be a Default bearer which gets created. This EPS bearer which is first established for a new PDN connection and remains established throughout the lifetime of the PDN connection. Any additional EPS bearer that is established for the same PDN connection is referred to as a Dedicated bearer.

Each EPS bearer is assigned a EBI (EPS Bearer Identity) by MME. This EBI is of 4 bits. Hence 16 combinations are possible. In those 16, first 5 (0-4) are reserved. It means EBI values range from 5-15. Hence the total number of bearers that a UE can have per PDN is 11.  

An EPS bearer is referred to as a GBR bearer if dedicated network resources related to a Guaranteed Bit Rate (GBR) value that is associated with the EPS bearer are permanently allocated (e.g. by an admission control function in the eNodeB) at bearer establishment/modification. Otherwise, an EPS bearer is referred to as a Non-GBR bearer.

** A dedicated bearer can either be a GBR or a Non-GBR bearer. A default bearer shall be a Non-GBR bearer.

Ref: 3GPP TS 23.401

Thursday, January 26, 2012

New to LTE

Hi Folks,

I am new to LTE. In this blog, I want to post LTE-EPC concepts which I Understood from the 3GPP specs. Provide your comments and lets share the knowledge.