WDS connection methods, WAP and terminal device
Technical field
The present invention relates to communication technical field, more particularly to a kind of WDS connection methods, WAP and terminal device.
Background technology
With increasing for wireless network covering area, wireless network access internet is connected using mobile terminals such as mobile phones
With regard to more and more.
One of popular technique as wireless network access authentication, Portal (door) certifications are in public WiFi
It is very conventional in (Wireless-Fidelity, Wireless Fidelity) certification, in verification process, when user accesses a certain wireless network
During network, the meeting automatic spring Portal pages, prompt user to input accounts information, internet is completed after accounts information certification success
Access.WDS (Wireless Distribution System, wireless distribution system), for realizing between wireless base station
Communication, to realize the extension of wireless network coverage, that is applied in wireless relay is very extensive.
But using in WDS mode connection procedures, link terminal is when connecting WAP, typically using user name
The mode of encrypted code is attached, i.e. SSID (Service Set Identifier, service set) need to be made into PSK (Pre-
SharedKey, PSK, wildcard pattern) mode or 802.1 authentication modes, and need to carry out the SSID mono- of Portal certifications
It is well matched into Open modes, it is seen that conflict between both be present, WAP needs manually when handling two kinds of connected modes
Enter the switching of row mode, it is relatively complicated.
The content of the invention
It is an object of the invention to provide a kind of WDS connection methods, WAP and terminal device, efficiently solve existing
The technical problem of the connection request of different modes can not be automatically processed during technology Portal.
Technical scheme provided by the invention is as follows:
A kind of WDS connection methods, applied to WAP, the WAP is configured as using Portal certifications
Mode is authenticated to terminal device, and storage inside has the identification information of the terminal device by Portal certifications, the WDS
Connection method includes:
The association request that receiving terminal apparatus is sent, and the terminal device is associated according to the association request;
Receive the text request that the associated terminal equipment is sent;
Judge whether the terminal device is connected using WDS modes according to the text request;If so,
According to the identification information judgment of the terminal device, whether it passes through Portal certifications;If so,
Let pass the terminal device, complete the WDS connections of the terminal device.
In the technical program, after WAP receives the text request of terminal device transmission, judging immediately should
What whether terminal device was attached using WDS connected modes, if so, determining whether the terminal device completes
Portal certifications, if completing, the terminal device of directly letting pass, realize the WDS connections of the terminal device, simple and convenient, nothing
Line access point is without according to different connected mode manual switching to corresponding mode of operation, using manpower and material resources sparingly, being carried for user
For facility.
It is further preferred that judge whether the terminal device is connected using WDS modes according to the text request in step
In connecing, if judging, terminal device is connected using WDS modes,
The Resource Locator address that redirection obtains is fed back into terminal device, completes the Portal certifications of terminal device.
In the technical program, if judging, the terminal device does not complete Portal certifications, and the association request sent
It is not to use WDS modes, is then directly entered the Portal authenticating steps of the terminal device, basis is provided for follow-up WDS connections,
Solve the authentication conflicts under different connected modes, provide the user facility.
It is further preferred that feeding back to terminal device in the Resource Locator address for obtaining redirection, complete terminal and set
After standby Portal certifications, including:
Portal server is stored the identification information feedback of the terminal device to WAP;
Terminal device disconnect with the connection of WAP, and association request is sent to wirelessly connecing using WDS connected modes
Access point.
In the technical program, if Portal server completes the Portal certifications of the terminal device, terminal device
The connection with the WAP is then turned off, the WAP is reconnected using WDS connected modes.So, subsequently should
When terminal device accesses the WAP using WDS connected modes, WAP all can directly be put according to its identification information
OK.
It is further preferred that the Resource Locator address that redirection obtains is fed back into terminal device in step, complete eventually
In the Portal certifications of end equipment, including:
Terminal device receives the Resource Locator address that WAP is sent, and is sent out according to the Resource Locator address
Web page is sent to ask to Portal server;
Terminal device receives the Web page that issues of Portal server, automatically the recognizing of prestoring of input in the Web page
Demonstrate,prove information and send to Portal server, to carry out authentication to the terminal device.
In the technical program, the Resource Locator address that terminal device is sent according to WAP gets Web page
After face, authentication information is filled in the Web page automatically according to the information to prestore, sends and is recognized into Portal server
Card, realizes the certification of terminal device, further realizes the wireless relay of the terminal device, provide the user facility.
It is further preferred that the Web page issued in step terminal device reception Portal server, automatically described
The authentication information to prestore is inputted in Web page and is sent to Portal server, in addition to:
The authentication information that Portal server receiving terminal apparatus is sent;
Portal server carries out authentication according to the authentication information received to terminal device;
If authentication success, Portal server complete the authentication to terminal device.
Present invention also offers a kind of WAP, the WAP is configured as using Portal authentication modes
Terminal device is authenticated, the WAP includes:
First processor, for handling each instruction;And
First memory, for being stored with by the identification information of the terminal device of Portal certifications and a plurality of for storing
Instruction, the instruction are loaded and performed suitable for first processor;The a plurality of instruction includes:
The association request that receiving terminal apparatus is sent, and the terminal device is associated according to the association request;
Receive the text request that the associated terminal equipment is sent;
Judge whether the terminal device is connected using WDS modes according to the text request;If so,
According to the identification information judgment of the terminal device, whether it passes through Portal certifications;If so,
Let pass the terminal device, complete the WDS connections of the terminal device.
In the technical program, after WAP receives the text request of terminal device transmission, judging immediately should
What whether terminal device was attached using WDS connected modes, if so, determining whether the terminal device completes
Portal certifications, if completing, the terminal device of directly letting pass, realize the WDS connections of the terminal device, simple and convenient, nothing
Line access point is without according to different connected mode manual switching to corresponding mode of operation, using manpower and material resources sparingly, being carried for user
For facility.
It is further preferred that judge whether the terminal device is connected using WDS modes according to the text request in instruction
In connecing, if judging, terminal device is connected using WDS modes,
The Resource Locator address that redirection obtains is fed back into terminal device, completes the Portal certifications of terminal device.
In the technical program, if judging, the terminal device does not complete Portal certifications, and the association request sent
It is not WDS modes, is then directly entered the Portal authenticating steps of the terminal device, basis is provided for follow-up WDS connections, solves
Authentication conflicts under different connected modes, provide the user facility.
It is further preferred that the Resource Locator address that redirection obtains is fed back into terminal device in instruction, complete eventually
After the Portal certifications of end equipment, in addition to:
Receive the identification information for the terminal device that Portal server issues and stored.
In the technical program, if Portal server completes the Portal certifications of the terminal device, with will the end
The identification information of end equipment is issued to radio reception device and stored.So, the follow-up terminal device uses WDS connected modes
When accessing the WAP, WAP all can directly let pass according to its identification information.
Present invention also offers a kind of terminal device, the terminal device supports WDS, and the terminal device includes:
Second processor, for handling each instruction;And
Second memory, for storing a plurality of instruction, the instruction is loaded and performed suitable for second processor;It is described more
Bar instruction includes:
Association request to WAP, realization is sent to associate with WAP;
Judge whether to complete Portal certifications in WAP;If so,
Text request is sent to WAP using WDS modes, completes WDS connections.
It is further preferred that in instruction judges whether to complete Portal certifications in WAP, if judging not having
Portal certifications are completed in the WAP, then,
Text request is sent to WAP using non-WDS modes.
In the technical program, in terminal device, judged whether according to the record of storage inside in the WAP
In complete Portal certifications, and then judge whether to connect using WDS modes, if it is not, explanation terminal device is not completed
Portal certifications, then into Portal authenticating steps, it is easy to follow-up WDS connections, simple and convenient, WAP is without basis
Different connected mode manual switchings uses manpower and material resources sparingly to corresponding mode of operation, provides the user facility.
Brief description of the drawings
Below by a manner of clearly understandable, preferred embodiment is described with reference to the drawings, to being inverted quantitative aerosol valve
Above-mentioned characteristic, technical characteristic, advantage and its implementation be further described.
Fig. 1 is a kind of embodiment schematic flow sheet of WDS connection methods in the present invention;
Fig. 2 is WDS connection method another embodiment schematic flow sheets in the present invention;
Fig. 3 is WAP schematic diagram in the present invention;
Fig. 4 is terminal device schematic diagram in the present invention.
Drawing reference numeral explanation:
100- WAPs, 110- first memories, 120- first processors, 200- terminal devices, 210- second are deposited
Reservoir, 220- second processors.
Embodiment
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, control is illustrated below
The embodiment of the present invention.It should be evident that drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing, and obtain other embodiments.
To make simplified form, part related to the present invention is only schematically show in each figure, their not generations
Its practical structures as product of table.
It is as shown in Figure 1 a kind of WDS connection methods provided by the invention, applied to WAP, WAP quilt
It is configured to be authenticated terminal device using Portal authentication modes, and storage inside has the terminal by Portal certifications to set
Standby identification information, it is seen that including in the WDS connection methods:
The association request that S10 receiving terminal apparatus is sent, and the terminal device is associated according to association request;
S20 receives the text request that associated terminal equipment is sent;
S30 judges whether terminal device is connected using WDS modes according to text request;If so, jump to step S40;
According to the identification information judgment of terminal device, whether it passes through Portal certifications to S40;If so, jump to step
S50;
S50 lets pass the terminal device, completes the WDS connections of the terminal device.
In the present embodiment, terminal device obtained by way of scanning open modes in WAP SSID it
Afterwards, association request is sent immediately to the WAP.During association request is sent, the WAP is obtained first
Identification information (such as MAC Address), whether Portal in the WAP is completed according to the identification information judgment afterwards
Certification, if having been completed Portal certifications, the association request of WDS modes is directly transmitted, Portal is otherwise directly entered and recognizes
Card process.
After WAP receives the text request of terminal device transmission, judge whether the terminal device uses immediately
WDS connected modes are attached, if so, further judging that it is according to the identification information (such as MAC Address) of the terminal device
It is no to complete Portal certifications, if the identification information storage of the terminal device illustrates this in the memory of WAP
Terminal device authenticated mistake, without further certification, terminal device access internet of directly letting pass, realize the terminal device
WDS connections.If the mark of the terminal device is not stored in the memory of WAP, alarm prompt user is sent.
Specifically, in the present embodiment, when terminal device connects WAP using WDS modes, the wireless access
Point is the main equipment in WDS connections, and terminal device is that the slave unit in WDS connections (initiates WDS connections, as relaying eventually
End).In the course of the work, after link terminal associates a certain WAP, judge complete in the WAP
Into Portal certifications, then the connection requests of WDS modes is sent to WAP.
Above-mentioned embodiment is improved to obtain present embodiment, as shown in Fig. 2 in the present embodiment, the WDS
Connection method includes:
The association request that S10 receiving terminal apparatus is sent, and the terminal device is associated according to association request;
S20 receives the text request that associated terminal equipment is sent;
S30 judges whether terminal device is connected using WDS modes according to text request;If so, jump to step S40;It is no
Then jump to step S60;
According to the identification information judgment of terminal device, whether it passes through Portal certifications to S40;If so, jump to step
S50;
S50 lets pass the terminal device, completes the WDS connections of the terminal device.
The Resource Locator address that redirection obtains is fed back to terminal device by S60, and the Portal for completing terminal device recognizes
Card.
In the present embodiment, terminal device obtained by way of scanning open modes in WAP SSID it
Afterwards, association request is sent immediately to the WAP.During association request is sent, the WAP is obtained first
Identification information (such as MAC Address), whether Portal in the WAP is completed according to the identification information judgment afterwards
Certification, if having been completed Portal certifications, the association request of WDS modes is directly transmitted, Portal is otherwise directly entered and recognizes
Card process.
After WAP receives the text request of terminal device transmission, judge whether the terminal device uses immediately
WDS connected modes are attached, if it is not, then being asked that obtained Resource Locator address will be redirected according to the text
(Uniform Resource Locator, URL) is issued to the terminal device, into Portal authenticating steps.
After terminal device receives the Resource Locator address of WAP transmission, according to the Resource Locator address
Web page is sent to ask to Portal server;After Portal server receives Web page request, by corresponding Web page
Face is issued to the terminal device.After terminal device obtains the Web page, the certification letter to prestore is inputted in Web page automatically
Cease (including user name, password etc.) and send to Portal server.
After the authentication information that Portal server receiving terminal apparatus is sent, according to the authentication information received to terminal
Equipment carries out authentication (checking is compared in the identity information that the information butt joint according to prestoring receives), if certification success,
Portal server sends certification success message to WAP, and the identification information of the terminal device is sent to wirelessly connecing
Stored in access point;Otherwise Portal server sends authentification failure message to WAP, refuses the terminal device
Access.
Afterwards, Portal certification success messages are fed back to the terminal device by WAP.Terminal device receives this
Feedback message, the connection with WAP is actively disconnected immediately, is obtained again through the mode of scanning in the WAP
The SSID of open modes, and text request is resend by WDS modes.After WAP receives text request,
The identification information storage of the terminal device is judged in the list by Portal certifications, and terminal device access of directly letting pass is mutual
Networking.
Specifically, in the present embodiment, when terminal device connects WAP using WDS modes, the wireless access
Point is the main equipment in WDS connections, and terminal device is that the slave unit in WDS connections (initiates WDS connections, as relaying eventually
Hold repeater).In the course of the work, after link terminal associates a certain WAP, judge wirelessly to connect at this
Portal certifications are not completed in access point, then the counterfeit STA of link terminal (such as mobile phone terminal) interrelational form sends text and asked
Ask to WAP, into the Portal verification process of link terminal.After completing Portal certifications, link terminal is led immediately
Dynamic circuit breaker is opened to be associated with WAP, is resend the text request of WDS connections to WAP, is realized trunking
Network connection.
WAP schematic diagram provided by the invention is illustrated in figure 3, the specific WAP is configured as using
Portal authentication modes are authenticated to terminal device, it can be seen that including in the WAP 100:First
Processor 110, for handling each instruction;And first memory 120, for being stored with by the terminal devices of Portal certifications
Identification information and for storing a plurality of instruction, instruction is loaded and performed suitable for first processor.
In one embodiment, a plurality of instruction includes:
The association request that receiving terminal apparatus is sent, and the terminal device is associated according to association request;
Receive the text request that associated terminal equipment is sent;
Judge whether terminal device is connected using WDS modes according to text request;If so,
According to the identification information judgment of terminal device, whether it passes through Portal certifications;If so,
Let pass the terminal device, complete the WDS connections of the terminal device.
In another embodiment, a plurality of instruction includes:
The association request that receiving terminal apparatus is sent, and the terminal device is associated according to association request;
Receive the text request that associated terminal equipment is sent;
Judge whether terminal device is connected using WDS modes according to text request;If it is not, will then it redirect obtained money
Source Locator address feeds back to terminal device, completes the Portal certifications of terminal device;If so,
According to the identification information judgment of terminal device, whether it passes through Portal certifications;If so,
Let pass the terminal device, complete the WDS connections of the terminal device.
Based on this, in the course of the work, terminal device obtains open modes in WAP by way of scanning
After SSID, association request is sent immediately to the WAP.During association request is sent, it is wireless that this is obtained first
The identification information (such as MAC Address) of access point, whether completed afterwards according to the identification information judgment in the WAP
Portal certifications, if having been completed Portal certifications, the association request of WDS modes is directly transmitted, otherwise sends Portal
The association request of authentication mode, into Portal authentication modes.
After WAP receives the text request of terminal device transmission, judge whether the terminal device uses immediately
WDS connected modes are attached, if so, then further judging it according to the identification information (such as MAC Address) of the terminal device
Whether Portal certification is completed, if the identification information storage of the terminal device illustrates in the memory of WAP
The terminal device authenticated mistake, without further certification, terminal device access internet of directly letting pass, realize that the terminal is set
Standby WDS connections.
If WAP judges that the terminal device is not by WDS connected modes, will be reset according to text request
The terminal device is issued to obtained Resource Locator address, into Portal authenticating steps.Terminal device receives wirelessly
After the Resource Locator address that access point is sent, Web page is sent according to the Resource Locator address and asks to Portal to take
Business device;After Portal server receives Web page request, corresponding Web page is issued to the terminal device.Terminal is set
After the Web page is obtained, it is concurrent that the authentication information (including user name, password etc.) to prestore is inputted in Web page automatically
Deliver to Portal server.
After the authentication information that Portal server receiving terminal apparatus is sent, according to the authentication information received to terminal
Equipment carries out authentication (checking is compared in the identity information that the information butt joint according to prestoring receives), if certification success,
Portal server sends certification success message to WAP, and the identification information of the terminal device is sent to wirelessly connecing
Stored in access point;Otherwise Portal server sends authentification failure message to WAP, refuses the terminal device
Access.
Afterwards, Portal certification success messages are fed back to the terminal device by WAP.Terminal device receives this
Feedback message, the connection with WAP is actively disconnected immediately, is obtained again through the mode of scanning in the WAP
The SSID of open modes, and text request is resend by WDS modes.After WAP receives text request,
The identification information storage of the terminal device is judged in the list by Portal certifications, and terminal device access of directly letting pass is mutual
Networking.
Terminal device schematic diagram provided by the invention is illustrated in figure 4, the specific terminal device supports WDS, can from figure
To find out, include in the terminal device 200:Second processor 210, for handling each instruction;And second memory 220, use
In storing a plurality of instruction, instruction is loaded and performed suitable for second processor;A plurality of instruction includes:
Association request to WAP, realization is sent to associate with WAP;
Judge whether to complete Portal certifications in WAP;If so, text request is sent to nothing using WDS modes
Line access point, complete WDS connections;Otherwise, text request is sent to WAP using non-WDS modes.
In the present embodiment, terminal device obtained by way of scanning open modes in WAP SSID it
Afterwards, association request is sent immediately to the WAP.During association request is sent, the WAP is obtained first
Identification information (such as MAC Address), whether Portal in the WAP is completed according to the identification information judgment afterwards
Certification, if having been completed Portal certifications, the association request of WDS modes is directly transmitted, otherwise send Portal authenticating parties
The association request of formula, into Portal authentication modes.After completing Portal certifications, terminal device actively disconnects and wireless access
The connection of point, the SSID of open modes in the WAP is obtained again through the mode of scanning, and by WDS modes again
Text request is sent, realizes the access of terminal device internet.Specifically, here, WAP is that the master in WDS connections sets
Standby, terminal device is the slave unit (WDS connections being initiated, as link terminal) in WDS connections.
It should be noted that above-described embodiment can independent assortment as needed.Described above is only the preferred of the present invention
Embodiment, it is noted that for those skilled in the art, do not departing from the premise of the principle of the invention
Under, some improvements and modifications can also be made, these improvements and modifications also should be regarded as protection scope of the present invention.