Disclosure of Invention
The invention aims to overcome the defects in the prior art and provides a Wi-Fi coverage system and method based on a wireless multi-hop self-organizing network.
In order to achieve the above purpose, the invention is realized by the following technical scheme:
the Wi-Fi coverage system based on the wireless multi-hop self-organizing network comprises a plurality of data groups, a gateway and an Ethernet, wherein data transmission is carried out between the plurality of data groups and the gateway, data transmission is carried out between the gateway and the Ethernet, the data groups comprise user equipment groups, wi-Fi coverage modules and data forwarding modules based on a wireless multi-hop self-organizing network communication protocol, the user equipment groups are in wireless connection with the Wi-Fi coverage modules, data transmission is carried out between the Wi-Fi coverage modules and the data forwarding modules based on the wireless multi-hop self-organizing network communication protocol, the plurality of data forwarding modules based on the wireless multi-hop self-organizing network communication protocol are in wireless connection through the wireless multi-hop self-organizing network, the Wi-Fi coverage modules are positioned in the Wi-Fi coverage network, and the user equipment groups comprise a plurality of user equipment.
The Wi-Fi coverage module is used for accessing the user equipment into the Wi-Fi coverage network.
A Wi-Fi coverage method based on a wireless multi-hop self-organizing network comprises the following steps:
after the Wi-Fi coverage equipment is powered on, broadcasting networking data packets to surrounding user equipment by the Wi-Fi coverage equipment, and waiting for response of the surrounding user equipment;
step two, after the Wi-Fi coverage equipment receives a user equipment response networking data packet, the user equipment completes Wi-Fi connection after passing WPA2 key verification, otherwise, the Wi-Fi coverage equipment continuously broadcasts the networking data packet to surrounding user equipment;
judging whether the data packet A is sent to a wireless multi-hop self-organizing network or a Wi-Fi coverage network according to the IP address domain of the data packet A of user equipment by the Wi-Fi coverage module;
if the Wi-Fi coverage module judges that the data packet is sent to the wireless multi-hop self-organizing network, the Wi-Fi coverage module sends the data packet A to a data forwarding module based on a wireless multi-hop self-organizing network communication protocol, the data forwarding module based on the wireless multi-hop self-organizing network communication protocol forwards the data packet A to a gateway module, and the gateway module sends the data packet A to the Ethernet; if the Wi-Fi coverage module judges that the data packet A is sent to the Wi-Fi coverage network, the Wi-Fi coverage module sends the data A to another user equipment in the same user equipment group.
The beneficial effects of the invention are as follows: the Wi-Fi coverage system combines a wireless multi-hop self-organizing network, reduces the cost of a user when the Wi-Fi coverage equipment is installed, expands the coverage range of the original Wi-Fi, and has the advantages of convenient installation and flexible movement.
Detailed Description
The technical scheme of the invention is further described below with reference to the attached drawings in the specification:
as shown in fig. 1, the Wi-Fi coverage system based on the wireless multi-hop ad hoc network comprises three data groups, a gateway 4 and an ethernet 5, wherein data transmission is performed between the three data groups and the gateway 4, data transmission is performed between the gateway 4 and the ethernet 5, the data groups all comprise a user equipment group 1, a Wi-Fi coverage module 2 and a data forwarding module 3 based on a wireless multi-hop ad hoc network communication protocol, the user equipment group 1 is in wireless connection with the Wi-Fi coverage module 2, data transmission is performed between the Wi-Fi coverage module 2 and the data forwarding module 3 based on the wireless multi-hop ad hoc network communication protocol, the plurality of data forwarding modules 3 based on the wireless multi-hop ad hoc network communication protocol are in wireless connection through the wireless multi-hop ad hoc network, the Wi-Fi coverage module 2 is in the Wi-Fi coverage network, and the user equipment group 1 comprises two user equipment. The Wi-Fi coverage module 2 of the present invention is used to access the user equipment 1 into a Wi-Fi coverage network.
The data forwarding module based on the wireless multi-hop self-organizing network communication protocol mainly realizes the wireless multi-hop self-organizing network communication protocol stack, forwards upper layer data into the wireless multi-hop self-organizing network, and then completes the function of data communication among different user equipment in the network. The protocol stack belongs to a data link layer communication protocol of an OSI reference module, is completely compatible with a TCP/IP communication protocol, is seamlessly embedded into an original communication protocol stack, and better supports application of upper layer software. The protocol periodically broadcasts a data packet to the outside for use in discovering the presence of surrounding user devices. Moreover, the protocol also periodically detects the link packet loss rate and the transmission delay through the data packet, thereby realizing the link quality evaluation. And then, the protocol selects the user equipment with the optimal link quality as the next-hop data packet forwarding target equipment. Therefore, when the external environment or the equipment position changes, the module can form a new network topology according to the new link quality evaluation result, and then adapt to the external change.
The Wi-Fi coverage module inherits the implementation method of the traditional Wi-Fi access point equipment, is connected with the data forwarding module based on the wireless multi-hop self-organizing network communication protocol, and has the function of accessing the user equipment Wi-Fi into the network. The Wi-Fi coverage module judges whether to send the data packet to the wireless multi-hop self-organizing network or the Wi-Fi network according to the IP address field of the data packet. Therefore, if the user equipment wants to access the ethernet data, the Wi-Fi overlay module sends the user equipment data packet to the data forwarding module based on the wireless multi-hop ad hoc network communication protocol, and the data forwarding module based on the wireless multi-hop ad hoc network communication protocol forwards the data packet to the gateway module.
The gateway module is mainly used for realizing data interaction between the data forwarding module and the Ethernet. The gateway includes DHCP services and connection port routing forwarding functions. And the DHCP service function provides dynamic IP addresses for each device in the system, thereby reducing the extra configuration steps of users. Meanwhile, the routing forwarding function of the connection port determines whether the data packet should be forwarded to the wireless multi-hop self-organizing network or the Wi-Fi coverage network by judging the IP address domain of the network data packet by the gateway, thereby completing the function of data interaction forwarding between user equipment in the same user equipment group and between the user equipment and the Ethernet.
A Wi-Fi coverage method based on a wireless multi-hop self-organizing network comprises the following steps:
after the Wi-Fi coverage equipment is powered on, broadcasting networking data packets to surrounding user equipment by the Wi-Fi coverage equipment, and waiting for response of the surrounding user equipment;
step two, after the Wi-Fi coverage equipment receives a user equipment response networking data packet, the user equipment completes Wi-Fi connection after passing WPA2 key verification, otherwise, the Wi-Fi coverage equipment continuously broadcasts the networking data packet to surrounding user equipment;
judging whether the data packet A is sent to a wireless multi-hop self-organizing network or a Wi-Fi coverage network according to the IP address domain of the data packet A of user equipment by the Wi-Fi coverage module;
if the Wi-Fi coverage module judges that the data packet is sent to the wireless multi-hop self-organizing network, the Wi-Fi coverage module sends the data packet A to a data forwarding module based on a wireless multi-hop self-organizing network communication protocol, the data forwarding module based on the wireless multi-hop self-organizing network communication protocol forwards the data packet A to a gateway module, and the gateway module sends the data packet A to the Ethernet; if the Wi-Fi coverage module judges that the data packet A is sent to the Wi-Fi coverage network, the Wi-Fi coverage module sends the data A to another user equipment in the same user equipment group.
And when the Wi-Fi coverage equipment is powered on, finishing initialization configuration. The networking data packet is first broadcast to surrounding user devices and waits for surrounding user devices to answer. After receiving the response data packet, the user equipment judges the optimal transmission point in the neighbor equipment according to the received data packet loss rate and the transmission delay. To this end, the network establishment was successful.
Wi-Fi coverage equipment opens Wi-Fi equipment access to surrounding user equipment, the user Wi-Fi equipment discovers adjacent Wi-Fi coverage equipment, and Wi-Fi connection is completed after the Wi-Fi coverage equipment passes WPA2 key verification.
For the gateway, after power-on, the gateway starts the DHCP service and establishes the port routing. The gateway will monitor DHCP requests until a client DHCP request is received. Upon receiving the client request, the Wi-Fi overlay device based on the wireless multi-hop ad hoc network will fetch the available address from the address pool and send it to the requesting user device.
Meanwhile, the gateway monitors the data packets of each port, and if the data packets are received, the gateway judges whether to send the corresponding data packets to the wireless multi-hop self-organizing network or the Wi-Fi coverage network according to the address domain corresponding to the IP address of the data packets.
The Wi-Fi coverage system combines Wi-Fi coverage equipment and a wireless multi-hop self-organizing network, reduces the cost of a user when the Wi-Fi coverage equipment is installed, expands the original Wi-Fi coverage range, has the advantages of convenient installation and flexible movement, and can avoid wiring cost and additional configuration requirements when being installed.
It should be noted that the above list is only one specific embodiment of the present invention. It is obvious that the present invention is not limited to the above embodiment, and many variations are possible, for example, the number of user equipment groups, wi-Fi coverage modules, and data forwarding modules based on the wireless multi-hop ad hoc network communication protocol are all several, and the user equipment groups include several user equipments.
In general, all modifications that one of ordinary skill in the art could directly derive from or envision the disclosure of the present invention should be considered as being within the scope of the present invention.