CN111526512A - Gateway bridging method, device, equipment and medium based on Wi-Fi data packet - Google Patents

Gateway bridging method, device, equipment and medium based on Wi-Fi data packet Download PDF

Info

Publication number
CN111526512A
CN111526512A CN202010247100.XA CN202010247100A CN111526512A CN 111526512 A CN111526512 A CN 111526512A CN 202010247100 A CN202010247100 A CN 202010247100A CN 111526512 A CN111526512 A CN 111526512A
Authority
CN
China
Prior art keywords
packet
bridging
bridge
distribution network
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010247100.XA
Other languages
Chinese (zh)
Inventor
李志为
姚博
刘宗孺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Bolian Intelligent Technology Co ltd
Original Assignee
Hangzhou Bolian Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Bolian Intelligent Technology Co ltd filed Critical Hangzhou Bolian Intelligent Technology Co ltd
Priority to CN202010247100.XA priority Critical patent/CN111526512A/en
Publication of CN111526512A publication Critical patent/CN111526512A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • H04W28/065Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information using assembly or disassembly of packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements

Abstract

The invention discloses a gateway bridging method based on Wi-Fi data packets, which relates to the technical field of Internet of things. The method comprises the following steps: sending a bridging discovery packet in a broadcasting mode, and receiving a returned bridging response packet; analyzing the bridge connection response packet to obtain index parameters of each bridge connection device in the same channel; processing the index parameter according to a predefined evaluation rule to determine a connected target bridging device; forwarding a distribution network request packet through the target bridge device; and receiving the returned distribution network response packet. The invention also discloses a gateway bridging device, electronic equipment and a computer storage medium based on the Wi-Fi data packet.

Description

Gateway bridging method, device, equipment and medium based on Wi-Fi data packet
Technical Field
The invention relates to the field of Internet of things, in particular to a gateway bridging method, device, equipment and medium based on Wi-Fi data packets.
Background
With the continuous development of wireless transmission technology, Wi-Fi is used more and more, and in the use scene of component networks such as homes or hotels, the attenuation of wireless signals such as Wi-Fi is serious because houses are basically made of reinforced concrete structures and the layout of the houses is complex and diverse, and in some places far away from a router, the strength of the wireless signals is weak, so that the problems of poor signals, low data transmission rate, signal blind spots and the like exist. Wi-Fi communication can be realized only in the coverage range of Wi-Fi signals, the transmission distance is limited, and the expansibility is poor, so that a wireless router needs to be additionally arranged at a weak signal place to realize enhancement of coverage of the Wi-Fi signals, and therefore a wireless network expanding method is developed.
In order to increase the coverage of the wireless network and increase the long-distance wireless transmission rate, the WDS bridge function of the wireless router is usually used. There are several wireless network extensions based on WDS, and it is more common to connect the LAN interface of the primary router (R1) to the WAN interface of the secondary router (R2) through a network wire. At this time, the user sets the wired relay configuration on R2 and creates a wireless service same as R1, so as to achieve the effect of increasing the coverage area of the wireless network. This approach requires an additional single-step one network line for connecting the secondary routers. If the wiring environment is not allowed, the user can select to set wireless relay in the secondary router, namely, the secondary router is configured with a wireless network SSID, an encryption mode and a wireless service key which need to be expanded, and the secondary router is used as a wireless client to be accessed to the main router so as to create a wireless service which is the same as that of the main router, thereby achieving the effect of increasing the coverage area of the wireless network. However, the two methods increase the cost of the router, and both require extra configuration, and have the disadvantages of high cost and difficult expansion.
Disclosure of Invention
In order to overcome the defects of the prior art, one of the purposes of the present invention is to provide a gateway bridging method based on Wi-Fi data packets, which uses a Wi-Fi module of a device as a network bridge to extend the transmission distance of a wireless network, increase the coverage and transmission capability of Wi-Fi, is easy to extend, does not need additional configuration, and has the advantages of strong compatibility and safe transmission.
One of the purposes of the invention is realized by adopting the following technical scheme:
a gateway bridging method based on Wi-Fi data packets comprises the following steps:
sending a bridging discovery packet in a broadcasting mode, and receiving a returned bridging response packet;
analyzing the bridge connection response packet to obtain index parameters of each bridge connection device in the same channel;
processing the index parameter according to a predefined evaluation rule to determine a connected target bridging device;
forwarding a distribution network request packet through the target bridge device;
and receiving the returned distribution network response packet.
Further, the index parameters include the signal strength of the bridge device, the hop count of the bridge device from the gateway, the load information of the bridge device, and the response time of the bridge device returning the bridge response packet.
Further, the index parameter is processed according to a predefined evaluation rule to determine a connected target bridging device, and the method specifically includes the following steps:
and calculating the total score of the index parameters according to the predefined weight coefficient of the index parameters, and taking the bridge device with the highest total score as the target bridge device.
Further, the evaluation parameter is processed according to a predefined rule to determine a connected target bridging device, which specifically includes the following steps:
according to predefined index parameter priorities, the index parameters are judged in an iterative mode, and the bridge device with the optimal index parameters under the same priority is used as the target bridge device;
and if the index parameters of all the bridging devices are consistent under the same priority, judging the index parameters under the next priority.
Further, after receiving the distribution network response packet, the method further comprises the following steps:
and forwarding the subsequent message through the target bridging equipment.
Further, the packet and the distribution network request packet are both encapsulated into a Wi-Fi packet for transmission, where the Wi-Fi packet includes an 802.11MAC header and an 802.11Payload portion, the 802.11MAC header includes a target address and a source address, the 802.11Payload portion includes a device ID and encrypted data, the source address is an MAC address of a current bridging device or an originating MAC address of the packet, the target address is an MAC address or a broadcast address of a next-hop device of the source address, and the device ID is an originating MAC address of the packet.
Further, forwarding a distribution network request packet or a subsequent packet through the target bridge device specifically includes:
and the target bridging device inquires a routing table, reconstructs the 802.11 head of the distribution network request packet according to the inquiry result and then forwards the distribution network request packet, namely, the source address and the target address of the 802.11 head are replaced and then the distribution network request packet is forwarded.
Further, the routing table stores the MAC address of the next hop device of the current device in association with the MAC address of the current device as a primary key.
The second purpose of the present invention is to provide a gateway bridging apparatus based on Wi-Fi data packets, which uses a device provided with a Wi-Fi module as a bridging device to implement bridging between a terminal device and a gateway, and increases the coverage and transmission capability of Wi-Fi through bridging.
The second purpose of the invention is realized by adopting the following technical scheme:
the message receiving and sending module is used for sending the bridge connection discovery packet in a broadcasting mode and receiving the returned bridge connection response packet;
a parameter obtaining module, configured to analyze the bridge connection response packet to obtain an index parameter of each bridge connection device in the same channel;
the bridging device selection module is used for processing the index parameters according to a predefined evaluation rule so as to determine the connected target bridging device;
a distribution network request module, configured to forward a distribution network request packet through the target bridge device;
and the response receiving module is used for receiving the returned distribution network response packet.
It is a further object of the present invention to provide an electronic device comprising a processor, a storage medium and a computer program, the computer program being stored in the storage medium, the computer program, when executed by the processor, implementing the above-mentioned Wi-Fi packet-based gateway bridging method.
It is a fourth object of the present invention to provide a computer readable storage medium storing one of the objects of the invention, having a computer program stored thereon, which when executed by a processor, implements the above-mentioned Wi-Fi packet-based gateway bridging method.
Compared with the prior art, the invention has the beneficial effects that:
based on the method and the device, when the terminal accesses the gateway, other equipment provided with the Wi-Fi module is used as bridging equipment, the gateway is accessed through the bridging equipment, and the gateway is connected with the router, so that the data distance is increased through bridging, the Wi-Fi communication distance based on the router is increased, the coverage range and the transmission capability of Wi-Fi signals are further increased, extra routers and bridge equipment do not need to be additionally arranged, the existing Wi-Fi chip is used, hardware upgrading is not needed, the whole bridging process can be realized, and the cost is low and the compatibility is high.
Drawings
Fig. 1 is a flowchart of a Wi-Fi packet-based gateway bridging method of embodiment 1;
fig. 2 is a network topology diagram constructed based on the gateway bridging method of embodiment 1;
fig. 3 is a block diagram of the Wi-Fi packet-based gateway bridging device of embodiment 2;
fig. 4 is a block diagram of the electronic apparatus of embodiment 3.
Detailed Description
The present invention will now be described in more detail with reference to the accompanying drawings, in which the description of the invention is given by way of illustration and not of limitation. The various embodiments may be combined with each other to form other embodiments not shown in the following description.
Example 1
The embodiment provides a gateway bridging method based on Wi-Fi data packets, which is characterized in that message forwarding is realized based on the existing Wi-Fi module of a device, so that the device can serve as a bridging device (namely a bridge) to play a relay role in a transmission link, so that a message sending device can access a gateway through the bridging device and perform data transmission through an established communication link, the coverage area and the transmission capability of a Wi-Fi network are increased, and each bridging device only performs data forwarding without being responsible for encryption of messages, thereby ensuring the safety of data transmission.
As shown in fig. 1, the gateway bridging method based on Wi-Fi data packets specifically includes the following steps:
sending a bridging discovery packet in a broadcasting mode, and receiving a returned bridging response packet;
analyzing the bridge connection response packet to obtain index parameters of each bridge connection device in the same channel;
processing the index parameter according to a predefined evaluation rule to determine a connected target bridging device;
forwarding a distribution network request packet through the target bridge device;
and receiving the returned distribution network response packet.
It should be noted that the gateway bridging method based on the Wi-Fi data packet is implemented based on an intelligent device (IOT device) having a networking function (provided with a Wi-Fi module), such as an intelligent speaker, a network television, and the like, where the intelligent device may be a sub-device that sends a message or a bridging device, and the difference is that the intelligent device is a sub-device (a message originating terminal or a message receiving terminal) when the intelligent device needs to process the message content, and is a bridging device when the intelligent device does not need to process the message content and only forwards the message content. The intelligent device realizes the method of the embodiment based on the own Wi-Fi module.
The smart device transmits a Bridge discovery packet in a broadcast form to discover available Bridge devices (bridges), each Bridge device in a channel may receive the Bridge discovery packet as long as the Bridge device and the smart device are in the same channel, and may be received by the smart device in response to a Bridge reply packet.
It should be noted that, the gateway device is used as a 0-hop bridging device in this embodiment, and the distance from the gateway device to the network segment is 0.
The intelligent device analyzes the bridge connection response packet, the message contains load information of the bridge connection device sending the message and hop count information of the distance gateway device, the message is analyzed to obtain the response time of the message and obtain the signal strength value through a packet capturing interface besides the load information and the hop count information of the distance gateway device. The load information comprises the capacity of the routing table and the current number of entries of the routing table.
Preferably, the index parameters include signal strength of the bridge device, hop count of the bridge device from the gateway, load information of the bridge device, and response time of the bridge device returning the bridge response packet.
Preferably, the index parameter is processed according to a predefined evaluation rule to determine a connected target bridging device, and specifically includes the following steps:
and calculating the total score of the index parameters according to the predefined weight coefficient of the index parameters, and taking the bridge device with the highest total score as the target bridge device.
Preferably, in another embodiment of the present invention, the processing the evaluation parameter according to a predefined rule to determine the connected target bridging device specifically includes the following steps:
according to predefined index parameter priorities, the index parameters are judged in an iterative mode, and the bridge device with the optimal index parameters under the same priority is used as the target bridge device;
and if the index parameters of all the bridging devices are consistent under the same priority, judging the index parameters under the next priority.
For example, the priority of the index parameter from high to low is: the hop count of the bridge device from the gateway, the load information of the bridge device, the signal strength of the bridge device, and the response time of the bridge device, and when applied, the target bridge device (optimal access device) is determined according to the following rules: preferably, the bridging device with the smallest hop number from the gateway is selected (shortest path rule), if the hop numbers of the bridging devices are the same as the hop numbers of the gateway, the bridging device with the lowest load percentage is selected (load balancing rule), the load percentage is the current item number of the routing table/the capacity of the routing table, if the load percentages of the bridging devices are the same, the bridging device with the highest signal strength value is selected, and the signal strength values of the bridging devices are consistent, the bridging device with the fastest response time is selected. And comparing the index parameters step by step from high to low according to the priority until the target bridging equipment is determined.
It should be noted that the number of target bridging devices obtained by the two processing methods described in this embodiment is one or more than one.
Preferably, after receiving the distribution network reply packet, the method further includes the following steps:
and forwarding the subsequent message through the target bridging equipment. The subsequent messages include a heartbeat request packet, a heartbeat response packet, a control request packet, a control response packet, and messages (uplink packet and downlink packet) for transmitting other data information.
Preferably, the bridge discovery packet, the bridge response packet, the distribution network request packet, and the subsequent packet transmitted after the bridge communication link is established are all encapsulated into a Wi-Fi data packet for transmission, where the Wi-Fi data packet includes an 802.11MAC header and an 802.11Payload portion, the 802.11MAC header includes a destination address and a source address, the 802.11Payload portion includes a device ID and encrypted data, the source address is an MAC address of a current bridge device or an MAC address of a message origination end, the destination address is an MAC address or a broadcast address of a next hop device of the source address, and the device ID is an MAC address of the message origination end.
Preferably, forwarding a distribution network request packet or a subsequent packet through the target bridge device specifically includes:
the target bridging device queries a routing table, reconstructs the 802.11 header of the distribution network request packet according to the query result, and then forwards the distribution network request packet or the subsequent message, namely, the source address and the target address of the 802.11 header are replaced and then the distribution network request packet or the subsequent message is forwarded.
In practical application, after receiving a message, all intermediate node devices on a communication link where the target bridge device is located query a routing table, and reconstruct an 802.11 header of the message according to a routing table query result, so that a source address and a target address of the 802.11 header of the message are replaced step by step on the node of the communication link, and finally the message reaches a message receiving end.
Preferably, the routing table stores the MAC address of the next-hop device of the current device in association with the MAC address of the current device as a primary key, that is, any record in the routing table stores the MAC address of the current device and the MAC address of the next-hop device of the current device in association with each other. When the routing table is inquired, the MAC address of the next hop equipment can be inquired by taking the MAC address of the current equipment as a keyword so as to reconstruct the head of the message.
In this embodiment, the gateway device will periodically update the routing table using heartbeat timeouts, as will the bridge device.
After the intelligent device determines the target bridge device, a distribution network request packet is sent to the target bridge device, where the distribution network request packet includes an 81/8C broadcast packet and a 81/8C unicast packet, and the target bridge device forwards the distribution network request packet to the gateway device through the communication link where the target bridge device is located, where there are two processing situations: (1) the intelligent device is not connected with a router, so that the MAC address of the gateway is not available, at the moment, a plurality of bridging devices are determined according to the gateway bridging method of the embodiment, namely, corresponding target bridging devices are determined from different subnets, therefore, the bridging devices forward the distribution network request packet, the gateways of different subnets receive the distribution network request packet, and the gateways of different subnets add the intelligent device according to the received and processed distribution network request packet, so that the intelligent device is accessed to the gateway through the bridging devices. (2) The intelligent device is connected with the router, and at the moment, if the MAC address of the gateway is known, the determined target bridging device and the intelligent device are in the same Wi-Fi network, and the gateway in the same Wi-Fi network receives and processes the distribution network request packet, so that the intelligent device is accessed to the gateway.
Preferably, after the intelligent device accesses the gateway device, a distribution network response packet returned by the gateway device is received, where the distribution network response packet is used to provide confirmation information that the intelligent device has been successfully connected. In this embodiment, the gateway device will also return a session key and a broadcast key for data transmission with the server, the session key being randomly generated and distributed by the accessing gateway device, providing keys for data encryption and decryption that can guarantee the encryption and decryption keys randomly generated for secure communication between the device and the gateway device. All the access intelligent devices use the same broadcast key to process the broadcast message. In other embodiments, the smart device further receives the asymmetric key returned by the gateway device, and the asymmetric key is used for mutual authentication between the smart device and a cloud server (cloud).
In this embodiment, the intelligent device encrypts the data by using the session key, and sends the encrypted data to the gateway device through the packet, after receiving the packet, the gateway device decrypts the encrypted data in the packet by using the session key to obtain the original data before encryption, and the bridge device only forwards the packet in the whole process, and does not participate in encryption and decryption of the data, thereby ensuring the transmission security of the data in the communication link.
The present embodiment provides a composition format of a Wi-Fi packet (packet), as follows:
Figure BDA0002434249500000091
in practical application, the destination address is the MAC address of the next hop node of the current node, the source address is the MAC address of the current node, the device ID is the MAC address of the device that sends the message in the uplink message, and the device ID is the MAC address of the device that receives the response message in the downlink message.
The above messages are interacted based on the Fastcon protocol, and only in the hop-by-hop forwarding process, the 802.11MAC header needs to be repackaged, that is, the destination address and the source address of each forwarding node are replaced, and the content of the 802.11Payload part is always unchanged.
By the gateway bridging method of the embodiment, transparent transmission of data is realized, the bridging device does not need to additionally process the message of the device, only takes charge of reconstructing the MAC header of the message and forwards the message to the next node, and the whole transmission process is noninductive to the bridging device, so that a network architecture constructed by the gateway bridging method of the embodiment is light and easy to expand.
As shown in fig. 2, a network topology diagram established based on the gateway bridging method of this embodiment is provided, where there are a gateway device and multiple bridging devices (bridges), and each bridging device can Bridge other devices to implement multi-level hopping.
The uplink message is always forwarded to the father node of the current node, and the downlink message is always forwarded to the leaf node of the next layer.
The transmission process of the message under the network architecture is illustrated by combining fig. 2 and the message composition format.
Assuming that the Device3-0 needs to send a message to the gateway, the transmission process is as follows:
(1) the Device3-0 sends the message to Bridge2-0 (first hop), and at this time, the routing table is searched by using the MAC address of the Device3-0 as a key word, and the message content is obtained as follows:
Figure BDA0002434249500000101
(2) bridge2-0 passes Payload to parent node Bridge1-1 (second hop), at this time, the routing table is searched according to the MAC address of Bridge2-0, and the message content is as follows:
Figure BDA0002434249500000102
(3) the Bridge1-1 passes Payload to the parent node gateway (third hop), and at this time, the routing table is searched according to the MAC address of the Bridge2-0, and the message content is as follows:
Figure BDA0002434249500000111
after three jumps, the gateway successfully receives the Data reported by the Device3-0, and then decrypts the Data by using the session key of the Device3-0, and finally obtains the information sent by the Device 3-0. Similarly, the gateway needs to send a response message to the Device3-0, and returns the response message to the Device3-0 along the same communication link according to the same step-by-step forwarding principle. The whole process completes one data interaction between the leaf device and the gateway through the Bridge device (Bridge).
It should be noted that the Device in this example can also be used as a bridging Device for other devices, thereby implementing the bridging forwarding function.
Example 2
The present embodiment discloses a device corresponding to the gateway bridging method of embodiment 1, which is a virtual structure device, and in this embodiment, the device is integrated on a Wi-Fi module of an intelligent device, as shown in fig. 3, including:
a message transceiver module 310, configured to send a bridge discovery packet in a broadcast form, and receive a returned bridge response packet;
a parameter obtaining module 320, configured to analyze the bridge connection response packet to obtain an index parameter of each bridge connection device in the same channel;
a bridging device selecting module 330, configured to process the index parameter according to a predefined evaluation rule to determine a connected target bridging device;
a distribution network request module 340, configured to forward a distribution network request packet through the target bridge device;
and the response receiving module 350 is configured to receive the returned distribution network response packet.
Example 3
Fig. 4 is a schematic structural diagram of an electronic device according to embodiment 3 of the present invention, as shown in fig. 4, the electronic device includes a processor 410, a memory 420, an input device 430, and an output device 440; the number of the processors 410 in the computer device may be one or more, and one processor 410 is taken as an example in fig. 4; the processor 410, the memory 420, the input device 430 and the output device 440 in the electronic apparatus may be connected by a bus or other means, and the bus connection is exemplified in fig. 4.
The memory 420 serves as a computer-readable storage medium, and may be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the Wi-Fi packet-based gateway bridging method in the embodiments of the present invention (for example, the messaging module 310, the parameter obtaining module 320, the bridging device selecting module 330, the distribution network requesting module 340, and the response receiving module 350 in the Wi-Fi packet-based gateway bridging apparatus). The processor 410 executes various functional applications and data processing of the electronic device by executing software programs, instructions and modules stored in the memory 420, that is, implements the Wi-Fi packet-based gateway bridging method of embodiment 1.
The memory 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 420 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 420 may further include memory located remotely from processor 410, which may be connected to an electronic device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Input device 430 may be used to receive response messages. The output device 440 is used to send out messages.
Example 4
Embodiment 4 of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions, when executed by a computer processor, are configured to implement a method for gateway bridging based on Wi-Fi data packets, where the method includes:
sending a bridging discovery packet in a broadcasting mode, and receiving a returned bridging response packet;
analyzing the bridge connection response packet to obtain index parameters of each bridge connection device in the same channel;
processing the index parameter according to a predefined evaluation rule to determine a connected target bridging device;
forwarding a distribution network request packet through the target bridge device;
and receiving the returned distribution network response packet.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the Wi-Fi packet-based gateway bridging method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes instructions for enabling an electronic device (which may be a mobile phone, a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the gateway bridging method or apparatus based on the Wi-Fi data packet, each included unit and module are only divided according to functional logic, but are not limited to the above division, as long as corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
Various other modifications and changes may be made by those skilled in the art based on the above-described technical solutions and concepts, and all such modifications and changes should fall within the scope of the claims of the present invention.

Claims (11)

1. A gateway bridging method based on Wi-Fi data packets is characterized by comprising the following steps:
sending a bridging discovery packet in a broadcasting mode, and receiving a returned bridging response packet;
analyzing the bridge connection response packet to obtain index parameters of each bridge connection device in the same channel;
processing the index parameter according to a predefined evaluation rule to determine a connected target bridging device;
forwarding a distribution network request packet through the target bridge device;
and receiving the returned distribution network response packet.
2. The Wi-Fi packet-based gateway bridging method of claim 1, wherein the metric parameters include a signal strength of the bridging device, a hop count of the bridging device from the gateway, load information of the bridging device, and a response time for the bridging device to return the bridge response packet.
3. The Wi-Fi packet-based gateway bridging method according to claim 2, wherein the index parameter is processed according to a predefined evaluation rule to determine a connected target bridging device, specifically comprising the steps of:
and calculating the total score of the index parameters according to the predefined weight coefficient of the index parameters, and taking the bridge device with the highest total score as the target bridge device.
4. The Wi-Fi packet-based gateway bridging method according to claim 2, wherein the evaluation parameter is processed according to a predefined rule to determine a connected target bridging device, specifically comprising the steps of:
according to predefined index parameter priorities, the index parameters are judged in an iterative mode, and the bridge device with the optimal index parameters under the same priority is used as the target bridge device;
and if the index parameters of all the bridging devices are consistent under the same priority, judging the index parameters under the next priority.
5. The Wi-Fi packet-based gateway bridging method of claim 1, wherein after receiving the distribution network reply packet, further comprising the steps of:
and forwarding the subsequent message through the target bridging equipment.
6. The Wi-Fi packet-based gateway bridging method of claim 5, wherein the packet and the distribution network request packet are both encapsulated as Wi-Fi packets for transmission, the Wi-Fi packet comprises a MAC header and an 802.11Payload portion, the 802.11MAC header comprises a destination address and a source address, the 802.11Payload portion comprises a device ID and encrypted data, the source address is a MAC address of a current bridging device or a MAC address of a packet originator, the destination address is a MAC address or a broadcast address of a next hop device of the source address, and the device ID is a MAC address of a packet originator.
7. The Wi-Fi data packet-based gateway bridging method of claim 6, wherein forwarding a distribution network request packet or a subsequent packet via the target bridging device specifically comprises:
the target bridging device queries a routing table, reconstructs the 802.11 header of the distribution network request packet according to the query result, and then forwards the distribution network request packet or the subsequent message, namely, the source address and the target address of the 802.11 header are replaced and then the distribution network request packet or the subsequent message is forwarded.
8. The Wi-Fi packet-based gateway bridging method of claim 7, wherein the routing table stores MAC addresses of next-hop devices of the current device in association with a MAC address of the current device as a primary key.
9. A gateway bridging device based on Wi-Fi packets, comprising:
the message receiving and sending module is used for sending the bridge connection discovery packet in a broadcasting mode and receiving the returned bridge connection response packet;
a parameter obtaining module, configured to analyze the bridge connection response packet to obtain an index parameter of each bridge connection device in the same channel;
the bridging device selection module is used for processing the index parameters according to a predefined evaluation rule so as to determine the connected target bridging device;
a distribution network request module, configured to forward a distribution network request packet through the target bridge device;
and the response receiving module is used for receiving the returned distribution network response packet.
10. An electronic device comprising a processor, a storage medium, and a computer program stored in the storage medium, wherein the computer program, when executed by the processor, implements the Wi-Fi packet-based gateway bridging method of any one of claims 1 to 8.
11. A computer-readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the Wi-Fi packet-based gateway bridging method of any of claims 1 to 8.
CN202010247100.XA 2020-03-31 2020-03-31 Gateway bridging method, device, equipment and medium based on Wi-Fi data packet Pending CN111526512A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010247100.XA CN111526512A (en) 2020-03-31 2020-03-31 Gateway bridging method, device, equipment and medium based on Wi-Fi data packet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010247100.XA CN111526512A (en) 2020-03-31 2020-03-31 Gateway bridging method, device, equipment and medium based on Wi-Fi data packet

Publications (1)

Publication Number Publication Date
CN111526512A true CN111526512A (en) 2020-08-11

Family

ID=71901295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010247100.XA Pending CN111526512A (en) 2020-03-31 2020-03-31 Gateway bridging method, device, equipment and medium based on Wi-Fi data packet

Country Status (1)

Country Link
CN (1) CN111526512A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114553914A (en) * 2022-04-25 2022-05-27 江苏博瑞思信息技术有限公司 Data processing method and device suitable for Internet of things gateway
WO2024011368A1 (en) * 2022-07-11 2024-01-18 Oppo广东移动通信有限公司 Device discovery method and apparatus, device, storage medium, and program product

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140056210A1 (en) * 2012-08-27 2014-02-27 Qualcomm Incorporated Systems and methods for multi-hop relay selection
US20140071885A1 (en) * 2012-09-10 2014-03-13 Qualcomm Incorporated Systems, apparatus, and methods for bridge learning in multi-hop networks
CN105163322A (en) * 2015-08-05 2015-12-16 福建星网锐捷网络有限公司 Method and system for automatic expansion of wireless network
CN107071795A (en) * 2017-03-27 2017-08-18 上海斐讯数据通信技术有限公司 A kind of automatic extended methods of WDS based on load and system
CN107251489A (en) * 2015-01-05 2017-10-13 爱唯思有限公司 IOT communication bridge joint exchange of electric power machines
CN110651490A (en) * 2017-05-26 2020-01-03 高通股份有限公司 Dynamic operational role of internet of things (IOT) devices in a network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140056210A1 (en) * 2012-08-27 2014-02-27 Qualcomm Incorporated Systems and methods for multi-hop relay selection
US20140071885A1 (en) * 2012-09-10 2014-03-13 Qualcomm Incorporated Systems, apparatus, and methods for bridge learning in multi-hop networks
CN107251489A (en) * 2015-01-05 2017-10-13 爱唯思有限公司 IOT communication bridge joint exchange of electric power machines
CN105163322A (en) * 2015-08-05 2015-12-16 福建星网锐捷网络有限公司 Method and system for automatic expansion of wireless network
CN107071795A (en) * 2017-03-27 2017-08-18 上海斐讯数据通信技术有限公司 A kind of automatic extended methods of WDS based on load and system
CN110651490A (en) * 2017-05-26 2020-01-03 高通股份有限公司 Dynamic operational role of internet of things (IOT) devices in a network

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114553914A (en) * 2022-04-25 2022-05-27 江苏博瑞思信息技术有限公司 Data processing method and device suitable for Internet of things gateway
WO2024011368A1 (en) * 2022-07-11 2024-01-18 Oppo广东移动通信有限公司 Device discovery method and apparatus, device, storage medium, and program product

Similar Documents

Publication Publication Date Title
JP7079866B2 (en) Packet processing method and device
US11323366B2 (en) Path determining method, apparatus, and system
CN111510365B (en) Wi-Fi data packet-based device bridging cloud method, device and medium
WO2018036254A1 (en) Packet forwarding method and device
US9060322B2 (en) Method and system for preventing loops in mesh networks
CN102857491A (en) Management schemes for filter sets
US7921458B2 (en) Packet routing method, computer system, and computer product
US20050157749A1 (en) System and method for communication with an external network in an IPv6 MANET network
US11140245B2 (en) Packet processing method and apparatus
CN111526512A (en) Gateway bridging method, device, equipment and medium based on Wi-Fi data packet
Campos et al. Network infrastructure extension using 802.1 D‐based wireless mesh networks
JP2017503407A (en) Packet processing method and apparatus
WO2021204277A1 (en) Communication method, apparatus and system
Abusalah et al. Tarp: trust-aware routing protocol
WO2013023465A1 (en) Interconnection and intercommunication method for identity location separated network and traditional network, ilr and asr
CN115277720A (en) Multicast group management method, device, equipment and storage medium
CN101686265B (en) Network equipment, network system and method for establishing data communication
CN114268577B (en) Method, device, equipment and storage medium for establishing network connection
US9451420B2 (en) Data processing method, in an ad hoc radio communication network, radio communication stations and corresponding computer programs
EP4329374A1 (en) Communication processing method and related device
WO2024021714A1 (en) Network address translation (nat) traversal method, device, and system
KR20050079459A (en) Secure router and method for routing thereof
Yaga et al. A Novel Fast Re-Routing Mechanism for Improvement of QoS in Data Transmission of Multimedia Applications Using P2P Network.
CN117938744A (en) Method, device, equipment and medium for adjusting operation state of service management system
JP5464360B2 (en) Mesh network and base station for realizing improved terminal information management method and communication method in mobile communication

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination