Short message processing method, network element, storage medium and computer program product
By querying the IMSI information after the number portability at the international signaling transfer point, we determine whether the short message belongs to the operator's network, and solving the problem of SMS theft after the number portability, and achieving accurate and timely processing of SMS. Reduces the risk of hair theft.
Patent Information
- Application Number
- CN202411117093.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-11-05
AI Technical Summary
After porting the number, mobile users who are out of the country can stolen text messages by modifying the SMS center number. The existing technology cannot collect, operate, maintain and push the number porting data in a timely manner, resulting in the international signaling transfer point being unable to timely Judgment, causing the risk of short message theft.
When the international signaling transfer point receives a short message command, it checks the international user identification code (IMSI) information corresponding to the code number information carried, and determines whether to forward the short message through IMSI to obtain the code number information in real time to reduce data updates. The risk of outbreak theft caused by untimely nature.
It effectively solves the problem of misblocking and misblocking caused by untimely update of number portability data, reduces the risk of text messages theft, and improves the accuracy and timeliness of judgments.
Smart Images

Figure CN118900398A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network security technology, and in particular to a short message processing method, a network element, a storage medium and a computer program product. Background Art
[0002] After the implementation of number portability, mobile users who roam abroad can send stolen text messages by changing the SMS center number in their mobile phones to the SMS center number of the original network they have ported. After the implementation of the number portability function, since the corresponding equipment cannot collect, operate, maintain and push the real-time updated number portability data to each operator in a timely manner, it will cause theft of short messages when the International Signaling Transfer Point (ISTP) makes a judgment. Summary of the invention
[0003] In view of this, the present application hopes to provide a short message processing method, network element, storage medium and computer program product, which can prevent the unauthorized sending of short messages.
[0004] The technical solution of this application is implemented as follows:
[0005] In a first aspect, the present application provides a short message processing method, which is applied to a first network element, and the method includes:
[0006] Receiving a short message instruction information sent by a user equipment (User Equipment, UE), wherein the short message instruction information carries first code number information;
[0007] Based on the first code number information, querying the International Mobile Subscriber Identity (IMSI) information corresponding to the first code number information from the second network element of the first operator network where the first code number information is located and / or the third network element of the second operator network to which the first code number information belongs;
[0008] When the IMSI information is found, it is determined whether to forward the short message based on the IMSI information.
[0009] In a second aspect, the present application provides a first network element, wherein the first network element includes:
[0010] A receiving unit, configured to receive a short message instruction information sent by a UE, wherein the short message instruction information carries first code number information;
[0011] A query unit, configured to query, based on the first code number information, the IMSI information corresponding to the first code number information from the second network element of the first operator network where the first code number information is located and / or the third network element of the second operator network to which the first code number information belongs;
[0012] The determination unit is used to determine whether to forward the short message based on the IMSI information when the IMSI information is queried.
[0013] In a third aspect, the present application provides a first network element, which includes: a processor and a memory; when the processor executes a running program stored in the memory, the above-mentioned short message processing method is implemented.
[0014] In a fourth aspect, the present application provides a storage medium having a computer program stored thereon, characterized in that the computer program implements the above-mentioned short message processing method when executed by a processor.
[0015] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the above-mentioned short message processing method when executed by a processor.
[0016] The present application provides a short message processing method, a network element, a storage medium and a computer program product, the method comprising: receiving a short message instruction information sent by a UE, wherein the short message instruction information carries a first code number information; based on the first code number information, querying the IMSI information corresponding to the first code number information from a second network element of a first operator network where the first code number information is located and / or a third network element of a second operator network to which the first code number information belongs; when the IMSI information is queried, determining whether to forward the short message based on the IMSI information. By adopting the above implementation scheme, when the first network element receives the short message instruction information, it does not directly forward the short message. Instead, based on the first code number information carried by the short message instruction information, it searches for the IMSI information corresponding to the first code number information in the first network element of the first operator network or in the second network element of the second operator network to which the first code number information belongs. Because the process is sent in real time, the IMSI information corresponding to the first code number information can be directly obtained when the short message instruction is received, and the first code number information is determined in real time through the IMSI information whether it belongs to the first operator network, and further determines whether to forward the short message. In this way, the risk of SMS theft caused by the untimely update of data in the number portability database can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A schematic diagram of a process of stealing SMS messages from overseas users;
[0018] Figure 2A schematic diagram of a process of a virtual location register (VLR) sending a request to obtain IMSI information to a home location register (HLR) provided in an embodiment of the present application;
[0019] Figure 3 A schematic diagram of a short message processing method provided in an embodiment of the present application;
[0020] Figure 4 A schematic diagram of the overall process of a short message processing method provided in an embodiment of the present application;
[0021] Figure 5 A schematic diagram of a first network element structure provided in an embodiment of the present application Figure 1 ;
[0022] Figure 6 A schematic diagram of a first network element structure provided in an embodiment of the present application Figure 2 . DETAILED DESCRIPTION
[0023] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the technical solution of the present application is further elaborated in detail below in combination with the drawings and specific embodiments of the specification. The attached drawings are for reference only and are not used to limit the embodiments of the present application.
[0024] Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meaning as those commonly understood by those skilled in the art to which the present application belongs. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.
[0025] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict. It should also be noted that the terms "first / second / third" involved in the embodiments of the present application are only used to distinguish similar objects and do not represent a specific ordering of the objects. It is understandable that "first / second / third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0026] After the implementation of number portability, mobile users who roam abroad can send unauthorized text messages by changing the text message center number in their mobile phone to the text message center number of the original ported network. There are security risks in sending unauthorized text messages. The implementation principle diagram of unauthorized text messages is as follows: Figure 1 shown. Figure 1The implementation process of stealing text messages is as follows:
[0027] After user equipment A (UE_A) successfully transfers its number from the original Home Public Mobile Network (HPMN) 2 network to the HPMN1 network, and successfully accesses the overseas Virtual Private Mobile Network (VPMN) network, it can modify the SMS center address (Short Message Service Center, SMSC) in UE_A's mobile terminal, and change the SMS center address of the HPMN1 network after the number portability to the SMS center address of the HPMN2 network before the number portability. After the SMS center address is successfully modified, UE_A successfully sends a text message to user equipment (UE_B). Figure 1 Step 1: modify the SMS center address of the HPMN1 network of UE_A to the SMS center address of the original HPMN2 network; Step 2: UE_A sends a SMS to UE_B.
[0028] When UE_A sends a text message to UE_B, UE_A sends a text message instruction SMS_MO (i.e., Short Message Service_SMS Uplink) to the Mobile Switching Center (MSC) of the VPMN. Under normal circumstances (i.e., before the text message center address of UE_A is modified), the MSC sends the SMS_MO instruction to the short message center of HPMN1 (expressed as HPMN1_SMS_Center in English) through ISTP based on the text message center address of the HPMN1 network to which the number portability is successfully transferred, which is contained in the address parameter of the destination text message center RP-DA (i.e., Address of the Destination SC) carried in the SMS_MO instruction. The HPMN1_SMS_Center to which the number portability is successfully transferred transmits the short message to UE_B. Among them, SMS_MT can be understood as receiving text messages, and SMS_MO can be understood as sending text messages.
[0029] If the SMS center address of UE_A is modified to the SMS center address of the non-current HPMN2 before the number portability is successful, the MSC will send the SMS_MO command to the short message center of HPMN2 before the number portability is successful (expressed as HPMN2_SMS_Center in English) through ISTP based on the destination SMS center RP-DA address parameter carried in the SMS_MO command, and the non-current HPMN2_SMS_Center will send the short message to UE_B.
[0030] Based on the above content, it can be seen that by modifying the SMS center address of the overseas user after the number portability is successful, the function of sending stolen SMS can be realized, which poses a great security risk to the network. For such risks, some solutions have designed corresponding protection solutions to identify and intercept illegal stolen SMS. One processing logic for such stolen SMS is: by comparing the RP-OA (Address of the originating MS) parameter of the SMS number sent in the received SMS instruction SMS_MO with the data of the number portability (including transfer-in and transfer-out) on the international entry ISTP side, it is identified whether the SMS is stolen by the user who is porting out of this network, and intercepted after confirming that it is stolen SMS to achieve security protection.
[0031] When this method is used to prevent SMS theft, it has the following disadvantages: ISTP needs to query the service platform that can provide the network's number portability data, and the service platform needs to have real-time number portability data information; and in the actual existing network implementation process, the service platform is generally collected, operated, maintained and pushed to each operator by the telecommunications regulatory agency of the operator's country, and it cannot be real-time. It is inevitable that when ISTP makes a judgment, it will be wrongly blocked or missed due to the inability to query the real-time updated number portability data.
[0032] In response to the above-mentioned problem of stolen SMS, another implementation method is: storing a number portability database on the ISTP side, which carries the number portability data information of all this network and other operators in the country; similarly, the number portability database is generally collected, operated, maintained and pushed to each operator for use by the telecommunications regulatory agency of the operator's country. This method still cannot achieve real-time performance, and when the ISTP makes a judgment, it will still cause false blocking or missed blocking due to the inability to query the real-time updated number portability data.
[0033] In summary, the core problem existing in the relevant technologies is that after the implementation of the number portability function, the relevant institutions are unable to timely collect, operate, maintain and push real-time number portability data to each operator, resulting in the inability to timely and accurately determine the risk of stolen text messages. Some related technical solutions have not proposed a technical solution that can effectively solve this problem.
[0034] In view of the problems existing in the above-mentioned technical solutions, the embodiment of the present application solves the technical problem that after roaming abroad, the user who has ported his number can send stolen text messages by modifying the SMS center address to the SMS center address of the network before porting the number. A method is proposed by adding a method in the ISTP side of the international gateway office or the international signaling security protection system, equipment, device and other related security protection methods, when the ISTP receives the SMS instruction SMS_MO message sent by the sender, to query the HLR network element of the operator network to which the calling number (i.e., the SMS number) carried in the message belongs or the HLR network element of the network (i.e., the operator network after porting the number) of the user's IMSI information, and then identify whether there is a risk of sending stolen text messages through the returned IMSI information. Specifically judge whether the queried IMSI information is the IMSI number segment number of the first operator network (i.e., whether it belongs to the user of the first operator network) to determine whether to forward the SMS_MO message. Based on this implementation method, the above-mentioned drawbacks of false blocking and missed blocking due to the inability to timely query the latest number porting data can be effectively solved.
[0035] Before specifically introducing the embodiments of the present application, the relevant principles of preventing theft of short messages are briefly introduced:
[0036] (1) After number portability, the user's mobile phone number (such as Mobile Station International Subscriber Directory Number, MSISDN) remains unchanged, but the IMSI information will be reallocated by the new operator of the ported network, and the IMSI information allocated by the original operator network to which the mobile phone number belongs will no longer be used.
[0037] (2) Operation and Maintenance (OM) process designed in the Mobile Application Part (MAP) protocol, such as Figure 2As shown, the specific definition in 3GPP can be referred to. The operation and maintenance terminal operation and maintenance center (OMC) sends an identity request (which can be expressed as Identity request in English) to the VLR, triggering the VLR to send a request or indication message to the HLR to obtain the user's IMSI information, such as sending a MAP_SEND_IMSI_req / ind request or indication message to the HLR through the VLR to obtain the user's IMSI information from the HLR; the request message at this time is sendIMSI, which can carry the user's mobile phone number (such as MSISDN), and the IMSI information allocated to the user's mobile phone number when the account is opened in this network is queried from the HLR. After the IMSI information is queried, the HLR sends an IMSI response or confirmation message to the VLR, such as the HLR sends a MAP_SEND_IMSI_rsp / cnf message to the VLR, and sends the obtained IMSI information to the VLR. The VLR sends an identity confirmation (which can be expressed as Identity confirm in English) to the OMC to complete the acquisition of the IMSI information.
[0038] The specific implementation of the embodiment of this application is as follows:
[0039] The present application embodiment provides a short message processing method, such as Figure 3 As shown, applied to a first network element, the method may include:
[0040] S301. Receive short message instruction information sent by UE, where the short message instruction information carries first code number information.
[0041] In the embodiment of the present application, the first network element may be an ISTP network element.
[0042] In the embodiment of the present application, the first code number information is a mobile phone number, or can be called a calling number.
[0043] In the embodiment of the present application, the short message instruction message is SMS_MO.
[0044] In an embodiment of the present application, ISTP receives an SMS_MO message (which can be understood as an originating SMS message) sent by a UE outside the country, and extracts the RP-OA parameter in the SMS_MO message, where the RP-OA parameter carries the mobile phone number that sent the SMS.
[0045] S302: Based on the first code number information, query the IMSI information corresponding to the first code number information from the second network element of the first operator network where the first code number information is located and / or the third network element of the second operator network to which the first code number information belongs.
[0046] In the embodiment of the present application, the first operator network is the operator network where the mobile phone number is located after the number is ported (which can also be understood as this network here).
[0047] In the embodiment of the present application, the second operator network is another operator network other than the first operator network (which can also be understood here as another network to which the mobile phone number belongs).
[0048] In the embodiment of the present application, the second network element is an HLR network element corresponding to the first operator network.
[0049] In the embodiment of the present application, the third network element is an HLR network element corresponding to the second operator network.
[0050] In the embodiment of the present application, since the mobile phone number corresponds to the IMSI information, the ISTP can find the corresponding IMSI information according to the mobile phone number. When searching for the IMSI information, the ISTP can determine the HLR network element of the network and / or the HLR network element of other operator networks to which the mobile phone number belongs according to the mobile phone number, and query the IMSI information of the mobile phone number.
[0051] In an embodiment of the present application, based on the first code number information, when the IMSI information corresponding to the first code number information is queried from the second network element of the first operator network where the first code number information is located, it is determined whether the first number segment corresponding to the first code number information matches the number segment information allocated by the first operator network; if the first number segment matches the number segment information allocated by the first operator network, the IMSI information is queried from the second network element.
[0052] In the embodiment of the present application, the first number segment can be understood as the number segment corresponding to the mobile phone number, such as determining the first N digits of the mobile phone number as the number segment of the mobile phone number.
[0053] In an embodiment of the present application, the first operator network may include multiple number segment information.
[0054] In an embodiment of the present application, it is first determined whether the number segment corresponding to the mobile phone number carried in the RP-OA parameter is the number segment number assigned to the first operator network. If the number segment corresponding to the first code number information is A, it is determined whether A matches one of the multiple number segment information under the first operator network.
[0055] If the first number segment matches the number segment information assigned by the first operator network, it means that the mobile phone number is the number segment number assigned to the first operator network. A sendIMSI request message is constructed, and the request message carries the mobile phone number in the RP-OA parameter. The sendIMSI request message is sent to the HLR network element of this network, and the IMSI information corresponding to the mobile phone number is queried from the HLR network element of this network.
[0056] In an embodiment of the present application, based on the first code number information, when the IMSI information corresponding to the first code number information is queried from the third network element of the second operator network to which the first code number information belongs, it is determined whether the first number segment corresponding to the first code number information matches the number segment information allocated by the first operator network; if the first number segment does not match the number segment information allocated by the first operator network, the IMSI information is queried from the third network element.
[0057] In an embodiment of the present application, if the first number segment does not match the number segment information assigned by the first operator network, it means that the mobile phone number is not the number segment number assigned to the first operator network, and a sendIMSI request message needs to be constructed. The request message carries the mobile phone number in the RP-OA parameter, and the sendIMSI request message is sent to the HLR network element of the second operator network to which the mobile phone number belongs, and the IMSI information corresponding to the mobile phone number is queried from the HLR network element of the second operator network.
[0058] In an embodiment of the present application, based on the first code number information, the IMSI information corresponding to the first code number information is queried from the second network element of the first operator network where the first code number information is located and the third network element of the second operator network to which the first code number information belongs, including: determining whether the first number segment corresponding to the first code number information matches the number segment information allocated by the first operator network; when the first number segment does not match the number segment information allocated by the first operator network and the IMSI information is not found from the third network element, querying the IMSI information from the second network element.
[0059] In an embodiment of the present application, there is also a possible situation. If the first number segment does not match the number segment information allocated by the first operator network, it is necessary to search the IMSI information corresponding to the mobile phone number from the HLR network element of the second operator network to which the mobile phone number belongs. However, if the HLR network element of the second operator network does not return the IMSI information corresponding to the mobile phone number, that is, the IMSI information is not found in the HLR network element of the second operator network, a sendIMSI request message is further constructed, and the request message carries the mobile phone number in the RP-OA parameter. The sendIMSI request message is sent to the HLR network element of the first operator network, and the IMSI information corresponding to the mobile phone number is queried in the HLR network element of the first operator network.
[0060] In an embodiment of the present application, when the IMSI information is not queried from the second network element, an error prompt message is constructed and returned to the UE.
[0061] In an embodiment of the present application, if the HLR network element of the first operator network does not return the IMSI information, that is, if the HLR network element of the first operator network does not query the IMSI information, an error response message such as "user error" or "user is not a user of this network" can be constructed for the received SMS_MO message and returned to the UE (i.e., the sender of the SMS).
[0062] S303: When the IMSI information is found, determine whether to forward the short message based on the IMSI information.
[0063] In the embodiment of the present application, when the IMSI information is found in the HLR network element of the first operator's network or in the HLR network element of the second operator, the ISTP determines whether to forward the short message according to the found IMSI information, which can be determined in the following manner:
[0064] Determine whether the second number segment corresponding to the IMSI information matches the IMSI number segment information of the first operator network; if the second number segment matches the IMSI number segment information of the first operator network, determine to forward the short message; or, if the second number segment does not match the IMSI number segment information of the first operator network, determine not to forward the short message.
[0065] In the embodiment of the present application, the second number segment is the IMSI number segment corresponding to the IMSI information. For example, the first M digits of the IMSI number are the IMSI number segment.
[0066] In an embodiment of the present application, the IMSI information found from the HLR network element of the first operator or the HLR network element of the second operator network is matched with the IMSI number segment information of the first operator network, that is, it is determined whether the second number segment of the IMSI information is the IMSI number segment number of the first operator network, and further determined whether to forward the short message based on the matching result.
[0067] In an embodiment of the present application, if the second number segment corresponding to the found IMSI information matches the IMSI number segment information of the first operator network, the short message is sent to the RP-DA address of the short message center of the first operator network carried by the SMS_MO message for forwarding processing.
[0068] If the second number segment corresponding to the found IMSI information does not match the IMSI number segment information of the first operator network, an error response message such as "user error" or "user is not a user of this network" can be constructed for the received SMS_MO message and returned to the UE, and the short message will not be forwarded.
[0069] It can be understood that in a short message processing method provided in an embodiment of the present application, when a first network element receives a short message instruction information, it does not directly forward the short message, but, based on the first code number information carried by the short message instruction information, searches for the IMSI information corresponding to the first code number information in the first network element of the first operator network or in the second network element of the second operator network to which the first code number information belongs. Because the process is sent in real time, the IMSI information corresponding to the first code number information can be directly obtained when the short message instruction is received, and it is determined in real time through the IMSI information whether the first code number information belongs to the first operator network, and further determines whether to forward the short message. In this way, the risk of SMS theft caused by the untimely update of data in the number portability database can be reduced.
[0070] Based on the above embodiments, the present application also provides a schematic diagram of the overall process of a short message processing method. Figure 4 As shown, the specific steps include:
[0071] S1. ISTP receives the SMS_MO message and extracts the RP-OA parameters from it.
[0072] S2. Determine whether the first number segment corresponding to the mobile phone number carried in the RP-OA parameter is a number segment number allocated to the first operator network. If yes, execute S3; if not, execute S8.
[0073] S3. Construct a sendIMSI request message, which carries the mobile phone number in the RP-OA parameter, and send the request message to the HLR network element of the first operator network (ie, the current network) to request the IMSI information corresponding to the mobile phone number.
[0074] S4. Determine whether the response message to the sendIMSI message carries the IMSI information. If not, execute S5. If it carries the IMSI information, execute S6.
[0075] It should be noted that if the response message carries the IMSI information, it indicates that the IMSI information is found, and if the response message does not carry the IMSI information, it indicates that the IMSI information is not found.
[0076] S5. Return error information.
[0077] S6. Determine whether the second number segment corresponding to the IMSI information is the IMSI number segment of the first operator network. If yes, execute S7; if not, execute S5.
[0078] S7: Send the short message to the short message center of the first operator's network for forwarding processing.
[0079] S8. Construct a sendIMSI request message, which carries the mobile phone number in the RP-OA parameter, and sends the request message to the HLR network element of the second operator network (i.e., the other operator network to which the mobile phone number belongs) to request the IMSI information corresponding to the mobile phone number.
[0080] S9. Determine whether the response message to the sendIMSI message carries the IMSI information. If so, execute S6; if not, execute S3.
[0081] Based on the overall flow diagram of the short message processing described above, the specific implementation process can be as follows:
[0082] ISTP receives SMS_MO messages sent from abroad, extracts the RP-OA (Address of the originating MS) parameter in the message, and determines whether the mobile phone number carried in the RP-OA parameter is the number segment number assigned to the first operator network (i.e., this network), that is, whether the first number segment corresponding to the mobile phone number matches the number segment information assigned by the first operator network. If they match, the mobile phone number is the number segment number assigned to the first operator network, and then constructs a sendIMSI request message, which carries the mobile phone number in the RP-OA parameter, and queries the HLR network element of the first operator network for the IMSI information of the mobile phone number; and determines whether the sendIMSI response message returned by the HLR network element of the first operator network carries the IMSI information. If the sendIMSI response message does not carry the IMSI information, it means that although the user is the number segment number of the first operator network, it has been ported out of the first operator network and the user cannot be queried. The IMSI of the first operator network can construct an error response message such as "user error" or "user is not a user of this network" for the received SMS_MO message and return it to the UE (i.e., the sender); if the sendIMSI response message carries the IMSI, it is necessary to further determine whether the carried IMSI information is the number segment of this network (i.e., whether the second number segment corresponding to the IMSI information matches the IMSI number segment information of the first operator network). If they do not match, the IMSI information is not the IMSI number segment of the first operator network, and an error response message such as "user error" or "user is not a user of this network" is constructed and returned to the UE; if they match, the IMSI information is the IMSI number segment of the first operator network, and the short message is sent to the RP-DA address of the short message center of the first operator network carried in the SMS_MO message for forwarding processing.
[0083] When it is determined that the mobile phone number carried in the RP-OA parameter is not the number segment number assigned to the first operator network, a sendIMSI request message is constructed, which carries the mobile phone number in the RP-OA parameter, and the IMSI information of the mobile phone number is queried from the HLR network element of the second operator network to which the mobile phone number belongs; and it is determined whether the sendIMSI response message returned by the HLR network element of the second operator network carries the IMSI information. If the sendIMSI response message does not carry the IMSI information, a sendIMSI request message is further constructed, which carries the mobile phone number in the RP-OA parameter, and then the IMSI information of the mobile phone number is queried from the HLR network element of the first operator network, and it is determined whether the sendIMSI response message returned by the HLR network element of the first operator network carries the IMSI information. If the sendIMSI response message does not carry the IMSI information, If the endIMSI response message does not carry IMSI information, an error response message such as "user error" or "user is not a user of this network" may be constructed for the received SMS_MO message and returned to the UE; if the sendIMSI response message carries IMSI information, it is necessary to further determine whether the carried IMSI information is the number segment of the first operator network. If the IMSI information is not the number segment of the first operator network, an error response message such as "user error" or "user is not a user of this network" may be constructed and returned to the UE; if the IMSI information is the number segment of the first operator network, it means that although the mobile phone number carried in the RP-OA parameter is not a number of this network, it has been transferred to this network, and the SMS_MO message it sends should be forwarded through the RP-DA address of the SMS center of the first operator network carried in the SMS_MO message.
[0084] If the IMSI information of the mobile phone number is queried from the HLR network element of the second operator network to which the mobile phone number belongs, and the sendIMSI response message returned by the HLR network element of the second operator network carries the IMSI information, it is necessary to further determine whether the carried IMSI information is the number segment of the first operator network. If the IMSI information is not the number segment of the first operator network, an error response message such as "user error" or "user is not a user of this network" is constructed and returned to the UE; if the IMSI information is the number segment of the first operator network, it means that although the mobile phone number carried in the RP-OA parameter is not a number of this network, it has been transferred to this network, and the SMS_MO message it sends should be forwarded through the RP-DA address of the SMS center of the first operator network carried in the SMS_MO message.
[0085] Through the above-mentioned improved method of security protection processing for short messages on the ISTP side, it is possible to effectively determine whether SMS_MO messages sent from abroad are stolen text messages, and can effectively solve the security problems that arise after number portability.
[0086] It should be noted that the above-mentioned improved process for security protection processing of short messages on the ISTP side can also be applied to the transformation of existing signaling security protection systems, equipment, devices or related security protection methods to implement their security protection processing logic and effectively solve the illegal attack of stealing text messages.
[0087] Based on the above embodiments, in the embodiments of the present application, on the ISTP side, or can also be applied to signaling security protection systems, equipment, devices or related security protection methods, after receiving an SMS_MO message sent from abroad, according to the mobile phone number (such as MSISDN) carried in the message, a sendIMSI message is sent to the HLR network element of the first operator network where the mobile phone number is located, or a sendIMSI message is sent to the HLR network element of the second operator network to which the mobile phone number belongs, to query the IMSI information corresponding to the mobile phone number, and determine whether to forward the SMS_MO message sent by the UE based on whether the IMSI information returned by the HLR network element of the first operator network or the HLR network element of the second operator network is the IMSI number segment number of the first operator network.
[0088] It should be noted that the method of querying IMSI information to determine the number portability of the user can also be expanded to determine the number portability of the user by querying the IMSI information of the user from the MSC / VLR that the user currently accesses abroad.
[0089] Compared with the related art, the above embodiment has the following technical advantages:
[0090] In the embodiment of the present application, after the ISTP receives the SMS_MO message, it is not in a hurry to forward it directly, but queries the IMSI information from the second operator network or the first operator network to which the MSISDN number sending the SMS belongs, so as to confirm whether the mobile phone number has the legal right to access the first operator network (i.e., this network), and then performs corresponding forwarding or rejection actions according to the determination result; the improvement of the embodiment of the present application is to query the IMSI information corresponding to the mobile phone number from the domestic operator in real time, that is, to query the IMSI information of the mobile phone number from the second operator network or this network to which the SMS number sending the SMS belongs, so as to determine the number portability of the user, instead of determining the number portability of the user by collecting and pushing to each operator using a lagging number portability database as in the related technical solutions, which has a great improvement effect on the false blocking and missed blocking of stolen SMS by modifying the SMS center address after the number portability, and can effectively reduce the losses caused to the operator by stolen SMS.
[0091] Based on the above embodiment, in another embodiment of the present application, a first network element 1 is provided, such as Figure 5 As shown, the first network element 1 includes:
[0092] The receiving unit 10 is used to receive the short message instruction information sent by the UE, wherein the short message instruction information carries the first code number information.
[0093] A query unit 11 is used to query the IMSI information corresponding to the first code number information from the second network element of the first operator network where the first code number information is located and / or the third network element of the second operator network to which the first code number information belongs based on the first code number information;
[0094] The determination unit 12 is used to determine whether to forward the short message based on the IMSI information when the IMSI information is queried.
[0095] In one embodiment, the determination unit 12 is further configured to determine whether the first number segment corresponding to the first code number information matches the number segment information allocated by the first operator network.
[0096] The query unit 11 is further configured to query the IMSI information from the second network element when the first number segment matches the number segment information allocated by the first operator network.
[0097] In one embodiment, the determination unit 12 is further configured to determine whether the first number segment corresponding to the first code number information matches the number segment information allocated by the first operator network.
[0098] The query unit 11 is further configured to query IMSI information from a third network element when the first number segment does not match the number segment information allocated by the first operator network.
[0099] In one embodiment, the determination unit 12 is further configured to determine whether the first number segment corresponding to the first code number information matches the number segment information allocated by the first operator network.
[0100] The query unit 11 is further configured to query the IMSI information from the second network element when the first number segment does not match the number segment information allocated by the first operator network and the IMSI information is not found from the third network element.
[0101] In one embodiment, the determination unit 12 is further configured to determine whether the second number segment corresponding to the IMSI information matches the IMSI number segment information of the first operator network.
[0102] The determination unit 12 is also used to determine whether to forward the short message when the second number segment matches the IMSI number segment information of the first operator network; or to determine not to forward the short message when the second number segment does not match the IMSI number segment information of the first operator network.
[0103] In one embodiment, the first network element may further include: a construction unit.
[0104] The construction unit is used to construct error prompt information when the IMSI information is not queried from the second network element, and return the error prompt information to the UE.
[0105] The embodiment of the present application provides a first network element, which receives short message instruction information sent by a UE, wherein the short message instruction information carries first code number information; based on the first code number information, inquires about the IMSI information corresponding to the first code number information from a second network element of a first operator network where the first code number information is located and / or a third network element of a second operator network to which the first code number information belongs; when the IMSI information is queried, determines whether to forward the short message based on the IMSI information. It can be seen that the first network element proposed in the embodiment of the present application does not directly forward the short message when the first network element receives the short message instruction information. Instead, based on the first code number information carried in the short message instruction information, the IMSI information corresponding to the first code number information is searched in the first network element of the first operator network or the second network element of the second operator network to which the first code number information belongs. Since the process is sent in real time, the IMSI information corresponding to the first code number information can be directly obtained when the short message instruction is received, and the first code number information can be determined in real time through the IMSI information whether it belongs to the first operator network, and further determine whether to forward the short message. In this way, the risk of SMS theft caused by the untimely update of data in the number portability database can be reduced.
[0106] Figure 6A schematic diagram of the composition structure of a first network element 1 provided in an embodiment of the present application. In practical applications, based on the same public concept of the above embodiment, as Figure 6 As shown, the first network element 1 of the embodiment of the present application includes a processor 13, a memory 14 and a communication bus 15.
[0107] In the specific implementation process, the above-mentioned receiving unit 10, query unit 11, determination unit 12, and construction unit can be implemented by a processor 13 located on the first network element 1, and the above-mentioned processor 13 can be at least one of an application-specific integrated circuit (ASIC, Application Specific Integrated Circuit), a digital signal processor (DSP, Digital Signal Processor), a digital signal processing image processing device (DSPD, Digital Signal Processing Device), a programmable logic image processing device (PLD, Programmable Logic Device), a field programmable gate array (FPGA, Field Programmable Gate Array), a CPU, a controller, a microcontroller, and a microprocessor. It can be understood that for different devices, the electronic device used to implement the above-mentioned processor function can also be other, and the embodiments of the present application do not make specific limitations.
[0108] In the embodiment of the present application, the communication bus 15 is used to realize the connection communication between the processor 13 and the memory 14; when the processor 13 executes the running program stored in the memory 14, the following short message processing method is implemented:
[0109] Receive a short message instruction information sent by a UE, wherein the short message instruction information carries a first code number information; based on the first code number information, query the IMSI information corresponding to the first code number information from a second network element of a first operator network where the first code number information is located and / or a third network element of a second operator network to which the first code number information belongs; when the IMSI information is queried, determine whether to forward the short message based on the IMSI information.
[0110] In one embodiment, the above-mentioned processor 13 is also used to determine whether the first number segment corresponding to the first code information matches the number segment information allocated by the first operator network; if the first number segment matches the number segment information allocated by the first operator network, query the IMSI information from the second network element.
[0111] In one embodiment, the above-mentioned processor 13 is also used to determine whether the first number segment corresponding to the first code number information matches the number segment information allocated by the first operator network; if the first number segment does not match the number segment information allocated by the first operator network, query the IMSI information from the third network element.
[0112] In one embodiment, the above-mentioned processor 13 is also used to determine whether the first number segment corresponding to the first code number information matches the number segment information allocated by the first operator network; when the first number segment does not match the number segment information allocated by the first operator network, and the IMSI information is not found from the third network element, query the IMSI information from the second network element.
[0113] In one embodiment, the processor 13 is further used to determine whether the second number segment corresponding to the IMSI information matches the IMSI number segment information of the first operator network; if the second number segment matches the IMSI number segment information of the first operator network, determine to forward the short message; or, if the second number segment does not match the IMSI number segment information of the first operator network, determine not to forward the short message.
[0114] In one embodiment, the processor 13 is further configured to construct error prompt information when the IMSI information is not queried from the second network element, and return the error prompt information to the UE.
[0115] Based on the above embodiments, the embodiments of the present application provide a storage medium on which a computer program is stored. The above computer-readable storage medium stores one or more programs. The above one or more programs can be executed by one or more processors and applied to a first network element. The computer program implements the short message processing method as described above.
[0116] Based on the above embodiments, an embodiment of the present application provides a computer program product, including a computer program. The computer program can be executed by one or more processors and is applied to a first network element. The computer program implements the short message processing method as described above.
[0117] It should be noted that in the embodiments of the present application, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0118] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), including a number of instructions for an image display device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the method described in each embodiment of the embodiment of the present application.
[0119] The above is only a specific implementation of the embodiment of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A short message processing method, characterized in that: Applied to a first network element, the method includes: Receiving a short message instruction information sent by a user equipment UE, wherein the short message instruction information carries first code number information; Based on the first code number information, query the international user identity code IMSI information corresponding to the first code number information from the second network element of the first operator network where the first code number information is located and / or the third network element of the second operator network to which the first code number information belongs; When the IMSI information is found, it is determined whether to forward the short message based on the IMSI information.
2. The method according to claim 1, characterized in that The querying, based on the first code number information, from a second network element of a first operator network where the first code number information is located, IMSI information corresponding to the first code number information includes: Determine whether the first number segment corresponding to the first code number information matches the number segment information allocated by the first operator network; When the first number segment matches the number segment information allocated by the first operator network, the IMSI information is queried from the second network element.
3. The method according to claim 1, characterized in that The querying, based on the first code number information, from a third network element of the second operator network to which the first code number information belongs, IMSI information corresponding to the first code number information includes: Determine whether the first number segment corresponding to the first code number information matches the number segment information allocated by the first operator network; When the first number segment does not match the number segment information allocated by the first operator network, the IMSI information is queried from the third network element.
4. The method according to claim 1, characterized in that: The querying, based on the first code number information, from a second network element of a first operator network where the first code number information is located and a third network element of a second operator network to which the first code number information belongs, IMSI information corresponding to the first code number information includes: Determine whether the first number segment corresponding to the first code number information matches the number segment information allocated by the first operator network; When the first number segment does not match the number segment information allocated by the first operator network, and the IMSI information is not found from the third network element, the IMSI information is queried from the second network element.
5. The method according to claim 1, characterized in that The determining whether to forward the short message based on the IMSI information includes: Determine whether the second number segment corresponding to the IMSI information matches the IMSI number segment information of the first operator network; When the second number segment matches the IMSI number segment information of the first operator network, determining to forward the short message; Alternatively, when the second number segment does not match the IMSI number segment information of the first operator network, it is determined not to forward the short message.
6. The method according to claim 1, characterized in that After querying, based on the first code number information, from a second network element of the first operator network where the first code number information is located, the IMSI information corresponding to the first code number information, the method further includes: In the case that the IMSI information is not queried from the second network element, an error prompt message is constructed and the error prompt message is returned to the UE.
7. A first network element, characterized in that: The first network element includes: A receiving unit, configured to receive a short message instruction information sent by a UE, wherein the short message instruction information carries first code number information; a query unit, configured to query, based on the first code number information, the IMSI information corresponding to the first code number information from the second network element of the first operator network where the first code number information is located and / or the third network element of the second operator network to which the first code number information belongs; A determining unit is used to determine whether to forward the short message based on the IMSI information when the IMSI information is queried.
8. A first network element, characterized in that: The first network element includes: a processor and a memory; when the processor executes the running program stored in the memory, the method according to any one of claims 1 to 6 is implemented.
9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the method according to any one of claims 1 to 6.
