Summary of the invention
It is an object of the invention to overcome in prior art not enough, it is provided that a kind of Wi-based on wireless multihop self-organizing network
Fi covering system and method.
In order to achieve the above object, the present invention is achieved by the following technical solutions:
Wi-Fi covering system based on wireless multihop self-organizing network, including several data sets, gateway, Ethernet, institute
State and carry out data transmission between several data set and gateways, carry out data transmission between described gateway and Ethernet, described number
All include that group of user equipments, Wi-Fi overlay module, data based on wireless multi-hop ad hoc network communication agreement forward mould according to group
Block, described group of user equipments and Wi-Fi overlay module wireless connections, described Wi-Fi overlay module with based on wireless multi-hop from group
Knit and carry out data transmission between the data forwarding module of network communication protocol, described several based on wireless multihop self-organizing network
By wireless multihop self-organizing network wireless connections between the data forwarding module of communication protocol, at described Wi-Fi overlay module
In Wi-Fi overlay network, described group of user equipments includes several subscriber equipmenies.
The Wi-Fi overlay module of the present invention is for accessing subscriber equipment in Wi-Fi overlay network.
Wi-Fi covering method based on wireless multihop self-organizing network, comprises the following steps:
After step one, Wi-Fi overlay device power on, described Wi-Fi overlay device is to surrounding user equipments broadcast networking number
According to bag, and wait surrounding user equipments response;
Step 2, after Wi-Fi overlay device receives a subscriber equipment response networking packet, a subscriber equipment
Completing Wi Fi by WPA2 key after being verified to connect, otherwise Wi-Fi overlay device is constantly to surrounding user equipments broadcast networking number
According to bag;
Step 3, Wi-Fi overlay module can judge packet according to the IP address field of the packet A of a subscriber equipment
A is sent to wireless multihop self-organizing network or Wi-Fi overlay network;
If step 4 Wi-Fi overlay module judges to deliver a packet to wireless multihop self-organizing network, then Wi Fi covers
Packet A can be issued data forwarding module based on wireless multi-hop ad hoc network communication agreement by cover module, then by based on nothing
Packet A is transmitted to gateway module by the data forwarding module of line multi-hop ad hoc network communication agreement, and described gateway module is again
Packet A is sent to Ethernet;If Wi-Fi overlay module judges packet A is sent to Wi-Fi overlay network, then Wi Fi
Data A are sent to another subscriber equipment being in same group of user equipments by overlay module.
Beneficial effects of the present invention is as follows: Wi-Fi covering system of the present invention combines wireless multihop self-organizing network, reduces
Cost when Wi-Fi overlay device is installed by user, extends the scope that original Wi-Fi covers, and has again installation side simultaneously
Just, mobile advantage flexibly.
Detailed description of the invention
Below in conjunction with Figure of description, technical scheme is described further:
As it is shown in figure 1, Wi-Fi covering system based on wireless multihop self-organizing network, including three data sets, gateway 4,
Ethernet 5, carries out data transmission between described three data sets and gateway 4, carries out data between described gateway 4 and Ethernet 5
Transmission, described data set all includes group of user equipments 1, Wi-Fi overlay module 2, assists based on wireless multi-hop ad hoc network communication
The data forwarding module 3 of view, described group of user equipments 1 and Wi-Fi overlay module 2 wireless connections, described Wi-Fi overlay module 2
And carry out data transmission between data forwarding module 3 based on wireless multi-hop ad hoc network communication agreement, several bases described
By the wireless company of wireless multihop self-organizing network between the data forwarding module 3 of wireless multi-hop ad hoc network communication agreement
Connecing, described Wi-Fi overlay module 2 is in Wi-Fi overlay network, and described group of user equipments 1 includes two subscriber equipmenies.This
Bright Wi-Fi overlay module 2 is for accessing subscriber equipment 1 in Wi-Fi overlay network.
Described data forwarding module based on wireless multi-hop ad hoc network communication agreement, mainly achieves wireless multi-hop certainly
Tissue network communication protocol stack, forwards upper layer data in wireless multihop self-organizing network, then completes in this network not
With the effect of data communication between subscriber equipment.This protocol stack belongs to the data link layer communication agreement of OSI referrer module, the most double
Hold tcp/ip communication agreement, it is achieved in the original communication protocol stack of seamless embedding, preferably support the application of upper layer software (applications).Agreement
Packet is surveyed in periodically overseas broadcast, is used for finding whether surrounding user equipments exists.Moreover, agreement is also by this packet
Link packet drop rate and transmission delay are done periodic detection, thus realizes link-quality assessment.Afterwards, agreement will select link-quality
Optimum subscriber equipment forwards target device as down hop packet.Therefore, when external environment or device location change, mould
Block can form new network topology according to new link-quality assessment result, then adapts to external world's change.
Described Wi-Fi overlay module, inherits the implementation method of tradition Wi-Fi access point apparatus, is connected to based on wireless
The data forwarding module of multi-hop ad hoc network communication agreement, by the function of subscriber equipment Wi-Fi access network.Wi-Fi covers
Module can be according to the IP address field of packet, it is judged that send it in wireless multihop self-organizing network or Wi-Fi network.Cause
This, if subscriber equipment desires access to Ethernet data, customer equipment data bag can be issued based on wireless many by Wi-Fi overlay module
Jump the data forwarding module of ad hoc network communication agreement, then turned by data based on wireless multi-hop ad hoc network communication agreement
Send out module and packet is transmitted to gateway module.
Described gateway module, mainly completes the realization of data interaction between data forwarding module and Ethernet.Gateway includes
DHCP service and connectivity port route forwarding function.DHCP service function, provides dynamic IP addressing for each equipment in system,
Thus decrease the configuration step that user is extra.Meanwhile, the route forwarding function of connectivity port is by allowing gateway judge network number
Determine that this packet should be forwarded to wireless multihop self-organizing network or Wi-Fi overlay network according to the IP address field of bag, from
And complete the data interaction between the subscriber equipment being in same group of user equipments and between subscriber equipment and Ethernet and turn
The function sent out.
Wi-Fi covering method based on wireless multihop self-organizing network, comprises the following steps:
After step one, Wi-Fi overlay device power on, described Wi-Fi overlay device is to surrounding user equipments broadcast networking number
According to bag, and wait surrounding user equipments response;
Step 2, after Wi-Fi overlay device receives a subscriber equipment response networking packet, a subscriber equipment
Completing Wi Fi by WPA2 key after being verified to connect, otherwise Wi-Fi overlay device is constantly to surrounding user equipments broadcast networking number
According to bag;
Step 3, Wi-Fi overlay module can judge packet according to the IP address field of the packet A of a subscriber equipment
A is sent to wireless multihop self-organizing network or Wi-Fi overlay network;
If step 4 Wi-Fi overlay module judges to deliver a packet to wireless multihop self-organizing network, then Wi Fi covers
Packet A can be issued data forwarding module based on wireless multi-hop ad hoc network communication agreement by cover module, then by based on nothing
Packet A is transmitted to gateway module by the data forwarding module of line multi-hop ad hoc network communication agreement, and described gateway module is again
Packet A is sent to Ethernet;If Wi-Fi overlay module judges packet A is sent to Wi-Fi overlay network, then Wi Fi
Data A are sent to another subscriber equipment being in same group of user equipments by overlay module.
When Wi Fi overlay device powers on, after completing initial configuration.First to surrounding user equipments broadcast networking data
Bag, and wait surrounding user equipments response.After receiving and receiving reply data bag, subscriber equipment can be according to the data received
Bag packet loss and transmission delay judge optimal transmission point in neighbor device.So far, network is successfully established.
Wi Fi equipment open to surrounding user equipments is accessed by Wi Fi overlay device, and discovery is faced by user's Wi Fi equipment
Near Wi Fi overlay device, after being verified by WPA2 key, is completed Wi Fi and connects.
For gateway, it starts DHCP service simultaneously and sets up port two processes of route after powering on.Gateway can be constantly
Monitor DHCP request, until receiving client DHCP request.After receiving client request, based on wireless multi-hop ad hoc
The Wi Fi overlay device of network will take out available address from address pool and be sent to ask subscriber equipment.
Meanwhile, gateway will monitor each port data bag, if receiving packet, then according to the address that its IP address is corresponding
Territory judges to be sent to corresponding data bag to wireless multihop self-organizing network or Wi-Fi overlay network.
Wi-Fi covering system of the present invention combines Wi Fi overlay device and wireless multihop self-organizing network, reduces user
Cost when installing Wi-Fi overlay device, extends the scope that original Wi-Fi covers, and has again easy for installation simultaneously, mobile
Advantage flexibly so that wiring cost and additional configuration requirement can be exempted when the present invention installs.
It should be noted that listed above is only a kind of specific embodiment of the present invention.It is clear that the invention is not restricted to
Upper embodiment, it is also possible to have many deformation, such as group of user equipments, Wi-Fi overlay module, based on wireless multihop self-organizing network
The data forwarding module of communication protocol is all several, and group of user equipments includes several subscriber equipmenies.
In a word, all changes that those of ordinary skill in the art can directly derive from present disclosure or associate
Shape, is all considered as protection scope of the present invention.