A kind of full room routing automatic network-building method and system
Technical field
The invention belongs to radio network technique fields, more particularly, to a kind of full room routing automatic network-building method and are
System.
Background technique
Currently, the attention rate covered to Wi-Fi signal is more next with the improvement of people's life quality, house is increasing
Higher, conventional router has not been well positioned to meet demand of the user to the network coverage, and Wi-Fi System comes into being.Entirely
Room routing can satisfy the increasing family's area of user and wider array of network coverage demand, and on the other hand, full room Wi-Fi is more
It is the foundation stone that wisdom family all hardware equipment is linked into network.Full room routing is a female router (GW) and multiple sub- roads
A route system being made up of device (RE) proprietary link, solves the covering problem of conventional router.
Aiming at the problem that how to connect female router and sub-router networking, current solution is to use
WPS technology networking, female router and sub-router are in networking, the EIC equipment identification code (PIN of female router addition sub-router
Code), the PIN code of sub-router is voluntarily configured by user, and therefore, PIN code is variable.When sub-router modifies PIN code
Or restore produce setting after, PIN code will change, thus make female router can not automatic identification sub-router, pass through group
Net connects and the route system of composition, then needs to add the new PIN code of sub-router again, troublesome in poeration, and not intelligence.
The patent of publication number CN106209430A discloses a kind of radio network extending method and wireless router, this method
Including:Multiple wireless routers are provided and form a wireless network prolongation structure, wherein at least one wireless router is as net
Brouter;The configuration page of the IP address of different segment, including IP address are set in the brouter administration page
1, IP address 2;In the middle setting bridge VAP and user VAP of the brouter, the use IP address 1, the user
VAP uses the IP address 2, which can be listened to acquisition by user terminal.The bridge VAP gives the next wireless routing
Device does bridge joint and uses;User VAP surfs the Internet to user terminal and uses, and realizing can simply and easily extend wireless router networks,
But after setting is produced in router recovery, then needs to re-start operation and be just able to achieve the networking of router, troublesome in poeration, not intelligence
Energy.
Compared with prior art, the present invention uses the MAC Address of router as identification code, when female router and sub-route
Device carries out brush machine or restores after producing setting, and female router and sub-router still are able to complete automatic network-building, improve use
The experience at family improves the stability of full room route system.
Summary of the invention
For the disadvantages described above and Improvement requirement of the prior art, the present invention provides a kind of full rooms to route automatic network-building method
And system, its purpose is to provide a kind of more stable and convenient full room routing network-building method and systems, thus solve existing
Technology is existing after sub-router modifies PIN code or restores to produce setting, and female router can not automatic identification sub-router
The technical issues of.
To achieve the above object, the present invention provides a kind of full rooms to route automatic network-building method, including step:
S1. it receives the certification request that sub-router is sent and is parsed;
S2. judged according to parsing result whether comprising the sub-router MAC Address in MAC Address database, if so,
It authenticates successfully, and sends authentication response to the sub-router;
S3. the association request that sub-router is sent is received, networking is completed according to the association request.
It further, further include step before step S1:
Sub-router MAC Address is obtained, MAC Address database is established according to the sub-router MAC Address of the acquisition.
It further, further include step before step S1:
MAC Address data in the MAC Address database are sent to Cloud Server.
It further, further include step before step S1:
Beacon frame signal is sent to sub-router, so that sub-router knows the presence of female router network.
It further, after step s 3, further include step:
Judge whether to receive encryption scheme information, if so, by the received cipher mode between router
Communication is encrypted.
Correspondingly, also provide a kind of full room routing automatic group network system, including:
First receiving module, for receiving the certification request of sub-router transmission;
Parsing module, for parsing the received certification request;
First judgment module, for whether being judged in MAC Address database according to the parsing result comprising the sub- road
By device MAC Address;
First sending module is used for when in MAC Address database including the sub-router MAC Address, to the son
Router sends authentication response;
Second receiving module, for receiving the association request of sub-router transmission;
Execution module, for completing networking according to the association request.
Further, further include:
Module is obtained, for obtaining sub-router MAC Address;
Module is established, for establishing MAC Address database according to the sub-router MAC Address of the acquisition.
Further, further include:
First sending module, for the MAC Address data in the MAC Address database to be sent to Cloud Server.
Further, further include:
Second sending module, for sending beacon frame signal to sub-router.
Further, further include:
Second judgment module receives encryption scheme information for judging whether.
Compared with prior art, the present invention having the following advantages:
Use the MAC Address of router as identification code, is taken using the uniqueness and invariance of MAC Address, and using cloud
Business device updates MAC Address database, after female router carries out brush machine or restores to produce setting with sub-router, female router
It still is able to complete automatic network-building with sub-router, improves the experience of user, improve the stability of full room route system.
Detailed description of the invention
Fig. 1 is a kind of full room routing automatic network-building method flow chart that embodiment one provides;
Fig. 2 is that a kind of full room that embodiment one provides routes automatic group network system structure chart;
Fig. 3 is a kind of full room routing automatic network-building method flow chart that embodiment two provides;
Fig. 4 is that a kind of full room that embodiment two provides routes automatic group network system structure chart.
Specific embodiment
Following is a specific embodiment of the present invention in conjunction with the accompanying drawings, technical scheme of the present invention will be further described,
However, the present invention is not limited to these examples.
Embodiment one
A kind of full room routing automatic network-building method is present embodiments provided, as shown in Figure 1, including step:
S11. it receives the certification request that sub-router is sent and is parsed;
S12. judged according to parsing result whether comprising the sub-router MAC Address in MAC Address database, if so,
Success is then authenticated, and sends authentication response to the sub-router;
S13. the association request that sub-router is sent is received, networking is completed according to the association request.
Female router receives the certification request (Authentication Request message) that sub-router is sent, and docks
The certification request of receipts is parsed, and the MAC Address field for the sub-router for including in certification request, the son that then will be obtained are obtained
The MAC Address of router is detected in the MAC Address database of female router itself, judge be in MAC Address database
No includes the MAC Address, if it is, authenticating successfully, and sends authentication response (Authentication to the sub-router
Response message), so that sub-router is known the successful result of certification;If not including the MAC Address in MAC Address database,
Then authentification failure, female router will not then make authentication response.
After sub-router only receives the authentication response that female router is sent, association request just is issued to female router
(Association Request) only works as sub-router and has passed through certification, may be eligible to propose that association is asked to female router
It asks, after female router receives the association request of sub-router transmission, makes associated response (Association according to association request
Response), complete and sub-router signal group network process.
It further, further include step before step S11:
Sub-router MAC Address is obtained, MAC Address database is established according to the sub-router MAC Address of the acquisition.
Before the certification request that female router receives that sub-router is sent, female router mac address database need to be completed
Foundation, sub-router is verified so as to subsequent.Sub-router need to be obtained by establishing female router mac address database
The mode of MAC Address, acquisition can be:Router mac address is known by router bottom label, is then manually entered into mother
In route system;It is also possible to:It is checked using cable by Telnet mode or from serial ports input order " iwconfig "
The MAC Address of sub-router.After obtaining the MAC Address of sub-router, the MAC Address that will acquire is stored, and is thus built
The MAC Address database of vertical mother's router.
The MAC Address database needs that female router is established are updated in time, guarantee the steady of full room route system with this
It is qualitative.User can connect the Wi-Fi signal of upper female router by mobile phone, then open cell phone managing APP, manually select and add
Add or delete the MAC Address of sub-router;User can also connect the wire signal or nothing of female router by PC network interface card
Line signal opens browser, and the gateway address of input router, into the administration page of router, selection is added or deleted
The MAC Address of sub-router.
It further, further include step before step S11:
MAC Address data in the MAC Address database are sent to Cloud Server.
Loss of data after setting is produced in female router recovery in order to prevent, and female router is establishing MAC Address database
MAC Address data in MAC Address database should be sent to Cloud Server afterwards, and keep timely cloud update, so i.e.
So that female router recovery is produced setting, can also restore data, keep the stability of full room route system.
It further, further include step before step S11:
Beacon frame signal is sent to sub-router, so that sub-router knows the presence of female router network.
After female router establishes MAC Address database, beacon frame signal should be sent to sub-router, for declaring
Show the presence of female router network, so that sub-router is known, sub-router has received the beacon frame signal that female router issues
Later, probe requests thereby (Probe Request message) can be issued to female router, net existing for region is scanned with this
Network.And female router receive can make after the probe requests thereby of sub-router transmission probe response (Probe Response message) to
Response is given, informs that sub-router mother's router network is compatible with this, continues to send to female router convenient for sub-router
Certification request.
Correspondingly, also providing a kind of full room routing automatic group network system, as shown in Fig. 2, including:
First receiving module 11, for receiving the certification request of sub-router transmission;
Parsing module 12, for parsing the received certification request;
First judgment module 13, for whether being judged in MAC Address database according to the parsing result comprising the son
Router mac address;
First sending module 14, for when in MAC Address database including the sub-router MAC Address, to described
Sub-router sends authentication response;
Second receiving module 15, for receiving the association request of sub-router transmission;
Execution module 16, for completing networking according to the association request.
After first receiving module 11 has received the certification request of sub-router transmission, by parsing module 12 to the certification request
It is parsed, the MAC Address of sub-router in certification request is obtained with this;First judgment module 13 parses parsing module 12
The sub-router MAC Address, detected in MAC Address database, judge in MAC Address database whether include
The MAC Address sends authentication response from the first sending module 14 to sub-router if it is, authenticating successfully;Second receives mould
Block 15 receives the association request that sub-router is sent, and completes networking according to the received association request by execution module 16.
Further, further include:
Module 17 is obtained, for obtaining sub-router MAC Address;
Module 18 is established, for establishing MAC Address database according to the sub-router MAC Address of the acquisition.
It obtains the MAC Address of the acquisition sub-router of module 17 and is sent to and establish module 18, establish module 18 according to reception
The MAC Address of sub-router establish MAC Address database.
Further, further include:
First sending module 14, for the MAC Address data in the MAC Address database to be sent to Cloud Server.
After establishing module 18 and establishing MAC Address database, then the information of database is sent to the first sending module
14, the information in MAC Address database is sent into a Cloud Server by the first sending module 14.
Further, further include:
Second sending module 19, for sending beacon frame signal to sub-router.
Second sending module 19 sends beacon frame signal to sub-router, so that sub-router knows female router network
In the presence of.
The present embodiment uses the MAC Address of router as identification code, using the uniqueness and invariance of MAC Address, and
MAC Address database is updated using Cloud Server, after female router carries out brush machine or restores to produce setting with sub-router,
Female router and sub-router still are able to complete automatic network-building, improve the experience of user, improve full room route system
Stability.
Embodiment two
A kind of full room routing automatic network-building method is present embodiments provided, as shown in figure 3, including step:
S21. it receives the certification request that sub-router is sent and is parsed;
S22. judged according to parsing result whether comprising the sub-router MAC Address in MAC Address database, if so,
Success is then authenticated, and sends authentication response to the sub-router;
S23. the association request that sub-router is sent is received, networking is completed according to the association request.
It further, further include step before step S21:
Sub-router MAC Address is obtained, MAC Address database is established according to the sub-router MAC Address of the acquisition.
It further, further include step before step S21:
MAC Address data in the MAC Address database are sent to Cloud Server.
It further, further include step before step S21:
Beacon frame signal is sent to sub-router, so that sub-router knows the presence of female router network.
It further, further include step after step S23:
S24. judge whether to receive encryption scheme information, if so, by the received cipher mode to router it
Between communication encrypted.
What is different from the first embodiment is that further including step after step S23:
S24. judge whether to receive encryption scheme information, if so, by the received cipher mode to router it
Between communication encrypted.
After the completion of female router is associated with the networking of sub-router, the communication between female router and sub-router is needed
It is encrypted.There are three types of the cipher modes of router:WEP;WPA-PSK(TKIP);WPA2-PSK(AES).System is silent
The cipher mode used is recognized for WPA2-PSK (AES), but user can configure other cipher modes in female route system, if with
Family is configured with other cipher modes, then is encrypted by the cipher mode of user configuration, otherwise, by system default cipher mode
It is encrypted, the password of sub-router and female router encryption is used as Crypted password using 8 after female router mac address.
The present embodiment the advantage is that compared to embodiment one:
After the completion of female router is associated with the networking of sub-router, the communication between mother and sons' router is carried out at encryption
Reason, further improves the safety of network system, while user can be allowed to select cipher mode, further improves
The experience of user.
Correspondingly, also providing a kind of full room routing automatic group network system, as shown in figure 4, including:
First receiving module 20, for receiving the certification request of sub-router transmission;
Parsing module 21, for parsing the received certification request;
First judgment module 22, for whether being judged in MAC Address database according to the parsing result comprising the son
Router mac address;
First sending module 23, for when in MAC Address database including the sub-router MAC Address, to described
Sub-router sends authentication response;
Second receiving module 24, for receiving the association request of sub-router transmission;
Execution module 25, for completing networking according to the association request.
Further, further include:
Module 26 is obtained, for obtaining sub-router MAC Address;
Module 27 is established, for establishing MAC Address database according to the sub-router MAC Address of the acquisition.
Further, further include:
First sending module 23, for the MAC Address data in the MAC Address database to be sent to Cloud Server.
Further, further include:
Second sending module 28, for sending beacon frame signal to sub-router.
Further, further include:
Second judgment module 29 receives encryption scheme information for judging whether.
What is different from the first embodiment is that further including the second judgment module 29.
Second judgment module 29 judges whether to receive use after execution module 25 completes networking according to the association request
Other cipher modes of family selection, if it is, adding by the cipher mode received to the communication between primary and secondary router
It is close.
After the completion of female router is associated with the networking of sub-router, the communication between mother and sons' router is carried out at encryption
Reason, further improves the safety of network system, while user can be allowed to select cipher mode, further improves
The experience of user.
Specific embodiment described herein is only an example for the spirit of the invention.The neck of technology belonging to the present invention
The technical staff in domain can make various modifications or additions to the described embodiments or replace by a similar method
In generation, however, it does not deviate from the spirit of the invention or beyond the scope of the appended claims.