A LoRa communication system and method based on reverse proxy mechanism

By introducing a reverse proxy server into the LoRa communication system, gateway association information is generated and a bidirectional communication connection is established, which solves the problems of regional wireless conflict and high computing load in the dual-active and multi-active deployment of traditional LoRa systems, and achieves high availability and load balancing.

CN117156453BActive Publication Date: 2026-11-10CHENGDU BOXIN WULIAN TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210550656.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-20
Publication Date
2026-11-10
Estimated Expiration
2042-05-20

AI Technical Summary

Technical Problem

Traditional LoRa wireless communication systems suffer from regional wireless conflicts and high computing load when deployed in dual-active or multi-active configurations.

Method used

The LoRa communication system, based on a reverse proxy mechanism, generates gateway association information and establishes a bidirectional communication connection by setting up a reverse proxy server, thereby achieving load balancing and high availability and avoiding frequent switching of network servers by the gateway.

Benefits of technology

It solves the problems of regional wireless conflicts and high computing load, and achieves high availability and load balancing of the LoRa communication system, avoiding frequent connection switching and load imbalance between the gateway and different network servers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117156453B_ABST
    Figure CN117156453B_ABST
Patent Text Reader

Abstract

This invention discloses a LoRa communication system based on a reverse proxy mechanism, comprising: a network server for configuring and managing LoRa gateways already connected to the network; an application server for data encryption and decryption; a reverse proxy server capable of generating proxy information for newly connected LoRa gateways based on gateway association information and connection information from the real-time network server, and forwarding LoRa data frames uploaded by newly connected LoRa gateways in the uplink communication link to the corresponding network server based on the proxy information; and the LoRa gateway for collecting LoRa data frames from terminal nodes and uploading the LoRa data frames to the reverse proxy server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of LoRa wireless communication technology, and specifically to a LoRa communication system and method based on a reverse proxy mechanism. Background Technology

[0002] LoRa is a low-power local area network wireless standard developed by Semtech. Its name "LoRa" stands for Long Range Radio. Its biggest feature is that it can transmit over a greater distance than other wireless methods under the same power consumption conditions, achieving a balance between low power consumption and long distance. It can extend the distance of traditional wireless radio frequency communication by 3-5 times under the same power consumption.

[0003] In traditional LoRa wireless communication systems used in scenarios such as hospitals, after implementing dual-active or multi-active deployments, the LoRaWAN gateway can arbitrarily choose the active server to connect to. However, this connection method may lead to gateways in the same area connecting to different NSs, resulting in several problems: 1. Downlink data from the server: Due to the lack of frequency coordination between different NSs, downlink data may have frames on the same radio frequency, causing regional radio conflicts and preventing LoRaWAN nodes from receiving data. 2. Node-reported data: Multiple gateways receive data reported from different NSs. AS frame deduplication and AS downlink NS selection present some difficult-to-handle issues for both network entry and uplink data. 3. Current gateway directly connected to an NS: Frequent NS switching by the gateway requires frequent changes to the AS's NS-mote-gateway association for downlink frames, resulting in a large computational load.

[0004] In summary, traditional LoRa wireless communication systems suffer from regional wireless conflicts and high computing load when deployed in dual-active or multi-active configurations. Summary of the Invention

[0005] In view of this, the present invention provides a LoRa communication system and method based on a reverse proxy mechanism. By setting up a reverse proxy server and improving the data processing method, the problems of regional wireless conflicts and high computing load in traditional LoRa wireless communication systems during dual-active and multi-active deployments are solved.

[0006] To address the above issues, the technical solution of this invention is to employ a LoRa communication system based on a reverse proxy mechanism, comprising: a network server for configuring and managing existing LoRa gateways; an application server for data encryption and decryption; a reverse proxy server capable of generating proxy information for newly joined LoRa gateways based on gateway association information and connection information from the real-time network server, and forwarding LoRa data frames uploaded by newly joined LoRa gateways in the uplink communication link to the corresponding network server based on the proxy information; and the LoRa gateway for collecting LoRa data frames from terminal nodes and uploading the LoRa data frames to the reverse proxy server.

[0007] Optionally, the reverse proxy server establishes a bidirectional communication connection between the reverse proxy server and the network server, and a bidirectional communication connection between the reverse proxy server and the LoRa gateway, by decoupling the direct communication connection between the network server and the LoRa gateway.

[0008] Optionally, the reverse proxy server and the application server have a bidirectional communication connection. When the reverse proxy server receives a network access request from the LoRa gateway, the reverse proxy server generates gateway association information corresponding to the device identifier based on the device identifier of the LoRa gateway and the gateway association table pre-stored in the database of the application server.

[0009] Optionally, the reverse proxy server generates proxy information for the newly joined LoRa gateway based on the gateway association information and the connection information of the real-time network server. This includes: after determining multiple device identifiers of the associated gateways of the newly joined LoRa gateway based on the gateway association information, the reverse proxy server iterates through the connection information between multiple active network servers in the current network and the already joined LoRa gateways, extracts the network server with the highest degree of association with the device identifier as the network server to be paired with the newly joined LoRa gateway, and generates the proxy information.

[0010] Optionally, the reverse proxy server traverses the connection information between multiple surviving network servers and the LoRa gateways already connected to the network, including: traversing the correspondence between the device identifier of the currently surviving LoRa gateway and multiple device identifiers of the associated gateway in each network server; generating a proxy association value each time the device identifier of the currently surviving LoRa gateway is found to be the same as any one of the multiple device identifiers of the associated gateway, until all device identifiers of the currently surviving LoRa gateways in the network server have been traversed; generating an association degree based on the number of proxy association values; repeating the above steps until all network servers have been traversed and the association degree of all network servers has been generated.

[0011] Optionally, when traversing the correspondence between the device identifier of the LoRa gateway currently connected to any network server and the multiple device identifiers of the associated gateway, if the number of proxy association values ​​of the network server is greater than 1 / 2 of the number of multiple device identifiers of the associated gateway, then the network server is directly used as the network server to be paired with the newly joined LoRa gateway, and the proxy information is generated.

[0012] Accordingly, the present invention provides a LoRa communication method based on a reverse proxy mechanism, comprising: generating proxy information for a newly joined LoRa gateway based on gateway association information and connection information of a real-time network server; and forwarding LoRa data frames uploaded by the newly joined LoRa gateway in the uplink communication link to the corresponding network server based on the proxy information.

[0013] Optionally, the method for generating gateway association information includes: when the reverse proxy server receives a network access request from a LoRa gateway, the reverse proxy server generates gateway association information corresponding to the device identifier based on the device identifier of the LoRa gateway and a gateway association table pre-stored in the database of the application server.

[0014] Optionally, the method for generating the proxy information includes: determining multiple device identifiers of the associated gateways of the newly joined LoRa gateway based on the gateway association information; traversing the connection information between multiple active network servers in the current network and the LoRa gateways already in the network, extracting the network server with the highest degree of association with the device identifier as the network server paired with the newly joined LoRa gateway, and generating the proxy information.

[0015] Optionally, the method for generating the association degree of all network servers includes: traversing the correspondence between the device identifier of the LoRa gateway of the currently active connection and multiple device identifiers of the associated gateway in each network server; generating a proxy association value each time the device identifier of the LoRa gateway of the currently active connection is found to be the same as any one of the multiple device identifiers of the associated gateway; continuing until all device identifiers of the LoRa gateways of the currently active connection in the network server have been traversed; generating the association degree based on the number of proxy association values; repeating the above steps until all network servers have been traversed and the association degree of all network servers has been generated.

[0016] The primary improvement of this invention is the LoRa communication system based on a reverse proxy mechanism. By setting up a reverse proxy server, when a network access request from a LoRa gateway is received, the reverse proxy server can generate gateway association information for gateways whose signal range overlaps with that of the LoRa gateway based on the device identifier of the LoRa gateway and a gateway association table pre-stored in the database on the application server. Then, based on the gateway association information, it can find the network server with the highest degree of association with the LoRa gateway, thereby achieving high availability and load balancing of the LoRa communication system. This avoids problems such as regional wireless conflicts, frequent changes in connection relationships between the LoRa gateway and different network servers, and unbalanced loads among different network servers. It also solves the problems of regional wireless conflicts and high computing load in traditional LoRa wireless communication systems when deployed in dual-active or multi-active configurations. Attached Figure Description

[0017] Figure 1 This is a simplified module connection diagram of the LoRa communication system based on the reverse proxy mechanism of the present invention;

[0018] Figure 2 This is a simplified flowchart of the LoRa communication method based on the reverse proxy mechanism of the present invention. Detailed Implementation

[0019] To facilitate understanding of the technical solution, the following explanations of terms are provided.

[0020] LoRa is a type of low-power wide-area network communication technology. It is an ultra-long-distance wireless transmission solution based on spread spectrum technology, adopted and promoted by SEMTECH in the United States.

[0021] LoRaWAN is a low-power wide-area network standard launched by the LoRa Alliance, based on an open-source MAC layer protocol.

[0022] LoRaWAN Gateway (hereinafter referred to as LoRa Gateway): Implements LoRa physical layer functions and provides stable multi-channel access communication, supporting internet access via IP protocol through 4G / WIFI / ETHNET and other methods. It can connect to terminal nodes of various applications, achieving highly reliable link communication, and communicates with the NS using the Gateway Management Protocol (GWMP).

[0023] NS: Network Server, used to implement the central gateway platform function, can be deployed in the cloud. It configures and manages LoRa gateways, sets parameters for the router, and manages link communication. It monitors and manages the entire network, achieving end-to-end optimal path optimization.

[0024] AS: Application Server, responsible for encrypting and decrypting application data. After real-time active-active deployment of NS, it also undertakes the task of data deduplication.

[0025] Nsproxy: Reverse proxy server.

[0026] High Availability: loraWan is highly available, completing node onboarding, onboarding response, and data uplink / downlink. In case of load balancing or failure, it can switch to another surviving host, and applications can immediately obtain the status information of the last node, gateway, etc. from other hosts.

[0027] To enable those skilled in the art to better understand the technical solutions of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0028] like Figure 1 As shown, a LoRa communication system based on a reverse proxy mechanism includes: a network server for configuring and managing existing LoRa gateways; an application server for data encryption and decryption; and a reverse proxy server capable of generating proxy information for newly joined LoRa gateways based on gateway association information and real-time network server connection information, and forwarding LoRa data frames uploaded by newly joined LoRa gateways in the uplink communication link to the corresponding network server based on the proxy information; the LoRa gateway is used to collect LoRa data frames from terminal nodes and upload the LoRa data frames to the reverse proxy server. The application server can also perform data deduplication; the LoRa gateway has a backup IP address so that it can connect to another working reverse proxy server after one reverse proxy server fails.

[0029] Furthermore, the reverse proxy server establishes bidirectional communication connections between itself and the network server, and between itself and the LoRa gateway, by decoupling the direct communication connection between the network server and the LoRa gateway. Specifically, the reverse proxy server can establish a bidirectional communication connection with the LoRa gateway via the CWMP protocol; and it can establish a bidirectional communication connection with the network server via the TCP / IP protocol.

[0030] Furthermore, the reverse proxy server and the application server have a bidirectional communication connection. When the reverse proxy server receives a network access request from a LoRa gateway, it generates gateway association information corresponding to the device identifier based on the LoRa gateway's device identifier and a gateway association table pre-stored in the application server's database. The method for pre-storing the gateway association table can be: the application server writes the gateway association information into the database to form the gateway association table; the gateway association information is defined as information about the LoRa gateway and associated gateways whose signal range overlaps with its own.

[0031] Furthermore, the reverse proxy server generates proxy information for the newly joined LoRa gateway based on the gateway association information and the connection information of the real-time network server. This includes: after determining multiple device identifiers of the associated gateways of the newly joined LoRa gateway based on the gateway association information, the reverse proxy server traverses the connection information between multiple active network servers in the current network and the already joined LoRa gateways, extracts the network server with the highest degree of association with the device identifier as the network server paired with the newly joined LoRa gateway, and generates the proxy information.

[0032] Furthermore, the reverse proxy server traverses the connection information between multiple surviving network servers and the LoRa gateways already connected to the network. This includes: traversing the correspondence between the device identifier of the currently surviving LoRa gateway and multiple device identifiers of associated gateways in each network server; generating a proxy association value each time the device identifier of the currently surviving LoRa gateway matches any one of the multiple device identifiers of the associated gateway, until all device identifiers of the currently surviving LoRa gateways in the network server have been traversed; and generating an association degree based on the number of proxy association values. This process is repeated until all network servers have been traversed and their association degrees are generated. Specifically, when traversing the correspondence between the device identifier of the currently surviving LoRa gateway and multiple device identifiers of associated gateways in any network server, if the number of proxy association values ​​for that network server is greater than half the number of multiple device identifiers of the associated gateway, then that network server is directly used as the network server paired with the newly connected LoRa gateway, and the proxy information is generated.

[0033] This invention establishes a reverse proxy server. Upon receiving a network access request from a LoRa gateway, the reverse proxy server generates gateway association information for gateways whose signal range overlaps with the LoRa gateway's, based on the LoRa gateway's device identifier and a gateway association table pre-stored in the application server's database. Then, based on this gateway association information, it identifies the network server with the highest affinity to the LoRa gateway. This achieves high availability and load balancing for the LoRa communication system, avoiding issues such as regional wireless conflicts, frequent changes in connection relationships between the LoRa gateway and different network servers, and unbalanced loads among different network servers. It also solves the problems of regional wireless conflicts and high computational load in traditional LoRa wireless communication systems deployed in dual-active or multi-active configurations.

[0034] Accordingly, the present invention provides a LoRa communication method based on a reverse proxy mechanism, comprising: generating proxy information for a newly joined LoRa gateway based on gateway association information and connection information of a real-time network server; and forwarding LoRa data frames uploaded by the newly joined LoRa gateway in the uplink communication link to the corresponding network server based on the proxy information.

[0035] Furthermore, the method for generating gateway association information includes: when the reverse proxy server receives a network access request from a LoRa gateway, the reverse proxy server generates gateway association information corresponding to the device identifier based on the device identifier of the LoRa gateway and a gateway association table pre-stored in the database of the application server.

[0036] Furthermore, the method for generating the proxy information includes: determining multiple device identifiers of the associated gateways of the newly joined LoRa gateway based on the gateway association information; traversing the connection information between multiple active network servers in the current network and the already joined LoRa gateways, extracting the network server with the highest degree of association with the device identifier as the network server paired with the newly joined LoRa gateway, and generating the proxy information.

[0037] Furthermore, the method for generating the association degree of all network servers includes: traversing, in each network server, the correspondence between the device identifier code of the LoRa gateway of the currently active connection and multiple device identifier codes of the associated gateway; each time the device identifier code of the LoRa gateway of the currently active connection appears to be the same as any one of the multiple device identifier codes of the associated gateway, a proxy association value is generated, until all the device identifier codes of the LoRa gateways of the currently active connection in the network server have been traversed, and the association degree is generated based on the number of proxy association values; repeating the above steps until all network servers have been traversed and the association degree of all network servers is generated.

[0038] The LoRa communication system and method based on a reverse proxy mechanism provided by the embodiments of the present invention have been described in detail above. The various embodiments in the specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple, and relevant parts can be referred to the method section. It should be noted that those skilled in the art can make several improvements and modifications to the present invention without departing from the principles of the invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.

[0039] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0040] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

Claims

1. A LoRa communication system based on a reverse proxy mechanism, characterized in that, include: The network server is used to configure and manage LoRa gateways that have already been connected to the network. The application server is used for data encryption and decryption. The reverse proxy server can generate proxy information for newly joined LoRa gateways based on gateway association information and connection information of the real-time network server, and forward LoRa data frames uploaded by the newly joined LoRa gateways in the uplink communication link to the corresponding network server based on the proxy information. The LoRa gateway is used to collect LoRa data frames from terminal nodes and upload the LoRa data frames to the reverse proxy server; The reverse proxy server establishes a bidirectional communication connection between the reverse proxy server and the network server by decoupling the direct communication connection between the network server and the LoRa gateway. The reverse proxy server and the LoRa gateway have a bidirectional communication connection; The reverse proxy server and the application server have a bidirectional communication connection. When the reverse proxy server receives a network access request from the LoRa gateway, the reverse proxy server generates gateway association information corresponding to the device identifier based on the device identifier of the LoRa gateway and the gateway association table pre-stored in the database of the application server. The reverse proxy server generates proxy information for newly joined LoRa gateways based on the gateway association information and the connection information of the real-time network server. This includes: after determining multiple device identifiers of the associated gateways of the newly joined LoRa gateway based on the gateway association information, the reverse proxy server iterates through the connection information between multiple active network servers in the current network and the already joined LoRa gateways, extracts the network server with the highest degree of association with the device identifier as the network server to be paired with the newly joined LoRa gateway, and generates the proxy information. The reverse proxy server traverses the connection information between multiple surviving network servers and LoRa gateways already connected to the network, including: traversing the correspondence between the device identifier of the LoRa gateway currently connected to each network server and multiple device identifiers of the associated gateways; generating a proxy association value each time the device identifier of the LoRa gateway currently connected to the network server is the same as any one of the multiple device identifiers of the associated gateways; until all device identifiers of the LoRa gateways currently connected to the network server have been traversed; and generating the association degree based on the number of proxy association values. Repeat the above steps until all network servers have been traversed and the relationship between all network servers has been generated.

2. The LoRa communication system according to claim 1, characterized in that, When iterating through the correspondence between the device identifiers of LoRa gateways with currently active connections and the multiple device identifiers of associated gateways in any network server, if the number of proxy association values ​​of the network server is greater than 1 / 2 of the number of multiple device identifiers of the associated gateways, then the network server is directly used as the network server to be paired with the newly joined LoRa gateway, and the proxy information is generated.

3. A LoRa communication method based on a reverse proxy mechanism, deployed in the LoRa communication system based on a reverse proxy mechanism as described in any one of claims 1 to 2, characterized in that, include: The proxy information for newly connected LoRa gateways is generated based on gateway association information and real-time network server connection information. Based on the proxy information, the LoRa data frames uploaded by newly joined LoRa gateways in the uplink communication link are forwarded to the corresponding network server.

4. The LoRa communication method according to claim 3, characterized in that, The method for generating gateway association information includes: when the reverse proxy server receives a network access request from a LoRa gateway, the reverse proxy server generates gateway association information corresponding to the device identifier based on the device identifier of the LoRa gateway and a gateway association table pre-stored in the database of the application server.

5. The LoRa communication method according to claim 4, characterized in that, The method for generating the proxy information includes: determining multiple device identifiers of the associated gateways of the newly joined LoRa gateway based on the gateway association information; The connection information between multiple active network servers and LoRa gateways already connected to the network is traversed. The network server with the highest correlation to the device identifier is extracted as the network server to be paired with the newly connected LoRa gateway, and the proxy information is generated.

6. The LoRa communication method according to claim 5, characterized in that, The method for generating the association degree of all network servers includes: traversing the correspondence between the device identifier of the LoRa gateway of the currently active connection and multiple device identifiers of the associated gateway in each network server; generating a proxy association value each time the device identifier of the LoRa gateway of the currently active connection is the same as any one of the multiple device identifiers of the associated gateway; until all the device identifiers of the LoRa gateways of the currently active connection in the network server have been traversed; and generating the association degree based on the number of proxy association values. Repeat the above steps until all network servers have been traversed and the relationship between all network servers has been generated.

Citation Information

Patent Citations

  • REVERSE PROXY SERVER FOR AN INTERNET OF THINGS ("IoT") NETWORK

    US20190306267A1