Professional Documents
Culture Documents
1: GPRS attach
Preperation: 1. get mobile IMSI number. Eg: 460015760600070 2. delete subscribers from SGSN:
gsh delete_subscriber -imsi 460015760600070
3. Power off and power on mobile phone. Start the wireshark 4. get mobile P-TMSI by the follow SGSN cmd, also notice the RAI information:
gsh get_subscriber -imsi 460015760600070 Subscriber Data ---------------------------------------------------------------------IMSI : 460015760600070 Mobile Subscriber ISDN No. : 8618606765400 IMEI : 358065021586680 Roaming Status : Home HLR Address : 861304576000 Home PLMN APN Operator Id : mnc001.mcc460.gprs Subscribed Teleservices : No SMS Network Access Mode : Packet/Circuit Switched Radio Access Technology : UMTS Mobility Management State : PMM-IDLE Paging Proceed Flag : Set Routing Area [RAI] : 460-01-57601-1 P-TMSI : 3346057757 (#C770CA1D) MSC/VLR Address : Not Gs connected Location Confirmed in HLR : true Data Confirmed by HLR : true
Interface
IuPs
Target packets
3. Start Wireshark. Attach to the GPRS network. Active PDP context, then detach the MS by power off Mobile phone or unplug the DataCard. Interface
IuPs
Target packets
DETACH REQUEST DETACH ACCEPT
3. Start Wireshark. Active PDP context, delete subscriber on the SGSN by the following command.
gsh delete_subscriber -imsi 460013107600039
4. As the result, subscriber date in SGSN should change to detached immediately, then deleted on SGSN.
=== wangguan@eqm01s14p2 ANCB ~ # gsh delete_subscriber -msisdn 8618673144439 === wangguan@eqm01s14p2 ANCB ~ # gsh get_subscriber -msisdn 8618673144439 Subscriber Data ---------------------------------------------------------------------IMSI : 460013107600039 Mobile Subscriber ISDN No. : Information not available
IMEI : Information not available Roaming Status : Home HLR Address : 861301616000 Home PLMN APN Operator Id : mnc001.mcc460.gprs Subscribed Teleservices : Information not available Network Access Mode : Information not available Radio Access Technology : UMTS Mobility Management State : PMM-DETACHED Paging Proceed Flag : Routing Area [RAI] : P-TMSI : Information not available MSC/VLR Address : Not Gs connected Location Confirmed in HLR : false Data Confirmed by HLR : false === wangguan@eqm01s14p2 ANCB ~ # gsh get_subscriber -msisdn 8618673144439 Subscriber identity: "8618673144439" is not registered in the SGSN. === wangguan@eqm01s14p2 ANCB ~ #
Interface
IuPs
Target packets
DETACH REQUEST DETACH ACCEPT
6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21.
IMSI : 460013107600039 Mobile Subscriber ISDN No. : 8618673144439 IMEI : 357315010408310 Roaming Status : Home HLR Address : 861301616000 Home PLMN APN Operator Id : mnc001.mcc460.gprs Subscribed Teleservices : No SMS Network Access Mode : Packet/Circuit Switched Radio Access Technology : UMTS Mobility Management State : PMM-CONNECTED Paging Proceed Flag : Set Routing Area [RAI] : 460-01-57601-1 P-TMSI : 3828667772 (#E434D57C) MSC/VLR Address : Not Gs connected Location Confirmed in HLR : true Data Confirmed by HLR : true
3. Active PDP context. HLR send cancel location message to the subscriber. 4. On the SGSN, subscriber date has been deleted. Interface
IuPs
Target packets
DETACH REQUEST DETACH ACCEPT
4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20.
---------------------------------------------------------------------IMSI : 460013107600039 Mobile Subscriber ISDN No. : 8618673144439 IMEI : 357315010408310 Roaming Status : Home HLR Address : 861301616000 Home PLMN APN Operator Id : mnc001.mcc460.gprs Subscribed Teleservices : No SMS Network Access Mode : Packet/Circuit Switched Radio Access Technology : UMTS Mobility Management State : PMM-CONNECTED Paging Proceed Flag : Set Routing Area [RAI] : 460-01-57601-1 P-TMSI : 3828667772 (#E434D57C) MSC/VLR Address : Not Gs connected Location Confirmed in HLR : true Data Confirmed by HLR : true
3. Start Wireshark. Active PDP context. Match the IMEI and RAI
IuPs
Wireshark Filter:
gsm_a.dtap_msg_gmm_type == 0x12 || gsm_a.dtap_msg_gmm_type == 0x13 || gsm_a.dtap_msg_gmm_type == 0x14 || gsm_a.dtap_msg_gmm_type == 0x1c
Target packets
AUTHENTICATION AND CIPHERING REQUEST AUTHENTICATION AND CIPHERING RESPONSE
3. Start the wireshark . Power off and power on mobile phone. 4. get mobile P-TMSI by the follow SGSN cmd, also notice the RAI information
gsh get_subscriber -imsi 460015760600070
Subscriber Data ---------------------------------------------------------------------IMSI : 460015760600070 Mobile Subscriber ISDN No. : 8618606765400 IMEI : 358065021586680 Roaming Status : Home HLR Address : 861304576000 Home PLMN APN Operator Id : mnc001.mcc460.gprs Subscribed Teleservices : No SMS Network Access Mode : Packet/Circuit Switched Radio Access Technology : UMTS Mobility Management State : PMM-IDLE Paging Proceed Flag : Set Routing Area [RAI] : 460-01-57601-1 P-TMSI : 3346057757 (#C770CA1D) MSC/VLR Address : Not Gs connected Location Confirmed in HLR : true Data Confirmed by HLR : true
Interface
IuPs
Target packets
Security mode command Security mode complete Security mode reject
1. Mobile phone attached to the GPRS network. get mobile IMSI number. Eg: 460015760600070 2. get mobile P-TMSI by the follow SGSN cmd, also notice the RAI information:
gsh get_subscriber -imsi 460015760600070 Subscriber Data ---------------------------------------------------------------------IMSI : 460015760600070 Mobile Subscriber ISDN No. : 8618606765400 IMEI : 358065021586680 Roaming Status : Home HLR Address : 861304576000 Home PLMN APN Operator Id : mnc001.mcc460.gprs Subscribed Teleservices : No SMS Network Access Mode : Packet/Circuit Switched Radio Access Technology : UMTS Mobility Management State : PMM-IDLE Paging Proceed Flag : Set Routing Area [RAI] : 460-01-57601-1 P-TMSI : 3346057757 (#C770CA1D) MSC/VLR Address : Not Gs connected Location Confirmed in HLR : true Data Confirmed by HLR : true
3. Start wireshark, active PDP context. Match the RAI and IMSI. Interface
IuPs
Target packets:
RAB ASSIGNMENT REQUEST RAB ASSIGNMENT RESPONSE
Preperation: 1. Mobile phone attached to the GPRS network. get mobile IMSI number. Eg: 460015760600070 2. get mobile P-TMSI by the follow SGSN cmd, also notice the RAI information:
gsh get_subscriber -imsi 460015760600070 Subscriber Data ---------------------------------------------------------------------IMSI : 460015760600070 Mobile Subscriber ISDN No. : 8618606765400 IMEI : 358065021586680 Roaming Status : Home HLR Address : 861304576000 Home PLMN APN Operator Id : mnc001.mcc460.gprs Subscribed Teleservices : No SMS Network Access Mode : Packet/Circuit Switched Radio Access Technology : UMTS Mobility Management State : PMM-IDLE Paging Proceed Flag : Set Routing Area [RAI] : 460-01-57601-1 P-TMSI : 3346057757 (#C770CA1D) MSC/VLR Address : Not Gs connected Location Confirmed in HLR : true Data Confirmed by HLR : true
3. Start wireshark, active PDP context. Match the RAI and IMSI
Interface
IuPs
Target packets:
Service request Service accept Service reject
Target packets:
Paging Service request service accept (SGSN to RNC)
1. Mobile phone attached to the GPRS network. get mobile IMSI number. Eg: 460015760600070 2. get mobile P-TMSI by the follow SGSN cmd, also notice the RAI information 3. Start wireshark, active PDP context. Match the RAI and IMSI. Interface
IuPs Gn
Filtered packet:
Active PDP Context Request Active PDP Context Accept Activate PDP Context Reject Create PDP Context Request Create PDP Context Response
GTP:
gtp.imsi == "460015760600070" && gtp.message == 0x10"
Interface
IuPs Gn
Filtered packet:
Active Secondary PDP Context Request Active Secondary PDP Context Accept Activate Secondary PDP Context Reject Create PDP Context Request Create PDP Context Response
GTP:
gtp.imsi == "460015760600070" && gtp.message == 0x10"
Interface
IuPs Gn
Filtered packet:
Paging Service request service accept (SGSN to RNC)
Filtered packet:
Update PDP Context request Update PDP Context Response Modify PDP Context Request Modify PDP context accept Modify PDP Context Reject
Target packets:
Eg:
gtp.message == 0x12 || gtp.message == 0x13 || gsm_a.dtap_msg_sm_type == 0x48 || gsm_a.dtap_msg_sm_type == 0x49
Filtered packet:
Delete PDP Context Request Delete PDP Context Response Deactivate PDP Context Request Deactivate PDP context accept
Target packets:
RANAP:
gsm_a.dtap_msg_sm_type == 0x46 || gsm_a.dtap_msg_sm_type == 0x47 || gtp.message == 0x14 || gtp.message == 0x15
GTP:
gtp.message == 0x14 || gtp.message == 0x15
Interface
IuPs Gn
Filtered packet:
Delete PDP Context Request Delete PDP Context Response Deactivate PDP Context Request Deactivate PDP context accept
Target packets:
standard query standard query response
Wireshark Filter:
DNS
Interface
IuPs
Target packets:
Routing Area Update Request Routing Area Update Accept Routing Area Update Complete Routing area update reject
Target packets:
IDENTITY REQUEST Identity type IDENTITY response mobile identity
Target packets:
P-TMSI Reallocation Command P-TMSI reallocation complete
3. Start wireshark. Simulate subscriber unreachable by enter the elevator where the network doesnt cover. 4. When subscriber step out the elevator, the MS should be reachable again. Interface
IuPs
Target packets:
Paging