Disclosure of Invention
In order to solve the problems in the prior art, the present invention provides a system for reducing roaming delay of a wireless client terminal device, including:
The system comprises a plurality of wireless access points, a gateway and a plurality of wireless network interfaces, wherein each wireless access point adopts the same wireless network name and is connected with the gateway through a switch;
And at least one wireless client terminal device, wherein each wireless client terminal device is provided with two communication modules, the two communication modules respectively form a double communication link through the wireless access point, the switch and the gateway correspondingly, and the wireless client terminal device realizes message receiving and transmitting between the wireless client terminal device and the gateway through the double communication link in the roaming process.
Preferably, the wireless client terminal device includes a signal switching module respectively connected to two communication modules, and configured to, for each communication module in the roaming process, obtain, in real time, a signal strength of a connection signal between the communication module and the currently connected wireless access point, and disconnect the connection with the current wireless access point and reconnect the other wireless access points where the signal strength of the current roaming location is not less than the threshold when the signal strength is less than a threshold.
Preferably, the gateway includes a message deduplication module, configured to perform deduplication processing on the message when the message transmitted by the dual communication link is received.
Preferably, the wireless client terminal device includes a first encapsulation module, configured to encapsulate the packet with a double-link protocol header to obtain an uplink encapsulation packet after receiving the packet sent by a wired terminal connected to the wireless client terminal device, and send the uplink encapsulation packet to the gateway through the double-link communication link.
Preferably, the gateway includes a first decapsulation module, where the first decapsulation module includes:
The first processing unit is used for decapsulating the received uplink encapsulation message to obtain an Ethernet header protocol number of an inner layer message of the uplink encapsulation message, and outputting a first signal when the Ethernet header protocol number is a pre-configured double-link custom protocol;
and the second processing unit is connected with the first processing unit and is used for acquiring the triplet information of the inner layer message according to the first signal and carrying out de-duplication processing on the uplink encapsulation message according to the triplet information.
Preferably, the triplet information includes a destination mac address, a source mac address, and a sequence number.
Preferably, the gateway includes a second encapsulation module, configured to, after receiving the packet sent by a server connected to the gateway, perform double-link protocol header encapsulation on the packet to obtain a downlink encapsulation packet when the destination mac address of the packet is matched to the corresponding dual-communication link, and send the downlink encapsulation packet to the wireless client terminal device through the dual-communication link.
Preferably, the wireless client terminal device includes a second decapsulating module, configured to decapsulate the received downlink encapsulated packet.
Preferably, eoGRE technology is adopted to perform double-link protocol header encapsulation on the message.
Preferably, the communication module is a 5G module, and antennas of the two 5G modules face different directions.
The technical scheme has the following advantages or beneficial effects:
1) Zero packet loss of the wireless client terminal equipment in the roaming process is realized by a double communication link technology;
2) The wireless access point AP can use a common AP, the AP and the CPE do not need to support 802.11k, 802.11v and 802.11r protocols, and extra air interface overhead is not needed to be added;
2) By EoGRE technology, the wired terminal under CPE and the server connected with the gateway are located in a two-layer network, and networking complexity is reduced in practical application.
Detailed Description
The invention will now be described in detail with reference to the drawings and specific examples. The present invention is not limited to the embodiment, and other embodiments may fall within the scope of the present invention as long as they conform to the gist of the present invention.
In a preferred embodiment of the present invention, based on the above-mentioned problems existing in the prior art, there is now provided a system for reducing roaming delay of a wireless client terminal device, as shown in fig. 1, comprising:
the system comprises a plurality of wireless access points 1, wherein each wireless access point 1 adopts the same wireless network name, and each wireless access point 1 is connected with a gateway 3 through a switch 2;
At least one wireless client terminal device 4, each wireless client terminal device 4 is provided with two communication modules 41, the two communication modules 41 respectively form a double communication link through the wireless access point 1 and the switch 2 and the gateway 3, and the wireless client terminal device 4 realizes message receiving and transmitting with the gateway 3 through the double communication link in the roaming process.
Specifically, in this embodiment, by establishing a dual communication link between the wireless client terminal device 4 and the gateway 3, in the roaming process of the wireless client terminal device 4, the two communication links simultaneously receive or transmit the message, thereby ensuring high reliability of message transmission and reception, reducing roaming delay of the wireless client terminal device 4, reducing packet loss of the wireless client terminal device 4 in the roaming process, and achieving zero packet loss.
In the preferred embodiment of the present invention, the wireless ue device 4 includes a signal switching module 42 respectively connected to the two communication modules 41, for obtaining, in real time, for each communication module 41 during roaming, the signal strength of the connection signal between the communication module 41 and the currently connected wireless access point 1, and disconnecting the connection with the current wireless access point 1 and reconnecting the other wireless access points 1 with the signal strength of the current roaming location not less than a threshold when the signal strength is less than a threshold.
Specifically, in this embodiment, as shown in fig. 2, two wireless access points 1 are taken as an example, namely, AP1 and AP2 are taken as two communication modules 41 are taken as a module 1 and a module 2 in fig. 2 respectively, wherein the two wireless access points 1 adopt the same wireless network name so as to switch between the wireless access points, and antennas of the two communication modules 41 face different directions so as to receive connection signals of the wireless access points 1 in different directions.
The wireless client terminal apparatus 4 simultaneously receives and transmits messages through the dual communication link during roaming, and disconnects the weak signal connection to scan for other signals and reconnect when the connection signal is below the threshold, as shown in fig. 2. When the wireless client terminal device 4 roams to location a, nearer to AP1, both module 1and module 2 are connected to AP1; when the wireless client terminal device 4 roams to the position B, if the signal strength of the connection signal between the module 2 and the AP1 is lower than the threshold value, the weak signal link is disconnected to scan other signals and reconnect to the AP2, and the module 1 continues to keep connecting with the AP1; when the wireless client terminal device 4 roams to the location C, both the module 1and the module 2 switch connection to the AP2, ensuring the reliability of the signal connection.
In the preferred embodiment of the present invention, the gateway 3 includes a message de-duplication module 31 for de-duplication processing of the message when receiving the message transmitted by the dual communication link.
Specifically, in this embodiment, since two communication links receive or transmit a message at the same time, the same message may be received twice, and thus the gateway 2 needs to perform duplicate removal processing when receiving the message.
In the preferred embodiment of the present invention, the wireless client terminal device 4 includes a first encapsulation module 43, which is configured to encapsulate the packet with a double-link protocol header to obtain an uplink encapsulation packet after receiving a packet sent by a wired terminal 5 connected to the wireless client terminal device 4, and send the uplink encapsulation packet to the gateway 3 through the double-link communication.
Specifically, in this embodiment, as shown in fig. 3, the two communication modules 41 are the module 1 and the module 2 in fig. 3, respectively, and the dual communication links established between the module 1 and the module 2 of the wireless client terminal device 4 and the gateway 3 are the communication link 1 and the communication link 2 in fig. 3. For the uplink message, after receiving the message from the LAN port of the wired terminal 5, the wireless client terminal device 4 first encapsulates the dual-link protocol header, and then sends the message on the communication link 1 and the communication link 2 at the same time after the encapsulation.
In the preferred embodiment of the present invention, the gateway 3 includes a first decapsulating module 32, and the first decapsulating module 32 includes:
The first processing unit 321 is configured to decapsulate the received uplink encapsulation message to obtain an ethernet header protocol number of an inner layer message of the uplink encapsulation message, and output a first signal when the ethernet header protocol number is a pre-configured double-link custom protocol;
The second processing unit 322 is connected to the first processing unit 321, and is configured to obtain triplet information of the inner layer packet according to the first signal, and perform deduplication processing on the uplink packet according to the triplet information.
Specifically, in this embodiment, as shown in fig. 3, after receiving the encapsulated uplink packet, the gateway first decapsulates the uplink packet, determines the ethernet header protocol number of the inner layer packet, directly discards the packet if the protocol number is not a dual-link custom protocol, and performs de-duplication processing if the protocol number is a dual-link custom protocol, specifically: judging whether the message is a repeated message according to the inner layer message triples, if so, discarding, otherwise, processing according to the normal message receiving flow, and updating the corresponding serial number (destination MAC+source MAC). The triplet information comprises a destination mac address, a source mac address and a serial number.
In the preferred embodiment of the present invention, the gateway 3 includes a second encapsulation module 33, configured to, after receiving a message sent by a server 6 connected to the gateway 3, perform double-link protocol header encapsulation on the message to obtain a downlink encapsulation message when the destination mac address of the message matches with a corresponding double-link, and send the downlink encapsulation message to the wireless client terminal device 4 through the double-link.
Specifically, in this embodiment, as shown in fig. 3, for a downlink message, the gateway 3 receives the message from the WAN port of the server, matches the corresponding communication link according to the MAC of the message destination, discards the message if the corresponding communication link is not matched, and firstly encapsulates the message with a double-link protocol header if the corresponding communication link (normally corresponding to two communication links) can be found, and then sends the message on the two communication links at the same time after the encapsulation.
In the preferred embodiment of the present invention, the wireless client terminal apparatus 4 includes a second decapsulating module 44 for decapsulating the received downlink encapsulated packets.
Specifically, in this embodiment, after receiving the message of the communication link, the wireless client terminal device 4 needs to perform decapsulation and decapsulation, which is similar to the processing of the gateway receiving the message, and will not be described herein.
In a preferred embodiment of the present invention, eoGRE technology is used to perform double-link protocol header encapsulation on the message.
Specifically, as shown in fig. 4, in order to perform the encapsulating message format of the double-link protocol header encapsulation, the original message before encapsulation includes a destination MAC, a source MAC, a Type (IPV 40 x 0800) and a Payload, and the double-link protocol header message of the double-link protocol header includes a destination MAC, a source MAC, a double-link custom protocol Type, a sequence number, a reserved field, a Type in the original message and a Payload, and the encapsulated message after encapsulation includes an outer-layer destination MAC, an outer-layer source MAC, a protocol number (IPV 40 x 0800), an IP header (protocol number Ox2f GRE tunnel), a GRE protocol header and a Payload, where the double-link protocol header message is used as the Payload of the encapsulated message.
In the preferred embodiment of the present invention, the communication module 41 is a 5G module, and the antennas of the two 5G modules face different directions.
The foregoing description is only illustrative of the preferred embodiments of the present invention and is not to be construed as limiting the scope of the invention, and it will be appreciated by those skilled in the art that equivalent substitutions and obvious variations may be made using the description and drawings, and are intended to be included within the scope of the present invention.