Roaming service processing method and device, electronic equipment and storage medium
By obtaining the off-site location and service charges of the mobile terminal, determining the hierarchical key value and dynamic salt value, using the hierarchical hash function to find the target information in the dictionary tree, and using the OTA data packet to configure the terminal, adapting the roaming code number to perform the roaming service, solving the problem of difficult to take into account the efficiency and accuracy of the roaming service in the existing technology, and improving the user experience.
Patent Information
- Application Number
- CN202510473847.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-16
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2045-04-16
AI Technical Summary
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.
By obtaining the off-site location and service charges of the mobile terminal, determining the hierarchical key value and dynamic salt value, using the hierarchical hash function to find the target information in the dictionary tree, and terminal configuration is performed through OTA data packets, and adapting the roaming code number to perform roaming services.
It improves the efficiency and accuracy of roaming service processing, ensures users' experience in roaming service platforms, can quickly and accurately find and configure target information, and improves the efficiency of parallel processing of multiple users.
Smart Images

Figure CN120018104A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of mobile communications, and in particular to a method, device, electronic equipment and storage medium for processing roaming services. Background Art
[0002] As the globalization process continues to advance, the demand for cross-border travel has increased significantly, and the use of mobile terminals in international roaming scenarios has become more and more common. In order to meet the needs of international roaming, it is currently possible to connect to local operators to provide communication services based on the roaming service platform. The roaming service platform processes roaming services based on data such as the MCC (Mobile Country Code), MNC (Mobile Network Code), and number resources of each country. Since the processing involves multi-user task processing, and it is necessary to take into account multiple aspects such as communication compatibility, security, and reliability of resource scheduling, the roaming service platform cannot take into account accuracy and timeliness when implementing 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 a roaming service platform, the object of the present invention is to provide a roaming service processing method, device, electronic device and storage medium, and the technical solution adopted is as follows: In a first aspect, an embodiment of the present invention provides a method for processing a roaming service, the method comprising: Obtaining the remote location of the mobile terminal and the service charges of the roaming service to be performed, wherein the remote location means that the current location of the mobile terminal is different from the country of origin or the primary service area of the operator to which it is registered; Determine the hierarchical key values corresponding to the remote location and service charges, and the dynamic salt value of the service charges at the corresponding timestamp; According to the hierarchical key value, the dynamic salt value and the preset hierarchical hash function, the target information for the mobile terminal to perform roaming service terminal configuration is searched in the dictionary tree of the corresponding version; 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; When the mobile terminal completes terminal configuration, the roaming code number is adapted to the mobile terminal so that the mobile terminal can perform roaming services.
[0004] In an optional embodiment, the target information for the mobile terminal to perform roaming service terminal configuration is searched in the dictionary tree of the corresponding version according to the hierarchical key value, the dynamic salt value and the preset hierarchical hash function; including: The hierarchical key value and the dynamic salt value are combined and input into the hierarchical hash function to obtain the hash value output by the hierarchical hash function; Determine the corresponding version of the dictionary tree 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 found in the dictionary tree are determined as target information.
[0005] In an optional embodiment, determining the hierarchical key value corresponding to the remote location and the service charge includes: Obtaining the ISO code corresponding to the remote location according to the geographical coordinates of the remote location, and searching for the rate code of the service rate in a preset rate code library; The ISO code and the tariff code are converted into integer data with unique identifiers, and the converted integer data are subjected to a shift operation to obtain a hierarchical key value.
[0006] In an optional embodiment, the target information is processed into an OTA data packet and sent according to the encryption method of the communication operator in the target information; including: 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 an 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.
[0007] In an optional embodiment, when the mobile terminal completes terminal configuration, the roaming code number is adapted to the mobile terminal; including: 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 a remote location; According to the current signal strength, the current communication bandwidth and the network fluctuation range allowed by the service tariff, all the adaptation codes applicable to the mobile terminal at the current moment are determined in the code pool; According to the statistical data of all adaptation code numbers in executing historical roaming services, a roaming quality curve of each adaptation code number is obtained, wherein the roaming quality curve is a curve showing the change of the roaming quality index of the adaptation code number 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.
[0008] In an optional embodiment, the statistical data includes signal strength, communication bandwidth, communication delay, abnormal frequency and packet loss rate; according to the statistical data of all adaptation codes in executing historical roaming services, a roaming quality curve of each adaptation code is obtained; including: According to the signal strength and communication bandwidth at each statistical moment in the statistical data of each adaptation code number, the weight coefficients corresponding to the communication delay, abnormal frequency and packet loss rate are determined respectively; According to the communication delay, abnormal frequency, packet loss rate and the corresponding weight coefficients, the roaming quality index at the corresponding statistical moment is obtained; 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.
[0009] In an optional embodiment, after the mobile terminal is adapted to the roaming code number when the mobile terminal completes terminal configuration; the method further includes: Obtaining the termination execution instruction of 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 can be adapted for use again after the cooling time of the roaming code number reaches a preset value.
[0010] In a second aspect, an embodiment of the present invention further provides a roaming service processing device, the device comprising: A first acquisition module is used to obtain 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 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 a mobile terminal in a dictionary tree of a corresponding version according to a hierarchical key value, a dynamic salt value and a preset hierarchical hash function; A sending module, 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; 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.
[0011] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising 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 any one of the methods in the first aspect.
[0012] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the methods in the first aspect.
[0013] The present invention has the following beneficial effects: The technical solution of the present invention obtains the remote location of the mobile terminal and the service charge of the roaming service to be executed. Since the remote location is the current location of the mobile terminal that is different from the country of origin or the main service area of the operator registered by the mobile terminal, it can be determined that the mobile terminal needs to implement international roaming communication, and then the hierarchical key value corresponding to the remote location and the service charge, as well as the dynamic salt value of the service charge at the corresponding timestamp are determined. According to the hierarchical key value, the dynamic salt value and the preset hierarchical hash function, the target information for the mobile terminal to perform roaming service terminal configuration is searched in the dictionary tree of the corresponding version; the target information is further processed according to the encryption method of the communication operator in the target information and an OTA data packet is sent to the outside, so that the mobile terminal performs terminal configuration based on the OTA method; when the mobile terminal completes the terminal configuration, the roaming code number is adapted to the mobile terminal, so that the mobile terminal performs roaming service. This technical solution uses a dictionary tree to store the data required for roaming services, and implements isolation of different versions through different dynamic salt values. The target information can be quickly and accurately found through hierarchical key values and dynamic salt values, and can be upgraded through OTA. It can ensure processing efficiency and accuracy during the roaming services of multiple mobile terminals on the roaming service platform, thereby improving the user experience on the roaming service platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0015] Figure 1 A flowchart of a method for processing a roaming service provided by an embodiment of the present invention; Figure 2 A schematic diagram of the interaction between a roaming service platform and multiple mobile terminals provided by an embodiment of the present invention; Figure 3 A schematic diagram of the structure of a dictionary tree storing information provided by an embodiment of the present invention; Figure 4 A schematic diagram of the structure of a roaming service processing device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0016] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of a roaming service processing method, device, electronic device and storage medium proposed by the present invention, its specific implementation, structure, features and effects in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment or" "another embodiment" do not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0017] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0018] For international roaming service processing, 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) or a network platform, so that the communication card can send and receive data in a foreign location to achieve international roaming services. When implementing the communication card activation, this method relies on the MCC and MNC written on 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 relies on the user's activation operation to complete the processing of international roaming services, and is limited to the roaming services provided by the communication operator configured by the communication card, resulting in the roaming services provided being not well adapted to user needs.
[0019] In order to improve the service experience of users in handling roaming services, the configuration of multiple types of communication resources can be implemented through the roaming service platform. The roaming service platform integrates multiple communication operators in many countries around the world. The roaming services provided by each communication operator in each country are differentiated. Based on this differentiated feature, it can adapt to different user needs. 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 differentiated international roaming services for different user needs and locations. At present, when handling such roaming services, it is difficult for the roaming service platform to implement efficient management and processing of roaming services. The main reason is that the target information such as the country of origin, communication operator, and network access authentication parameters has not been scientifically managed, and the communication operator will adjust the service tariff from time to time based on the business strategy. When implementing the processing of roaming services, it is impossible to accurately extract the type matching of roaming services implemented by customer needs, or when implementing the communication operator matching, it is necessary to manually search for the relevant data of the target information one by one, resulting in poor matching accuracy or low efficiency in the roaming service processing process, affecting the user experience on the roaming service platform. Therefore, it is urgent to propose a new roaming service processing solution to solve the above technical problems.
[0020] The following describes in detail a specific solution of a roaming service processing method, device, electronic device and storage medium provided by the present invention in conjunction with the accompanying drawings.
[0021] See also Figure 1 , Figure 1 A flowchart of a roaming service processing method provided by an embodiment of the present invention, the processing method can be applied to a roaming service platform to process roaming services of a mobile terminal, and the processing method is based on a server or computer device equipped with a roaming service platform. The processing method includes: S11. Obtain the remote location of the mobile terminal and the service charge of the roaming service to be performed, wherein the remote location means that the current location of the mobile terminal is different from the home country or primary service area of the operator with which it is registered.
[0022] Specifically, the location within the country or primary service area of the operator to which the mobile terminal is registered is the local location, and the remote location is the location outside the country or primary service area of the operator. The remote location can be the geographical coordinates of the mobile terminal, which can be obtained based on GPS (Global Positioning System) positioning or base station positioning. The remote location can be used to determine the country or region where the user is located after taking the mobile terminal abroad.
[0023] The service charges can be determined based on the rate agreement or rate package signed by the user on the roaming service platform. Roaming services of different rates correspond to their service standards. The service charges represent the charging standards for roaming services. The user's requirements for roaming services can be determined through the service charges. For example, when the service charges are high, it means that the user has high requirements for the response time of roaming services, and needs faster speed and better signal coverage when accessing the Internet; on the contrary, when the service charges are low, it means that the user is more concerned about the cost-effectiveness of roaming services.
[0024] See also Figure 2 , Figure 2 This is a schematic diagram of the interaction between the roaming service platform and multiple mobile terminals. The roaming service platform can perform roaming services for multiple mobile terminals. For example, after mobile terminals U1 and U2 enter country A1 from the country of their registered operators or other countries, they determine that they need to implement international roaming based on their remote locations in country A1. Roaming services can be processed for them respectively, so that mobile terminals U1 and U2 can enjoy international roaming services in country A1. After mobile terminal U3 enters country A2 from other countries, mobile terminal U3 sends its remote location in country A2 to the roaming service platform, and the roaming service platform determines the service tariff based on the tariff package purchased by mobile terminal U3.
[0025] At this point, the remote location of the mobile terminal and the service charges of the roaming service to be executed have been obtained, and the process proceeds to step S12.
[0026] S12. Determine the hierarchical key value corresponding to the remote location and service charge, and the dynamic salt value of the service charge at the corresponding timestamp.
[0027] Specifically, hierarchical key values can split multi-dimensional data into a hierarchical structure. When implementing subsequent data searches, each layer of key values can be used as a filtering condition to quickly narrow the query scope and reduce the time complexity of data searches. There are many countries in the world on the roaming service platform, and each country has multiple communication operators. The tariff calculations of each communication operator are different. If configured as a single-layer key value, complex hash calculations need to be implemented to prevent hash collisions. When implementing multi-user services on the roaming service platform, the time complexity of executing roaming service processing for each user will be increased, which will cause the operating rate of the roaming service platform to be limited, affecting the user experience.
[0028] 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.
[0029] 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.
[0030] 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.
[0031] 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: S12-1. Obtain the ISO code corresponding to the remote location according to the geographical coordinates of the remote location, and query the tariff code of the service tariff in the preset tariff code library. In order to facilitate the roaming service platform to accurately store data, ISO codes for 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.
[0032] S12-2. Convert both the ISO code and the tariff code into integer data with unique identifiers, and perform a shift operation on the converted integer data to obtain a hierarchical key value. The ISO code is converted into an integer, and the tariff code is also mapped to a unique integer data value. Assume that the ISO code "US" is mapped to 840, and the tariff code "50USD" is mapped to 1. The hierarchical key value can be obtained after the ISO code and the tariff code are shifted. The purpose of the shift operation is to move the two values to the corresponding hierarchical positions to facilitate subsequent data search. For example, an ISO code shift of 8 bits is expressed as 840<<8, which means that 840 is shifted left by 8 bits to ensure that its high-order part is always fixed for the country code, and the low-order 8 bits are used to store the tariff code.
[0033] It can be understood that in order to generate a hierarchical key value of an integer structure to avoid the computing resource overhead of string concatenation and ensure uniqueness, the ISO code and the tariff code can be converted into integer data with a unique identifier and an AND operation can be performed to obtain a hierarchical key value represented as integer data.
[0034] At this point, the hierarchical key value and the dynamic salt value have been determined, and the process proceeds to step S13.
[0035] S13. According to the hierarchical key value, the dynamic salt value and the preset hierarchical hash function, the target information for the mobile terminal to perform roaming service terminal configuration is searched in the dictionary tree of the corresponding version.
[0036] Specifically, the target information is a number of data information that needs to be configured when the mobile terminal performs roaming services in a remote location, such as the country of origin of the remote location, the communication operator that can adapt the service charges of the country, 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 contains the geographical location information of the mobile terminal, and also reflects the difference in service charges. At the same time, the data is searched in the dictionary tree corresponding to the dynamic salt value. The hierarchical hash function can be used to convert the two pieces of information into a hash value of a fixed length, and the corresponding information can be searched step by step in the dictionary tree through the hash value, including the country of origin, communication operator, network authentication parameters and service configuration data. 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 application scenarios of large-scale data search during international roaming.
[0037] A hierarchical hash function is a function that processes input data through multiple levels of hash operations. Unlike ordinary hash functions, it does not simply map the input directly to a fixed hash value, but gradually refines and processes the data through multiple stages of hash calculations to adapt to different levels of data structures or data organization methods. Each layer of the hierarchical hash function can use a different hash algorithm and can perform different processing based on different parts of the input data. This hierarchical design enables it to better handle complex data structures and improve the efficiency of data search and storage.
[0038] Dynamic salt values are used to isolate different versions of the dictionary tree. In the hierarchical hash function, each layer configures the corresponding hash algorithm based on actual needs. For example, the first layer uses the dynamic salt value to find the version number of the dictionary tree, 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 dictionary tree version number. The second layer uses the geographic location to find the country of origin, and the City Hash function can be used. It has good performance and distribution for processing string-type geographic location information, and can evenly map different geographic locations to the hash space. The third layer uses the service rate to find the communication operator, and the Sip Hash function can be used. It has good anti-collision and security, and is suitable for processing sensitive information such as service rates. The fourth layer finds the network authentication parameters and service configuration data, which has higher security requirements. The SHA-256 function can be used to provide higher security and ensure the integrity of key information such as network authentication parameters.
[0039] Furthermore, when a hierarchical hash function is used to implement the target information search of the dictionary tree, after the hash calculation search is completed at the current layer, the calculation result of the layer will be merged into the key value of the next layer as input to implement the hash calculation of the next layer. For example, the first layer calculates the version number of the dictionary tree through the dynamic salt value, and the version number represents the dictionary tree version to which the current data belongs. The second layer needs to find the country of origin in the dictionary tree of the corresponding version, so the version number must be used as part of the input to ensure that the search scope of the second layer is limited to the corresponding version to avoid data confusion in cross-version searches.
[0040] It should be noted that the constructed hierarchical hash function can complete the search for target information within a preset period of time, and the preset period of time is related to the execution response time of the roaming service. The construction of the hierarchical hash function needs to ensure that the hash value of the input data is uniform and reduce the possibility of hash conflicts. When a conflict occurs, the ordered characteristics of the dictionary tree and the multi-layer search mechanism can also be used for secondary judgment and matching to ensure that the target information can be found correctly. In practical applications, the dictionary tree and its corresponding hash table need to be dynamically updated to find the latest target information.
[0041] It can be understood that whether to build a hash table can be determined based on the complexity of the dictionary tree node structure. The number of child nodes of each node in the dictionary tree is limited, and each node can be directly stored in an array or a fixed-size structure, so that the search speed is very fast and the memory utilization is low, and no additional hash table is required. If the data stored in the dictionary tree is large or there is a non-fixed character set, a 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 it is necessary to build a hash table, a corresponding hash table can be built based on the data stored in the dictionary tree, and data search can be implemented 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 that it provides data search with a complexity close to constant time. Its specific construction and application methods will not be further described.
[0042] The node levels of the dictionary tree are country of origin, communication operator, network authentication parameters and service configuration data. Figure 3 , Figure 3The diagram is a structural diagram of a dictionary tree, which includes country A1 and country A2. Country A1 includes communication operator B2 and communication operator B3. Communication operator B2 supports two network access authentication methods, and thus 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, and different parts of the string can be directly mapped to the first node corresponding to the country of origin, 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, thereby finding the target information in the dictionary tree. Figure 3 This is just a simplified illustration of the dictionary tree structure. Since international roaming involves at least more than 100 countries in the world, and some countries may have hundreds of communication operators, the constructed dictionary tree has a large amount of data and needs to be searched based on a hierarchical hashing format.
[0043] It can be understood that when constructing the correspondence between the dictionary tree and the hash value, the correspondence between the country of origin 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 the country of origin is determined, 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 network access authentication parameters under the communication operator node are searched to obtain the service configuration data under the network access authentication parameters.
[0044] Furthermore, the network access authentication parameters include parameters such as the international mobile user identification code, authentication key, and temporary mobile user identification code. These parameters enable the mobile terminal to interact with the authentication server (such as HSS / HLR) of the target operator when connecting to the target network in a remote location under international roaming status to complete identity authentication, wherein the target network is the network connected to the mobile terminal when performing roaming services in a remote location, and the target operator is the communication operator served by the mobile terminal when performing roaming services in a remote location. Only if the identity authentication is passed can the mobile terminal 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 billing rules of the roaming service, service quality parameters (such as maximum bandwidth, 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 strategies), etc.
[0045] Exemplarily, step S13 includes sub-steps S13-1 to S13-3, which are specifically described as follows: S13-1. 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. The hierarchical key value and the dynamic salt value can be merged into the 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 must ensure fast operation speed, uniform distribution, and minimize hash conflicts. It can be understood that if a hash conflict occurs, it can be supplemented by a subsequent conflict handling mechanism. A single layer of the hierarchical hash function can be constructed based on the Murmur Hash function or the City Hash function, and it can realize the above-mentioned search function, and no specific restrictions are made here.
[0046] The maintenance of the dictionary tree on the roaming service platform has the characteristics of high-frequency updates, coexistence of multiple versions, and the need for historical backtracking. In order to prevent hash conflicts or long processing time during the hash function processing, the constructed layered hash function can hash the data at different levels separately and then merge the results. For example, the remote location and service charges are each used as a layer, and the dynamic salt value is used as another layer. Each layer is hashed independently and then merged. This can reduce conflicts, because the hash of each layer is processed independently to prevent single-layer conflicts, and the differences in other layers can also avoid overall conflicts.
[0047] S13-2. Determine the dictionary tree of the 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 the corresponding dynamic salt value. The version identification data is in the corresponding position of the hash value, and the dictionary tree of the corresponding version can be determined by extracting the version identification data from the hash value. The single-tree multi-version dictionary tree isolates version data through dynamic salt values, and all versions coexist in the same dictionary tree. Different versions share the same business level, reducing redundant storage; when implementing data queries of different versions, there is no need to switch multiple dictionary trees, and the query path is shorter.
[0048] S13-3. 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 target information. The dictionary tree, as a data structure, is suitable for hierarchical search. Using the hash value to quickly locate a specific branch in the dictionary tree and then matching layer by layer can effectively improve the search efficiency and accuracy.
[0049] For example, the dynamic salt value of the October version is 20231001, and the target key value = version: 20231001 | country: JP | service rate: 0-10USD; the dynamic salt value of the November version is 20231101, and the target key value = version: 20231101 | country: JP | service rate: 0-15USD. When users query the Japanese tariff in October 2023, the dynamic salt value 20231001 can be automatically matched, and the positioning path is: root / version: 20231001 / country: JP / service rate: 0-10USD. It can be seen that the country JP node is shared in the October and November versions. After the new service rate takes effect in November, the old version can still be accessed independently.
[0050] Furthermore, when generating hierarchical key values, it is necessary to convert the data of the remote location and the service charges respectively to obtain the country code corresponding to the remote location and the rate code corresponding to the service charge. The purpose is to convert the original data into a standard format, where the remote location is converted into the corresponding country code and the service charge is converted into the corresponding rate code. Since different mobile terminals may use different formats to describe the country and the rate, the unified format can ensure the accuracy and consistency of subsequent processing. Standardization processing helps to reduce hash collisions and matching errors caused by inconsistent data formats.
[0051] Input the country code and rate code into the preset key value generation function to obtain a hierarchical key value with a unique identifier. This step is to combine the two standardized data into a unique hierarchical key value. Generating a uniquely identified hierarchical key value is the basis for the subsequent hierarchical hash function operation. By combining the country code and the rate code, the uniqueness of the hierarchical key value can be guaranteed to a certain extent, making it easier to distinguish different business scenarios. When designing the key value generation function, it is necessary to ensure that different hierarchical key values can be generated for different inputs to avoid confusion or errors in searching data due to repeated hierarchical key values.
[0052] Specifically, during the data entry phase, when storing the communication operators, network authentication parameters, and service configuration data of different countries into the dictionary tree, the country code and rate code are first converted to generate a unique hierarchical key value; then the hash value is calculated using the hierarchical hash function; and then the location of the stored node is determined in the dictionary tree according to this hash value. During the query phase, the input remote location and service rate are processed in the same way to obtain a unique hierarchical key value, and the hash value is calculated using the same hierarchical hash function, and then the data is directly searched in the dictionary tree using this hash value. Since the warehousing and query processes are the same, the hash value calculated by the hierarchical hash function can be used as an index to directly locate the nodes storing the target information, thereby achieving efficient search of the target information.
[0053] It should be further explained that when searching for target information through the hierarchical hash function, the same data conversion and hash calculation method is used for storage and query, which ensures the correspondence between the hash value and the storage structure of the dictionary tree, thereby achieving efficient and accurate index search. When building the dictionary tree, the data is stored in the corresponding position in the dictionary tree in the same way. That is to say, when inserting data (such as service configuration data of roaming services), the hierarchical key value is first generated based on the "country code + tariff code", and then the hash value is calculated using the same hierarchical hash function, and finally the data is inserted into the corresponding node of the dictionary tree according to this hash value. The hierarchical hash 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 to the entire hash value space. Therefore, when querying, the same input data is used to generate the same hierarchical key value, and then the hierarchical hash function is used to calculate the hash value that is exactly the same as when the data is stored. This hash value directly corresponds to a node or path in the dictionary tree.
[0054] S14. Process the target information according to the encryption method of the communication operator in the target information and send an OTA data packet to the outside, so that the mobile terminal performs terminal configuration of the roaming service according to the OTA data packet.
[0055] Specifically, the data contained 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 CRC check or digital signature authentication. After the mobile terminal completes the terminal configuration based on the OTA data packet, it provides status feedback to the roaming service platform. It can return a status indication of "update successful" to the roaming service platform via short message or the Internet. The mobile terminal can try to communicate with the target operator through the network and use the newly configured parameters for authentication; if the OTA update fails, the roaming service platform can re-send the data packet or switch to the backup network to execute the upgrade configuration of the mobile terminal.
[0056] Exemplarily, step S14 includes sub-steps S14-1 to S14-3, which are specifically described as follows: 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 Advanced Encryption Standard (AES), asymmetric encryption (RAS, Rivest Shamir Adleman) or elliptic curve encryption (ECC, Elliptic CurveCryptography), 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.
[0057] 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, the target information needs to be encrypted and a data packet that complies with the OTA transmission protocol is constructed. Encrypting the encapsulated target information can ensure that the data will not be stolen or tampered with during the transmission process.
[0058] S14-3. Send the OTA data packet to the mobile terminal according to the transmission protocol corresponding to the country of origin in the target information, so that the mobile terminal can perform the terminal configuration of the roaming service. There may be significant differences in the mobile communication network architecture, transmission protocols and operator policies of different countries. Therefore, when sending the OTA data packet, it is necessary to select the most suitable transmission protocol according to the country of origin 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 strategy can be set to ensure that the mobile terminal can try to re-acquire when the first reception fails.
[0059] At this point, the mobile terminal has completed the terminal configuration of the roaming service through the OTA data packet and enters step S15.
[0060] S15. 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.
[0061] Specifically, after the mobile terminal completes the terminal configuration, the roaming service platform will adapt the 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 implementation of the roaming service. Based on the information fed back by the mobile terminal after the configuration is completed, the current mobile terminal's country of origin, the target network to access the remote location, and the supported network frequency band are confirmed, and the roaming code number suitable for the remote location is selected from the code number pool, so that the mobile terminal can access the Internet or make telephone calls through the roaming code number.
[0062] In actual applications, due to differences in network coverage and quality in different regions, it may not be possible to accurately adapt the roaming code that meets the communication requirements only through the location information of the mobile terminal, resulting in network communication delays for the mobile terminal in a different location, affecting the user experience. Based on this, in a specific implementation, step S15 includes sub-steps S15-1 to S15-4, which are specifically described as follows: S15-1. Upon receiving the completion instruction fed back by the mobile terminal for executing the terminal configuration, obtain the current signal strength and current communication bandwidth of the mobile terminal in a remote location. The current signal strength and current communication bandwidth can be obtained through the reporting results of the mobile terminal, or can be estimated based on the base station where the mobile terminal is located. The current signal strength is used to measure the quality of wireless communication between the mobile terminal and the base station, reflecting the reception of radio waves; the current communication bandwidth represents the available data transmission capacity of the mobile terminal in the current network environment, and is used to evaluate the service quality of data transmission, representing the amount of data that the mobile terminal can receive or send per unit time. The current signal strength and current communication bandwidth can reflect the network coverage of the remote area where the mobile terminal is located, as well as the available communication resources, and provide a basic reference for subsequent code adaptation.
[0063] S15-2. According to the current signal strength, the current communication bandwidth and the network fluctuation range allowed by the service tariff, all the adaptation codes applicable to the mobile terminal at the current moment are determined in the code pool. The current signal strength and the current communication bandwidth can be used to determine whether the network environment of the mobile terminal in the remote location has good coverage and sufficient communication capabilities. These two parameters can reflect the basic conditions of network quality, such as whether there is a weak signal, limited bandwidth or network congestion.
[0064] The network fluctuation range is based on the fluctuation range allowed by the network set by the service tariff. Different service tariff packages are suitable for network services of different quality levels. For example, high-rate packages allow higher quality and more stable connections, while low-rate packages may accept a certain degree of network fluctuation. Therefore, according to the service tariff currently applicable to the mobile terminal, an acceptable network fluctuation range is set to ensure that the selected roaming code number is not only technically adaptable, but also in line with the terminal user's rights and interests in terms of tariff strategy.
[0065] S15-3. According to the statistical data of all adapted code numbers in executing historical roaming services, obtain the roaming quality curve of each adapted code number, wherein 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 number pool executes historical roaming services, it can record the data of the roaming process, such as communication delay and abnormal frequency, and the roaming quality curve can be obtained by performing data analysis based on the statistical data. The roaming quality curve represents 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 in long-term use can be intuitively understood, providing a reference for the selection of the final code number.
[0066] Exemplarily, the statistical data includes signal strength, communication bandwidth, communication delay, abnormal frequency and packet loss rate; sub-step S15-3 includes: The first step is to determine the weight coefficients corresponding to the communication delay, abnormal frequency and packet loss rate according to the signal strength and communication bandwidth at each statistical moment in the statistical data of each adaptation code number. Different signal strengths and communication bandwidths have different impacts on the roaming quality of mobile terminals, so it is necessary to accurately derive 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 impact varies 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 higher, while for data download services, the impact of packet loss rate may be greater. Therefore, these weight coefficients can be dynamically adjusted in combination with historical data and network environment to ensure that the calculated roaming quality indicators can truly reflect the actual network performance of the roaming code number.
[0067] 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, the weight coefficients corresponding to the communication delay, abnormal frequency and packet loss rate can be configured for different signal strengths and communication bandwidth intervals to obtain a weight relationship table for different communication tasks. The weight relationship table can characterize the correspondence 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 based on the signal strength and communication bandwidth at each statistical moment, the communication delay, abnormal frequency, packet loss rate and the corresponding weight coefficients can be obtained.
[0068] The second step is to 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. Using the determined weight coefficients, the communication delay, abnormal frequency and packet loss rate at each statistical moment are weighted to obtain the roaming quality index at the corresponding statistical moment.
[0069] The roaming quality index is a comprehensive score that indicates the communication quality of the roaming code at that moment. For example, at a certain statistical moment, if the communication delay of a code is low, the packet loss rate is low, and the abnormal frequency is low, then its roaming quality index will be high, indicating that the roaming code performs well at that moment; conversely, the lower the calculated roaming quality index, the worse the communication quality of the roaming code at that moment. The calculation formula can be implemented using weighted average, exponential smoothing or other machine learning models to improve the accuracy of the calculation. For example, through the formula , get roaming quality indicators , is the communication delay, is the abnormal frequency, is the packet loss rate, is the first weight coefficient, is the second weight coefficient, is the third weight coefficient, =1. norm() is the normalization function. The calculation result is processed to between 0 and 1.
[0070] The third step is to obtain the roaming quality curve of each adaptation code number based on all roaming quality indicators and corresponding statistical moments of each adaptation code number. Summarize the roaming quality indicators of each adaptation code number at different statistical moments, and draw a roaming quality curve based on the statistical time series. This roaming quality curve reflects the communication quality change trend of the code number under different signal strengths and communication bandwidths. By analyzing the roaming quality curve, it can be determined whether the communication quality of the code number is stable or whether there is significant fluctuation, thereby providing a basis for subsequent code number selection.
[0071] S15-4. Perform optimization calculation based on the fluctuation amplitude and roaming quality index presented by all roaming quality curves to determine the adaptation code number corresponding to the roaming quality curve with the smallest fluctuation amplitude and the largest roaming quality as the roaming code number. When optimizing, it is necessary to compare the roaming quality curves of each code number to evaluate the advantages and disadvantages of its fluctuation amplitude and roaming quality index. Generally, a smaller fluctuation amplitude means a more stable network, while a higher roaming quality index indicates that the code number has better communication capabilities. The code number with both the smallest fluctuation amplitude and the highest roaming quality is preferentially selected as the final roaming code number. After the roaming code number is determined, the information of the roaming code number will be sent to the mobile terminal, and the mobile terminal can officially register with the local network based on the roaming code number, complete the initialization of the roaming service and use it.
[0072] It should be noted that when implementing the optimization calculation, the fluctuation amplitude and roaming quality indicators presented by the roaming quality curve can be quantified, and the curve quantization model can be implemented to obtain the fluctuation amplitude and roaming quality indicators of each roaming quality curve, and the optimization can be implemented using the least squares method or other methods to obtain the roaming quality curve with the minimum fluctuation amplitude and the maximum roaming quality.
[0073] In actual applications, the roaming code number that has just been used may still be cached or bound to certain network connections. Frequent code switching may affect the user experience, for example, it may cause identity authentication failure or temporary loss of network connection. Based on this, in a specific implementation, after the mobile terminal is adapted to the roaming code number when the mobile terminal completes terminal configuration; the processing method also includes: S16. Obtain the termination execution instruction of the roaming service. The termination execution instruction is issued based on the corresponding command of the user clicking on the mobile terminal. After obtaining the termination execution instruction, the roaming service platform indicates that the mobile terminal needs to stop using the roaming service and needs to release the allocated roaming code and return it to the code pool. The code pool is a resource pool for storing and managing available roaming codes. The purpose of releasing the roaming code is to allow the resource to be reallocated and used by subsequent users.
[0074] S17. Release the roaming number to the preset number pool according to the termination execution instruction, and measure the cooling time so that the roaming number can be adapted for use again after the cooling time reaches the preset value. The cooling time measurement can be implemented through a software timer, and the preset value can be configured based on actual needs, such as 10 minutes or 1 hour. Since the international roaming rules applicable to different countries may be different, corresponding preset values can be configured for different countries. After the cooling time reaches the preset value, it means that the roaming number has met the reallocation requirements and can be adapted to the next mobile terminal to perform roaming services.
[0075] Based on the same technical concept as the processing method, the embodiment of the present invention also provides a roaming service processing device, see Figure 4 , Figure 4 Schematic diagram of the structure 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.
[0076] The first acquisition module 1 is used to obtain the remote location of the mobile terminal and the service tariff 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; Determination module 2 is used to determine the hierarchical key value corresponding to the remote location and service charge, and the dynamic salt value of the service charge at the corresponding timestamp; The search module 3 is used to search the target information of the mobile terminal for roaming service terminal configuration in the corresponding version of the dictionary tree according to the hierarchical key value, the dynamic salt value and the preset hierarchical hash function; 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; 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 can perform roaming services.
[0077] In an optional embodiment, the determining module includes: A first obtaining submodule is used to obtain an ISO code corresponding to the remote location according to the geographical coordinates of the remote location, and to query a rate code of the service rate in a preset rate code library; The first obtaining submodule is used to convert both the ISO code and the tariff code into integer data with a unique identifier, and perform a shift operation on the converted integer data to obtain a hierarchical key value.
[0078] In an optional embodiment, the search module includes: The third obtaining submodule is used to combine 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; The first determination submodule is used to determine the dictionary tree of the 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 second determination submodule is used to perform index search on the dictionary tree according to the path identification data in the hash value, and determine the country of origin, communication operator, network authentication parameters and service configuration data found in the dictionary tree as target information.
[0079] In an optional embodiment, the sending module includes: The third determination submodule is used 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; The fourth obtaining submodule is used to encrypt the target information according to the encryption method and the information key to obtain an OTA data packet; The sending submodule is used 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 the terminal configuration of the roaming service.
[0080] In an optional embodiment, the adaptation module includes: The acquisition submodule is used to acquire the current signal strength and current communication bandwidth of the mobile terminal at a remote location when receiving the completion instruction fed back by the mobile terminal executing the terminal configuration; The fourth determination submodule is used to 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; A fifth obtaining submodule, configured to obtain a roaming quality curve of each adaptation code number according to statistical data of all adaptation code numbers in executing historical roaming services, wherein the roaming quality curve is a curve showing changes in the roaming quality index of the adaptation code number with respect to the roaming duration; The fifth determination submodule is used to perform optimization calculation according to the fluctuation ranges 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 range and the maximum roaming quality as the roaming code number.
[0081] In an optional embodiment, the statistical data includes signal strength, communication bandwidth, communication delay, abnormal frequency and packet loss rate; the fifth acquisition submodule includes: A determination unit, used to 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; A third obtaining unit is used to obtain a roaming quality indicator at a corresponding statistical moment according to the communication delay, the abnormal frequency, the packet loss rate and the corresponding weight coefficients; The fourth obtaining unit is used to obtain the roaming quality curve of each adaptation code number according to all roaming quality indicators of each adaptation code number and the corresponding statistical time.
[0082] In an optional embodiment, the processing device further includes: A second acquisition module is used to acquire a termination execution instruction of the roaming service; The release metering module is used to release the roaming code number to a preset code number pool according to the termination execution instruction, and measure the cooling time so that the roaming code number can be adapted for use again after the cooling time reaches the preset value.
[0083] Based on the same technical concept as the processing method, an embodiment of the present invention also provides an electronic device, including 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 any one of the processing methods.
[0084] 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. When the program is executed by a processor, the steps of any one of the processing methods are implemented.
[0085] It should be noted that the sequence of the above 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 accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0086] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and 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, device and system for obtaining configuration information and method and device for processing configuration information
CN107682840A
Method and device for improving data processing efficiency based on bitmap tree algorithm
CN111352932A
Methods and apparatus for prefix filtering of international mobile subscriber identity (IMSI) wildcard application
US8965362B1
Roaming user identification method and device
WO2017049985A1