Professional Documents
Culture Documents
Training.huawei.com
E/G L J
A
E
F
SMS-GMSC
BSS EIR Gs Gr Gc SMS-IWMSC
Gf Gd
Gb
SGSN Gn GGSN
Gn Gp Gi
SGSN
GGSN PDN
Other PLMN
Service Interface
MAP Service Provider
1 、 Function
difference
MAP Phase1: Support Basic Supplementary Services instead of CAMEL
or GPRS. Basic Supplementary Services Supported: BAOC, BOIC,
BoIcexHC, BAIC, BIc-roam, CFU, CFB, CFNRy, and CFNRc.
MAP Phase2: Not Support CAMEL or GPRS; Functions of Supplementary
Services are Enhanced based on Phase1 Supplementary Services, for
Example, CLIP/CLIR, COLP/COLR, Call Waiting, Call Hold, Multi-party
Session, Closed User Group (CUG), and HOT BILLING.
MAP Phase2+: As Compared with Phase2, Phase2+ Supports CAMEL
and GPRS.CAMEL, whether at Phase1 or Phase2, is Supported at the
MAP Phase2+ alone. The GPRS Function is Added for Joint Location
Update for GSM/GPRS Mixed Users. Meanwhile, Some New
Functions, for Example, LCS Function, are Added to Phase2+.
Training.huawei.com
ASN.1 Coding
MAP Message Format
MAP Message Coding
MAP Message
Analysis
Tag : It makes up of one or more octets. It contains three parts: Class, Form
and Tag Code.
H G F E D C B A
Class Form Tag Code
Thereinto , The Two Bits HG form the Class, which categorizes tags into four types:
HG = 00 Universal, it is the completely standardized tag defined in the X.209.
HG = 01 Application-Wide, it is applied to IEs of various TCAP application service ASEs (that is, TCAP user) in
SS7. For example, this type of tags are used for the tags of the transaction processing sublayer.
HG =10 Context-specific, It is used in the IEs specified in the upper-level Constructor. The sequence of other data
elements in the same constructor should also be considered for these IEs. This tag can be repeatedly used in
other constructors, for example this type of tags are used for all tags of the component processing sublayer.
HG=11 Private Use, It is reserved for use in IEs of national, network or private users. These IEs does not belong
to the protocol scope of the TC.
~ ~
~ ~
0
( A )单字节格式 ( B )扩展格式
ASN.1 Coding
MAP Message Format
MAP Message
Coding
MAP Message
Analysis
MTP SCCP
TCAP message MAP message
message message
Rout lable
Message type(UDT)
Protocol type
ASN.1 Coding
MAP Message
Format
MAP Message Coding
MAP Message
Analysis
ASN.1 Coding
MAP Message Format
MAP Message Coding
MAP Message Analysis
MTP Layer
3F 83 11 FF 03 09 FF 05 0D :
3F----indicating the length of the whole MTP message. When the number
of all the message bytes is greater than 63 bytes, the byte is uniformly
set as 3F.
83----If the higher four bits are “8”, it indicates the network indicator,
indicating the national master network; if the lower four bits are “3”, it
indicates the service indicator, indicating the subsequent SCCP
message.
11 FF 03----the DPC is 03 FF 11
09 FF 05----the OPC is 05 FF 09
0D----SLS Signaling link selection code
09 81(SCCP) 03 0E 18 0B 12 06 00 12 04 68 31 39 31 00
00 0A 12 07 00 12 04 68 31 09 40 67 2A
09: indicating the message type is UDT.
81: If the higher four bits are “8”, it indicates that the Quality of Service (QoS) requires error return;
if the higher four bits are “0”, it indicates that the QoS does not require the error return. If the
lower four bits are “1”, it indicates that the protocol type of the SCCP is sequential
connectionless class 0.
03: The pointer of the called subscriber address: “03” means that the bytes starting with the third
byte after “03” indicate the called address.
0E: The pointer of the calling subscriber address: “0E” means that the bytes starting with the
fourteenth byte after “0E” indicate the calling address.
18: Data address pointer; “18” means that data addresses begin with the 24th byte after “18”.
0B 12 06 00 12 04 68 31 39 31 00 00 ----the called party’s GT code address. For details, see the
teaching course.
0A 12 07 00 12 04 68 31 09 40 67----Address of the calling GT code. The analysis method is the same
as that of the address of the called GT code.
22: length of SCCP data part, that is, length of a TCAP message, incating that the length is 34 octets.
62 28 48 04 2B 81 11 00
62 : The field code of the transaction part, that is, the message type tag of
the TCAP, indicating that the message type is a message Begin.
28 : According to the composition of the IE, after the message type tag is
the IE length, so it can be seen that the “2A” before 62 indicates that the
length of this TCAP message is 42 (2AH) bytes.
48 : Indicating the transaction ID in the message type so as to differentiate
different transactions. “48” indicates the source transaction ID tag.
04 : According to the composition of an IE, after the Tag is the IE Length,
therefore “04” indicates that the length of the destination transaction
processing ID value is 4 bytes
2B 81 11 00 : Source transaction ID value
6C 80 A1 80 02 01 00 02 01 02 30 16 04 08 64 00 30 31
08 00 51 F4 81 06 91 68 31 09 40 67 00 00 00 00 00 00
6C : Component part tag.
80 : Indicates that the length of this component is indefinite.
A1 : Part coding tag in component part; the value “A1” indicates that this part is invoking
part; “A2” indicates that this part is result (final) return part; “A3” indicates that this part
is error return part; “A4” indicates REJECT.
80 : Length of IE, an indefinite length.
02 : Local invoke tag 01 : Operation code length. 00 : The invoke ID value i
s 00.
02 : Local operation code tag, indicating the operation conducted for the invoke this time.
01 : Length of local operation code
02 : Operation code, indicating the operation conductedfor the invoke this time.
30 : Indicating the sequence tag, this item is optional in the returned component.
16 : Length 04 : Octet string 08 : Length
64 00 22 07 08 00 51 F4 : Mandatory location update parameter: IMSI
81 : Tag 06 : Length 91 : Attribute
68 31 09 00 64 F7 : optional parameter for location update: MSC number; F is a filler.
HUAWEI TECHNOLOGIES Co., Ltd. HUAWEI Confidential Page 29
Content
Training.huawei.com
Overview
Location update is used to update the mobile user location information
saved in network.This location information is used to provide roaming
mobile users with route address of incoming calls, short messages,
and unstructured supplementary service data.
To decrease update of user HLR, HLR only saves the information about
VLR and MSC users attach to.VLR contains more detailed location
information, that is, an location area where a user actual
roams.Therefore, each time a location area is changed, VLR needs
to be updated while HLR needs to do so only in the following cases:
When a user is registered at a new VLR and when VLR has no data of this user;
If the tag “HLR confirmation” or “confirmation of location information in HLR” is set
as “unconfirmed” due to reset of HLR or VLR, VLR receives the instruction that
the user appears.
A_LU_REQUEST
MAP_UPDATE_LOCATION_AREA
(note 1)
MAP_AUTHENTICATE
MAP_AUTHENTICATE ack
(note 2)
MAP_SET_CIPHERING_MODE
MAP_TRACE_SUBSCRIBER_
ACTIVITY
MAP_CHECK_IMEI
MAP_CHECK_IMEI ack
MAP_FORWARD_NEW_TMSI
MAP_UPDATE_LOCATION_AREA
A_LU_CONFIRM ack
MAP_FORW._NEW_TMSI ack
A_LU_REQUEST
MAP_UPDATE_
LOCATION_AREA MAP_SEND_IDENTIFICATION
MAP_SEND_IDENTIFICATION
ack
MAP_UPDATE_LOCATION
MAP_CANCEL_
LOCATION
MAP_CANCEL_
LOCATION ack
MAP_ACTIVATE_TRACE_MODE
MAP_TRACE_SUBSCR
_ACTIVITY MAP_ACTIVATE_TRACE_MODE ack
MAP_INSERT_SUBSCRIBER_DATA
MAP_INSERT_SUBSCR._DATA ack
MAP_UPDATE_LOCATION_AREA ack
MAP_UPDATE_
A_LU_CONFIRM LOCATION_AREA ack
A_LU_REQUEST
MAP_UPDATE_
LOCATION_AREA
MAP_PROVIDE_IMSI
MAP_PROVIDE_IMSI
ack
MAP_UPDATE_LOCATION
MAP_ACTIVATE_TRACE_MODE
MAP_TRACE_SUBSCR
_ACTIVITY MAP_ACTIVATE_TRACE_MODE ack
MAP_INSERT_SUBSCRIBER_DATA
MAP_INSERT_SUBSCR._DATA ack
MAP_UPDATE_LOCATION_AREA ack
MAP_UPDATE_
A_LU_CONFIRM LOCATION_AREA ack
IMSI Separation
A B
MS BS MSC VLR
A_LU_Request
(DETACH IMSI)
MAP_DETACH_IMSI
IMSI separation (that is, power-off). User data in VDB still exist and the
user’s power-off mark has been set. In this case, if the user is the callee,
HLR will get the roam number from the VMSC where the user is located,
but it will not enter the flow of roam number allocation if it finds the user’s
power-off mark. MAP part clears directly and returns.
D
VLR HLR
MAP_PURGE_MS
MAP_PURGE_MS_ack
MAP_PROVIDE_ROAMING_NUMBER
PROVIDE_ROAMING_NUMBER_ack
MAP_SEND_AUTHENTICATION_INFO
SEND_AUTHENTICATION_INFO_ack
MAP_RESTORE_DATA
MAP_ACTIVATE_TRACE_MODE
MAP_ACTIVATE_TRACE_MODE ack
MAP_INSERT_SUBSCRIBER_DATA
INSERT_SUBSCRIBER_DATA_ack
MAP_RESTORE_DATA_ack
MAP_RESET
MAP_UPDATE_LOCATION_AREA or
MAP_PROCESS_ACCESS_REQUEST
MAP_UPDATE_LOCATION
MAP_ACTIVATE_TRACE_MODE
MAP_ACTIVATE_TRACE_MODE ack
MAP_INSERT_SUBSCRIBER_DATA
INSERT_SUBSCRIBER_DATA_ack
MAP_UPDATE_LOCATION_ack
MAP_FORWARD_CHECK_SS
and MAP_FORWARD_CHECK_SS
INDICATION
INDICATION (optional)
(if received from HLR)
I IAM
MAP_SEND_ROUTING
INFORMATION MAP_PROVIDE_SUBSCRIB
MSC ER INFORMATION
MAP_PROVIDE_SUBSCRIB
ER INFORMATION ack
MAP_SEND_ROUTING
INFORMATION ack
MAP_SEND_ROUTING
INFORMATION MAP_PROVIDE_ROAMING
NUMBER
MAP_PROVIDE_ROAMING
NUMBER ack
MAP_SEND_ROUTING
INFORMATION ack
I IAM MAP_RESTORE_DATA
gsmSCF
SCF HLR VLR
MAP_ANY TIME
INTERROGATION MAP_PROVIDE_SUBSCRIB
ER INFORMATION
MAP_PROVIDE_SUBSCRIB
MAP_ANY TIME ER INFORMATION ack
INTERROGATION ack
PROCESS_ACCESS
A_REGISTER_SS
MAP_REGISTER_SS MAP_REGISTER_SS
MAP_REGISTER_SS ack
MAP_REGISTER_SS ack
A_REGISTER_SS ack
MAP_INS_SUBS_DATA
PROCESS_ACCESS
A_ERASE_SS
MAP_ERASE_SS MAP_ERASE_SS
MAP_ERASE_SS ack
MAP_ERASE_SS ack
A_ERASE_SS ack
MAP_INS_SUBS_DATA
PROCESS_ACCESS
A_ACTIVATE_SS
MAP_ACTIVATE_SS MAP_ACTIVATE_SS
MAP_GET_PW MAP_GET_PW
A_GET_PW
A_GET_PW ack
MAP_GET_PW ack MAP_GET_PW ack
MAP_ACTIVATE_SS ack
MAP_ACTIVATE_SS ack
A_ACTIVATE_SS ack
MAP_INS_SUBS_DATA
PROCESS_ACCESS
A_DEACTIVATE_SS
MAP_DEACTIVATE_SS
MAP_DEACTIVATE_SS
MAP_GET_PW MAP_GET_PW
A_GET_PW
A_GET_PW ack
MAP_GET_PW ack MAP_GET_PW ack
MAP_DEACT_SS ack
MAP_DEACTIV_SS ack
A_DEACTIV_SS ack
MAP_INS_SUBS_DATA
PROCESS_ACCESS
A_INTERROGATE_SS
MAP_INTERROGATE_SS MAP_INTERROGATE_SS
MAP_INTERR_SS ack
MAP_INTERR_SS ack
A_INTERR_SS ack
PROCESS_ACCESS
A_REGISTER_PW
MAP_REGISTER_PW
MAP_REGISTER_PW
MAP_GET_PW MAP_GET_PW
A_GET_PW
MAP_GET_PW
MAP_GET_PW
A_GET_PW
A_GET_PW ack
MAP_GET_PW ack MAP_GET_PW ack
MAP_GET_PW
A_GET_PW MAP_GET_PW
A_GET_PW ack
MAP_GET_PW ack MAP_GET_PW ack
MAP_REG_PW ack
MAP_REGISTER_PW ack
A_REGISTER_PW ack
Servicing Interworking
MS VLR SC
MSC or SGSN MSC
MAP_MO_FORWARD_SHORT_MESSAGE
Short Message
Short message
Short message MAP_MO_FORWARD_SHORT_MESSAGE_ACK Acknowledgement
Acknowledgement
Short Message
MAP_SEND_ROUTING_
INFO_FOR_SM
MAP_SEND_ROUTING_
INFO_FOR_SM_ACK
MAP_MT_FORWARD_SHORT_MESSAGE
MAP_SEND_INFO_FOR_
MT_SMS
MAP_PAGE/MAP_SEARCH_FOR
_MOBILE_SUBSCRIBER
Page
Page response
MAP_PROCESS_ACCESS_REQUEST_ACK/
MAP_SEARCH_FOR_MOBILE_SUBSCRIBER_ACK
MAP_SEND_INFO_FOR
_MT_SMS_ACK
Short Message
Short message
Acknowledgement
MAP_MT_FORWARD_SHORT_MESSAGE_ACK Short message
Acknowledgement
Short Message
MAP_SEND_ROUTING_
INFO_FOR_SM
MAP_SEND_ROUTING_
INFO_FOR_SM_ACK
MAP_MT_FORWARD_SHORT_MESSAGE(note 1)
MAP_SEND_INFO_FOR_
MT_SMS
MAP_PAGE/MAP_SEARCH_FOR
_MOBILE_SUBSCRIBER
Page
Page response
MAP_PROCESS_ACCESS_REQUEST_ACK/
MAP_SEARCH_FOR_MOBILE_SUBSCRIBER_ACK
MAP_SEND_INFO_FOR
_MT_SMS_ACK
Short Message
Short message
Acknowledgement
MAP_MT_FORWARD_SHORT_MESSAGE_ACK Short message
Acknowledgement
Short Message
MAP_MT_FORWARD_SHORT_MESSAGE(note 2)
Short Message
Short message
Acknowledgement
MAP_MT_FORWARD_SHORT_MESSAGE_ACK Short message
Acknowledgement
CM Service Request /
Page response/
Location Updating
MAP_PROCESS_ACCESS_REQUEST /
MAP_UPDATE_LOCATION_AREA
MAP_ALERT_SERVICE_
CENTRE_ACK
SM memory capacity
available MAP_READY_FOR_SM
(Memory Available)
MAP_READY_FOR_SM
(Memory Available)
MAP_READY_FOR_SM_ACK
MAP_READY_FOR_SM_ACK
SM memory capacity
available ack MAP_ALERT_SERVICE_
CENTRE
Alert Service
Centre
MAP_ALERT_SERVICE_
CENTRE_ACK
MAP_REPORT_SM_DELIVERY_STATUS
(Successful Transfer)
MAP_REPORT_SM_DELIVERY_STATUS_ACK
MAP_ALERT_SERVICE_
Alert Service
CENTRE (note)
Centre
MAP_ALERT_SERVICE_
CENTRE_ACK
Visited Gateway
HLR SC
MSC or SGSN MSC
MAP_MT_FORWARD_SHORT_MESSAGE_ACK/_NACK
(Absent subscriber_SM,unidentified
subscriber or memory capacity exceeded)
MAP_REPORT_SM_DELIVERY_STATUS
MAP_REPORT_SM_DELIVERY_STATUS_ACK
1 、 SEND_ROUTING_INFO
<SCCP NAT 4613 00b 000008 000009 09 81 03 0C 16
09 12 06 00 12 04 68 31 28 07 0A 12 08 00 11 04 68 31
09 82 F0 54 62 80 48 04 39 01 00 38 6B 80 28 80 06 07
00 11 86 05 01 01 01 A0 80 60 80 A1 80 06 07 04 00 00
01 00 05 02 00 00 00 00 00 00 00 00 00 00 6C 80 A1 80
02 01 00 02 01 16 30 14 80 07 91 68 31 28 07 10 55 AA
09 0A 01 04 04 04 04 02 80 90 00 00 00 00 00 00
2 、 PROVIDE_ROAMING_NO
>SCCP NAT 4645 004 000009 000008 09 81 03 0D 16
0A 52 07 00 11 04 68 31 09 82 F1 09 12 06 00 12 04 68 31
28 07 6B 62 80 48 04 38 01 01 8A 6B 80 28 80 06 07 00
11 86 05 01 01 01 A0 80 60 80 A1 80 06 07 04 00 00 01 00
03 02 00 00 00 00 00 00 00 00 00 00 6C 80 A1 80 02 01 04
02 01 04 302B 80 08 64 00 22 07 08 00 51 F5 81 06 91 68
31 09 82 F0 82 07 91 68 31 28 07 10 55 84 04 13 26 00 0D
A5 08 0A 01 01 04 03 04 01 A0 00 00 00 00 00 00
3 、 PROVIDE_ROAMING_NO_RSP
<SCCP NAT 4662 003 000008 000009 09 00 03 0C 16
09 12 06 00 12 04 68 31 28 07 0A 52 07 00 11 04 68 31 09
82 F1 57 64 80 49 04 38 01 01 8A 6B 80 28 80 06 07 00 11
86 05 01 01 01 A0 80 61 80 A1 80 06 07 04 00 00 01 00 03
02 00 00 A2 03 02 01 00 A3 05 A1 03 02 01 00 00 00 00 00
00 00 00 00 6C 80 A2 80 02 01 04 30 80 02 01 04 04 07 91
68 31 09 82 00 10 00 00 00 00 00 00 00 00
4 、 SEND_ROUTING_INFO_RSP
>SCCP NAT 4684 009 000009 000008 09 00 03 0D 16
0A 52 08 00 11 04 68 31 09 82 F0 09 52 06 00 12 04 68 31
28 07 63 64 80 49 04 39 01 00 38 6B 80 28 80 06 07 00 11
86 05 01 01 01 A0 80 61 80 A1 80 06 07 04 00 00 01 00 05
02 00 00 A2 03 02 01 00 A3 05 A1 03 02 01 00 00 00 00 00
00 00 00 00 6C 80 A2 80 02 01 00 30 80 02 01 16 30 13 04
08 64 00 22 07 08 00 51 F5 04 07 91 68 31 09 82 00 10 00
00 00 00 00 00 00 00
1 、 SEND_AUTHENTICATION_INFO
<SCCP NAT 9100 005 000008 000009 09 81 03 0C
16 09 12 06 00 12 04 68 31 28 07 0A 12 08 00 11 04 68
31 09 82 F0 48 62 80 48 04 39 01 00 2C 6B 80 28 80
06 07 00 11 86 05 01 01 01 A0 80 60 80 A1 80 06 07 04
00 00 01 00 0E 02 00 00 00 00 00 00 00 00 00 00 6C 80
A1 80 02 01 00 02 01 38 04 08 64 00 22 07 08 00 51 F4
00 00 00 00 00 00
2 、 SEND_AUTHENTICATION_INFO_RSP
<SCCP NAT 9137 00d 000009 000008 09 00 03 0D 16 0A 52 08
00 11 04 68 31 09 82 F0 09 52 06 00 12 04 68 31 28 07 E1 64 80
49 04 39 01 00 2C 6B 80 28 80 06 07 00 11 86 05 01 01 01 A0
80 61 80 A1 80 06 07 04 00 00 01 00 0E 02 00 00 A2 03 02 01
00 A3 05 A1 03 02 01 00 00 00 00 00 00 00 00 00 6C 80 A2 80
02 01 00 30 80 02 01 38 30 81 90 30 22 04 10 11 11 11 11 11 11
11 11 11 11 11 11 11 11 11 11 04 04 02 02 02 02 04 08 03 03 03
03 03 03 03 03 30 22 04 10 11 11 11 11 11...
3 、 UPDATE_LOCATION
4 、 INSERT_SUBSCRIBER_DATA
>SCCP NAT 9354 00e 000009 000008 09 00 03 0D 16 0A 52
08 00 11 04 68 31 09 82 F0 09 52 06 00 12 04 68 31 28 07 70 65
80 48 04 38 01 00 CD 49 04 39 01 00 2E 6B 80 28 80 06 07 00
11 86 05 01 01 01 A0 80 61 80 A1 80 06 07 04 00 00 01 00 01 02
00 00 A2 03 02 01 00 A3 05 A1 03 02 01 00 00 00 00 00 00 00
00 00 6C 80 A1 80 02 01 03 02 01 07 30 1E 8008 64 00 22 07 08
00 51 F4 81 07 91 68 31 28 07 10 45 82 01 01 83 01 00 A6 03 04
01 11 00 00 00 00 00 00
5 、 INSERT_SUBSCRIBER_DATA_ACK
<SCCP NAT 9355 007 000008 000009 09 00 03 0C
16 09 12 06 00 12 04 68 31 28 07 0A 12 08 00 11 04
68 31 09 82 F0 1B 65 80 48 04 39 01 00 2E 49 04
38 01 00 CD 6C 80 A2 80 02 01 03 00 00 00 00 00 00
6 、 UPDATE_LOCATION_ACK
>SCCP NAT 9375 000 000009 000008 09 00 03 0D
16 0A 52 08 00 11 04 68 31 09 82 F0 09 52 06 00 12 04
68 31 28 07 23 64 80 49 04 39 01 00 2E 6C 80 A2 80
02 01 00 30 80 02 01 02 04 05 91 68 31 28 07 00 00 00
00 00 00 00 00
According to the analysis of the call flow and the location updating
flow, it have already been known that the specific MAP service
message exists in the TCAP message in the form of component.
Generally, the message types of the MAP service correspond to
the operation codes in the TCAP message one by one.
However, during the message transfer, one message
corresponds to an invoke ID. An invoke ID is the only ID of a
message during the MAP dialogue. With the differentiation of the
invoke ID, a component can be “translated” into the
corresponding MAP service message.
Thank You
www.huawei.com
www.huawei.com