Core network based user subscription data obtaining method, device and storage medium

By using a core network-based method for acquiring user subscription data, identifying network elements based on query identifiers and demand, and issuing query commands after executing security policy verification, the system queries and processes user subscription data using multiple threads. This solves the problems of low efficiency and security in acquiring user subscription data under the network consolidation model, achieving efficient and secure data acquisition.

CN116782218BActive Publication Date: 2026-07-14CHINA UNITED NETWORK COMM GRP CO LTD +1

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA UNITED NETWORK COMM GRP CO LTD
Filing Date
2023-07-04
Publication Date
2026-07-14

AI Technical Summary

Technical Problem

Under the network-intensive model, the efficiency of acquiring user contract data is low and the network security is difficult to maintain, resulting in low business processing efficiency and poor user experience.

Method used

By using a core network-based method to obtain user subscription data, network elements are identified based on query identifiers and demand. After security policy verification, query commands are issued, and user subscription data is queried and processed using multi-threading to ensure security and efficiency.

Benefits of technology

It enables efficient acquisition of user contract data, improves business processing efficiency, ensures network security, and reduces network maintenance difficulty.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116782218B_ABST
    Figure CN116782218B_ABST
Patent Text Reader

Abstract

The application provides a core network-based user subscription data acquisition method and device and a storage medium, and relates to the field of communication. The method comprises the following steps: in response to a query request of a target user, determining a query demand and a query identifier corresponding to a query object; judging whether the query identifier meets a first preset rule; if yes, determining a network element of a core network corresponding to the query identifier, and judging whether the query demand meets a second preset rule; if yes, determining a query instruction based on the query demand, and acquiring user subscription data based on the query instruction and the network element of the core network. The method of the application achieves the technical effect of improving the service processing efficiency and guaranteeing the network security.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to communication technology, and more particularly to a method, device and storage medium for acquiring user subscription data based on a core network. Background Technology

[0002] With the development of 5G communication technology, high-definition voice networks based on communication cloud (VoLTE) and 5G standalone (5G SA) are being widely used in the commercial field. In order to reduce the maintenance cost of network architecture and accelerate business communication, the existing technology adopts a network-intensive network architecture mode for network deployment.

[0003] In existing technologies, the network-intensive network architecture deploys the control plane network elements of the 5G core network (5G Core, 5GC) in the central province of a large region, enabling centralized service management, improving the efficiency of network construction and reducing the cost of network construction.

[0004] In a network-intensive model, there are numerous network element types and complex logical layers. When handling user complaints, business processes outside of major regions cannot directly obtain user subscription data and need to be centrally processed through the major region where the network element to which the business process belongs is located, resulting in low business processing efficiency. When performing network security maintenance, it is necessary to rely on the manufacturer's network elements or network management system to perform item-by-item queries and troubleshooting, resulting in high network security maintenance difficulty. Therefore, existing technologies suffer from both low business processing efficiency and high network security maintenance difficulty. Summary of the Invention

[0005] This application provides a method, device, and storage medium for acquiring user subscription data based on the core network, in order to solve the technical problems of low business processing efficiency and negative impact on user experience in the prior art.

[0006] Firstly, this application provides a method for obtaining user subscription data based on a core network, the method comprising:

[0007] In response to the query request from the target user, determine the query requirements and the query identifier corresponding to the query object;

[0008] Determine whether the query identifier conforms to the first preset rule. If so, determine the core network element corresponding to the query identifier and determine whether the query request conforms to the second preset rule.

[0009] If so, the query instruction is determined based on the query requirements, and the user's subscription data is obtained based on the query instruction and the network elements of the core network.

[0010] Optionally, it is determined whether the query identifier conforms to the first preset rule. If so, the network element of the core network corresponding to the query identifier is determined, including:

[0011] Determine whether the length of the query identifier matches the preset identifier length. If so, determine whether the query identifier belongs to the first preset database.

[0012] If so, the core network element corresponding to the query identifier is determined based on the query identifier.

[0013] Optionally, determining the core network element corresponding to the query identifier based on the query identifier includes:

[0014] The query identifier is matched with the second preset database to determine the contract region corresponding to the query identifier;

[0015] Based on the contracted region, determine the core network element corresponding to the query identifier, and based on the contracted network element, determine the associated network element of the contracted network element.

[0016] The core network elements include contracted network elements and / or associated network elements.

[0017] Optionally, it is determined whether the query request conforms to the second preset rule. If so, a query instruction is determined based on the query request, and user subscription data is obtained based on the query instruction and the network elements of the core network, including:

[0018] Based on the query requirements, determine the network address information, user account information, query frequency information, and verification information;

[0019] Authentication is performed based on network address information. If authentication is successful, joint authentication is performed based on user account information and verification information.

[0020] If joint authentication is successful, the system will determine whether the target user's query frequency is below a preset threshold based on the query frequency information.

[0021] If so, the query request will be determined as a query instruction, which will be sent to the network element. The network element will then execute the query instruction and obtain the user's contracted data.

[0022] The verification information is an authorization code used to verify the user's account information. The authorization code is updated periodically based on a preset time interval.

[0023] Optionally, a query command is executed based on the network element to obtain user subscription data, including:

[0024] Execute the query command, determine the number of threads based on the second preset threshold, and query user subscription data of the network element based on the threads;

[0025] If the time for a thread to execute and obtain the execution result is less than a first preset duration, the execution result is determined as the query result, and the execution duration for determining the execution result as the query result is calculated.

[0026] If the execution time is less than the second preset time, the query result will be identified as user contract data.

[0027] Optionally, after determining the query results as user subscription data, the method further includes:

[0028] The user's contract data is formatted, the formatting result is determined, sensitive information is filtered from the formatting result, and the data is classified and the classification result is determined. Diagnostic prompts are then made based on the classification result.

[0029] Optionally, it also includes:

[0030] When the query identifier does not conform to the first preset rule, a first prompt message is determined to indicate that the query identifier is abnormal; and / or, when the query information does not conform to the second preset rule, a second prompt message is determined to indicate that the query information failed.

[0031] The first and / or second prompt messages are formatted, and the formatted first and / or second prompt messages are pushed to the target user.

[0032] Secondly, this application provides a user subscription data acquisition device based on a core network, comprising:

[0033] The acquisition module is used to respond to the query request of the target user and determine the query requirements and the query identifier corresponding to the query object;

[0034] The first processing module is used to determine whether the query identifier conforms to the first preset rule. If so, it determines the core network element corresponding to the query identifier and determines whether the query request conforms to the second preset rule.

[0035] The second processing module is used to determine the query instruction based on the query requirement when the query requirement meets the second preset rule, and to obtain the user's contracted data based on the query instruction and the network elements of the core network.

[0036] Optionally, the device is also used for:

[0037] Determine whether the length of the query identifier matches the preset identifier length. If so, determine whether the query identifier belongs to the first preset database.

[0038] If so, the core network element corresponding to the query identifier is determined based on the query identifier.

[0039] Optionally, the device is also used for:

[0040] The query identifier is matched with the second preset database to determine the contract region corresponding to the query identifier;

[0041] Based on the contracted region, determine the core network element corresponding to the query identifier, and based on the contracted network element, determine the associated network element of the contracted network element.

[0042] The core network elements include contracted network elements and / or associated network elements.

[0043] Optionally, the device is also used for:

[0044] Based on the query requirements, determine the network address information, user account information, query frequency information, and verification information;

[0045] Authentication is performed based on network address information. If authentication is successful, joint authentication is performed based on user account information and verification information.

[0046] If joint authentication is successful, the system will determine whether the target user's query frequency is below a preset threshold based on the query frequency information.

[0047] If so, the query request will be determined as a query instruction, which will be sent to the network element. The network element will then execute the query instruction and obtain the user's contracted data.

[0048] The verification information is an authorization code used to verify the user's account information. The authorization code is updated periodically based on a preset time interval.

[0049] Optionally, the device is also used for:

[0050] Execute the query command, determine the number of threads based on the second preset threshold, and query user subscription data of the network element based on the threads;

[0051] If the time for a thread to execute and obtain the execution result is less than a first preset duration, the execution result is determined as the query result, and the execution duration for determining the execution result as the query result is calculated.

[0052] If the execution time is less than the second preset time, the query result will be identified as user contract data.

[0053] Optionally, the device is also used for:

[0054] The user's contract data is formatted, the formatting result is determined, sensitive information is filtered from the formatting result, and the data is classified and the classification result is determined. Diagnostic prompts are then made based on the classification result.

[0055] Optionally, the device is also used for:

[0056] When the query identifier does not conform to the first preset rule, a first prompt message is determined to indicate that the query identifier is abnormal; and / or, when the query information does not conform to the second preset rule, a second prompt message is determined to indicate that the query information failed.

[0057] The first and / or second prompt messages are formatted, and the formatted first and / or second prompt messages are pushed to the target user.

[0058] A third aspect of this application provides a user subscription data acquisition device based on a core network, comprising:

[0059] Processor and memory;

[0060] The memory stores the instructions that the computer executes;

[0061] The processor executes computer execution instructions stored in memory, causing the core network-based user subscription data acquisition device to execute any one of the core network-based user subscription data acquisition methods in the first aspect.

[0062] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the user subscription data acquisition method based on the core network as described in any of the first aspects.

[0063] This application provides a method, device, and storage medium for acquiring user subscription data based on a core network, comprising: responding to a query request from a target user, determining a query requirement and a query identifier corresponding to the query object; determining whether the query identifier conforms to a first preset rule; if so, determining the network element of the core network corresponding to the query identifier, and determining whether the query requirement conforms to a second preset rule; if so, determining a query instruction based on the query requirement, and acquiring user subscription data based on the query instruction and the network element of the core network; thereby determining whether the query identifier conforms to the first preset rule, i.e., whether the length of the query identifier conforms to the length of a standard identifier and whether the query identifier exists in the database of subscribed users. If the query identifier matches the first preset rule, the network element information corresponding to the query identifier is determined based on the query identifier. After obtaining the network element information, the query request is judged. If the query request does not match the second preset rule, i.e., the security policy, the query is not performed and a failure message is displayed. If the query request matches the second preset rule, the query instruction is determined based on the query request. The user subscription data is obtained by sending the query instruction to the network element. The security of the network element is ensured by judging the query request information during the user subscription data query process. The efficient data acquisition is achieved by querying the user subscription data in the network element through the query instruction, thereby realizing the technical effect of improving business processing efficiency and ensuring network security. Attached Figure Description

[0064] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0065] Figure 1 The method flow for acquiring user subscription data based on the core network provided in the embodiments of this application Figure 1 ;

[0066] Figure 2 The method flow for acquiring user subscription data based on the core network provided in the embodiments of this application Figure 2 ;

[0067] Figure 3 The method flow for acquiring user subscription data based on the core network provided in the embodiments of this application Figure 3 ;

[0068] Figure 4 A schematic diagram of the structure of a user subscription data acquisition device based on a core network is provided for an embodiment of this application;

[0069] Figure 5 The hardware structure diagram of the user subscription data acquisition device based on the core network provided in the embodiments of this application is shown.

[0070] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0071] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0072] In existing technologies, the network-centralized architecture deploys the control plane network elements of the 5G core network (5GC) in the central province of a major region, enabling centralized service management, improving network construction efficiency, and reducing network construction costs. However, in this network-centralized model, there are numerous network element types and complex logical layers. When handling user complaints, service processing outside the major region cannot directly obtain user subscription data and needs to be centrally processed through the major region where the network element to which the service is processed is located, resulting in low service processing efficiency. Furthermore, network security maintenance requires relying on manufacturer network elements or network management systems for item-by-item querying and troubleshooting, leading to high network security maintenance difficulty. Therefore, existing technologies suffer from both low service processing efficiency and high network security maintenance difficulty.

[0073] This application provides a method, device, and storage medium for acquiring user subscription data based on a core network, comprising: responding to a query request from a target user, determining a query requirement and a query identifier corresponding to the query object; determining whether the query identifier conforms to a first preset rule; if so, determining the network element of the core network corresponding to the query identifier, and determining whether the query requirement conforms to a second preset rule; if so, determining a query instruction based on the query requirement, and acquiring user subscription data based on the query instruction and the network element of the core network; thereby determining whether the query identifier conforms to the first preset rule, i.e., whether the length of the query identifier conforms to the length of a standard identifier and whether the query identifier exists in the database of subscribed users; if the query identifier... If the query meets the first preset rule, the network element information corresponding to the query identifier is determined based on the query identifier. After obtaining the network element information, the query request is judged. If the query request does not meet the second preset rule, i.e., the security policy, the query is not performed and a failure message is displayed. If the query request meets the second preset rule, the query instruction is determined based on the query request. The user subscription data is obtained by sending the query instruction to the network element. The security of the network element is ensured by judging the query request information during the user subscription data query process. The efficient data acquisition is achieved by querying the user subscription data in the network element through the query instruction, thereby solving the technical problems of low business processing efficiency and high network security maintenance difficulty in the existing technology.

[0074] The technical solution of this application and how it solves the above-mentioned technical problems will be described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.

[0075] Figure 1 The method flow for acquiring user subscription data based on the core network provided in the embodiments of this application Figure 1 .like Figure 1 As shown, the method includes:

[0076] S101. In response to the query request from the target user, determine the query requirement and the query identifier corresponding to the query object;

[0077] In this embodiment, the query identifier can be the target user's unique identifier: Mobile Station International ISDN Number (MSISDN) or International Mobile Subscriber Identity (IMSI); where ISDN stands for Integrated Services Digital Network.

[0078] S102. Determine whether the query identifier conforms to the first preset rule. If so, determine the core network element corresponding to the query identifier and determine whether the query request conforms to the second preset rule.

[0079] In this embodiment, in the first example, the query identifier is IMSI, which is a decimal string of length 15. Therefore, the length of the query identifier is determined to conform to the length standard of IMSI. The first preset database is an identifier database. If the query identifier is matched in the identifier database and the matching result is found to exist, then the query identifier is determined to conform to the first preset rule.

[0080] In this embodiment, the query requirements include: network address information, user account information, query frequency information, and verification information; wherein the verification information can be a dynamically generated authorization code, the network address information is the IP information of the user who issued the query request, and the query frequency information is the number of queries made by the user who issued the query request.

[0081] S103. If so, determine the query instruction based on the query requirements, and obtain the user's subscription data based on the query instruction and the network elements of the core network.

[0082] This application provides a method, device, and storage medium for acquiring user subscription data based on a core network, comprising: responding to a query request from a target user, determining a query requirement and a query identifier corresponding to the query object; determining whether the query identifier conforms to a first preset rule; if so, determining the network element of the core network corresponding to the query identifier, and determining whether the query requirement conforms to a second preset rule; if so, determining a query instruction based on the query requirement, and acquiring user subscription data based on the query instruction and the network element of the core network; thereby determining whether the query identifier conforms to the first preset rule, i.e., whether the length of the query identifier conforms to the length of a standard identifier and whether the query identifier exists in the database of subscribed users; if the query identifier... If the query meets the first preset rule, the network element information corresponding to the query identifier is determined based on the query identifier. After obtaining the network element information, the query request is judged. If the query request does not meet the second preset rule, i.e., the security policy, the query is not performed and a failure message is displayed. If the query request meets the second preset rule, the query instruction is determined based on the query request. The user subscription data is obtained by sending the query instruction to the network element. The security of the network element is ensured by judging the query request information during the user subscription data query process. The efficient data acquisition is achieved by querying the user subscription data in the network element through the query instruction, thereby solving the technical problems of low business processing efficiency and high network security maintenance difficulty in the existing technology.

[0083] Figure 2 The flowchart of the user subscription data acquisition method based on the core network provided in the embodiments of this application Figure 2 .like Figure 2 As shown, the method includes:

[0084] S201. In response to the query request from the target user, determine the query requirement and the query identifier corresponding to the query object;

[0085] S202. Determine whether the length of the query identifier conforms to the preset identifier length;

[0086] In this embodiment, the query identifier is MSISDN, and the preset length of MSISDN is set to 15. In the second example, the query identifier is a 13-digit decimal string, so it is determined that the query identifier does not conform to the preset identifier length.

[0087] S203. If yes, then determine whether the query identifier belongs to the first preset database;

[0088] In this embodiment, the first preset database is a database that stores the query identifiers of the target user.

[0089] S204. If so, then match the query identifier with the second preset database and determine the contracted region corresponding to the query identifier; determine the contracted network element of the core network corresponding to the query identifier based on the contracted region, and determine the associated network element of the contracted network element based on the contracted network element; wherein, the network elements of the core network include the contracted network element and / or the associated network element.

[0090] In this embodiment, the second preset database is a database of contracted regional information corresponding to the query identifier. The contracted region corresponding to the query identifier is determined through the database of contracted regional information. Then, the network element of the core network corresponding to the contracted region, i.e., the contracted network element, can be determined based on the contracted region. After determining the contracted network element, the associated network element of the contracted network element is determined based on the association relationship of the contracted network element. Thus, the core network element corresponding to the query identifier is obtained.

[0091] S205. Determine network address information, user account information, query frequency information, and verification information based on query requirements; perform authentication based on network address information; if authentication is successful, perform joint authentication based on user account information and verification information.

[0092] In this embodiment, authentication based on network address information can be performed on the IP address accessing the core network to determine whether the IP address has the authority to access the core network. The determination method can be to query the permission database to which the IP address belongs, and query the permission level of the IP address and / or whether it exists in the IP database.

[0093] In this embodiment, joint authentication based on user account information and verification information involves comparing the account information and verification information simultaneously. The verification information can be a dynamically generated authorization code, and the generation of the authorization code is periodic. In the third example, the generation cycle of the authorization code is one hour, that is, the lifespan of the authorization code is one hour. The account information is successfully matched, and the authorization code information is the first authorization code. When performing authorization code matching, the time interval is two hours, which exceeds the lifespan of the authorization code. At this time, a new authorization code has been generated, so it is determined that the authorization code matching has failed; thus, it is determined that the joint authentication has failed.

[0094] S206. If joint authentication is successful, determine whether the target user's query frequency is lower than a preset threshold based on the query frequency information.

[0095] In this embodiment, the query frequency is used to limit the number of queries by the target user. The query capacity of the core network element has an upper limit. In order to ensure the stability of the core network element, a preset threshold for the maximum number of queries per second, i.e., the query frequency, needs to be set according to the query capacity of each network element interface.

[0096] S207. If so, the query requirement will be determined as a query instruction, and the query instruction will be sent to the network element.

[0097] S208. Execute the query instruction, determine the number of threads based on the second preset threshold, and query the user subscription data of the network element based on the threads; when the time for the thread to execute and obtain the execution result is less than the first preset duration, determine the execution result as the query result, and calculate the execution duration for determining the execution result as the query result; when the execution duration is less than the second preset duration, determine the query result as user subscription data.

[0098] In this embodiment, a multi-threaded approach is used to query user contract data, i.e., to determine the query results. The first preset duration and the second preset duration are set to capture exceptions for each thread's query. In the fourth example, the first preset duration is 2 seconds, the second preset duration is 1 second, and the second preset threshold is 10. That is, 10 threads are set to execute the query command. If the execution and result acquisition time of any of the 10 threads exceeds 2 seconds, an exception is thrown and a query failure message is returned.

[0099] S209. Format the user's contract data, determine the formatting result, filter sensitive information from the formatting result, classify the data, determine the classification result, and provide diagnostic prompts based on the classification result.

[0100] In this embodiment, sensitive information filtering can be achieved by hiding user account information and address information with asterisks; the classification processing of formatted user contract data can be achieved by combining the formatted user contract data with the current query business, and performing classification processing according to the classification algorithm to filter out information with high user complaint frequency for diagnostic prompts; wherein the classification algorithm can be a classification model generated by training based on the business information of completed business and user contract data information, and the classification model is used to classify the current user query.

[0101] S210. When the query identifier does not conform to the first preset rule, determine a first prompt message to indicate that the query identifier is abnormal; and / or, when the query information does not conform to the second preset rule, determine a second prompt message to indicate that the query information failed; format the first prompt message and / or the second prompt message, and push the formatted first prompt message and / or the second prompt message to the target user.

[0102] By executing S201 to S210, the network element of the core network corresponding to the query identifier can be determined based on the query identifier, and the query instruction can be determined based on the query requirement. The network element can be queried based on the query instruction and the user's subscription data can be obtained. Security verification is performed on the query to ensure that the network security of the core network is not affected when querying user subscription data, thereby achieving the technical effect of improving business processing efficiency and ensuring network security.

[0103] Figure 3 The flowchart of the user subscription data acquisition method based on the core network provided in the embodiments of this application Figure 3 .like Figure 3 As shown in this embodiment, the target user inputs the MSISDN or IMSI number, a unique identifier for the query user, along with the query request. The system then determines the validity of the number, checking if its length conforms to the standard length and if it exists in the user number database. If the number is invalid, an error message is generated and output. If the number is valid, the system checks if the query request complies with security policies. This involves authenticating the IP information in the query request, and then jointly authenticating the account information and authorization code information. If the joint authentication is successful, the system checks if the query frequency in the query request is less than the maximum query frequency of the core network element interface. If the query request does not comply with security policies, a query failure message is generated and output. If the query request complies with security policies, the system compiles query instructions based on the query request and sends them to the core network elements for execution. The system aggregates the query results from each network element, obtains the user's subscription data, formats and filters the user's subscription data (i.e., performs translation processing), and then classifies the translation results using a classification algorithm. Diagnostic prompts are then generated based on the classification results.

[0104] This application provides a method for acquiring user subscription data based on a core network, comprising: responding to a query request from a target user, determining the query requirement and the query identifier corresponding to the query object; determining whether the length of the query identifier conforms to a preset identifier length; if so, determining whether the query identifier belongs to a first preset database; if so, matching the query identifier with a second preset database and determining the subscription region corresponding to the query identifier, determining the subscription network element based on the subscription region and determining the associated network element based on the subscription network element, thereby determining the network element of the core network corresponding to the query identifier; authenticating through the query requirement, determining whether the network address information and user account information (i.e., verification information) are legal; if legal, determining whether the query frequency of the target user is lower than a preset threshold; if so, determining a query instruction based on the query requirement, querying information in the network element and acquiring user subscription data through the query instruction, formatting the user subscription data and filtering sensitive information, determining the classification processing result through classification processing, and providing diagnostic prompts based on the classification processing result; and in When the query identifier does not conform to the first preset rule, a query anomaly is identified; when the query information does not conform to the second preset rule, a query failure is identified. The query anomaly and failure information are then formatted and pushed to the target user. This allows for the identification of the core network element corresponding to the query identifier and the push of query anomaly information when the query identifier is invalid. The system also determines the query instruction based on the query information and pushes query failure information when the query information does not conform to the security policy. Security policy judgments on the query information, i.e., setting query permissions, maintain the security of the core network. When determining the query instruction and network element, the system queries the user subscription data within the network element using the query instruction. The execution of the query instruction is multi-threaded, and the execution time of each thread is limited to maintain the stability of the network element. Furthermore, the system formats, filters sensitive information, and categorizes the data, achieving efficient information processing. This solves the technical problems of low business processing efficiency and high network security maintenance difficulty in existing technologies.

[0105] Figure 4 This is a schematic diagram illustrating the structure of a user subscription data acquisition device based on a core network, provided as an embodiment of this application. The device in this embodiment can be in the form of software and / or hardware. For example... Figure 4 As shown in the figure, this application provides a user subscription data acquisition device 400 based on a core network. The device includes: an acquisition module 401, a first processing module 402, and a second processing module 403.

[0106] The acquisition module 401 is used to respond to the query request of the target user and determine the query requirement and the query identifier corresponding to the query object;

[0107] The first processing module 402 is used to determine whether the query identifier conforms to the first preset rule. If so, it determines the core network element corresponding to the query identifier and determines whether the query request conforms to the second preset rule.

[0108] The second processing module 403 is used to determine the query instruction based on the query requirement when the query requirement meets the second preset rule, and to obtain the user's contracted data based on the query instruction and the network elements of the core network.

[0109] In one possible implementation, the device is also used for:

[0110] Determine whether the length of the query identifier matches the preset identifier length. If so, determine whether the query identifier belongs to the first preset database.

[0111] If so, the core network element corresponding to the query identifier is determined based on the query identifier.

[0112] In one possible implementation, the device is also used for:

[0113] The query identifier is matched with the second preset database to determine the contract region corresponding to the query identifier;

[0114] Based on the contracted region, determine the core network element corresponding to the query identifier, and based on the contracted network element, determine the associated network element of the contracted network element.

[0115] The core network elements include contracted network elements and / or associated network elements.

[0116] In one possible implementation, the device is also used for:

[0117] Based on the query requirements, determine the network address information, user account information, query frequency information, and verification information;

[0118] Authentication is performed based on network address information. If authentication is successful, joint authentication is performed based on user account information and verification information.

[0119] If joint authentication is successful, the system will determine whether the target user's query frequency is below a preset threshold based on the query frequency information.

[0120] If so, the query request will be determined as a query instruction, which will be sent to the network element. The network element will then execute the query instruction and obtain the user's contracted data.

[0121] The verification information is an authorization code used to verify the user's account information. The authorization code is updated periodically based on a preset time interval.

[0122] In one possible implementation, the device is also used for:

[0123] Execute the query command, determine the number of threads based on the second preset threshold, and query user subscription data of the network element based on the threads;

[0124] If the time for a thread to execute and obtain the execution result is less than a first preset duration, the execution result is determined as the query result, and the execution duration for determining the execution result as the query result is calculated.

[0125] If the execution time is less than the second preset time, the query result will be identified as user contract data.

[0126] In one possible implementation, the device is also used for:

[0127] The user's contract data is formatted, the formatting result is determined, sensitive information is filtered from the formatting result, and the data is classified and the classification result is determined. Diagnostic prompts are then made based on the classification result.

[0128] In one possible implementation, the device is also used for:

[0129] When the query identifier does not conform to the first preset rule, a first prompt message is determined to indicate that the query identifier is abnormal; and / or, when the query information does not conform to the second preset rule, a second prompt message is determined to indicate that the query information failed.

[0130] The first and / or second prompt messages are formatted, and the formatted first and / or second prompt messages are pushed to the target user.

[0131] This application provides a user subscription data acquisition device based on a core network, comprising: an acquisition module, used to respond to a query request from a target user and determine the query requirement and the query identifier corresponding to the query object; a first processing module, used to determine whether the length of the query identifier conforms to a preset identifier length, and if so, determine whether the query identifier belongs to a first preset database; if so, match the query identifier with a second preset database and determine the subscription region corresponding to the query identifier, determine the subscription network element based on the subscription region, and determine the associated network element based on the subscription network element, thereby determining the network element of the core network corresponding to the query identifier; a second processing module, used to authenticate based on the query requirement, determine whether the network address information and user account information (i.e., verification information) are legal, and if legal, determine whether the query frequency of the target user is lower than a preset threshold, and if so, determine the query instruction based on the query requirement, query the information in the network element and acquire user subscription data through the query instruction, format the user subscription data and filter sensitive information, determine the classification processing result through classification processing, and process the data based on the classification processing. The system provides diagnostic prompts based on the query results; identifies query anomalies when the query identifier does not conform to the first preset rule, and identifies query failures when the query information does not conform to the second preset rule. It then formats and processes the query anomaly and failure information before pushing it to the target user. This allows the system to determine the core network element corresponding to the query identifier and push query anomaly information when the query identifier is invalid. It also determines the query instruction based on the query information and pushes query failure information when the query information does not conform to the security policy. The system performs security policy judgment on the query information, i.e., sets query permissions, thereby maintaining the network security of the core network. When determining the query instruction and network element, it queries the user subscription data in the network element through the query instruction. The execution of the query instruction is multi-threaded, and the execution time of each thread is limited to maintain the stability of the network element. Furthermore, it formats the data, filters sensitive information, and classifies it, achieving efficient information processing. This solves the technical problems of low business processing efficiency and high network security maintenance difficulty in existing technologies.

[0132] Figure 5 This is a hardware structure diagram of a user subscription data acquisition device based on the core network, provided in an embodiment of this application. (See diagram below.) Figure 5 As shown, the core network-based user subscription data acquisition device 500 includes:

[0133] Processor 501 and memory 502;

[0134] The memory stores the instructions that the computer executes;

[0135] The processor executes the computer execution instructions stored in memory 502, causing the core network-based user subscription data acquisition device to perform the core network-based user subscription data acquisition method described above.

[0136] It should be understood that the processor 501 described above can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor. The memory 502 may include high-speed random access memory (RAM), and may also include non-volatile memory (NVM), such as at least one disk storage device, and may also be a USB flash drive, external hard drive, read-only memory, disk, or optical disc, etc.

[0137] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement a user subscription data acquisition method based on a core network.

[0138] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.

[0139] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.

Claims

1. A method for acquiring user subscription data based on a core network, characterized in that, include: In response to the query request from the target user, determine the query requirements and the query identifier corresponding to the query object; Determine whether the query identifier conforms to the first preset rule. If so, determine the network element of the core network corresponding to the query identifier, and determine whether the query request conforms to the second preset rule. If so, then a query instruction is determined based on the query requirement, and user subscription data is obtained based on the query instruction and the network element of the core network; The step of determining whether the query request conforms to the second preset rule, and if so, determining a query instruction based on the query request, and obtaining user subscription data based on the query instruction and the network element of the core network, includes: Based on the query requirements, determine the network address information, user account information, query frequency information, and verification information; Authentication is performed based on the network address information. If the authentication is successful, joint authentication is performed based on the user account information and the verification information. If joint authentication is successful, based on the query frequency information, it is determined whether the query frequency of the target user is lower than a preset threshold; If so, the query requirement is determined as a query instruction, and the query instruction is sent to the network element. The query instruction is executed, the number of threads is determined based on the second preset threshold, and the user contract data is queried on the network element based on the threads. When the time for the thread to execute and obtain the execution result is less than a first preset duration, the execution result is determined as the query result, and the execution duration for determining the execution result as the query result is calculated; When the execution time is less than the second preset time, the query result is determined as the user's contracted data; The verification information is an authorization code used to verify the user account information, and the authorization code is updated periodically based on a preset time interval.

2. The method according to claim 1, characterized in that, The step of determining whether the query identifier conforms to a first preset rule, and if so, determining the network element of the core network corresponding to the query identifier, includes: Determine whether the length of the query identifier conforms to the preset identifier length; if so, determine whether the query identifier belongs to the first preset database. If so, the network element of the core network corresponding to the query identifier is determined based on the query identifier.

3. The method according to claim 2, characterized in that, The step of determining the network element of the core network corresponding to the query identifier based on the query identifier includes: The query identifier is matched with the second preset database to determine the contract region corresponding to the query identifier; Based on the contracted region, determine the contracted network element of the core network corresponding to the query identifier, and based on the contracted network element, determine the associated network element of the contracted network element; The network elements of the core network include the contracted network elements and / or the associated network elements.

4. The method according to claim 1, characterized in that, After determining the query result as the user's contracted data, the process also includes: The user's contract data is formatted, the formatting result is determined, sensitive information is filtered from the formatting result, and the classification process is performed to determine the classification result. Based on the classification result, diagnostic prompts are made.

5. The method according to claim 1, characterized in that, Also includes: When the query identifier does not conform to the first preset rule, a first prompt message is determined to indicate that the query identifier is abnormal; And / or, when the query request does not meet the second preset rule, determine a second prompt message to indicate that the query request has failed; The first and / or second prompt messages are formatted, and the formatted first and / or second prompt messages are pushed to the target user.

6. A user subscription data acquisition device based on a core network, characterized in that, include: The acquisition module is used to respond to the query request of the target user and determine the query requirements and the query identifier corresponding to the query object; The first processing module is used to determine whether the query identifier conforms to the first preset rule. If so, it determines the network element of the core network corresponding to the query identifier and determines whether the query request conforms to the second preset rule. The second processing module is used to determine a query instruction based on the query requirement when the query requirement meets the second preset rule, and to obtain user subscription data based on the query instruction and the network element of the core network. The second processing module is specifically used to determine network address information, user account information, query frequency information, and verification information based on the query requirements; Authentication is performed based on the network address information. If the authentication is successful, joint authentication is performed based on the user account information and the verification information. If joint authentication is successful, based on the query frequency information, it is determined whether the query frequency of the target user is lower than a preset threshold; If so, the query requirement is determined as a query instruction, and the query instruction is sent to the network element. The query instruction is executed, the number of threads is determined based on the second preset threshold, and the user contract data is queried on the network element based on the threads. When the time for the thread to execute and obtain the execution result is less than a first preset duration, the execution result is determined as the query result, and the execution duration for determining the execution result as the query result is calculated; When the execution time is less than the second preset time, the query result is determined as the user's contracted data; The verification information is an authorization code used to verify the user account information, and the authorization code is updated periodically based on a preset time interval.

7. A user subscription data acquisition device based on a core network, comprising: Processor and memory; The memory stores computer-executed instructions; The processor executes the computer execution instructions stored in the memory, causing the core network-based user subscription data acquisition device to perform the core network-based user subscription data acquisition method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the user subscription data acquisition method based on the core network as described in any one of claims 1 to 5.