Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
For making the advantage of technical solution of the present invention clearly, below in conjunction with drawings and Examples, the present invention is elaborated.
Embodiment one
The implementation method that the present embodiment provides a kind of WLAN (wireless local area network) to connect, as shown in Figure 1, described method comprises:
101, when work station receives the erroneous frame of AP transmission, the operation of initiating to go to associate or go authentication is attempted according to the type selecting of erroneous frame.
Wherein, the type of described erroneous frame comprises:
Mistake one class frame, mistake two class frame or wrong three class frames.
102, judge whether the number of attempt of the operation of described selection reaches pre-determined number.
103, judge whether the time of the operation of described selection is above standard the time.
If the number of attempt of the operation of 104 described selections does not reach described pre-determined number, and the time of the operation of described selection is not above standard the time, then after waiting a predetermined period, work station initiates the transmission of Frame again to AP.
Wherein, described the scheduled time=number of attempt × T, wherein T is default time value; The described standard time goes to associate or go the time required for authentication for initiating.
The implementation method that the WLAN (wireless local area network) that the embodiment of the present invention provides connects, when work station receives erroneous frame, attempts initiation and goes association or go authentication; Judge to initiate go association or go the number of attempt of authentication whether to reach pre-determined number; Judge to attempt going association or going the time of authentication whether to be above standard the time; If described in go association or go the number of attempt of authentication not reach described pre-determined number, and attempt go association or go the time of authentication not to be above standard the time, then after waiting a predetermined period, again initiate the transmission of Frame.Compared with prior art, the WLAN (wireless local area network) connection that the embodiment of the present invention can avoid the strong jamming owing to occurring in the short time to cause goes offline, and promotes the satisfaction that user uses.
In the present embodiment, because work station can receive dissimilar erroneous frame, be thus described according to the erroneous frame of different types respectively below.
Embodiment two
The implementation method that the present embodiment provides a kind of WLAN (wireless local area network) to connect, as shown in Figure 2, described method comprises:
201, work station receives the mistake three class frame that AP sends.In this step, when work station be in certification and association status time, work station receives wrong three class frames.
202, work station is selected to attempt initiation and is gone association.
203, judge to initiate to go the number of attempt associated whether to reach pre-determined number.
204, judge to attempt going the time associated whether to reach the standard time.
If 205 described initiations go the number of attempt associated not reach pre-determined number and described trial goes the time associated not reach the standard time, then work station initiates the transmission of one, two class frames again to AP after waiting a predetermined period.
Go the time associated to reach the standard time if 206 described initiations go the number of attempt associated to reach pre-determined number or described trial, then work station is by certification corresponding for described wrong three class frames and association status moves to certification and not associated state.
Further, described the scheduled time=number of attempt × T, wherein T is default time value;
The described standard time goes to associate or go the time required for authentication for initiating.
The implementation method that the WLAN (wireless local area network) that the embodiment of the present invention provides connects, when work station receives wrong three class frame, attempts initiation and goes association; Judge to initiate to go the number of attempt associated whether to reach pre-determined number; If described in go associate number of attempt do not reach described pre-determined number, and attempt go associate time be not above standard the time, then after waiting a predetermined period, again initiate the transmission of one, two class Frames; If described in go the number of attempt associated to reach described pre-determined number, or attempt going the time associated to be above standard the time, then initiate to go association, by certification corresponding for described wrong three class frames and association status moves to certification and not associated state.Compared with prior art, the WLAN (wireless local area network) connection that the embodiment of the present invention can avoid the strong jamming owing to occurring in the short time to cause goes offline, and promotes the satisfaction that user uses.
In the present embodiment, when work station is in certification and association status, or be in certification and not associated state time, all can receive wrong two class frames.Below be described respectively.
Embodiment three
The implementation method that the present embodiment provides a kind of WLAN (wireless local area network) to connect, as shown in Figure 3, described method comprises:
301, work station receives the mistake one class frame of AP transmission or wrong two class frames.In this step, when work station is in certification and association status, work station receives the mistake one class frame of AP transmission or wrong two class frames.
302, work station is selected to attempt initiation and is gone authentication.
303, judge to initiate to go the number of attempt of authentication whether to reach pre-determined number.
304, judge to attempt going the time of authentication whether to reach the standard time.
If 305 described initiations go the number of attempt of authentication not reach pre-determined number and described trial goes the time of authentication not reach the standard time, then work station initiates the transmission of a class frame again to AP after waiting a predetermined period.
If 306 described initiations go the number of attempt of authentication to reach pre-determined number or described trial goes the time of authentication to reach the standard time, then work station is by a described wrong class frame or certification corresponding to wrong two class frames and association status moves to unverified and not associated state.
Further, described the scheduled time=number of attempt × T, wherein T is default time value;
The described standard time goes to associate or go the time required for authentication for initiating.
The implementation method that WLAN (wireless local area network) that the embodiment of the present invention provides connects, work station be in certification and association status time, when receiving a wrong class frame or wrong two class frame, selecting to attempt initiation and going authentication; Judge to initiate to go the number of attempt of authentication whether to reach pre-determined number; If described in go the number of attempt of authentication not reach described pre-determined number, and attempt go the time of authentication not to be above standard the time, then after waiting a predetermined period, again initiate the transmission of a class Frame; If described in go the number of attempt of authentication to reach described pre-determined number, or attempt going the time of authentication to be above standard the time, then initiate to go authentication, by certification and association status moves to unverified and not associated state.Compared with prior art, the WLAN (wireless local area network) connection that the embodiment of the present invention can avoid the strong jamming owing to occurring in the short time to cause goes offline, and promotes the satisfaction that user uses.
Embodiment four
The implementation method that the present embodiment provides a kind of WLAN (wireless local area network) to connect, as shown in Figure 4, described method comprises:
401, work station receives the mistake two class frame that AP sends.In this step, when work station be in certification and not associated state time, work station receive only AP send mistake two class frame.
402, work station is selected to attempt initiation and is gone authentication.
403, judge to initiate to go the number of attempt of authentication whether to reach pre-determined number.
404, judge to attempt going the time of authentication whether to reach the standard time.
If 405 described initiations go the number of attempt of authentication not reach pre-determined number and described trial goes the time of authentication not reach the standard time, then work station initiates the transmission of a class frame again to AP after waiting a predetermined period.
If 406 described initiations go the number of attempt of authentication to reach pre-determined number or described trial goes the time of authentication to reach the standard time, then work station by certification corresponding for described wrong two class frames and not associated state transition to unverified and not associated state.
Further, described the scheduled time=number of attempt × T, wherein T is default time value;
The described standard time goes to associate or go the time required for authentication for initiating.
The implementation method that WLAN (wireless local area network) that the embodiment of the present invention provides connects, when work station is in unverified and association status, when receiving wrong two class frame, attempts initiation and going authentication; Judge to initiate to go the number of attempt of authentication whether to reach pre-determined number; If described in go the number of attempt of authentication not reach described pre-determined number, and attempt go the time of authentication not to be above standard the time, then after waiting a predetermined period, again initiate the transmission of a class Frame; If described in go the number of attempt of authentication to reach described pre-determined number, or attempt going the time of authentication to be above standard the time, then initiate to go authentication, by unverified and association status moves to unverified and not associated state.Compared with prior art, the WLAN (wireless local area network) connection that the embodiment of the present invention can avoid the strong jamming owing to occurring in the short time to cause goes offline, and promotes the satisfaction that user uses.
Embodiment five
The implement device that the present embodiment provides a kind of WLAN (wireless local area network) to connect, as shown in Figure 5, described device comprises:
Erroneous frame processing module 51, for when receiving erroneous frame, attempts the operation of initiating to go to associate or go authentication according to the type selecting of erroneous frame.
First judge module 52, for judging whether the number of attempt of the operation of described selection reaches pre-determined number.
Second judge module 53, for judging whether the time of the operation of described selection is above standard the time.
Delivery module 54, if do not reach described pre-determined number for the number of attempt of the operation of described selection, and the time of the operation of described selection is not above standard the time, then after waiting a predetermined period, again initiate the transmission of Frame.
Concrete, when the type of described erroneous frame comprises mistake three class frame, described erroneous frame processing module 51, specifically for when receiving described wrong three class frame, selects the operation attempting initiating to go to associate;
If described delivery module 54 specifically for described in go associate number of attempt do not reach pre-determined number, and attempt go associate time be not above standard the time, then after waiting a predetermined period, again initiate the transmission of a class frame and two class frames.
Concrete, when the type of described erroneous frame comprises mistake two class frame, described erroneous frame processing module 51, specifically for when receiving described wrong two class frame, selects the operation of attempting initiating to go authentication;
If described delivery module 54 specifically for described in go authentication times not reach described pre-determined number, and attempt go the time of authentication not to be above standard the time, then after waiting a predetermined period, again initiate the transmission of a class frame.
When the type of described erroneous frame comprises mistake one class frame, described erroneous frame processing module 51, specifically for when receiving a described wrong class frame, selects the operation of attempting initiating to go authentication;
If described delivery module 51 specifically for described in go authentication times not reach described pre-determined number, and attempt go the time of authentication not to be above standard the time, then after waiting a predetermined period, again initiate the transmission of a class frame.
Further, as shown in Figure 6, described device also comprises:
State transition module 55, if the time that the number of attempt for the operation of described selection reaches pre-determined number or operation is above standard the time, then reselect the operation of initiating to go to associate or go authentication according to the operation of described selection, and state corresponding for described erroneous frame is carried out state transition.
Concrete, if described in go the number of attempt associated to reach described pre-determined number or operation time be above standard the time, then again initiate to go association, by certification corresponding for described wrong three class frames and association status moves to certification and not associated state; Or
If described in go authentication times to reach described pre-determined number or operation time be above standard the time, then again initiate to go authentication, by certification corresponding for described wrong two class frames and not associated state transition to unverified and not associated state, or by certification corresponding for described wrong two class frames and association status moves to unverified and not associated state; Or
If described in go authentication times to reach described pre-determined number or operation time be above standard the time, then again initiate to go authentication, by certification corresponding for a described wrong class frame and association status moves to unverified and not associated state.
Wherein, described the scheduled time=number of attempt × T, wherein T is default time value;
The described standard time goes to associate or go the time required for authentication for initiating.
The implement device that the WLAN (wireless local area network) that the embodiment of the present invention provides connects, when erroneous frame processing module 51 receives erroneous frame, attempts the operation of initiating to go to associate or go authentication according to the type selecting of erroneous frame; First judge module 52 judges whether the number of attempt of the operation of described selection reaches pre-determined number; Second judge module 53 judges whether the time of the operation of described selection is above standard the time; If the number of attempt of the operation of described selection does not reach described pre-determined number, and the time of the operation of described selection be not above standard the time, then after waiting a predetermined period, delivery module 54 initiates the transmission of Frame again.In addition, if the time that the number of attempt of the operation of described selection reaches pre-determined number or operation is above standard the time, then reselect the operation of initiating to go to associate or go authentication according to the operation of described selection, and by state transition module 55, state corresponding for described erroneous frame is carried out state transition.Compared with prior art, the WLAN (wireless local area network) connection that the embodiment of the present invention can avoid the strong jamming owing to occurring in the short time to cause goes offline, and promotes the satisfaction that user uses.
In all embodiments of the invention, described WLAN (wireless local area network) connects and can connect for Wi-Fi, but is not limited only to this.
The implement device that the WLAN (wireless local area network) that the embodiment of the present invention provides connects can realize the above-mentioned embodiment of the method provided, and concrete function realizes the explanation referred in embodiment of the method, does not repeat them here.The implementation method that the WLAN (wireless local area network) that the embodiment of the present invention provides connects and device go for WLAN (wireless local area network), but are not limited only to this.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.