In each LTE network the Internet Domain Name System (DNS) is widely used to handle the Dynamic Peer selection of the PDN-GW, SGW, MME, SGSN and HSS within the network. We could use statistic assingments but, hey! belive me, DNS is much easier if handled properly.
In a few days I will try to cover the details of DNS config for points mentioned below - stay tunned.
EPS Nodes sends the DNS Query message to the Internal DNS (iDNS) for the selection of EPS nodes for the following uses cases.
- As part of the UE Attach the eNB will query the iDNS Server using the TAI for the address of the MME it should provide to that UE.
- During UE attach the MME query the iDNS Server to select the PDN-GW (Packet Data Network Gateway, PGW) where a requested (subscribed) PDN connectivity (APN) is located. Selection can be based on the information provided to the MME, when the UE attaches to the network.
- Following the PGW selection, the MME query the DNS Server to select an available SGW to serve the UE using the TAC, which in most cases is based on network topology and the location of the UE within the network, so that the best SGW is selected.
- SGSN will query the DNS Server to resolve the Old MME using LAC, and RAC (taken from Old GUTI received from UE) during LTE to 3G/2G Handover.
- MME will query the DNS Server to resolve the Old SGSN using NRI, LAC, and RAC (taken from P-TMSI received from UE) during 3G/2G to LTE Handover.
- During attach the MME is configured to support the HSS Peer Service and Interface Associations towards the Diameter proxy/edge agent. These are static configurations in the MME towards the Diameter Proxy and no DNS query is initiated by the MME to select the Diameter Proxy.
Today it will about two of them referring to MME Selection, and the list above will be copied few times more when covering the SGW, PGW, SGSN and HSS selection.
DNS Interface
DNS interface is not via a 3GPP standardised interface, the eNBs, MMEs, SGSN and Diameter Proxy are connected (IP connectivity) to DNS servers in the EPS. Typically within the EPC network the EPS nodes would access the DNS servers via the Gn interface or O&M interface.MME Selection
- Ref. to point 1, MME Selection during the Attach to LTE Network:
As part of the UE Attach the eNB will query the DNS Server using the TAI for the address of the MME. Typically the DNS will have a pool of MMEs to select from in response to the query.
The format of the TAI FQDN is constructed as follows:
tac-lb<TAC-low-byte>.tac-hb<TAC-high- byte>.tac.epc.mnc<MNC>.mcc<MCC>.3gppnetwork.org
The DNS may provide more than one MME address (candidate set) from which the eNB can select a MME.
- Ref. to point 4, SGSN selection durring LTE->2/3G handover:
There are procedures where the old MME must be contacted by a Release-8 SGSN supporting only Gn/Gp. The primary use case is context transfer during Handover. A UE moving from eUTRAN to pre-Release-8 UTRAN/GERAN the UE will provide a derived P-TMSI based on a GUTI. As a result the source MME looks like a pre-Release-8 SGSN to a pre-Release-8 target SGSN node.
For a Release 8 Gn/Gp-SGSN to find all Gn and Gp interfaces of an MME based on the old GUTI and it would use a "Service Parameter" of " x-3gpp-mme:x-gn", " x-3gpp-mme:x-gp".
For pre-Release 8 compatibility operators would continue to provision A/AAAA records for the corresponding Gn/Gp interfaces regardless of whether the source SGSN is pre-Release-8 or not. Gn/Gp interfaces are provisioned redundantly for both ".gprs" and ".3gppnetwork.org" top level domains.
Source:
from my own experience
Very clear.
ReplyDelete- T-Mobile Tom
I really enjoy to hear that from you T-Mobile Tom. ;-)
DeleteHi, Baton. nice to meet you. One question is that why MME will query for PGW prior to SGW?
ReplyDeleteHi my friend.
DeleteBecause of the APN. See the second point
"2. During UE attach the MME query the iDNS Server to select the PDN-GW (Packet Data Network Gateway, PGW) where a requested (subscribed) PDN connectivity (APN) is located. Selection can be based on the information provided to the MME, when the UE attaches to the network"
MME does the DNS for PGW which is serving the requested APN, and then, with this PGW it can search for SGW that has interface(s5/s8) with PGW serving the requested APN.
DeleteYou can also look at order of PGW/SGW selection in diferent way to to understand the is not optimal.
You will select the SGW, and then you will ask each of the PGW that the SGW has s5/s8 interface with if they are able to serve requested APN. Worst case scenario? You need to do the SGW reselection.
How many singaling is lost in this approach? Dont know, but I would like to avoid troubleshooting such scenario ;-D
Bart, do you have anything on MME Pool Feature ? besides the 3gpp spec. I was looking for it on your blog, as it is quiet detail
ReplyDeletegood explanation.
ReplyDeleteBart, what happen if an UE does the handover from LTE to 3G and the call drop? Where should I look first to find the problem, in the SGW or in the MME?
ReplyDeleteHi, am trying to initiate a call between two mme's(s-10) interface. After configuring the dns query , It is not initiating. can you explain what could be the reason?
ReplyDeleteOne question, source MME sends Forward Relocation Request including ips for SGW and PGW to target MME but target MME does iDNS query just to get the same ip for SGW based on TAC, why this happens? is there a way to avoid this. After the iDNS query the target MME sends Create Session Request and never receives response.
DeleteHey to everyone, it’s my first visit of the blog site; this blog includes awesome and actually best info for the visitors.
ReplyDeleteChanging World Order
Very clear explanation Barton
ReplyDeleteHow UE selects enode during 1st attach procedure
ReplyDeletegreat
ReplyDelete