Information processing method, system and device, electronic equipment and storage medium
By deploying the network roaming policy on the LoRaWAN gateway side and verifying it, the problem of low gateway resource utilization is solved, and traffic consumption is reduced and resource utilization is improved.
Patent Information
- Application Number
- CN202311637454.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-30
- Publication Date
- 2025-05-30
AI Technical Summary
In the LoRaWAN roaming scenario, the gateway needs to forward all received information processing requests to the network server for verification, resulting in low resource utilization and high traffic consumption.
Deploy the network roaming policy on the gateway side, and verify by obtaining the associated information of multiple senders. If the target operator is instructed, the request will be forwarded, otherwise the request will be discarded.
Reduces the number of requests forwarded by the gateway, reduces traffic consumption, and improves the resource utilization rate of the gateway.
Smart Images

Figure CN120075780A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of computer technology and may involve fields such as the Internet of Things and cloud technology. Specifically, this application relates to an information processing method, system, device, electronic device, and storage medium. Background Art
[0002] LoRa (Long Range Radio) is a wireless communication technology for low-power wide-area networks, featuring long transmission distance, low transmission power consumption, and slow transmission rate. It is mainly applied in the field of the Internet of Things, such as smart home, smart agriculture, and smart city.
[0003] LoRaWAN (Long Range Radio Wide Area Network) is a set of communication protocols and system architectures established on the basis of LoRa. In the LoRaWAN roaming scenario, seamless roaming between different LoRa networks can be achieved by means of passive roaming or handover roaming.
[0004] Among them, when roaming is achieved by means of passive roaming, the terminal sends an information processing request to the gateway, and the gateway forwards it to the NS (Network Server) of the non-home operator through the corresponding NS of the non-home operator for verification of the network roaming policy. After the verification passes, the NS of the non-home operator is responsible for forwarding the information processing request to the NS of the home operator and forwarding the response information of the NS of the home operator to the terminal node.
[0005] When roaming is achieved by means of handover roaming, the terminal sends an information processing request to the gateway, and the gateway forwards it to the NS of the home operator through the corresponding NS of the non-home operator for verification of the network roaming policy. After the verification passes, the information processing request sent by the terminal is handed over to the NS of other network operators for processing.
[0006] In the above two roaming methods, the gateway needs to forward all received information processing requests to the network server for verification of the network roaming policy. In the case where the received request volume is much larger than the valid request volume that passes the verification, a large amount of traffic will be consumed, and the resource utilization rate of the gateway is relatively low. Summary of the Invention
[0007] The purpose of the embodiments of this application is to provide an information processing method, system, device, electronic device, and storage medium that can effectively improve the resource utilization rate of the gateway.
[0008] On the one hand, an embodiment of the present application provides an information processing method. The method is applied to an information processing system, which includes at least one gateway of a first server and at least one second server communicatively connected to the at least one gateway. The method is executed by a first gateway among the at least one gateway, and the first server is a server of a first operator;
[0009] The method includes:
[0010] Receiving an information processing request sent by a request sender, where the information processing request includes first server indication information corresponding to the request sender, and the first server indication information is used to indicate a target server of a target operator to which the request sender belongs;
[0011] Obtaining a network roaming policy, where the network roaming policy includes association information of multiple senders, the association information in the network roaming policy is obtained from a second server of the operator to which the sender belongs, and the association information of any sender includes second server indication information corresponding to the sender;
[0012] If the association information of the multiple senders includes the first server indication information, sending the information processing request to the target server corresponding to the first server indication information;
[0013] If the association information of the multiple senders does not include the first server indication information, discarding the information processing request.
[0014] On the other hand, an embodiment of the present application further provides an information processing device. The device is deployed in a first gateway of at least one gateway in an information processing system. The information processing system includes at least one gateway of a first server and at least one second server communicatively connected to the at least one gateway. The first server is a server of a first operator. The device includes:
[0015] A request receiving module, configured to receive an information processing request sent by a request sender, where the information processing request includes first server indication information corresponding to the request sender, and the first server indication information is used to indicate a target server of a target operator to which the request sender belongs;
[0016] A policy obtaining module, configured to obtain a network roaming policy, where the network roaming policy includes association information of multiple senders, the association information in the network roaming policy is obtained from a second server of the operator to which the sender belongs, and the association information of any sender includes second server indication information corresponding to the sender;
[0017] A request sending module, configured to send the information processing request to a target server corresponding to the first server indication information when the association information of the multiple sending ends includes the first server indication information;
[0018] A request discarding module, configured to discard the information processing request when the association information of the multiple sending ends does not include the first server indication information.
[0019] Optionally, the association information of any one sending end further includes the address of a second server corresponding to the second server indication information;
[0020] The request sending module may be configured to:
[0021] If the association information of the multiple sending ends includes the first server indication information, use the address of the second server corresponding to the first server indication information as the address of the target server;
[0022] Based on the address of the target server, send the information processing request to the corresponding target server.
[0023] Optionally, the network roaming policy is provided by the first server to the first gateway in the following manner:
[0024] Receive the association information of at least one sending end sent by any one second server; wherein, the association information of the sending end is sent by the any one second server to the first server in response to a successful roaming activation operation of the sending end;
[0025] Send the association information of the at least one sending end to the first gateway.
[0026] Optionally, the at least one gateway is communicatively connected to the at least one second server through the first server;
[0027] The request sending module may be configured to:
[0028] Send the information processing request to the first server, so that the first server sends the information processing request to the target server in the following manner:
[0029] According to the first server indication information and a first mapping relationship, determine the address of the second server corresponding to the first server indication information as the address of the target server, where the first mapping relationship includes the corresponding relationship between multiple second server indication information and the addresses of multiple second servers;
[0030] Based on the address of the target server, send the information processing request to the corresponding target server.
[0031] Optionally, the information processing request further includes first request type indication information, and the first server indication information is server indication information corresponding to the first request type; the network roaming policy includes second mapping relationships corresponding to at least two request types respectively, and each second mapping relationship corresponding to a request type includes: the corresponding relationship between the second server indication information of multiple senders corresponding to this request type and the addresses of multiple second servers;
[0032] The request sending module can be used for:
[0033] According to the first request type indication information in the information processing request, determine the target mapping relationship corresponding to the first request type from the second mapping relationships corresponding to at least two request types respectively;
[0034] According to the first server indication information and the target mapping relationship, determine the address of the target server corresponding to the first server indication information, and based on the address of the target server, send the information processing request to the corresponding target server.
[0035] Optionally, the device further includes a request response module, and the request response module can be used for:
[0036] Receive the response information of the target server for the information processing request;
[0037] Return the response information to the request sender.
[0038] Optionally, the at least one gateway includes the at least two gateways, and the response information is sent by the target server when determining the first gateway as the target gateway;
[0039] The target gateway is determined by the target server in the following manner:
[0040] Determine the network quality of the at least one gateway;
[0041] Determine the gateway with the highest network quality as the target gateway.
[0042] On the other hand, an embodiment of the present application further provides an information processing system, characterized in that the information processing system includes a request sending end, at least one gateway of a first server, and at least one second server communicatively connected to the at least one gateway. The first server is a server of a first operator, and a network roaming policy is deployed in each gateway. The network roaming policy includes association information of multiple sending ends, and the association information in the network roaming policy is obtained from a second server of the operator to which the sending end belongs. The association information of any sending end includes second server indication information corresponding to the sending end; wherein:
[0043] The request sending end is configured to send an information processing request to a gateway within the communication range among the at least one gateway; the information processing request includes first server indication information corresponding to the request sending end, and the first server indication information is used to indicate a target server of the target operator to which the request sending end belongs;
[0044] The at least one gateway is configured to, when receiving an information processing request, if the association information of the multiple sending ends includes the first server indication information, send the information processing request to the target server corresponding to the first server indication information; if the association information of the multiple sending ends does not include the first server indication information, discard the information processing request;
[0045] The target server is configured to receive the information processing request sent by the at least one gateway.
[0046] Optionally, the association information of any sending end further includes an address of the second server corresponding to the second server indication information;
[0047] The at least one gateway is configured to, if the association information of the multiple sending ends includes the first server indication information, use the address of the second server corresponding to the first server indication information as the address of the target server;
[0048] Based on the address of the target server, send the information processing request to the corresponding target server.
[0049] Optionally, the network roaming policy is provided to the first gateway by the first server in the following manner;
[0050] Receive association information of at least one sending end sent by any second server; wherein, the association information of the sending end is sent by the any second server to the first server in response to a successful roaming activation operation of the sending end;
[0051] Send the association information of the at least one sending end to the first gateway.
[0052] Optionally, the at least one gateway is communicatively connected to the at least one second server through the first server;
[0053] The at least one gateway is configured to send the information processing request to the first server, so that the first server sends the information processing request to the target server in the following manner:
[0054] According to the first server indication information and the first mapping relationship, determine that the address of the second server corresponding to the first server indication information is the address of the target server, where the first mapping relationship includes the corresponding relationship between multiple second server indication information and the addresses of multiple second servers;
[0055] Based on the address of the target server, send the information processing request to the corresponding target server.
[0056] Optionally, the information processing request further includes first request type indication information, and the first server indication information is the server indication information corresponding to the first request type; the network roaming policy includes a second mapping relationship corresponding to each of at least two request types, and the second mapping relationship corresponding to each request type includes: the corresponding relationship between the second server indication information corresponding to multiple senders for this request type and the addresses of multiple second servers;
[0057] The at least one gateway is configured to determine the target mapping relationship corresponding to the first request type from the second mapping relationships corresponding to each of the at least two request types according to the first request type indication information in the information processing request;
[0058] According to the first server indication information and the target mapping relationship, determine the address of the target server corresponding to the first server indication information, and based on the address of the target server, send the information processing request to the corresponding target server.
[0059] Optionally, the target server is further configured to:
[0060] Determine the network quality of the at least one gateway;
[0061] Determine the gateway with the highest network quality as the target gateway;
[0062] Wherein, the at least one gateway includes the at least two gateways, and the response information is sent by the target server when determining that the first gateway is the target gateway;
[0063] Optionally, the target server is further configured to:
[0064] Send response information for the information processing request to the determined target gateway;
[0065] The target gateway is used to return the response information to the request sender.
[0066] On the other hand, an embodiment of the present application further provides an information processing system, which is characterized in that the information processing system includes a request sender, at least one gateway of a first server, the first server, and at least one second server. The first server is a server of a first operator, and a network roaming policy is deployed in each gateway. The network roaming policy includes association information of multiple senders. The association information in the network roaming policy is obtained from a second server of the operator to which the sender belongs. The association information of any sender includes the second server indication information corresponding to the sender. Wherein:
[0067] The request sender is used to send an information processing request to the at least one gateway; the information processing request includes the first server indication information corresponding to the request sender, and the first server indication information is used to indicate the target server of the target operator to which the request sender belongs;
[0068] The at least one gateway is used to, when receiving an information processing request, if the association information of the multiple senders includes the first server indication information, send the information processing request to the first server; if the association information of the multiple senders does not include the first server indication information, discard the information processing request;
[0069] The first server is used to forward the information processing request to the target server corresponding to the first server indication information;
[0070] The target server is used to receive the information processing request sent by the first server.
[0071] An embodiment of the present application further provides an electronic device, which includes a memory and a processor. A computer program is stored in the memory, and the processor executes the computer program to implement the method provided in any optional embodiment of the present application.
[0072] On the other hand, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, it implements the method provided in any optional embodiment of the present application.
[0073] On the other hand, an embodiment of the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the method provided in any optional embodiment of the present application.
[0074] The beneficial effects brought by the technical solution provided in the embodiments of the present application are as follows:
[0075] In the embodiments of the present application, the network roaming policy is pre-deployed to the gateway side, and verification can be performed based on the network roaming policy at the gateway side. When the verification is passed, that is, when the association information of multiple senders includes the first server indication information of the information sending request, the information processing request is then forwarded to the target server for information processing. This greatly reduces the amount of requests forwarded by the gateway, reduces traffic consumption, improves the resource utilization rate of the gateway, and better meets the actual application requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] Figure 1 It is a network architecture diagram of an information processing system provided in the embodiments of the present application;
[0077] Figure 2 It is a schematic diagram of the architecture for deploying the network roaming policy provided in the embodiments of the present application;
[0078] Figure 3 It is a schematic diagram of the frame structure corresponding to the join request provided in the embodiments of the present application;
[0079] Figure 4 It is a schematic diagram of the frame structure corresponding to the data processing request provided in the embodiments of the present application;
[0080] Figure 5 It is a network architecture diagram of another information processing system provided in the embodiments of the present application;
[0081] Figure 6 It is a schematic flowchart of an information processing method provided in the embodiments of the present application;
[0082] Figure 7 It is a schematic diagram of multi-terminal interaction provided in the embodiments of the present application;
[0083] Figure 8 It is a schematic diagram of the architecture of a scenario embodiment provided in the embodiments of the present application;
[0084] Figure 9 It is a schematic diagram of the architecture of another scenario embodiment provided in the embodiments of the present application;
[0085] Figure 10 It is a schematic diagram of the architecture of another scenario embodiment provided in the embodiments of the present application;
[0086] Figure 11 It is a schematic diagram of the structure of an information processing device provided in the embodiments of the present application;
[0087] Figure 12 It is a schematic diagram of the structure of an electronic device provided in the embodiments of the present application. Detailed implementation manners
[0088] The embodiments of the present application will be described below with reference to the accompanying drawings in the present application. It should be understood that the implementation manners described below with reference to the accompanying drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions of the embodiments of the present application.
[0089] Those skilled in the art of the present technology can understand that, unless specifically stated otherwise, the singular forms "a", "an", "the", and "said" used herein may also include the plural forms. It should be further understood that the terms "include" and "comprise" used in the embodiments of the present application mean that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements, and / or components, but do not exclude the implementation of other features, information, data, steps, operations, elements, components, and / or their combinations, etc. supported by the art of the present technology. It should be understood that when we say an element is "connected" or "coupled" to another element, this element can be directly connected or coupled to the other element, or it can mean that this element and the other element establish a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used here can include wireless connection or wireless coupling. The term "and / or" used here indicates at least one of the items defined by the term, for example, "A and / or B" can be implemented as "A", or implemented as "B", or implemented as "A and B". When describing multiple (two or more) items, if the relationship between the multiple items is not clearly defined, these multiple items can refer to one, multiple, or all of the multiple items. For example, for the description of "parameter A includes A1, A2, A3", it can be implemented that parameter A includes A1 or A2 or A3, and it can also be implemented that parameter A includes at least two of the three items of parameter A1, A2, and A3.
[0090] The embodiments of the present application provide an information processing method, system, device, electronic device, and storage medium. This method pre-deploys the network roaming policy to the gateway side, can perform verification based on the network roaming policy at the gateway side, and when the verification is passed, that is, when the association information of multiple senders includes the first server indication information of the information sending request, then forward the information processing request to the target server for information processing. This greatly reduces the amount of requests forwarded by the gateway, reduces traffic consumption, and improves the resource utilization rate of the gateway.
[0091] The solution of the embodiments of the present application can be executed by any electronic device, such as a terminal or a server, or can also be implemented by multiple electronic devices in cooperation.
[0092] Among them, the above-mentioned server can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services (which can be referred to as the cloud). The terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart voice interaction device (such as a smart speaker), a wearable electronic device (such as a smart watch), a vehicle-mounted terminal, a smart home appliance (such as a smart TV), an AR / VR device, etc., but is not limited thereto. The terminal and the server can be directly or indirectly connected through wired or wireless communication methods, and this application does not make any restrictions here.
[0093] Optionally, the solution provided in the embodiments of the present application may involve cloud technology. For example, the solution in the embodiments of the present application is implemented by a server. Among them, the server can be a cloud server, and the data processing involved in the implementation process of this solution can be based on cloud technology, and the data storage involved in the implementation process can use cloud storage. For example, if the second server is a cloud server, the network roaming policy can be stored in the cloud server.
[0094] Among them, cloud technology is the general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model, which can form a resource pool, be used on demand, and be flexible and convenient. Cloud computing technology will become an important support. Cloud storage is a new concept extended and developed on the basis of the cloud computing concept. A distributed cloud storage system (hereinafter referred to as a storage system) refers to a storage system that combines a large number of different types of storage devices (storage devices are also called storage nodes) in the network through cluster applications, grid technology, and distributed file systems, etc., and collaborates through application software or application interfaces to jointly provide data storage and business access functions to the outside world.
[0095] Optionally, the solution provided in the embodiments of the present application can be applied to the Internet of Things field. The Internet of Things (abbreviated as IoT) refers to the use of various information sensors, radio frequency identification technologies, global positioning systems, infrared sensors, laser scanners and other devices and technologies to collect any objects or processes that need to be detected, connected, and interacted in real time, collect various information such as their sound, light, heat, electricity, mechanics, chemistry, biology, location, etc., and through various possible network accesses, realize the ubiquitous connection of things to things and things to people, and realize the intelligent perception, identification and management of items and processes. The Internet of Things is an information carrier based on the Internet, traditional telecommunications networks, etc., which enables all ordinary physical objects that can be independently addressed to form an interconnected network.
[0096] Cloud IOT aims to connect the information sensed by sensing devices and the received instructions in traditional IoT to the Internet, truly realizing networking, and achieving massive data storage and operation through cloud computing technology. Due to the characteristic of IoT that things are connected to each other and the current operating status of each "object" can be sensed in real time, a large amount of data information will be generated in this process. How to summarize this information and how to screen useful information from the massive information for decision-making support in subsequent development have become key issues affecting the development of IoT. Therefore, the IoT cloud based on cloud computing and cloud storage technologies has become a powerful support for IoT technologies and applications.
[0097] It should be noted that in the optional embodiments of this application, for relevant data such as object information (such as the geographical location where the object is located), when the embodiments in this application are applied to specific products or technologies, object permission or consent is required, and the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions. That is to say, if the embodiments in this application involve data related to an object, it needs to be obtained under the condition of object authorization and consent, relevant department authorization and consent, and compliance with the relevant laws, regulations, and standards of the country and region. In the embodiments, if personal information is involved, the acquisition of all personal information requires the consent of the individual. If sensitive information is involved, the separate consent of the information subject needs to be obtained, and the embodiments also need to be implemented under the condition of object authorization and consent.
[0098] To better understand and illustrate the solutions of the embodiments of this application, some technical terms involved in the embodiments of this application are briefly described below.
[0099] LoRa (Long Range Radio): It is a physical layer wireless modulation technology for creating long-distance communication connections and belongs to a type of linear modulation spread spectrum technology (Chirp Spread Spectrum, CCS). LoRa can transmit data within a higher range than WIFI, Zigbee, and Bluetooth with the lowest power consumption. While maintaining low power consumption, LoRa technology greatly increases the communication distance and has characteristics such as strong anti-interference. Data transmission can be achieved between terminal devices and gateways through LoRa technology.
[0100] LoRaWAN (Long Range Radio Wide Area Network): It is a set of communication protocols and system architectures designed for LoRa long-distance communication networks and is applicable to outdoor IoT networks such as smart cities, smart agriculture, and industrial IoT.
[0101] DevEUI: It is a globally unique ID similar to IEEE EUI64, which identifies a unique terminal device and is equivalent to the MAC (Media Access Control) address of the device.
[0102] DevAddr: It is used to identify the terminal device in the current network and is assigned by the network server during the network access process.
[0103] NetID: It is a 24-bit network identifier, as shown in the following table, and is composed of the Type, RFU, and ID fields.
[0104] 3 bits 21 - N bits N bits Type RFU ID
[0105] Among them, Type is used to indicate the type of NetID, including 8 types from 0 to 7; ID is distributed by the LoRa Alliance, and its field length is related to Type; RFU is placed between the Type and ID bits and is set to 0.
[0106] The information processing method provided by the embodiments of this application can be applied to the information processing process in the roaming scenario. As an example, Figure 1 FIG. is a network architecture diagram of an information processing system provided by the embodiments of this application. The information processing system may include a request sending end 10, at least one gateway 11 to 1n corresponding to the first server, and at least one second server 121 to 12n communicatively connected to the at least one gateway. Among them, a network roaming policy is deployed in each gateway. The network roaming policy includes association information of multiple sending ends. The association information in the network roaming policy is obtained from the second server of the operator to which the sending end belongs. The association information of any sending end includes the second server indication information corresponding to the sending end. The second server indication information is used to indicate the server of the operator to which the sending end belongs. The second server indication information may be one or more of identification information such as the device identifier DevEUI, the terminal device address DevAddr, and the network identifier NetID of the operator. DevEUI is used to identify a unique terminal device, and NetID is an identifier assigned by the LoRa Alliance to each network operator.
[0107] The request sending end 10 can be any terminal device supporting LoRa communication, such as smart home devices like smart meters and smart TVs, or devices in smart healthcare, smart cities, or locators in smart logistics, etc. The number of request sending ends 10 can be multiple, and the embodiments of the present application do not limit this. The first server is the network server of the first operator. The gateways 11 to 1n corresponding to the first server are LoRaWAN gateways supporting LoRa communication, which can be base stations. The request sending end 10 is currently within the network coverage of the first operator. The request sending end 10 communicates with the gateways 11 to 1n based on LoRa technology, and the gateways 11 to 1n and the second servers 121 to 12n can communicate through the TCP / IP protocol.
[0108] It should be noted that Figure 1 at least one gateway corresponding to the first server shown in is the gateway corresponding to the first server within the current communication range of the request sending end 10.
[0109] Before information processing in the embodiments of the present application, it is necessary to pre - deploy the network roaming policy to the gateways 11 to 1n. As Figure 2 shown, for any second server, when receiving a roaming activation request sent by the sending end through the air interface, if the roaming activation condition is met, it activates the roaming service for the sending end, and after the roaming activation is successful, it sends the associated information of the sending end to the roaming cooperation partner server. Among them, the second servers 121 to 12n are the servers of the operator to which the sending end belongs, and the roaming cooperation partner server can be the server of another operator that has reached a roaming cooperation with the operator to which the sending end belongs. The roaming cooperation partner server includes the first server 120. When the first server 120 receives the associated information of at least one sending end sent by any second server, it sends the received associated information of at least one sending end to each of the gateways 11 to 1n corresponding to this first server. Among them, the gateways 11 to 1n corresponding to this first server include the first gateway. Exemplarily, the network roaming policy can include DevEUI1 to DevEUI300, NetID1 to NetID50.
[0110] In the embodiments of the present application, the request sending end 10 can send an information processing request to at least one of the gateways 11 to 1n within the current communication range. Among them, the information processing request includes the first server indication information corresponding to the request sending end 10, and the first server indication information is used to indicate the target server 121 of the target operator to which the request sending end belongs. Optionally, the request sending end can send the information processing request when receiving a trigger operation of the target object, or can send the information processing request periodically. For example, the smart meter periodically reports the electricity consumption data.
[0111] For any gateway that receives an information processing request, according to the first server indication information included in the received information processing request and the multiple second server indication information in the network roaming policy deployed by itself, if the association information of multiple senders includes the first server indication information, the information processing request is sent to the target server 121 corresponding to the first server indication information. If the association information of multiple senders does not include the first server indication information, the information processing request is discarded and not sent to the target server 121.
[0112] Optionally, the association information of any sender in the network roaming policy deployed on the gateway side further includes the address of the second server corresponding to the second server indication information. Thus, when the association information of multiple senders includes the first server indication information, the address of the second server corresponding to the first server indication information can be determined from the network roaming policy, and this address is used as the address of the target server 121. Any gateway can establish a connection with the target server 121 based on the address of the target server 121 and send the information processing request to the target server 121. Among them, when there is no communication interaction between the gateways 11 to 1n and the target server 121 for a long time, the connection is disconnected.
[0113] Optionally, different request types can be divided based on the different request contents, and the server indication information corresponding to different request types is different. The information sending request sent by the request sender 10 to the gateways 11 to 1n further includes a first request type indication information, which is used to indicate that the information sending request is of the first request type. Correspondingly, the first server indication information included in this information processing request is the server indication information corresponding to the first request type. Exemplarily, the request types can include two types: a join request Join-Request and a data processing request. The server indication information corresponding to the Join-Request is the device identifier DevEUI of the terminal device, and the server indication information corresponding to the data processing request can be the terminal device address DevAddr, the network identifier NetID of the operator, etc.
[0114] It should be noted that the information processing request includes a frame type FType (Frame Type), and the request type of the information processing request can be determined based on the frame type FType. Among them, FType includes six types: Join-Request, Join-Accept, Unconfirmed Data Uplink, Unconfirmed Data Downlink, Confirmed Data Uplink, and Confirmed Data Downlink. When FType is Join-Request, the information processing request is of the join request type. When FType is Unconfirmed Data Uplink or Confirmed Data Uplink, the information processing request is of the data processing request type.
[0115] Optionally, in order to improve the search efficiency, the network roaming policy may include a second mapping relationship corresponding to at least two request types respectively. The second mapping relationship corresponding to each request type includes the corresponding relationship between the second server indication information of multiple senders corresponding to this request type and the addresses of multiple second servers.
[0116] When any gateway receives an information processing request, it can determine the target mapping relationship corresponding to the first request type from the second mapping relationships corresponding to at least two request types respectively based on the first request type indication information in the information processing request. Then, according to the first server indication information and the target mapping relationship, determine the address of the target server 121 corresponding to the first server indication information, and establish a connection with the target server 121 based on the address of the target server 121, and send the information processing request to the corresponding target server 121.
[0117] Exemplarily, the request types include two types: join request and data processing request. The network roaming policy includes the second mapping relationship corresponding to the join request (as shown in Table 1) and the second mapping relationship corresponding to the data processing request (as shown in Table 2). Among them, one server address corresponds to one NetID, and one server address can correspond to multiple DevEUIs.
[0118] DevEUI1 Server Address 1 DevEUI2 Server Address 1 …… …… DevEUIn Server Address n
[0119] Table 1
[0120]
[0121]
[0122] Table 2
[0123] Optionally, when the request type is a join request, the join request includes a corresponding PHY payload, as Figure 3 shown. The PHY payload includes 1 byte of MHDR (MAC Header), a join-request payload, and 4 bytes of MAC check code MIC (Message Integrity Code). The join-request payload includes an application identifier JoinEUI, a device identifier DevEUI of the terminal device, and a random value DevNonce.
[0124] Optionally, when the request type is a data processing request, the data processing request includes a corresponding PHY payload, as Figure 4 shown. The PHY payload includes 1 byte of MHDR (MAC Header), a MAC payload, and 4 bytes of MAC check code MIC (Message Integrity Code). Among them, the MAC payload is also called a data frame and includes a frame header FHDR (Frame Header), a port FPort (Frame Port), and a frame payload FRM Payload (Frame Payload). The frame header FHDR is composed of a terminal device address DevAddr, 1 byte of frame control byte FCtrl (Frame Ctrl), 2 bytes of frame counter FCnt (Frame Counter), and frame options FOpts (Frame Options) for transmitting MAC. The DevAddr field includes an address prefix AddrPrefix field and a network address NwkAddr (Network Address) field.
[0125] It can be understood that when the first server indication information is NetID, the first server indication information can be the network identifier NetID of the operator determined based on the AddrPrefix field in the DevAddr field of the information processing request. For example, when the prefix of the DevAddr field is 0x6a, its corresponding binary field is 01101010. Shifting it to the right gives 0110101, where the first field 0 represents the type of NetID, and 110101 represents the ID. The obtained ID is 53, so the NetID is 0x000035.
[0126] Optionally, after receiving the information processing request, the target server 121 can perform corresponding information processing and send the response information for the information processing request to the target gateway, and the target gateway sends the response information to the request sender.
[0127] Optionally, when the target server 121 receives information processing requests sent by multiple gateways, it can process based on the information processing request of any gateway, or select the information processing request sent by the gateway with the highest network quality for processing. The embodiments of the present application do not make any limitations in this regard.
[0128] Among them, when the target server 121 only receives the information processing request of the request sender forwarded by one gateway, then this gateway is used as the target gateway. When the target server 121 receives information processing requests forwarded by multiple gateways 11 to 1n within the current communication range of the request sender, the target server can determine the gateway with the highest network quality as the target gateway according to the network quality of each gateway 11 to 1n.
[0129] Optionally, when multiple gateways 11 to 1n within the current communication range receive the information processing request of the request sender, they also obtain the network quality reference index for receiving this information processing request. For example, the signal strength index (Received Signal Strength Indication, RSSI), the maximum signal-to-noise ratio, etc. Each gateway 11 to 1n can carry this network quality reference index in the information processing request and forward it to the target server 121, so that the target server 121 determines the target gateway based on the network quality reference indexes between each gateway 11 to 1n and the request sender 10.
[0130] Based on Figure 1 In the information processing system shown, the network roaming policy is deployed to the gateway side, and the gateway side determines whether to forward the request to the target server based on the network roaming policy, which greatly reduces the request forwarding volume and improves the resource utilization rate of the gateway.
[0131] Moreover, the information processing request of the request sender can be sent to the target server through the gateway, without being forwarded by the first server of the first operator, which greatly improves the security of information transmission and guarantees the information security of the request sender.
[0132] Figure 5It is a network architecture diagram of another information processing system provided by an embodiment of the present application. The information processing system may include a request sending end 20, at least one gateway 21-2n corresponding to the first server, a first server 210, and at least one second server 211-21n. Among them, the first server is a server of the first operator. At least one gateway in the information processing system is a gateway corresponding to the first server within the current communication range of the request sending end 20. A network roaming policy is deployed in each gateway. The network roaming policy includes association information of multiple sending ends. The association information of any sending end includes the second server indication information corresponding to the sending end. Communication between the request sending end and the gateway is based on LoRa technology. Communication between the gateways 21-2n and the first server 210 can be through the TCP / IP protocol. Communication between the first server 210 and at least one second server 211-21n can be through the TCP / IP protocol.
[0133] Before information processing in the embodiment of the present application, it is necessary to pre-deploy the network roaming policy to the gateway. For the detailed deployment process, refer to the above. It will not be elaborated in the embodiment of the present application.
[0134] In the embodiment of the present application, the request sending end 20 may send an information processing request to at least one gateway 21-2n within the current communication range. For any gateway that receives the information processing request, if the association information of multiple sending ends includes the first server indication information, the information processing request is sent to the first server 210. The first server 210 determines the address of the second server corresponding to the first server indication information as the address of the target server 211 according to the first server indication information and the first mapping relationship. The first server 210 establishes a connection with the target server 211 based on the address of the target server 211 and sends the information processing request to the target server 211. Among them, since the first gateway is the gateway corresponding to the first server 210, the address of the first server 210 is stored in the first gateway. The first mapping relationship includes the corresponding relationship between multiple second server indication information and the addresses of multiple second servers 211-21n. Optionally, the first mapping relationship may be stored in the first server or obtained by the first server from the DNS (Domain Name System).
[0135] Optionally, after receiving the information processing request, the target server 211 may perform corresponding information processing and send the response information for the information processing request to the first server 210. The first server 210 sends the information processing request to the target gateway, and then the target gateway sends the response information to the request sending end.
[0136] Among them, when there are at least two gateways in the information processing system, if the first server receives information processing requests forwarded by multiple gateways 21 to 2n within the current communication range of the request sender, the first server 210 may determine the gateway with the highest network quality as the target gateway according to the network quality of each gateway 21 to 2n.
[0137] Optionally, when each gateway sends the information processing request of the request sender to the first server 210, it also sends the network quality reference index between each gateway and the request sender to the first server 210, so that the first server 210 determines the target gateway based on the network quality reference index between each gateway and the request sender. Among them, the network quality reference index may be a signal strength index (Received Signal Strength Indication, RSSI).
[0138] For example, the information processing requests of the request sender are received by three gateways A, B, and C respectively and forwarded to the first server by the three gateways A, B, and C. The RSSIs received by each gateway are C > B > A in turn, then gateway C can be used as the target gateway.
[0139] If the associated information of multiple senders does not include the first server indication information, discard the information processing request and do not send the information processing request to the target server 211 anymore.
[0140] The embodiment of the present application also provides an information processing method, as Figure 6 shown, this information processing method can be applied to any of the above information processing systems and is executed by the first gateway in at least one gateway in the information processing system. The first gateway is the gateway within the current communication range of the request sender. This information processing method may include the following S310 to S340.
[0141] S310: Receive the information processing request sent by the request sender.
[0142] Among them, the request sender may be any terminal device supporting LoRa communication, such as a smart meter, a smart street lamp, or a locator in intelligent logistics, etc. The embodiment of the present application does not limit this. The request sender communicates with the first gateway based on LoRa technology. The information processing request includes the first server indication information corresponding to the request sender, and the first server indication information is used to indicate the target server of the target operator to which the request sender belongs. Exemplarily, the first server indication information may be the device identifier DevEUI or the network identifier NetID of the operator.
[0143] Optionally, based on different request contents, different request types can be divided. The server indication information corresponding to different request types is different. The information sending request sent by the request sending end to the gateway also includes first request type indication information, which is used to indicate that the information sending request is of the first request type. Correspondingly, the first server indication information included in the information processing request is the server indication information corresponding to the first request type.
[0144] Exemplarily, the request types can include two types: Join-Request and data processing request. The server indication information corresponding to Join-Request is the device identifier DevEUI of the terminal device, and the server indication information corresponding to the data processing request can include the terminal device address DevAddr or the network identifier NetID of the operator.
[0145] S320: Obtain the network roaming policy.
[0146] Among them, the network roaming policy is obtained by the first server from the server of the operator to which the sending end belongs and is pre-deployed in the first gateway. Multiple network roaming policies corresponding to multiple operators are deployed in the first gateway.
[0147] The network roaming policy can be deployed to the first gateway in the following way:
[0148] For any second server, when receiving a roaming activation request sent by the sending end, if the roaming activation condition is met, it activates the roaming service for the sending end, and after the roaming activation is successful, it sends the associated information of the sending end to the roaming partner server. Among them, the second server is the server of the operator to which the sending end belongs, the roaming partner server can be the server of other operators that have reached a roaming cooperation with the operator to which the sending end belongs, the roaming partners include the first operator, and the roaming partner servers include the first server.
[0149] When the first server receives the associated information of at least one sending end sent by any second server, it sends the received associated information of at least one sending end to each gateway corresponding to the first server. Among them, the gateway corresponding to the first server includes the first gateway.
[0150] Optionally, in order to improve the search efficiency, the network roaming policy can include second mapping relationships corresponding to at least two request types respectively. Each second mapping relationship corresponding to a request type includes the corresponding relationship between the second server indication information of multiple sending ends for this request type and the addresses of multiple second servers.
[0151] When any gateway receives an information processing request, it can determine the target mapping relationship corresponding to the first request type from the second mapping relationships corresponding to at least two request types based on the first request type indication information in the information processing request. Then, according to the first server indication information and the target mapping relationship, it determines the address of the target server corresponding to the first server indication information, and based on the address of the target server, establishes a connection with the target server and sends the information processing request to the corresponding target server.
[0152] S330: If the association information of multiple senders includes the first server indication information, send the information processing request to the target server corresponding to the first server indication information.
[0153] In the embodiment of the present application, when the first gateway receives an information processing request, it can match based on the first server indication information included in the information processing request and the association information of multiple senders in the network roaming policy deployed by itself. If the association information of multiple senders includes the first server indication information, send the information processing request to the target server corresponding to the first server indication information.
[0154] Optionally, the first gateway can communicate with the target server through the network. The association information of any sender in the network roaming policy further includes the address of the second server corresponding to the second server indication information. The first gateway can determine the address of the second server corresponding to the first server indication information as the address of the target server based on the first server indication information. The first gateway can establish a connection with the target server based on the address of the target server and send the information processing request to the target server.
[0155] Optionally, the first gateway can communicate with the target server through the first server and the network. The first gateway can send the information processing request to the first server, and the first server determines the address of the second server corresponding to the first server indication information as the address of the target server according to the first server indication information included in the information processing request and the first mapping relationship. Among them, the first mapping relationship includes the corresponding relationship between multiple second server indication information and the addresses of multiple second servers. The first server establishes a connection with the target server based on the address of the target server and sends the information processing request to the target server.
[0156] Figure 7A schematic diagram of multi - terminal interaction provided by an embodiment of this application. When in a roaming scenario, the request - sending end can first send a join request to the first gateway corresponding to the first server to request to join the roaming. After receiving the join request, the first gateway can match the terminal device identifier DevEUI identifier carried in the join request with each terminal device identifier in the pre - deployed network roaming policy. If there is a matching result, it can establish a connection with the target server based on the address of the target server corresponding to the matching terminal device identifier in the network roaming policy, and forward the join request to the target server. When the first gateway receives the join confirmation message Join - accept returned by the target server, it forwards the join confirmation message Join - accept to the request - sending end.
[0157] When the request - sending end receives the join confirmation message Join - accept, it can send a data - processing request to the first gateway based on the data to be processed. Among them, the data - processing request carries the data to be processed and the network identifier of the operator to which the request - sending end belongs. After receiving the data - processing request, the first gateway can match the NetID identifier in the data - processing request with each network identifier in the network roaming policy. If there is a matching result, it can establish a connection with the target server based on the address of the target server corresponding to the matching network identifier in the network roaming policy, and forward the data - processing request to the target server. When the first gateway receives the response information returned by the target server, it forwards the response information to the request - sending end.
[0158] Optionally, the network identifier of the operator to which the request - sending end belongs in the data - processing request can be determined based on the terminal device identifier field in the data - processing request.
[0159] S340: If the associated information of multiple sending ends does not include the first - server indication information, discard the information - processing request.
[0160] If the associated information of multiple sending ends does not include the first - server indication information, it indicates that the request - sending end does not conform to the network roaming policy. Then discard the information - processing request sent by the request - sending end and do not send it to the target server anymore.
[0161] Based on Figure 6 the information - processing method shown, deploying the network roaming policy to the gateway side, and having the gateway side judge whether to forward the request to the target server based on the network roaming policy, greatly reduces the request forwarding volume and improves the resource utilization rate of the gateway.
[0162] To facilitate a better understanding and explanation of the method provided by the embodiment of this application, the following introduces the optional implementation manners of the method provided by this application in combination with a specific scenario embodiment, such as Figure 8As shown below. Taking the periodic reporting of power consumption data by a smart meter as an example for illustration.
[0163] In the embodiment of this scenario, the request sender is a smart meter. The smart meter can communicate with 3 gateways (gateway G1 - G3) within the current communication range through LoRa technology. The second server is the network servers NS1 - NSn (Network Server) of each network operator. The network server NS2 is the target server of the network operator to which the smart meter belongs. AS1 (Application Server) is the server of the smart home application, which can control and manage power consumption data, such as statistical analysis, monitoring and alarming, etc.
[0164] Before the smart meter reports power consumption data through a roaming network, it is necessary to pre - deploy the network roaming strategy of the network operator to gateways G1 - G3. When the user terminal receives a roaming activation operation, it sends a roaming activation request to the NS of the network operator to which the device to be activated belongs. After the roaming activation is successful, the NS can send the device identifier of the device with roaming activated, the network identifier of the operator to which it belongs, and the corresponding NS address to the first server, so that the first server sends the device identifier of the device with roaming activated, the network identifier of the operator to which it belongs, and the corresponding NS address to each of the gateways corresponding to the first server. Among them, the gateways corresponding to the first server include gateways G1 - G3.
[0165] When the location of the smart meter exceeds the network coverage range of the network operator to which it belongs, when the smart meter reports power consumption data, the smart meter can send a join - roaming request to gateways G1, G2, and G3 within the surrounding communication range respectively through LoRa communication technology. Among them, the join - roaming request carries the device identifier DevEUI k of the smart meter. Taking gateway G1 as an example, after receiving the join - roaming request, it can match the device identifier carried in the join - roaming request, DevEUI k, with the device identifiers of each device with roaming activated in the network roaming strategy deployed by itself. If the match is successful, that is, the device identifier DevEUI k of the smart meter is included in the device identifiers of multiple devices with roaming activated, it determines the address of the target server corresponding to DevEUI k, that is, the address of NS2, and based on the address of NS2, establishes a connection with the corresponding NS2 and forwards the join - roaming request to NS2.
[0166] Among them, when each gateway receives the join - roaming request sent by the smart meter, it also obtains the signal strength indicators between each gateway and the smart meter respectively. The signal strengths of gateways G1, G2, and G3 are in the order of gateway G1 > gateway G2 > gateway G3. When each gateway sends the join - roaming request to NS2, it also carries the signal strength indicators between each gateway and the smart meter.
[0167] After receiving the join roaming requests sent by gateway G1, gateway G2, and gateway G3, NS2 can perform corresponding verifications. After the verification is successful, it returns the join confirmation message to the gateway G1 with the highest signal strength, and the gateway G1 returns the join confirmation message to the smart meter.
[0168] When the smart meter receives the join confirmation message, it can send data reporting requests to gateway G1, gateway G2, and gateway G3 within the surrounding communication range respectively. Among them, the data reporting request carries the electricity consumption data to be processed and the network identifier NetID M of the network operator to which the smart meter belongs. Taking gateway G1 as an example, after receiving the data reporting request, it can match the network identifier NetID M of the operator carried in the data reporting request with the network identifiers of each network operator. If the match is successful, it determines the address of NS2 corresponding to NetID M, and based on the address of NS2, establishes a connection with the corresponding NS2 and forwards the data reporting request to NS2. NS2 can send the data reporting request to the application server AS1 so that the application server AS1 can perform statistical analysis based on the electricity consumption data. When receiving the electricity consumption viewing request sent by the user terminal, it returns the viewed electricity consumption data to the user terminal.
[0169] Figure 9 It is a schematic structural diagram of another scenario embodiment provided by this application. Taking the monitoring of smoke concentration as an example for illustration. In this scenario embodiment, the request sender is a smoke purifier, and the smoke purifier can collect the smoke concentration in the surrounding environment in real time through the smoke sensor configured thereon and report it regularly. The smoke purifier can communicate with gateway G4 and gateway G5 within the current communication range through LoRa technology. The second server is the network servers NS1 to NSn (Network Server) of each network operator, NS1 is the target server of the network operator to which the smoke purifier belongs, and AS2 (Application Server) is the server of the smoke alarm application, which can monitor the smoke concentration and give an alarm.
[0170] Before reporting the smoke concentration through the roaming network, it is necessary to deploy the network roaming policy of the network operator to gateway G4 and G5 in advance. When the user terminal receives the roaming activation operation, it sends a roaming activation request to the NS of the network operator to which the device to be activated belongs. After the roaming activation is successful, NS can send the device identifier of the device with successful roaming activation, the network identifier of the network operator to which it belongs, and the corresponding NS address to the first server, so that the first server sends the device identifier of the device with successful roaming activation, the network identifier of the network operator to which it belongs, and the corresponding NS address to each gateway corresponding to the first server. Among them, each gateway corresponding to the first server includes gateway G4 and gateway G5.
[0171] When the location of the smoke purifier is beyond the network coverage of the affiliated network operator, when the smoke purifier reports the smoke concentration, the smoke purifier can use LoRa communication technology to send roaming request messages to gateways G4 and G5 within its surrounding communication range respectively. Among them, the roaming request message carries the device identifier DevEUI t of the smoke purifier. Taking gateway G4 as an example, after receiving the roaming request message, it can match the device identifier DevEUI t carried in the roaming request message with the device identifiers of each enabled roaming device in the network roaming policy deployed by itself. If the match is successful, that is, the device identifier of the smoke purifier is included in the device identifiers of multiple enabled roaming devices, it determines the address of the target server corresponding to DevEUI t, that is, the address of NS1, and based on the address of NS1, establishes a connection with the corresponding NS1 and forwards the roaming request message to NS1. Among them, when each gateway sends a roaming request message to NS1, it also carries the signal strength index between each gateway and the smoke purifier. The signal strength corresponding to gateway G4 is higher than the signal strength corresponding to gateway G5.
[0172] After receiving the roaming request messages sent by gateway G4 and gateway G5, NS1 can perform corresponding verification, and after the verification is successful, it returns an access confirmation message to the gateway G4 with the highest signal strength, and the gateway G4 returns the access confirmation message to the smoke purifier.
[0173] When the smoke purifier receives the access confirmation message, it can send data reporting request messages to gateways G4 and G5 within its surrounding communication range respectively. Among them, the data reporting request message carries the smoke concentration. Taking gateway G4 as an example, after receiving the data reporting request message, it can determine the corresponding network identifier NetID N based on the DevAddr field in the frame structure of the data reporting request message, and match the determined network identifier NetID N with the network identifiers of each operator in the network roaming policy. If the match is successful, it determines the address of NS1 corresponding to NetID N, and based on the address of NS1, establishes a connection with the corresponding NS1 and forwards the data reporting request message to NS1, and NS1 forwards it to the application server AS2. The application server AS2 can analyze based on the smoke concentration in the data reporting request message. When the smoke concentration is greater than the preset threshold, it can send a control instruction to the gateway G4 with the highest signal strength, and this control instruction is used to control the smoke purifier to turn on. The gateway G4 sends the control instruction to the smoke purifier to control the smoke purifier to turn on for air purification.
[0174] Figure 10This is a schematic structural diagram of another scenario embodiment provided by this application. Taking the data transmission between the first terminal and the second terminal as an example for illustration, in this scenario embodiment, the first terminal is the request sending end, and the first terminal can communicate with the gateway G6 corresponding to the first server through LoRa technology. The second server is the NS (Network Server) of each network operator, NSn is the target server of the network operator to which the first terminal belongs, the second terminal is the same as the network operator to which the first terminal belongs, and the second terminal can communicate with the gateway G7 corresponding to NSn through LoRa technology.
[0175] When the location of the first terminal exceeds the network coverage of its affiliated network operator, the first terminal can send a roaming join request to the gateway G6 through LoRa communication technology. Among them, the roaming join request carries the device identifier DevEUI s of the first terminal. After receiving the roaming join request, the gateway G6 can match the device identifier DevEUI s carried in the roaming join request with the device identifiers of each roaming-enabled device in the network roaming policy. If the match is successful, it determines the address of NSn corresponding to DevEUI s, and based on the address of NSn, forwards the join request to NSn. Among them, the network roaming policy is obtained by the first server from the second server of the network operator and is pre-deployed in the gateway G6. The first server is the server corresponding to the gateway G6.
[0176] After receiving the roaming join request sent by the gateway G6, NSn can perform corresponding verification, and after the verification is successful, forward the join confirmation message to the first terminal through the gateway G6.
[0177] When the first terminal receives the join confirmation message, it can send a data transmission request to the gateway G6. Among them, the data transmission request carries the device identifier of the second terminal. After receiving the data transmission request, the gateway G6 can determine the network identifier NetID P of the corresponding operator based on the DevAddr field in the frame structure of the data transmission request, and match the determined network identifier NetID P with the network identifiers of each operator in the network roaming policy. If the match is successful, it determines the address of NSn corresponding to NetID P, and based on the address of NSn, establishes a connection with the corresponding NSn and forwards the data reporting request to NSn. NSn can send the data to be transmitted to the gateway G7, and the gateway G7 forwards it to the second terminal based on the device identifier of the second terminal in the data transmission request.
[0178] Based on the same principle as the information processing method provided by the embodiments of this application, the embodiments of this application provide an information processing device, such as Figure 11As shown, the information processing device is deployed in the first gateway of at least one gateway in the information processing system. The information processing system includes at least one gateway of the first server and at least one second server communicatively connected to the at least one gateway. The first server is a server of the first operator. The information processing device 400 may include a request receiving module 410, a policy obtaining module 420, a request sending module 430, and a request discarding module 440.
[0179] The request receiving module 410 is configured to receive an information processing request sent by a request sender. The information processing request includes first server indication information corresponding to the request sender. The first server indication information is used to indicate a target server of a target operator to which the request sender belongs.
[0180] The policy obtaining module 420 is configured to obtain a network roaming policy. The network roaming policy includes association information of multiple senders. The association information in the network roaming policy is obtained from a second server of the operator to which the sender belongs. The association information of any sender includes second server indication information corresponding to the sender.
[0181] The request sending module 430 is configured to, when the association information of the multiple senders includes the first server indication information, send the information processing request to the target server corresponding to the first server indication information.
[0182] The request discarding module 440 is configured to, when the association information of the multiple senders does not include the first server indication information, discard the information processing request.
[0183] Optionally, the association information of any sender further includes the address of the second server corresponding to the second server indication information.
[0184] The request sending module 430 may be configured to:
[0185] If the association information of the multiple senders includes the first server indication information, use the address of the second server corresponding to the first server indication information as the address of the target server.
[0186] Based on the address of the target server, send the information processing request to the corresponding target server.
[0187] Optionally, the network roaming policy is provided by the first server to the first gateway in the following manner;
[0188] Receive the association information of at least one sender sent by any second server; wherein, the association information of the sender is sent by the any second server to the first server in response to the successful roaming activation operation of the sender.
[0189] Send the association information of the at least one sender to the first gateway.
[0190] Optionally, the at least one gateway is communicatively connected to the at least one second server through the first server.
[0191] The request sending module 430 can be used for:
[0192] Send the information processing request to the first server, so that the first server sends the information processing request to the target server in the following manner:
[0193] According to the first server indication information and the first mapping relationship, determine that the address of the second server corresponding to the first server indication information is the address of the target server, wherein the first mapping relationship includes the corresponding relationship between multiple second server indication information and multiple second server addresses.
[0194] Based on the address of the target server, send the information processing request to the corresponding target server.
[0195] Optionally, the information processing request further includes first request type indication information, and the first server indication information is the server indication information corresponding to the first request type; the network roaming policy includes the second mapping relationship corresponding to each of at least two request types, and the second mapping relationship corresponding to each request type includes: the corresponding relationship between the second server indication information corresponding to multiple senders for this request type and multiple second server addresses.
[0196] The request sending module 430 can be used for:
[0197] According to the first request type indication information in the information processing request, determine the target mapping relationship corresponding to the first request type from the second mapping relationships corresponding to each of the at least two request types.
[0198] According to the first server indication information and the target mapping relationship, determine the address of the target server corresponding to the first server indication information, and based on the address of the target server, send the information processing request to the corresponding target server.
[0199] Optionally, the device further includes a request response module, and the request response module can be used for:
[0200] Receive the response information of the target server for the information processing request;
[0201] Return the response information to the request sender.
[0202] Optionally, the at least one gateway includes the at least two gateways, and the response information is sent by the target server when determining that the first gateway is the target gateway;
[0203] The target gateway is determined by the target server in the following manner:
[0204] Determine the network quality of the at least one gateway;
[0205] Determine the gateway with the highest network quality as the target gateway.
[0206] Based on Figure 11 The information processing device shown deploys the network roaming policy to the gateway side. The gateway side determines whether to forward the request to the target server based on the network roaming policy, which greatly reduces the amount of request forwarding and improves the resource utilization rate of the gateway.
[0207] The device in the embodiment of the present application can execute the method provided in the embodiment of the present application, and its implementation principle is similar. The actions performed by each module in the device in the embodiments of the present application correspond to the steps in the method in the embodiments of the present application. For the detailed function description of each module of the device, reference can specifically be made to the description in the corresponding method shown above, and details are not described herein again.
[0208] In the embodiment of the present application, the term "module" or "unit" refers to a computer program with a predetermined function or a part of a computer program, which works together with other related parts to achieve a predetermined goal, and can be fully or partially implemented by using software, hardware (such as a processing circuit or a memory), or a combination thereof. Similarly, one processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be a part of the overall module or unit including the function of the module or unit.
[0209] In the embodiment of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored on the memory. When the processor executes the computer program stored in the memory, the method in any optional embodiment of the present application can be implemented.
[0210] Figure 12 The structure diagram of an electronic device applicable to the embodiment of the present invention is shown. As Figure 12 shown, the electronic device can be a server or a user terminal, and the electronic device can be used to implement the method provided in any embodiment of the present invention.
[0211] As Figure 12 shown, the electronic device 2000 may mainly include at least one processor 2001( Figure 12 one is shown in). Components such as a memory 2002, a communication module 2003, and an input / output interface 2004. Optionally, the components can be connected and communicate with each other through a bus 2005. It should be noted that Figure 12 the structure of the electronic device 2000 shown in is only schematic and does not constitute a limitation on the electronic device applicable to the method provided in the embodiments of the present application.
[0212] Among them, the memory 2002 can be used to store an operating system and application programs, etc. The application programs can include computer programs that implement the methods shown in the embodiments of the present invention when called by the processor 2001, and can also include programs for implementing other functions or services. The memory 2002 can be a ROM (Read Only Memory), or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory), or other types of dynamic storage devices that can store information and computer programs, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory), or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media, or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0213] The processor 2001 is connected to the memory 2002 via a bus 2005, and realizes corresponding functions by invoking the application programs stored in the memory 2002. Among them, the processor 2001 can be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof, which can implement or execute various exemplary logic blocks, modules, and circuits described in connection with the disclosure of the present invention. The processor 2001 can also be a combination that realizes computing functions, such as including a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0214] The electronic device 2000 can be connected to a network through a communication module 2003 (which can include but is not limited to components such as a network interface) to communicate with other devices (such as user terminals or servers, etc.) through the network to achieve data interaction, such as sending data to other devices or receiving data from other devices. Among them, the communication module 2003 can include a wired network interface and / or a wireless network interface, etc., that is, the communication module can include at least one of a wired communication module or a wireless communication module.
[0215] The electronic device 2000 can be connected to the required input / output devices, such as a keyboard, a display device, etc., through an input / output interface 2004. The electronic device 2000 itself can have a display device, and can also externally connect other display devices through the interface 2004. Optionally, a storage device, such as a hard disk, etc., can also be connected through the interface 2004 to store the data in the electronic device 2000 into the storage device, or read the data in the storage device, and can also store the data in the storage device into the memory 2002. It can be understood that the input / output interface 2004 can be a wired interface or a wireless interface. According to different actual application scenarios, the devices connected to the input / output interface 2004 can be components of the electronic device 2000 or external devices connected to the electronic device 2000 when needed.
[0216] The bus 2005 for connecting each component may include a path for transmitting information between the above components. The bus 2005 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. According to different functions, the bus 2005 may be divided into an address bus, a data bus, a control bus, etc.
[0217] Optionally, for the solution provided in the embodiments of the present invention, the memory 2002 may be used to store a computer program for executing the solution of the present invention, and the processor 2001 runs the computer program to implement the actions of the method or device provided in the embodiments of the present invention.
[0218] Based on the same principle as the method provided in the embodiments of the present application, the embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the corresponding content of the foregoing method embodiments can be implemented.
[0219] The embodiments of the present application also provide a computer program product, which includes a computer program. When the computer program is executed by a processor, the corresponding content of the foregoing method embodiments can be implemented.
[0220] It should be noted that the terms "first", "second", "third", "fourth", "1", "2", etc. (if any) in the description, claims and drawings of the present application are used to distinguish similar objects and do not necessarily describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present application described here can be implemented in an order other than that shown or described in words.
[0221] It should be understood that although the flowchart in the embodiments of the present application indicates each operation step by an arrow, the execution order of these steps is not limited to the order indicated by the arrow. Unless there is a clear description in this article, in some implementation scenarios of the embodiments of the present application, the implementation steps in each flowchart can be executed in other orders according to requirements. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on the actual implementation scenario. Some or all of these sub-steps or stages can be executed at the same time, and each sub-step or stage of these sub-steps or stages can also be executed at different times. In the scenario where the execution times are different, the execution order of these sub-steps or stages can be flexibly configured according to requirements, and the embodiments of the present application do not limit this.
[0222] The above are only optional implementation manners of some implementation scenarios of this application. It should be noted that for those of ordinary skill in the art, without departing from the technical concept of the solution of this application, adopting other similar implementation means based on the technical idea of this application also belongs to the protection scope of the embodiments of this application.
Claims
1. An information processing method, characterized in that, the method is applied to an information processing system, the information processing system includes at least one gateway of a first server and at least one second server communicatively connected to the at least one gateway, the method is executed by a first gateway among the at least one gateway, and the first server is a server of a first operator; the method includes: receiving an information processing request sent by a request sender, where the information processing request includes first server indication information corresponding to the request sender, and the first server indication information is used to indicate a target server of a target operator to which the request sender belongs; acquiring a network roaming policy, where the network roaming policy includes association information of multiple senders, and the association information in the network roaming policy is obtained from a second server of the operator to which the sender belongs, and the association information of any sender includes second server indication information corresponding to the sender; if the first server indication information is included in the association information of the multiple senders, sending the information processing request to the target server corresponding to the first server indication information; if the first server indication information is not included in the association information of the multiple senders, discarding the information processing request.
2. The method according to claim 1, characterized in that, the association information of any sender further includes the address of the second server corresponding to the second server indication information; the step of if the first server indication information is included in the association information of the multiple senders, sending the information processing request to the target server corresponding to the first server indication information includes: if the first server indication information is included in the association information of the multiple senders, using the address of the second server corresponding to the first server indication information as the address of the target server; based on the address of the target server, sending the information processing request to the corresponding target server.
3. The method according to claim 1 or 2, characterized in that, the network roaming policy is provided to the first gateway by the first server in the following manner; receiving association information of at least one sender sent by any second server; where the association information of the sender is sent by the any second server to the first server in response to a successful roaming activation operation of the sender; sending the association information of the at least one sender to the first gateway.
4. The method according to claim 1, characterized in that, the at least one gateway is communicatively connected to the at least one second server through the first server; the step of sending the information processing request to the target server corresponding to the first server indication information includes: sending the information processing request to the first server, so that the first server sends the information processing request to the target server in the following manner: Determine that the address of the second server corresponding to the first server indication information is the address of the target server according to the first server indication information and the first mapping relationship, where the first mapping relationship includes the corresponding relationship between multiple second server indication information and the addresses of multiple second servers; Based on the address of the target server, send the information processing request to the corresponding target server.
5. The method according to claim 2, wherein, the information processing request further includes first request type indication information, and the first server indication information is the server indication information corresponding to the first request type; the network roaming policy includes second mapping relationships corresponding to at least two request types respectively, and the second mapping relationship corresponding to each request type includes: the corresponding relationship between the second server indication information corresponding to multiple senders for this request type and the addresses of multiple second servers; The step of sending the information processing request to the target server corresponding to the first server indication information includes: According to the first request type indication information in the information processing request, determine the target mapping relationship corresponding to the first request type from the second mapping relationships corresponding to the at least two request types respectively; According to the first server indication information and the target mapping relationship, determine the address of the target server corresponding to the first server indication information, and based on the address of the target server, send the information processing request to the corresponding target server.
6. The method according to claim 1, wherein, the method further includes: Receive the response information of the target server for the information processing request; Return the response information to the request sender.
7. The method according to claim 6, wherein, the at least one gateway includes the at least two gateways, and the response information is sent by the target server when determining the first gateway as the target gateway; The target gateway is determined by the target server in the following manner: Determine the network quality of the at least one gateway; Determine the gateway with the highest network quality as the target gateway.
8. An information processing system, wherein, the information processing system includes a request sender, at least one gateway of the first server, and at least one second server communicatively connected to the at least one gateway. The first server is a server of the first operator, and a network roaming policy is deployed in each gateway. The network roaming policy includes association information of multiple senders, and the association information in the network roaming policy is obtained from the second servers of the operator to which the sender belongs. The association information of any sender includes the second server indication information corresponding to this sender; wherein: The request sender is configured to send an information processing request to the at least one gateway; the information processing request includes the first server indication information corresponding to the request sender, and the first server indication information is used to indicate the target server of the target operator to which the request sender belongs. The at least one gateway is configured to, when receiving an information processing request, if the association information of the multiple senders includes the first server indication information, send the information processing request to the target server corresponding to the first server indication information; if the association information of the multiple senders does not include the first server indication information, discard the information processing request. The target server is configured to receive the information processing request sent by the at least one gateway.
9. An information processing device Characterized in that The device is deployed in the first gateway of at least one gateway in an information processing system, the information processing system includes at least one gateway of a first server and at least one second server communicatively connected to the at least one gateway, the first server is a server of a first operator, and the device includes: A request receiving module, configured to receive an information processing request sent by a request sender, where the information processing request includes first server indication information corresponding to the request sender, and the first server indication information is used to indicate the target server of the target operator to which the request sender belongs; A policy obtaining module, configured to obtain a network roaming policy, where the network roaming policy includes association information of multiple senders, and the association information in the network roaming policy is obtained from a second server of the operator to which the sender belongs, and the association information of any sender includes second server indication information corresponding to the sender; A request sending module, configured to, when the association information of the multiple senders includes the first server indication information, send the information processing request to the target server corresponding to the first server indication information; A request discarding module, configured to, when the association information of the multiple senders does not include the first server indication information, discard the information processing request.
10. An electronic device Characterized in that The electronic device includes a memory and a processor, a computer program is stored in the memory, and the processor executes the computer program to implement the method according to any one of claims 1 to 7.
11. A computer-readable storage medium Characterized in that A computer program is stored in the storage medium, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.