Background technology
WLAN is as important supplement and the extension of wired networking mode, and forward is broadband, intelligent, multimedization, personalized direction advance.New technology, new system, new business continues to bring out and merge gradually and differentiation, is greatly promoting the development of radio network technique, is expanding the network application field rapidly.
WLAN (wireless local area network) based on 802.11 agreements comprises the elements such as website (Station), distribution system (DistributionSystem, DS), access point (Access Point, AP), critical point (Portal), wireless access controller (AC).Wherein most critical is wireless access and control system, comprises access point (AP) and wireless access controller (AC).
Access point can ensure the Internet resources of authorizing website to the restriction of website access, avoids the attack of illegal website to access point.Access point has following two kinds to the method for website access at present:
1. the AP end limits the part MAC Address, allows or refuses these MAC accesses, and this method limited range is limited, can only be for the MAC Address of limited number.
2. the AP end is encrypted, and the website access needs password, cipher mode that WEP, WPA, WAPI are arranged, and WEP is static password, than being easier to, is cracked, and WPA and WAPI encrypt relatively safe, but need the Third Party Authentication server.
Summary of the invention
The purpose of this invention is to provide a kind of WLAN access device reliable method that access limits to terminal.By expanding 802.11 link layer protocols, in the access request that terminal equipment sends, add authentication information, access device is verified this authentication, satisfactory just permission access.
Technical scheme of the present invention provides a kind of access of terminal based on 802.11 agreements in WLAN restriction method:
Expand the Association Request request protocol of the terminal of 802.11 link layers, be included in Association Request request protocol and increase an Extended Protocol part, described Extended Protocol partly comprises the content after component identification, terminal MAC Address are encrypted, and the terminal MAC Address is by the string length of the content after encrypting; Terminal generates Association Request request according to the Association Request request protocol after expanding, and sends to access device;
After access device receives the Association Request request of terminal, take out the content of Extended Protocol part and verify, be verified and just allow access; The checking implementation is as follows,
Access device is searched component identification in Association Request request, according to the string length of terminal MAC Address by the content after encrypting, take out the content after the terminal MAC Address is encrypted; Then in this locality, according to the cryptographic algorithm consistent with terminal, the terminal MAC Address is encrypted, content after the content of gained after local cipher and the terminal MAC Address that please seek out from Association Request are encrypted is compared, if unanimously by checking.
The relative prior art of the present invention has following advantage:
1. access device just carries out authentication to the terminal access request in driving, and the access request of illegal terminal is without further resolving authentication.
2. the agreement of 802.11 link layers is expanded, the terminal of only having driving to carry out revising could be passed through authentication, improves reliability.
Relatively with terminal MAC is contrasted to the method for restriction, the method can limit and can prevent from forging the illegal terminal access of MAC in batches.
Embodiment
Below in conjunction with drawings and Examples, describe technical solution of the present invention in detail.
The present invention proposes to expand the Association Request request protocol of 802.11 link layer termination, in agreement, increases an authentication part, and the authentication information after terminal will be encrypted adds Extended Protocol partly to send to AP; After AP received the Association Request request of STA, the content of taking out Extended Protocol, verified authentication information, is verified and just allows access.In the art, Association Request represents associated request.During concrete enforcement, can modify and realize the present invention by the driving to terminal and access point apparatus.
Embodiment is achieved as follows:
Adopt the WLAN access device as access point (AP).Driving to the WLAN terminal equipment is expanded, and Fig. 1 is the protocol format of terminal access request frame, based on mark 802.11 protocol formats, realizes, an Extended Protocol that provides by structure shown in Figure 2 is provided in Frame Body.
As Fig. 1, the protocol format of terminal access request frame comprises:
Frame Control, control for frame, takies byte length 2.
Duration/ID, cycle/ID, take byte length 2 for survival.
Address 1, is address 1, takies byte length 6.
Address 2, are address 2, take byte length 6.
Address 3, are address 3, take byte length 6.
Sequence Control, control for sequence, takies byte length 2.
Address 4, are address 4, take byte length 6.
QOS Control, control for service quality, takies byte length 2.
Frame Body, be the frame entity, by standard protocol specifies, takies byte length 0 ~ 23124.In prior art, in Frame Body, can comprise the structure in a plurality of Fig. 2, the present invention increases a structure so that Extended Protocol to be provided.
FCS, be Frame Check Sequence, takies byte length 4.
As Fig. 2, the Extended Protocol that adds partly is the authentication part, comprising:
Element ID, be component identification, takies byte length 1.During concrete enforcement, Element ID can choose a reservation numeral that is not taken by 802.11 standard agreements in prior art, for example from 17 ~ 31,45,51 ~ 126, chooses.In embodiment, the corresponding Element ID of certain terminal is chosen to 70 in the untapped retention of 802.11 agreement.Access device will extract corresponding authentication part according to identical component identification value.
Length, for the string length of terminal MAC Address by the content after encrypting, take byte length 1.
Information, the content (being the content after Address 1 is encrypted) for after the encryption of terminal MAC Address, take byte length length consistent with the Length field contents.
Terminal equipment adds the data with Fig. 2 content in Fig. 1 access request Frame, sends to the appointment access device.
Driving to the WLAN access device is expanded, access device is after receiving the access request frame of terminal, parse the content in Frame Body, data in Frame Body are to be got up by a plurality of textural associations shown in Figure 2, it is 70 structure that access device finds Element ID therein, according to the length of Length, take out the content in Information.Then according to the cryptographic algorithm with terminal is appointed, the Address 1 in Fig. 1 is encrypted to (namely in access device this locality, according to the cryptographic algorithm consistent with terminal, being encrypted), content after encrypting and the content in Information are compared, if consistent, illustrate that this terminal is the terminal that allows access.If Frame Body do not find Element ID be 70 structure or the content in Information by authentication, do not allow this terminal access.
Above-mentioned example is preferably execution mode of the present invention; but embodiments of the present invention are not restricted to the described embodiments; other any do not run counter to change, the modification done under Spirit Essence of the present invention and principle, substitutes, combination, simplify the substitute mode that all should be equivalence, within being included in protection scope of the present invention.