A method, apparatus, electronic device, and storage medium for processing a roaming service

By obtaining the off-site location and service fees of the mobile terminal, using dictionary trees and hierarchical hash functions to quickly find target information, and using OTA to configure and adapt the roaming code number, the problem of difficult to take into account the efficiency and accuracy of roaming services in the existing technology is solved, and the user experience is improved.

CN120018104BActive Publication Date: 2025-06-20HUNAN TAAO COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510473847.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-16
Publication Date
2025-06-20
Estimated Expiration
2045-04-16

AI Technical Summary

Technical Problem

When handling international roaming services, existing roaming service platforms are difficult to take into account both processing efficiency and accuracy, which affects the user experience.

Method used

By obtaining the off-site location and service fees of the mobile terminal, determining the hierarchical key value and dynamic salt value, using the dictionary tree and hierarchical hash function to quickly find the target information, and using the OTA method to configure and adapt the roaming code number.

Benefits of technology

It improves the efficiency and accuracy of roaming service processing and ensures users' experience on the roaming service platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120018104B_ABST
    Figure CN120018104B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of mobile communications, and particularly relates to a method, device, electronic device, and storage medium for processing roaming services. The technical solution of the present invention obtains the foreign location where the mobile terminal is located and the service tariff for the roaming service to be executed, determines the hierarchical key value corresponding to the foreign location and the service tariff, as well as the dynamic salt value of the service tariff at the corresponding timestamp, searches for the target information for configuring the roaming service terminal of the mobile terminal in the trie of the corresponding version through a hierarchical hash function, processes the target information according to the encryption method of the communication operator in the target information, and externally sends an OTA data packet; when the mobile terminal completes the terminal configuration, the mobile terminal is adapted to the roaming code number so that the mobile terminal can execute the roaming service. This technical solution ensures the processing efficiency and accuracy during the process of the roaming service platform executing the roaming services of multiple mobile terminals, and improves the user experience on the roaming service platform.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of mobile communications, and in particular to a method, device, electronic device and storage medium for processing roaming services. Background Art

[0002] At present, with the continuous advancement of globalization, the demand for cross-border travel has increased significantly, and the use of mobile terminals in international roaming scenarios has become increasingly common. To meet the international roaming demand, currently, communication services can be provided based on a roaming service platform connecting to local operators. The roaming service platform processes roaming services based on data such as MCC (Mobile Country Code), MNC (Mobile Network Code), and number resources of various countries. Since the processing process involves task processing of multiple users and needs to take into account multiple aspects such as communication compatibility, security, and reliability of resource scheduling, it is impossible to balance accuracy and timeliness when the roaming service platform implements roaming service processing, affecting the user experience on the roaming service platform. Summary of the Invention

[0003] In order to solve the problem of how to balance the processing efficiency and accuracy of roaming services on the roaming service platform, the purpose of the present invention is to provide a method, device, electronic device and storage medium for processing roaming services, and the specific technical solutions adopted are as follows:

[0004] In a first aspect, an embodiment of the present invention provides a method for processing roaming services, the method including:

[0005] Obtain the foreign location where the mobile terminal is located and the service fee for the roaming service to be executed, where the foreign location is the location where the mobile terminal is currently located, different from the country of the operator to which it is registered or the main service area;

[0006] Determine the hierarchical key value corresponding to the foreign location and the service fee, and the dynamic salt value of the service fee at the corresponding timestamp;

[0007] According to the hierarchical key value, the dynamic salt value, and a preset hierarchical hash function, search for the target information for configuring the roaming service terminal of the mobile terminal in the trie of the corresponding version;

[0008] Process the target information into an OTA data packet according to the encryption method of the communication operator in the target information and send it, so that the mobile terminal performs terminal configuration based on the OTA method;

[0009] When the mobile terminal completes the terminal configuration, adapt the roaming code number to the mobile terminal so that the mobile terminal executes the roaming service.

[0010] In an alternative embodiment, target information for roaming service terminal configuration of a mobile terminal is found in a trie of a corresponding version according to a hierarchical key value, a dynamic salt value, and a preset hierarchical hash function; including:

[0011] Merge the hierarchical key value and the dynamic salt value and input them into the hierarchical hash function; to obtain the hash value output by the hierarchical hash function;

[0012] Determine the trie of the corresponding version according to the version identification data in the hash value, wherein the trie is a single-tree multi-version structure, and each version of the trie is isolated by a corresponding dynamic salt value;

[0013] Perform index search on the trie according to the path identification data in the hash value, and determine the home country, communication operator, network access authentication parameters, and service configuration data found in the trie as the target information.

[0014] In an alternative embodiment, determine the hierarchical key value corresponding to the off-site location and service tariff; including:

[0015] Obtain the ISO code corresponding to the off-site location according to the geographical coordinates of the off-site location, and query the tariff code of the service tariff in a preset tariff code library;

[0016] Convert both the ISO code and the tariff code into integer data with unique identifiers, and perform a displacement operation on the converted integer data to obtain the hierarchical key value.

[0017] In an alternative embodiment, process the target information into an OTA data packet and send it according to the encryption method of the communication operator in the target information; including:

[0018] Determine the encryption method and information key of the target information according to the encryption algorithm corresponding to the communication operator in the target information;

[0019] Encrypt the target information according to the encryption method and the information key to obtain an OTA data packet;

[0020] Send the OTA data packet to the mobile terminal according to the transmission protocol corresponding to the home country in the target information, so that the mobile terminal performs terminal configuration based on the OTA method.

[0021] In an alternative embodiment, adapt a roaming code number to the mobile terminal when the mobile terminal completes terminal configuration; including:

[0022] When receiving the completion instruction feedback by the mobile terminal executing terminal configuration, obtain the current signal strength and current communication bandwidth of the mobile terminal at the off-site location;

[0023] Determine all the adapted numbers applicable to the mobile terminal at the current moment in the number pool according to the network fluctuation range allowed by the current signal strength, the current communication bandwidth, and the service tariff.

[0024] Obtain the roaming quality curve of each adapted number according to the statistical data of the execution history of roaming services for all adapted numbers, where the roaming quality curve is a curve of the roaming quality index of the adapted number varying with the roaming duration.

[0025] Perform an optimization calculation based on the fluctuation amplitude and roaming quality index presented by all the roaming quality curves to determine the adapted number corresponding to the roaming quality curve with the minimum fluctuation amplitude and the maximum roaming quality as the roaming number.

[0026] In an optional embodiment, the statistical data includes signal strength, communication bandwidth, communication delay, abnormal frequency, and packet loss rate; obtaining the roaming quality curve of each adapted number according to the statistical data of the execution history of roaming services for all adapted numbers includes:

[0027] Determine the weight coefficients corresponding to the communication delay, abnormal frequency, and packet loss rate respectively according to the signal strength and communication bandwidth at each statistical moment in the statistical data of each adapted number.

[0028] Obtain the roaming quality index at the corresponding statistical moment according to the communication delay, abnormal frequency, packet loss rate, and the corresponding weight coefficients respectively.

[0029] Obtain the roaming quality curve of each adapted number according to all the roaming quality indexes of each adapted number and the corresponding statistical moments.

[0030] In an optional embodiment, after the mobile terminal adapts the roaming number when the terminal configuration of the mobile terminal is completed; the method further includes:

[0031] Obtain the termination execution instruction for the roaming service.

[0032] Release the roaming number to the preset number pool according to the termination execution instruction, and measure the cooling duration, so that the roaming number can be adapted and used again after the cooling duration reaches the preset value.

[0033] In a second aspect, an embodiment of the present invention further provides a processing device for roaming services, and the device includes:

[0034] A first acquisition module, configured to acquire the remote location where the mobile terminal is located and the service tariff of the roaming service to be executed, where the remote location is the location where the mobile terminal is currently located, which is different from the country of the operator to which it belongs or the main service area where it is registered.

[0035] A determination module, configured to determine the hierarchical key value corresponding to the remote location and the service tariff, and the dynamic salt value of the service tariff at the corresponding timestamp.

[0036] A search module, configured to search for target information for roaming service terminal configuration of a mobile terminal in a trie of a corresponding version according to a hierarchical key value, a dynamic salt value, and a preset hierarchical hashing function;

[0037] A sending module, configured to process the target information into an OTA data packet and send it according to the encryption method of a communication operator in the target information, so that the mobile terminal performs terminal configuration based on the OTA method;

[0038] An adaptation module, configured to adapt a roaming code number to the mobile terminal when the mobile terminal completes terminal configuration, so that the mobile terminal performs a roaming service.

[0039] In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor and a memory, the memory is coupled to the processor, and the memory stores instructions, and when the instructions are executed by the processor, the electronic device executes the steps of any method in the first aspect.

[0040] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps of any method in the first aspect are implemented.

[0041] The present invention has the following beneficial effects:

[0042] The technical solution of the present invention obtains the foreign location where the mobile terminal is located and the service tariff for the roaming service to be performed. Since the foreign location is the location where the mobile terminal is currently located and is different from the country or main service area to which its registered operator belongs, it can be determined that the mobile terminal needs to perform international roaming communication. Then, the hierarchical key value corresponding to the foreign location and the service tariff, and the dynamic salt value of the service tariff at the corresponding timestamp are determined. According to the hierarchical key value, the dynamic salt value, and the preset hierarchical hashing function, target information for roaming service terminal configuration of the mobile terminal is searched in a trie of a corresponding version; further, the target information is processed according to the encryption method of the communication operator in the target information and an OTA data packet is sent externally, so that the mobile terminal performs terminal configuration based on the OTA method; when the mobile terminal completes terminal configuration, a roaming code number is adapted to the mobile terminal, so that the mobile terminal performs a roaming service. This technical solution stores the data required for the professional roaming service in a trie, and implements isolation of different versions through different dynamic salt values. The target information can be quickly and accurately found through the hierarchical key value and the dynamic salt value, and the upgrade is performed through the OTA method, which can ensure the processing efficiency and accuracy during the roaming service process of multiple mobile terminals on the roaming service platform, and improve the user experience on the roaming service platform. Description of the Drawings

[0043] To more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the following will briefly introduce the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0044] Figure 1 The flowchart of a method for processing roaming services provided by an embodiment of the present invention;

[0045] Figure 2 The schematic diagram of the interaction between a roaming service platform and multiple mobile terminals provided by an embodiment of the present invention;

[0046] Figure 3 The schematic diagram of the structure for storing information in a trie tree provided by an embodiment of the present invention;

[0047] Figure 4 The schematic diagram of the structure of a device for processing roaming services provided by an embodiment of the present invention. Detailed implementation manners

[0048] In order to further elaborate on the technical means and effects adopted by the present invention to achieve the intended invention purpose, the following, in combination with the accompanying drawings and preferred embodiments, details the specific implementation manners, structures, features, and effects of a method, device, electronic device, and storage medium for processing roaming services proposed according to the present invention. In the following description, different "one embodiment" or "another embodiment" do not necessarily refer to the same embodiment. In addition, the specific features, structures, or characteristics in one or more embodiments can be combined in any suitable form.

[0049] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which the present invention belongs.

[0050] For the business processing of international roaming, the traditional method is to first install the hardware communication card on the user's mobile terminal, and then the user activates the communication card through an APP (Application, application program) or a network platform, so that the communication card can send and receive data at the foreign location where it is located, realizing international roaming services. When implementing the activation of the communication card, this method needs to rely on the MCC and MNC written in the communication card to connect to the corresponding communication operator in the country to implement the roaming service processing of the mobile terminal. This processing method requires the user's activation operation to complete the processing of international roaming services, and is limited by the roaming services provided by the communication operator configured in the communication card, resulting in that the provided roaming services cannot be well adapted to the user's needs.

[0051] To improve the service experience of users in handling roaming services, the configuration of multiple types of communication resources can be implemented through a roaming service platform. The roaming service platform integrates multiple communication operators in many countries around the world. There are differences in the roaming services provided by each communication operator in each country. Based on this differential feature, different user needs can be adapted. However, for countries with a large number of communication operators, hundreds of communication operators in that country will be configured to enter the roaming service platform to provide differential international roaming services according to different user needs and locations. Currently, when the roaming service platform processes such roaming services, it is difficult to implement efficient management and roaming service processing. The main reason is that target information such as the home country, communication operator, and network access authentication parameters is not scientifically managed, and communication operators will adjust service tariffs irregularly based on business strategies. When implementing the processing of roaming services, it is impossible to accurately extract the types of roaming services required by customers for matching, or when implementing communication operator matching, it is necessary to manually search for relevant data of target information one by one, resulting in poor accuracy or low efficiency in the matching process of roaming services, affecting the user experience on the roaming service platform. Therefore, there is an urgent need to propose a new roaming service processing solution to solve the above technical problems.

[0052] The following specifically describes the specific solutions of a roaming service processing method, device, electronic device, and storage medium provided by the present invention in conjunction with the accompanying drawings.

[0053] Please refer to Figure 1 , Figure 1 which is a flowchart of a roaming service processing method provided by an embodiment of the present invention. This processing method can be applied to the roaming service platform to process the roaming services of mobile terminals, and the processing method runs based on a server or computer device equipped with the roaming service platform. The processing method includes:

[0054] S11. Obtain the foreign location where the mobile terminal is located and the service tariff of the roaming service to be executed, where the foreign location is the location where the mobile terminal is currently located, which is different from the country or main service area to which its registered operator belongs.

[0055] Specifically, the location within the country or main service area to which the mobile terminal's registered operator belongs is the local location, and the foreign location is the location outside the country or main service area to which the operator belongs. The foreign location can be the geographical coordinates where the mobile terminal is located, and the geographical coordinates can be obtained through GPS (Global Positioning System) positioning or base station positioning. Through the foreign location, the country or region where the user is located after taking the mobile terminal abroad can be determined.

[0056] The service charges can be determined based on the service charge agreement or service package signed by the user on the roaming service platform. Different roaming services with different charges correspond to their respective service standards. The service charges represent the charging standards for performing roaming services. Through the service charges, the requirements of the user for roaming services can be determined. For example, when the service charges are high, it indicates that the user has a high requirement for the response time of the roaming service, needs a faster speed when accessing the Internet, and requires better signal coverage. On the contrary, when the service charges are low, it indicates that the user pays more attention to the service cost performance of the roaming service.

[0057] Please refer to Figure 2 , Figure 2 which is a schematic diagram of the interaction between the roaming service platform and multiple mobile terminals. Through the roaming service platform, roaming services can be performed on multiple mobile terminals. For example, when mobile terminals U1 and U2 enter country A1 from the home country of the operator they are registered with or other countries, based on their different locations within country A1, it is determined that international roaming needs to be implemented, and roaming service processing can be performed on them respectively, enabling mobile terminals U1 and U2 to enjoy international roaming services in country A1. After mobile terminal U3 enters country A2 from other countries, mobile terminal U3 sends its different location in country A2 to the roaming service platform, and the roaming service platform determines the service charges based on the service package purchased by mobile terminal U3.

[0058] At this point, the different location of the mobile terminal and the service charges for the roaming service to be performed have been obtained, and step S12 is entered.

[0059] S12. Determine the hierarchical key value corresponding to the different location and service charges, and the dynamic salt value of the service charges at the corresponding timestamp.

[0060] Specifically, the hierarchical key value can split multi-dimensional data into a hierarchical structure. When performing subsequent data searches, each layer of key value can be used as a filtering condition to quickly narrow the query range and reduce the time complexity of data search. There are multiple countries around the world on the roaming service platform, and there are multiple communication operators in each country, and there are differences in the tariff calculations of each communication operator. If configured with a single-layer key value, to prevent hash collisions, complex hash calculations need to be implemented. When the roaming service platform provides multi-user services, the time complexity of processing roaming services for each user will increase, thus limiting the operating rate of the roaming service platform and resulting in a poor user experience.

[0061] When calculating the hierarchical key value based on the remote location and service charges, the data such as the continental block, country, language, currency exchange rate, etc. can be defined according to the ISO-3166-1 standard, and the data such as the continental block, country, communication operator, etc. where the mobile terminal is located can be obtained through the geographical coordinates of the remote location, and hierarchical coding can be performed based on each data, and the service charges can also be independently coded to obtain the hierarchical key value. The hierarchical key value can reduce the complexity of each layer of calculation, improve the efficiency of parallel processing of multiple users on the roaming service platform, and make the selected processing method suitable for the processing requirements of the roaming service platform. It can be understood that when the remote location and the service charges are the same, the calculated hierarchical key value is unique; therefore, the hierarchical key value with unique characteristics can be obtained through the remote location and the service charges, and the hierarchical key value obtained will change when either the remote location or the service charges changes. The remote location and the service charges can be assigned values ​​first, and then spliced ​​or combined to obtain the hierarchical key value.

[0062] It should be noted that since the roaming service platform has communication operators from various countries, each communication operator will update the communication charges, rate packages, etc. from time to time based on its own communication operation needs. The service charges for the roaming service to be executed are the rate calculation methods agreed upon by the user and the roaming service platform, which may have been implemented before the user arrives at the remote location. If the rate calculation method updated by the communication operator is matched based on the service charges, it may cause billing errors for roaming services, causing user complaints or complaints. Based on this, the roaming service platform needs to perform version management based on the rates entered by different communication operators to prevent confusion in the rate matching of roaming services of each user. The present invention determines the corresponding dynamic salt value through the timestamp of the service charges. The dynamic salt value is used to isolate data such as different versions of rate packages, thereby improving the accuracy of subsequent data searches.

[0063] It can be understood that when determining the dynamic salt value based on the timestamp of the service charge, a salt value generation function can be constructed. The timestamp of the service charge can be input into the preset salt value generation function to obtain the corresponding dynamic salt value. Since the dynamic salt value is used to isolate data such as different versions of tariff packages, and the timestamp gradually increases, the constructed salt value generation function can increase the calculated dynamic salt value based on the increase in time, which makes it easy to identify version changes of the data through the dynamic salt value.

[0064] In actual application, since international roaming services involve many countries, and each country is distributed in different continents, using letters or floating point data to store data may cause complex key value calculation or duplicate key values. Based on this, determine the hierarchical key values ​​corresponding to the remote location and service charges; including:

[0065] S12-1. Obtain the ISO code corresponding to the remote location based on the geographical coordinates of the remote location, and query the tariff code of the service tariff in the preset tariff code library. To facilitate the accurate storage of data by the roaming service platform, the ISO codes of different remote locations can be constructed based on the ISO-3166-1 standard. For example, a location code library can be constructed based on the country or region to which the remote location belongs. Each code in the location code library corresponds to a country or region, and the ISO code is determined in the location code library based on the country to which the geographical coordinates of the remote location belong. Similarly, the corresponding tariff code is queried in the tariff code library through the service tariff.

[0066] S12-2. Convert both the ISO code and the tariff code into integer data with unique identifiers, and perform a displacement operation on the converted integer data to obtain a hierarchical key value. The ISO code is converted into an integer, and at the same time, the tariff code is also mapped to a value of a unique integer data. Suppose the ISO code "US" is mapped to 840, and the tariff code "50USD" is mapped to 1. After the displacement operation on the ISO code and the tariff code, the hierarchical key value can be obtained. The purpose of the displacement operation is to move the two values to their corresponding hierarchical positions for subsequent data search. For example, the ISO code is displaced 8 bits and expressed as 840 << 8, which means shifting 840 8 bits to the left to ensure that its high-order part is always fixed for the country code, and the low 8 bits are used to store the tariff code.

[0067] It can be understood that to generate a hierarchical key value of an integer structure that not only avoids the computational resource overhead of string concatenation but also ensures uniqueness, the ISO code and the tariff code can be both converted into integer data with unique identifiers and perform an AND operation to obtain a hierarchical key value represented as integer data.

[0068] So far, the hierarchical key value and the dynamic salt value have been determined, and step S13 is entered.

[0069] S13. Based on the hierarchical key value, the dynamic salt value, and the preset hierarchical hash function, search for the target information for configuring the roaming service terminal of the mobile terminal in the corresponding version of the trie tree.

[0070] Specifically, the target information is multiple data information that needs to be configured when the mobile terminal performs a roaming service at a remote location. For example, the home country of the remote location, the communication operator that can adapt to the service tariff, etc. The hierarchical key value and the dynamic salt value can be combined into a target key value, so that when the target key value is input into the hierarchical hash function, it includes the geographical location information of the mobile terminal, reflects the difference in service tariffs, and at the same time searches for data in the trie corresponding to the dynamic salt value. The two pieces of information can be converted into a hash value of a fixed length through the hierarchical hash function, and the corresponding information can be gradually found in the trie through the hash value, specifically including the home country, communication operator, network access authentication parameters, and service configuration data, etc. Since the search process does not require a linear search of the entire data set, the search efficiency is greatly improved, so it is suitable for the application scenario of large-scale data search during international roaming.

[0071] A hierarchical hash function is a function that processes input data through multiple levels of hash operations. Different from ordinary hash functions, it does not simply map the input directly to a fixed hash value, but through multiple stages of hash calculations, gradually refines and processes the data to adapt to different levels of data structures or data organization methods. Each layer of the hierarchical hash function can use different hash algorithms and can perform different processing according to different parts of the input data. This hierarchical design enables it to better process complex data structures and improve the efficiency of data search and storage.

[0072] The dynamic salt value is used to isolate different versions of the trie. In each layer of the hierarchical hash function, the corresponding hash algorithm is configured based on actual needs. For example, in the first layer, the version number of the trie is found through the dynamic salt value, and the simple and fast Murmur Hash function can be used. It has a high calculation speed and can complete the hash calculation in a short time, which is suitable for quickly locating the trie version number. In the second layer, the home country is found through the geographical location, and the City Hash function can be adopted. It has good performance and distribution for processing string-type geographical location information and can evenly map different geographical locations to the hash space. In the third layer, the communication operator is found through the service tariff, and the Sip Hash function can be used. It has good anti-collision and security properties and is suitable for processing sensitive information such as service tariffs. In the fourth layer, the network access authentication parameters and service configuration data are found. Since the security requirements are higher, the SHA-256 function can be adopted, which can provide high security and ensure the integrity of key information such as network access authentication parameters.

[0073] Furthermore, when implementing the search for target information in the trie using a hierarchical hash function, after the hash calculation is completed at the current layer, the calculation results of this layer will be merged into the key values of the next layer as input to perform the hash calculation of the next layer. For example, the version number of the trie is calculated through a dynamic salt value in the first layer, and this version number represents the trie version to which the current data belongs. In the second layer, the country of origin needs to be searched in the trie corresponding to the version. Therefore, the version number must be used as part of the input to ensure that the search scope of the second layer is limited within the corresponding version and to avoid data confusion caused by cross-version searches.

[0074] It should be noted that the target information can be searched within a preset time period through the constructed hierarchical hash function, and the preset time period is related to the execution response time of the roaming service. The construction of the hierarchical hash function needs to ensure that the hash values of the input data are uniform to reduce the possibility of hash collisions. When a collision occurs, the ordered characteristics and multi-layer search mechanism of the trie can also be used for secondary judgment and matching to ensure that the target information can be correctly found. In practical applications, the trie and its corresponding hash table need to be updated dynamically to find the latest target information.

[0075] It can be understood that whether to construct a hash table can be determined based on the complexity of the trie node structure. When the number of child nodes of each node in the trie is limited, the nodes can be directly stored using an array or a structure of a fixed size, so the search speed is very fast and the memory utilization rate is relatively low, and no additional hash table is required. If the data scale stored in the trie is large or there is a non-fixed character set, the hash table can be used to store the mapping relationship between the hash value and the corresponding node to improve the search efficiency of the target information. When a hash table needs to be constructed, the corresponding hash table can be constructed based on the data stored in the trie, and the data is searched in the hash table through the hash value. A hash table is a data structure that stores data in the form of key-value pairs. Its core advantage is to provide data search with a time complexity close to a constant, and its specific construction and application methods will not be elaborated further.

[0076] The node levels of the trie are, in order, the country of origin, communication operator, network access authentication parameters, and service configuration data. Please refer to Figure 3 , Figure 3It is a schematic structural diagram of a trie. The figure includes Country A1 and Country A2. Country A1 includes Communication Operators B2 and B3. Communication Operator B2 supports two types of network access authentication methods, so it includes Network Access Authentication Parameter C1 and Network Access Authentication Parameter C2. Network Access Authentication Parameter C1 corresponds to Service Configuration Data D1, and Network Access Authentication Parameter C2 corresponds to Service Configuration Data D2. The hash value can be a string of a preset length. Different parts of the string can be directly mapped to the first node corresponding to the home country, the second node corresponding to the communication operator, the third node corresponding to the network access authentication parameter, and the fourth node corresponding to the service configuration data, so as to find the target information in the trie. Figure 3 It is only a simplified schematic of the trie structure. Since international roaming involves at least more than 100 countries globally, and there may be hundreds of communication operators in some countries, the data volume of the constructed trie is large, and data search needs to be implemented based on a hierarchical hashing form.

[0077] It can be understood that when constructing the correspondence between the trie and the hash value, the correspondence between data such as the home country and the hash value range can be planned first. For example, the high-order data of the hash value can be used to distinguish different countries. After determining the home country, the remaining or re-hashed part is used to match the communication operator. Here, it is necessary to ensure that different communication operators can be distinguished through further hashing or prefix matching, and the service configuration data under the network access authentication parameter is found according to the network access authentication parameter under the communication operator node.

[0078] Furthermore, the network access authentication parameters include parameters such as the International Mobile Subscriber Identity, the authentication key, and the Temporary Mobile Subscriber Identity. Through these parameters, when the mobile terminal connects to the target network at a remote location in the international roaming state, it will interact with the authentication server (such as HSS / HLR) of the target operator to complete the identity verification. Among them, the target network is the network that the mobile terminal connects to when performing roaming services at a remote location, and the target operator is the communication operator that serves the mobile terminal when performing roaming services at a remote location. If the identity verification is passed, the mobile terminal can officially join the target network. The service configuration data is used to enable the mobile terminal to correctly use the communication and data services of the target operator. The service configuration data includes the charging rules for roaming services, service quality parameters (such as the maximum bandwidth, the minimum latency, etc.), the proprietary APN or VPN settings of the target operator, OTA instructions, application layer parameters (such as cloud service access points, CDN acceleration policies), etc.

[0079] Exemplarily, step S13 includes sub-steps S13-1 to S13-3, which are specifically described as follows:

[0080] S13-1. Combine the hierarchical key value and the dynamic salt value and input them into a hierarchical hash function to obtain the hash value output by the hierarchical hash function. The hierarchical key value and the dynamic salt value can be combined into a target key value. The first layer of the target key value is the dynamic salt value, and the layers after the first layer are the hierarchical key values. The selection and design of the hierarchical hash function should ensure fast operation speed, uniform distribution, and minimize hash conflicts. It can be understood that if hash conflicts occur, supplementary processing can be performed through subsequent conflict handling mechanisms. The single layer of the hierarchical hash function can be constructed based on the Murmur Hash function or the City Hash function, as long as the above-mentioned lookup function can be realized, and no specific restrictions are made here.

[0081] Regarding the maintenance of the trie on the roaming service platform, there are characteristics of high-frequency updates, coexistence of multiple versions, and the need for historical backtracking. To prevent hash conflicts or excessive processing time during the processing of the hash function, the constructed hierarchical hash function can hash different levels of data separately and then merge the results. For example, the remote location and service tariff are each regarded as one layer, and the dynamic salt value is regarded as another layer. After independent hashing of each layer, they are merged. This can reduce conflicts because the hashing of each layer is processed independently, preventing single-layer conflicts, and the differences in other layers can also avoid overall conflicts.

[0082] S13-2. Determine the trie of the corresponding version according to the version identification data in the hash value. Among them, the trie is a single-tree multi-version structure, and each version of the trie is isolated by the corresponding dynamic salt value. The version identification data is in the corresponding position of the hash value. The trie of the corresponding version can be determined by extracting the version identification data from the hash value. The single-tree multi-version trie isolates the version data through the dynamic salt value. All versions coexist in the same trie, and different versions share the same service levels, reducing redundant storage; when querying data of different versions, there is no need to switch multiple tries, and the query path is shorter.

[0083] S13-3. Perform index lookup on the trie according to the path identification data in the hash value, and determine the home country, communication operator, network access authentication parameters, and service configuration data found in the trie as the target information. As a data structure, the trie is suitable for hierarchical lookup. Using the hash value to quickly locate a specific branch in the trie and then matching layer by layer can effectively improve the lookup efficiency and accuracy.

[0084] For example, the dynamic salt value of the October version is 20231001, and the target key value = version: 20231001 | country of origin: JP | service charge: 0 - 10 USD; the dynamic salt value of the November version = 20231101, and the target key value = version: 20231101 | country of origin: JP | service charge: 0 - 15 USD. When a user queries the Japanese tariff in October 2023, the dynamic salt value 20231001 can be automatically matched, and the positioning path is: root / version: 20231001 / country of origin: JP / service charge: 0 - 10 USD. It can be seen that the country of origin JP node is shared in the October and November versions. After the new service charge takes effect in November, the old version can still be accessed independently.

[0085] Furthermore, when generating the hierarchical key value, data conversion needs to be performed on the off-site location and service charge respectively to obtain the country code corresponding to the off-site location and the tariff code corresponding to the service charge. The purpose is to convert the original data into a standard format, where the off-site location is converted into the corresponding country code, and the service charge is converted into the corresponding tariff code. Since different mobile terminals may use different formats to describe the country and tariff, ensuring a unified format can guarantee the accuracy and consistency of subsequent processing. Standardization processing helps reduce hash collisions and matching errors caused by inconsistent data formats.

[0086] Input the country code and tariff code into a preset key value generation function to obtain a hierarchical key value with a unique identifier. This step combines the two standardized data into a unique hierarchical key value. Generating a hierarchical key value with a unique identifier is the basis for subsequent operations of the hierarchical hash function. By combining the country code and tariff code, the uniqueness of the hierarchical key value can be guaranteed to a certain extent, thus facilitating the distinction of different service scenarios. When designing the key value generation function, it is necessary to ensure that different inputs can generate different hierarchical key values to avoid confusion or errors in data lookup caused by duplicate hierarchical key values.

[0087] Specifically, in the data storage phase, when storing communication operators, network access authentication parameters, service configuration data, etc. of different countries into the trie, first perform data conversion on the country code and tariff code, then generate a unique hierarchical key value; then calculate the hash value using the hierarchical hash function; then determine the storage node location in the trie according to this hash value. In the query phase, similarly, perform the same processing on the input off-site location and service charge to obtain a unique hierarchical key value, calculate the hash value using the same hierarchical hash function, and then directly use this hash value to search for data in the trie. Since the processes of storage and query are the same, the hash value calculated by the hierarchical hash function can be used as an index to directly locate each node storing the target information, realizing the efficient search for the target information.

[0088] It should be further noted that when searching for target information through a hierarchical hashing function, the same data conversion and hashing calculation methods are used for both storage and query. This ensures the correspondence between the hash value and the trie storage structure, thus achieving efficient and accurate index searching. When constructing the trie, data will be stored in the corresponding positions in the trie in the same way. That is to say, when inserting data (such as the service configuration data of the roaming service), first generate a hierarchical key value based on the "country code + tariff code", then calculate the hash value using the same hierarchical hashing function, and finally insert the data into the corresponding node of the trie according to this hash value. The hierarchical hashing function is a mathematical mapping, and its design goal is to always return the same hash value for the same input data (such as the same hierarchical key value), and evenly distribute different inputs throughout the space of hash values. Therefore, when querying, use the same input data to generate the same hierarchical key value, and then through the hierarchical hashing function, the hash value exactly the same as when the data was stored can be calculated. This hash value directly corresponds to a certain node or path in the trie.

[0089] S14. Process the target information according to the encryption method of the communication operator in the target information and send out an OTA data packet externally, so that the mobile terminal performs terminal configuration of the roaming service according to the OTA data packet.

[0090] Specifically, the data included in the target information can be compressed and packaged into an OTA data packet and sent to the mobile terminal. After receiving the OTA data packet, the mobile terminal determines whether the data format matches and verifies the integrity of the OTA data packet. The verification can be implemented by means of CRC check or digital signature authentication. After the mobile terminal completes the terminal configuration based on the OTA data packet, it feeds back the status to the roaming service platform. It can return a status indication of "update successful" to the roaming service platform through a short message or the Internet. The mobile terminal can attempt to communicate with the target operator over the network and perform authentication using the newly configured parameters. If the OTA update fails, the roaming service platform can reissue the data packet or switch to an alternative network to perform the upgrade configuration of the mobile terminal.

[0091] Exemplarily, step S14 includes sub-steps S14-1 to S14-3, which are specifically described as follows:

[0092] S14-1. Determine the encryption method and information key of the target information according to the encryption algorithm corresponding to the communication operator in the target information. In global roaming services, different communication operators have different security requirements for device authentication, data encryption, and information protection. Therefore, when constructing an OTA data packet, it is necessary to determine the appropriate encryption method and information key based on the communication operator in the target information. According to the communication operator in the target information, obtain the applicable encryption algorithm from the encryption policy database or rule configuration table, such as the Advanced Encryption Standard (AES), Asymmetric Encryption (RAS, Rivest Shamir Adleman), or Elliptic Curve Cryptography (ECC), etc. The shared key of the target operator can be found from the key management server, or a one-time session key can be generated based on security authentication and used as the information key.

[0093] S14-2. Encrypt the target information according to the encryption method and information key to obtain an OTA data packet. After determining the appropriate encryption method and information key, it is necessary to encrypt the target information and construct a data packet that conforms to the OTA transmission protocol. Encrypting the encapsulated target information can ensure that the data will not be stolen or tampered with during transmission.

[0094] S14-3. Send the OTA data packet to the mobile terminal according to the transmission protocol corresponding to the home country in the target information, so that the mobile terminal can perform the terminal configuration for the roaming service. The mobile communication network architectures, transmission protocols, and operator policies in different countries may vary greatly. Therefore, when sending the OTA data packet, it is necessary to select the most suitable transmission protocol according to the home country in the target information to ensure that the data packet can be successfully delivered to the mobile terminal and correctly parsed. During the sending process, a timeout retry policy can be set to ensure that the mobile terminal can try to re-obtain the data packet when the first reception fails.

[0095] At this point, the mobile terminal has completed the terminal configuration for the roaming service through the OTA data packet and enters step S15.

[0096] S15. Adapt the roaming code number to the mobile terminal when the mobile terminal completes the terminal configuration, so that the mobile terminal can perform the roaming service.

[0097] Specifically, after the mobile terminal completes the terminal configuration, the roaming service platform will adapt a roaming code number for the mobile terminal according to the current network environment of the mobile terminal and the available resources of the platform to ensure the smooth execution of the roaming service. Based on the information fed back after the mobile terminal completes the configuration, confirm the home country of the current mobile terminal, the target network accessing the remote location, and the supported network bands, and screen out the roaming code numbers applicable to the remote location from the code number pool, so that the mobile terminal can access the Internet or make phone calls through the roaming code number.

[0098] In practical applications, due to the differences in network coverage and quality in different regions, it may not be possible to accurately adapt the roaming code number that meets the communication requirements only through the location information of the mobile terminal, resulting in network communication delays of the mobile terminal in a foreign place and affecting the user experience. Based on this, in a specific implementation manner, step S15 includes sub-steps S15-1 to S15-4, which are specifically described as follows:

[0099] S15-1. When receiving the completion instruction fed back by the mobile terminal for executing the terminal configuration, obtain the current signal strength and the current communication bandwidth of the mobile terminal at the remote location. The current signal strength and the current communication bandwidth can be obtained through the reported results of the mobile terminal or estimated based on the base station where the mobile terminal is located. The current signal strength is used to measure the wireless communication quality between the mobile terminal and the base station and reflects the reception of radio waves; the current communication bandwidth represents the available data transmission capacity of the mobile terminal in the current network environment, is used to evaluate the service quality of data transmission, and represents the amount of data that the mobile terminal can receive or send per unit time. The current signal strength and the current communication bandwidth can reflect the network coverage of the remote area where the mobile terminal is located and the available communication resources, providing a basic reference for subsequent code number adaptation.

[0100] S15-2. Determine all the adapted code numbers applicable to the mobile terminal at the current moment in the code number pool according to the current signal strength, the current communication bandwidth, and the network fluctuation range allowed by the service tariff. Through the current signal strength and the current communication bandwidth, it can be judged whether the network environment of the mobile terminal at the remote location has good coverage and sufficient communication capabilities. These two parameters can reflect the basic situation of the network quality, such as whether there is weak signal, bandwidth limitation, or network congestion.

[0101] The network fluctuation range is the fluctuation amplitude allowed by the network set based on the service tariff. Different service tariff packages are applicable to network services of different quality levels. For example, high-tariff packages allow higher-quality and more stable connections, while low-tariff packages may accept a certain degree of network fluctuations. Therefore, according to the current service tariff applicable to the mobile terminal, set an acceptable network fluctuation range to ensure that the selected roaming code numbers are not only technically adapted but also compliant with the usage rights and interests of the terminal user in terms of the tariff strategy.

[0102] S15-3. Obtain the roaming quality curve for each adapted code number based on the statistical data of the historical roaming services. The roaming quality curve is a curve showing the change of the roaming quality index of the adapted code number with the roaming duration. When each roaming code number in the code pool performs historical roaming services, it can record the data during the roaming process, such as communication delay and abnormal frequency, etc. By performing data analysis on the statistical data, the roaming quality curve can be obtained. The roaming quality curve characterizes the change trend of the roaming quality index of the roaming code number with the roaming duration. By analyzing these curves, the stability and performance of different roaming code numbers during long-term use can be intuitively understood, providing a reference for the selection of the final code number.

[0103] Exemplarily, the statistical data includes signal strength, communication bandwidth, communication delay, abnormal frequency, and packet loss rate; sub-step S15-3 includes:

[0104] First step, based on the signal strength and communication bandwidth at each statistical moment in the statistical data of each adapted code number, determine the weight coefficients corresponding to the communication delay, abnormal frequency, and packet loss rate respectively. Different signal strengths and communication bandwidths have different degrees of influence on the roaming quality of the mobile terminal. Therefore, it is necessary to accurately obtain the weight coefficients of various types of data. Usually, communication delay, abnormal frequency, and packet loss rate are important indicators for measuring network stability, but their influence degrees will vary depending on the network environment and usage requirements. For example, in high-real-time services such as voice calls, the weight of communication delay is relatively high, while for data download services, the influence of packet loss rate may be greater. Therefore, the weight coefficients can be dynamically adjusted in combination with historical data and network environment to ensure that the calculated roaming quality index can truly reflect the actual network performance of the roaming code number.

[0105] The weight coefficient corresponding to the communication delay is the first weight coefficient, the weight coefficient corresponding to the abnormal frequency is the second weight coefficient, and the weight coefficient corresponding to the packet loss rate is the third weight coefficient. Based on different communication tasks in the roaming service, for different intervals of signal strength and communication bandwidth, the weight coefficients corresponding to the communication delay, abnormal frequency, and packet loss rate can be configured respectively to obtain a weight relationship table for different communication tasks. The weight relationship table can characterize the corresponding relationship between different signal strength intervals and communication bandwidth intervals, and the first weight coefficient, the second weight coefficient, and the third weight coefficient. By querying the weight relationship table with the signal strength and communication bandwidth at each statistical moment, the weight coefficients corresponding to the communication delay, abnormal frequency, and packet loss rate can be obtained.

[0106] Step 2: Obtain the roaming quality index at the corresponding statistical moment according to the communication delay, anomaly frequency, packet loss rate, and their respective weight coefficients. Use the determined weight coefficients to perform weighted calculations on the communication delay, anomaly frequency, and packet loss rate at each statistical moment to obtain the roaming quality index at the corresponding statistical moment.

[0107] The roaming quality index is a comprehensive score indicating the communication quality of the roaming code number at that moment. For example, at a certain statistical moment, if a certain code number has a lower communication delay, a smaller packet loss rate, and fewer anomalies, its roaming quality index will be higher, indicating that the roaming code number performs well at that moment; on the contrary, the lower the calculated roaming quality index, the worse the communication quality of the roaming code number at that moment. The calculation formula can adopt weighted average, exponential smoothing, or other machine learning models for processing to improve the calculation accuracy. For example, through the formula , obtain the roaming quality index , is the communication delay, is the anomaly frequency, is the packet loss rate, is the first weight coefficient, is the second weight coefficient, is the third weight coefficient, = 1. norm() is a normalization function that processes the calculation result of to be between 0 and 1 through the normalization function.

[0108] Step 3: Obtain the roaming quality curve of each adapted code number according to all the roaming quality indexes of each adapted code number and the corresponding statistical moments. Summarize the roaming quality indexes of each adapted code number at different statistical moments and draw a roaming quality curve according to the statistical time series. This roaming quality curve reflects the changing trend of the communication quality of the code number under different signal strengths and communication bandwidths. By analyzing the roaming quality curve, it can be judged whether the communication quality of the code number is stable and whether there are significant fluctuations, thereby providing a basis for subsequent code number selection.

[0109] S15-4. Perform optimization calculations based on the fluctuation amplitude and roaming quality indicators presented by all roaming quality curves to determine the adaptation code number corresponding to the roaming quality curve with the minimum fluctuation amplitude and the maximum roaming quality as the roaming code number. When performing optimization calculations, it is necessary to compare the roaming quality curves of each code number and evaluate the advantages and disadvantages of their fluctuation amplitude and roaming quality indicators. Generally, a smaller fluctuation amplitude means a more stable network, while a higher roaming quality indicator indicates that the code number has better communication capabilities. Prioritize selecting the code number with both the minimum fluctuation amplitude and the highest roaming quality as the final roaming code number. After determining the roaming code number, the information of this roaming code number will be sent to the mobile terminal, and the mobile terminal can then officially register to the local network based on this roaming code number, complete the initialization of the roaming service, and start using it.

[0110] It should be noted that when performing optimization calculations, the fluctuation amplitude and roaming quality indicators presented by the roaming quality curves can be quantified, and can be implemented through a curve quantization model to obtain the fluctuation amplitude and roaming quality indicators of each roaming quality curve, and use the least squares method or other methods to perform optimization to obtain the roaming quality curve with the minimum fluctuation amplitude and the maximum roaming quality.

[0111] In practical applications, the just-used roaming code number may still have a caching or binding relationship with some network connections. Frequent code number switching may affect the user experience. For example, it may cause authentication failures or temporary loss of network connection. Based on this, in a specific implementation manner, after the mobile terminal adapts the roaming code number when the mobile terminal completes terminal configuration; the processing method further includes:

[0112] S16. Obtain the termination execution instruction for the roaming service. The termination execution instruction is sent based on the user clicking the corresponding command on the mobile terminal. After the roaming service platform obtains the termination execution instruction, it indicates that the mobile terminal needs to stop using the roaming service, needs to release the allocated roaming code number, and return it to the code number pool. The code number pool is a resource pool for storing and managing available roaming code numbers. The purpose of releasing the roaming code number is to enable this resource to be re-allocated and used by subsequent users.

[0113] S17. Release the roaming code number to the preset code number pool according to the termination execution instruction, and measure the cooling duration, so that the roaming code number can be adapted for use again after the cooling duration reaches the preset value. The cooling duration can be measured through a software timer, and the preset value can be configured according to actual needs, such as 10 minutes or 1 hour. Since the international roaming rules applicable in different countries may vary, corresponding preset values can be configured for different countries. After the cooling duration reaches the preset value, it indicates that the roaming code number has met the requirements for re-allocation and can be adapted for the next mobile terminal to perform the roaming service.

[0114] Based on the same technical concept as the processing method, an embodiment of the present invention further provides a processing device for roaming services. Please refer to Figure 4 , Figure 4 which is a schematic structural diagram of the processing device. The processing device includes a first acquisition module 1, a determination module 2, a search module 3, a sending module 4, and an adaptation module 5.

[0115] The first acquisition module 1 is used to acquire the off-site location where the mobile terminal is located and the service tariff for the roaming service to be executed, where the off-site location is the location where the mobile terminal is currently located, which is different from the country of the operator to which it is registered or the main service area;

[0116] The determination module 2 is used to determine the hierarchical key value corresponding to the off-site location and the service tariff, as well as the dynamic salt value of the service tariff at the corresponding timestamp;

[0117] The search module 3 is used to search for the target information for the terminal configuration of the mobile terminal for the roaming service in the corresponding version of the trie according to the hierarchical key value, the dynamic salt value, and the preset hierarchical hash function;

[0118] The sending module 4 is used to process the target information into an OTA data packet according to the encryption method of the communication operator in the target information and send it, so that the mobile terminal performs terminal configuration based on the OTA method;

[0119] The adaptation module 5 is used to adapt the roaming code number to the mobile terminal when the mobile terminal completes the terminal configuration, so that the mobile terminal executes the roaming service.

[0120] In an optional embodiment, the determination module includes:

[0121] The first acquisition sub-module is used to obtain the ISO code corresponding to the off-site location according to the geographical coordinates of the off-site location, and query the tariff code of the service tariff in the preset tariff code library;

[0122] The first acquisition sub-module is used to convert both the ISO code and the tariff code into integer data with a unique identifier, and perform a displacement operation on the converted integer data to obtain the hierarchical key value.

[0123] In an optional embodiment, the search module includes:

[0124] The third acquisition sub-module is used to merge the hierarchical key value and the dynamic salt value and input them into the hierarchical hash function to obtain the hash value output by the hierarchical hash function;

[0125] The first determination sub-module is used to determine the corresponding version of the trie according to the version identification data in the hash value, where the trie is a single-tree multi-version structure, and each version of the trie is isolated by the corresponding dynamic salt value;

[0126] The second determination sub-module is configured to perform index search on the trie according to the path identification data in the hash value, and determine the home country, communication operator, network access authentication parameters, and service configuration data found in the trie as the target information.

[0127] In an optional embodiment, the sending module includes:

[0128] The third determination sub-module is configured to determine the encryption method and information key of the target information according to the encryption algorithm corresponding to the communication operator in the target information;

[0129] The fourth acquisition sub-module is configured to perform encryption processing on the target information according to the encryption method and the information key to obtain an OTA data packet;

[0130] The sending sub-module is configured to send the OTA data packet to the mobile terminal according to the transmission protocol corresponding to the home country in the target information, so that the mobile terminal performs terminal configuration for the roaming service.

[0131] In an optional embodiment, the adaptation module includes:

[0132] The acquisition sub-module is configured to obtain the current signal strength and current communication bandwidth of the mobile terminal at the off-site location when receiving the completion instruction fed back by the mobile terminal for performing terminal configuration;

[0133] The fourth determination sub-module is configured to determine all adaptation numbers applicable to the mobile terminal at the current moment in the number pool according to the current signal strength, current communication bandwidth, and the network fluctuation range allowed by the service tariff;

[0134] The fifth acquisition sub-module is configured to obtain the roaming quality curve of each adaptation number according to the statistical data of the executed historical roaming service, where the roaming quality curve is a curve of the roaming quality index of the adaptation number changing with the roaming duration;

[0135] The fifth determination sub-module is configured to perform optimization calculation according to the fluctuation amplitude and roaming quality index presented by all the roaming quality curves, and determine the adaptation number corresponding to the roaming quality curve with the minimum fluctuation amplitude and the maximum roaming quality as the roaming number.

[0136] In an optional embodiment, the statistical data includes signal strength, communication bandwidth, communication delay, abnormal frequency, and packet loss rate; the fifth acquisition sub-module includes:

[0137] The determination unit is configured to determine the weight coefficients corresponding to the communication delay, abnormal frequency, and packet loss rate respectively according to the signal strength and communication bandwidth at each statistical moment in the statistical data of each adaptation number;

[0138] A third obtaining unit, configured to obtain a roaming quality index at a corresponding statistical moment according to a communication time delay, an abnormal frequency, a packet loss rate, and corresponding weight coefficients respectively;

[0139] A fourth obtaining unit, configured to obtain a roaming quality curve of each adapted code number according to all roaming quality indexes of each adapted code number and the corresponding statistical moment.

[0140] In an optional embodiment, the processing device further includes:

[0141] A second obtaining module, configured to obtain a termination execution instruction for the roaming service;

[0142] A release measurement module, configured to release the roaming code number to a preset code number pool according to the termination execution instruction, and perform cooling duration measurement, so that the roaming code number can be adapted and used again after the cooling duration reaches a preset value.

[0143] Based on the same technical concept as the processing method, an embodiment of the present invention further provides an electronic device, including a processor and a memory, the memory is coupled to the processor, and the memory stores instructions, when the instructions are executed by the processor, the electronic device executes the steps of any one of the processing methods.

[0144] Based on the same technical concept as the processing method, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps of any one of the processing methods are implemented.

[0145] It should be noted that: the above sequence of embodiments of the present invention is only for description, and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0146] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between each embodiment can be referred to each other. Each embodiment focuses on the differences from other embodiments.

Claims

1. A method for processing roaming services, characterized in that: The method comprises: Acquire the remote location of the mobile terminal and the service charge of the roaming service to be performed, wherein the remote location is that the current location of the mobile terminal is different from the home country or primary service area of ​​the operator where the mobile terminal is registered; Determine the hierarchical key value corresponding to the remote location and the service charge, and the dynamic salt value of the service charge at the corresponding timestamp; According to the hierarchical key value, the dynamic salt value and the preset hierarchical hash function, searching the dictionary tree of the corresponding version for target information of the mobile terminal for roaming service terminal configuration; Processing the target information into an OTA data packet according to the encryption method of the communication operator in the target information and sending the data packet, so that the mobile terminal performs terminal configuration based on the OTA method; When the mobile terminal completes terminal configuration, a roaming code number is adapted to the mobile terminal so that the mobile terminal can perform roaming services.

2. The method for processing roaming services according to claim 1, characterized in that: The step of searching the corresponding version of the dictionary tree for target information of the mobile terminal for roaming service terminal configuration according to the hierarchical key value, the dynamic salt value and the preset hierarchical hash function comprises: Combining the hierarchical key value and the dynamic salt value and inputting the resultant into the hierarchical hash function; to obtain a hash value output by the hierarchical hash function; Determine a dictionary tree of a corresponding version according to the version identification data in the hash value, wherein the dictionary tree is a single-tree multi-version structure, and each version of the dictionary tree is isolated by a corresponding dynamic salt value; The dictionary tree is indexed and searched according to the path identification data in the hash value, and the country of origin, communication operator, network authentication parameters and service configuration data searched in the dictionary tree are determined as the target information.

3. The method for processing roaming services according to claim 1, characterized in that: The step of determining the hierarchical key value corresponding to the remote location and the service charge comprises: Obtaining the ISO code corresponding to the remote location according to the geographical coordinates of the remote location, and searching for the tariff code of the service tariff in a preset tariff code library; The ISO code and the tariff code are both converted into integer data with unique identifiers, and a shift operation is performed on the converted integer data to obtain the hierarchical key value.

4. The method for processing roaming services according to claim 1, characterized in that: The step of processing the target information into an OTA data packet and sending the data packet according to the encryption method of the communication operator in the target information comprises: Determine the encryption method and information key of the target information according to the encryption algorithm corresponding to the communication operator in the target information; Encrypt the target information according to the encryption method and the information key to obtain the OTA data packet; The OTA data packet is sent to the mobile terminal according to the transmission protocol corresponding to the country of origin in the target information, so that the mobile terminal performs terminal configuration based on the OTA method.

5. The method for processing roaming services according to claim 1, characterized in that: The step of adapting the roaming code number to the mobile terminal when the mobile terminal completes terminal configuration comprises: Upon receiving a completion instruction fed back by the mobile terminal for executing the terminal configuration, obtaining a current signal strength and a current communication bandwidth of the mobile terminal at the remote location; Determine all the adaptation codes applicable to the mobile terminal at the current moment in the code pool according to the current signal strength, the current communication bandwidth and the network fluctuation range allowed by the service tariff; Obtaining a roaming quality curve for each adaptation code number according to the statistical data of the historical roaming services performed by all the adaptation code numbers, wherein the roaming quality curve is a curve showing that the roaming quality index of the adaptation code number changes with the roaming duration; An optimization calculation is performed according to the fluctuation amplitudes and roaming quality indicators presented by all roaming quality curves, so as to determine the adaptation code number corresponding to the roaming quality curve with the minimum fluctuation amplitude and the maximum roaming quality as the roaming code number.

6. The method for processing roaming services according to claim 5, characterized in that: The statistical data includes signal strength, communication bandwidth, communication delay, abnormal frequency and packet loss rate; the roaming quality curve of each adaptation code number is obtained according to the statistical data of all adaptation code numbers in executing historical roaming services; include: Determine the weight coefficients corresponding to the communication delay, the abnormal frequency and the packet loss rate respectively according to the signal strength and the communication bandwidth at each statistical moment in the statistical data of each adaptation code number; Obtaining a roaming quality index at a corresponding statistical moment according to the communication delay, the abnormal frequency, the packet loss rate and the corresponding weight coefficients; According to all roaming quality indicators of each adaptation code number and the corresponding statistical time, a roaming quality curve of each adaptation code number is obtained.

7. The method for processing roaming services according to claim 1, characterized in that: After adapting the roaming code number to the mobile terminal when the mobile terminal completes terminal configuration; the method further includes: Obtaining a termination execution instruction for the roaming service; The roaming code number is released to a preset code number pool according to the termination execution instruction, and a cooling time is measured, so that the roaming code number is adapted for use again after the cooling time of the roaming code number reaches a preset value.

8. A roaming service processing device, characterized in that: The device comprises: A first acquisition module is used to acquire the remote location of the mobile terminal and the service charge of the roaming service to be performed, wherein the remote location is that the current location of the mobile terminal is different from the country of origin or the primary service area of ​​the operator registered by the mobile terminal; A determination module, used to determine the hierarchical key value corresponding to the remote location and the service charge, and the dynamic salt value of the service charge at the corresponding timestamp; A search module, used to search for target information for roaming service terminal configuration of the mobile terminal in a dictionary tree of a corresponding version according to the hierarchical key value, the dynamic salt value and a preset hierarchical hash function; A sending module, used for processing the target information into an OTA data packet according to the encryption method of the communication operator in the target information and sending the data packet, so that the mobile terminal performs terminal configuration based on the OTA method; The adaptation module is used to adapt the roaming code number to the mobile terminal when the mobile terminal completes the terminal configuration, so that the mobile terminal can perform roaming services.

9. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory is coupled to the processor and stores instructions, and when the instructions are executed by the processor, the electronic device executes the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Broadcast roaming in oma broadcast services

    CN101595740A

  • Method and device for improving data processing efficiency based on bitmap tree algorithm

    CN111352932A