11-21-2016 06:20 AM - edited 11-18-2020 03:12 AM
picture from http://lteworld.org/blog/lcs-architecture-lte-eps
context SGSN_MME mme-service mme mme-id group-id 32768 mme-code 105 plmn-id mcc MMM mnc NN associate egtp-service mme-egtp-s10s11 context SGSN_MME associate hss-peer-service HSS context HSS associate sgtpc-service sgtp-mme context SGSN_MME associate sgs-service SGs context SGs associate location-service SLG_SLS ... context HSS interface sls-27/1-vlan704 ip address 10.6.1.60 255.255.255.248 #exit interface sls-lb1 loopback ip address 10.6.0.1 255.255.255.255 #exit interface sls-lb2 loopback ip address 10.6.0.2 255.255.255.255 location-service SLG_SLS associate diameter endpoint SLg associate sls-service egmlc exit sls-service egmlc esmlc esmlc-id 1 ipv4-address 10.200.6.30 ipv4-address 10.200.6.11 port 2905 weight 1 bind ipv4-address 10.16.0.1 ipv4-address 10.6.0.2 port 9082 sctp-template SLs #exit diameter endpoint SLg origin realm cisco.com use-proxy origin host MMEXXX.MMEXXX.MME.EPC.MNC0NN.MCCMMM.3GPPNETWORK.ORG address 10.6.0.4 port 3868 address 10.6.0.5 destination-host-avp always peer diameter.ciscowireless.com realm ciscowireless.com address 10.200.6.9 port 2906 sctp route-entry peer diameter.ciscowireless.com route-entry realm ciscowireless.com peer diameter.ciscowireless.com associate sctp-parameters-template SLg
picture from http://lteworld.org/blog/lcs-architecture-lte-eps
To understand messages exchanged for LCS, use monitor subscriber with following options (Diameter, S1AP, SLs)
First we receive the SLg Location Request in a diameter message.
+ in 09:20:53:572 Diameter 0x80000c (8388620) Provide-Location-Request
Diameter message from 10.200.6.9:2906 to 10.6.0.4:3868
Base Header Information:
Version: 0x01 (1)
Message Length: 0x0001c0 (448)
Command Flags: 0xc0 (192) REQ PXY
Command Code: 0x80000c (8388620) Provide-Location-Request
MME triggers S1 Paging
+ out 09:20:53:573 S1AP PAGING (10)
...
+ out 09:20:53:573 S1AP PAGING (10)
UE responds and MME sends Sls request.
+ in 09:20:53:921 S1AP INITIAL UE MESSAGE (12)
+ out 09:20:53:921 SLS Procedure Code: LOCATION SERVICE REQUEST (0)
SLS Tx PDU, from 10.6.0.1:9082 to 10.200.6.30:2905 (71)
SLs-AP (71 bytes)
Choice Index : Initiating Message (1)
Procedure Code: LOCATION SERVICE REQUEST (0)
Criticality : reject (0)
LOCATION SERVICE REQUEST value:
IEs Count : 9
IE : 0
Protocol IE ID : CORRELATION_ID (2)
Criticality : reject (0)
CORRELATION_ID Value:
52428800 (0x3200000)
IE : 1
Protocol IE ID : LOCATION_TYPE (13)
Criticality : reject (0)
LOCATION_TYPE Value:
Geographic-Information (0)
IE : 2
Protocol IE ID : E_UTRAN_CELL_IDENTIFIER (4)
Criticality : ignore (1)
E_UTRAN_CELL_IDENTIFIER Value:
PLMN Identity
0xNNMMM
Cell Identity
265986 (0x40f02)
IE : 3
Protocol IE ID : LCS_CLIENT_TYPE (8)
Criticality : reject (0)
LCS_CLIENT_TYPE Value:
Lawful-Intercept-Services (3)
IE : 4
Protocol IE ID : LCS_PRIORITY (9)
Criticality : reject (0)
LCS_PRIORITY Value:
Highest-Priority (0)
IE : 5
Protocol IE ID : LCS_QOS (10)
Criticality : reject (0)
LCS_QOS Value:
Horizontal Accuracy
0
Vertical Requested
Vertical Coordinate Is Requested (1)
Response Time
Delay-Tolerant (1)
IE : 6
Protocol IE ID : UE_POSITIONING_CAPABILITY (20)
Criticality : reject (0)
UE_POSITIONING_CAPABILITY Value:
TRUE (1)
IE : 7
Protocol IE ID : INCLUDE_VELOCITY (5)
Criticality : reject (0)
INCLUDE_VELOCITY Value:
Not-Requested (1)
IE : 8
Protocol IE ID : IMSI (7)
Criticality : ignore (1)
IMSI Value:
XXXXXX09516386f4
End-to-end SLs communication through MME.
+ in 09:20:53:930 SLS Procedure Code: CONNECTION ORIENTED INFORMATION TRANSFER (1)
+ out 09:20:53:930 S1AP DOWNLINK UE ASSOCIATED LPPA TRANSPORT (44)
+ in 09:20:53:964 S1AP INITIAL CONTEXT SETUP (9)
+ in 09:20:54:201 S1AP UPLINK UE ASSOCIATED LPPA TRANSPORT (45)
+ out 09:20:54:201 SLS Procedure Code: CONNECTION ORIENTED INFORMATION TRANSFER (1)
After that we should respond to SLg diameter request.
Or if We timeout, we could see an abort.
+ out 09:23:19:833 SLS Procedure Code: LOCATION ABORT (3)
+ out 09:23:19:834 Diameter 0x80000c (8388620) Provide-Location-Answer Data: DIAMETER_ERROR_POSITIONING_FAILED (4225)
******** show sls-service peers all ******* Monday October 10 12:01:27 AST 2016 Total ESMLC:1 MM ESMLC-ID AssocStatus Uptime Peer-ID IP-Addresses-1[state] IP-address-2[state] -- -------- ----------- ---------- ---------- -------------------------------------------- ---------------------------- 08 1 UP 10h48m29s 1xxxxxxx0 10.200.6.30[UP] 10.200.6.11[DOWN]
******** show sls-service all ******* Monday October 10 12:01:27 AST 2016 Service name : egmlc Service id : 12 Context : HSS Status : STARTED Bind : Done SLs-MME IP Address : 10.6.0.1 10.6.0.2 SCTP Port : 9082 T-3x01 (Low Delay) : 20 s T-3x01 (Delay Tolerant) : 20 s T-3x02 : 3 s Max Re-Transmission : reset (0) SCTP Param Template Associated : SLs SCTP Alpha : 12 SCTP Beta : 25 SCTP Checksum Type : CRC32 SCTP Valid Cookie Lifetime : 60000ms SCTP Max Assoc Retrans : 8 SCTP Max Number of In Streams : 16 SCTP Init Retransmissions : 8 SCTP Max MTU : 1428bytes SCTP Max Number of Out Streams : 16 SCTP Path Retransmissions : 4 SCTP Min MTU : 1428bytes SCTP RTO Initial : 200ms SCTP RTO Max : 500ms SCTP RTO Min : 150ms SCTP Sack Frequency : 1 SCTP Sack Period : 10ms SCTP Start MTU : 1428bytes SCTP Heartbeat Status : Enabled SCTP HeartBeat Timer : 1s SCTP Bundle Status : Enabled SCTP Bundle Timer : 100ms SCTP Alternate Accept Flag : Enabled
******** show sls-service statistics ******* Monday October 10 12:01:27 AST 2016 SLS-AP Statistics: Sent Messages: Location Request: 633 Location Abort: 126 Connection Info: 8351 Connectionless Info: 0 Reset Req: 0 Reset Ack: 0 Recevied Messages: Location Response: 508 Connection Info: 8792 Connectionless Info: 0 Reset Req: 0 Reset Ack: 0 SCTP Statistics: Transmitted SCTP Data: Init Chunks: 218 Init Ack Chunks: 0 Shutdown Chunks: 0 Shutdown Ack Chunks: 36 Cookie Chunks: 58 Cookie Ack Chunks: 0 Data Chunks: 9120 Data Ack Chunks: 9436 Shutdown Complete Chunks: 0 Heartbeat Chunks: 13644384 HeartBeat Ack Chunks: 11610193 Abort Chunks: 55 Error Chunks: 0 Received SCTP Data: Init Chunks: 0 Init Ack Chunks: 58 Shutdown Chunks: 36 Shutdown Ack Chunks: 0 Cookie Chunks: 0 Cookie Ack Chunks: 40 Data Chunks: 9436 Data Ack Chunks: 8747 Shutdown Complete Chunks: 36 Heartbeat Chunks: 11610193 HeartBeat Ack Chunks: 4273331 Abort Chunks: 158 Error Chunks: 0 Retransmitted SCTP Data: Init Chunks: 32 Shutdown Chunks: 0 Shutdown Ack Chunks: 0 Cookie Chunks: 144 Data Chunks: 562 Total Bytes Sent: 1215159 Total Bytes Received: 737483 Total Packets Sent: 9120 Total Packets Received: 9436
2016-Oct-12+11:43:35.438 [sls 206303 debug] [5/0/6766 <sessmgr:110> sls_app_msg.c:230] [software internal user syslog] Sent SLS message
2016-Oct-12+11:43:35.438 [sls 206303 debug] [5/0/6766 <sessmgr:110> sls_app_msg.c:156] [software internal user syslog] Starting location response timer (40 seconds)
2016-Oct-12+11:43:35.448 [sls 206301 debug] [5/0/6766 <sessmgr:110> sls_app_msg.c:417] [callid 209afa9d] [software internal user inbound protocol-log syslog] SLS Rx PDU, from 10.200.6.30:2905 to 10.6.0.1:9082 (69)
2016-Oct-12+11:43:35.556 [sls 206302 debug] [5/0/6766 <sessmgr:110> sls_app_msg.c:227] [callid 209afa9d] [software internal user outbound protocol-log syslog] SLS Tx PDU, from 10.6.0.1:9082 to 10.200.6.30:2905 (209)
2016-Oct-12+11:43:51.876 [sls 206303 debug] [5/0/6766 <sessmgr:110> sls_app_utils.c:149] [software internal user syslog] Deleted SLS request. Correlation id : 115343363
2016-Oct-12+11:43:57.965 [sls 206305 info] [5/0/6766 <sessmgr:110> sls_app_msg.c:379] [software internal user syslog] Received SLs message(1) with invalid correlation id (115343363)
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: