CN101938811B - Keep-alive method of WLAN (Wireless Local Area Network) terminal and AP (Access Point) - Google Patents

Keep-alive method of WLAN (Wireless Local Area Network) terminal and AP (Access Point) Download PDF

Info

Publication number
CN101938811B
CN101938811B CN2010102441123A CN201010244112A CN101938811B CN 101938811 B CN101938811 B CN 101938811B CN 2010102441123 A CN2010102441123 A CN 2010102441123A CN 201010244112 A CN201010244112 A CN 201010244112A CN 101938811 B CN101938811 B CN 101938811B
Authority
CN
China
Prior art keywords
terminal
keep
alive
wlan
frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2010102441123A
Other languages
Chinese (zh)
Other versions
CN101938811A (en
Inventor
李浩琳
李莉
徐旭
高波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN2010102441123A priority Critical patent/CN101938811B/en
Publication of CN101938811A publication Critical patent/CN101938811A/en
Application granted granted Critical
Publication of CN101938811B publication Critical patent/CN101938811B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a keep-alive method of a WLAN (Wireless Local Area Network) terminal and an AP (Access Point), wherein the method comprises the following steps of: starting a timing trigger terminal keep-alive counter; judging whether the AP successfully receives a MAC frame transmitted by the WLAN terminal or successfully transmits the MAC frame to the WLAN terminal or not; if so, reloading an initial value for the terminal keep-alive counter, and otherwise, waiting for the updating of the trigger terminal keep-alive counter; when updating the timing trigger terminal keep-alive counter, judging whether the value of the terminal keep-alive counter is less than a keep-alive threshold or not, if so, determining that the WLAN terminal is separated from the AP, and otherwise, updating the value of the terminal keep-alive counter; and judging whether the WLAN terminal is in a dormant state or not, if so, carrying out terminal keep-alive of an electricity-saving mode by using a cache message of the WLAN terminal, and otherwise, carrying out terminal keep-alive of an non-electricity-saving mode by using a keep-alive detection message. The method can be used for learning whether the terminal is in a relevant state or not in time.

Description

The keepalive method of WLAN terminal and AP
Technical field
The present invention relates to the WLAN applied technical field, more specifically, relate to a kind of keepalive method and WAP (wireless access point) (Access Point, AP) of WLAN terminal.
Background technology
Along with WLAN (Wireless Local Area Network, popularizing WLAN), increasing personal user adopts notebook or personal digital assistant (Personal Digital Assistant, PDA) by WLAN access INTERNET.When terminal access AP, network side will send the beginning charging message to authentication,authorization,accounting (Authentication, Authorization and Accounting, AAA) server; When terminal initiatively rolled off the production line, terminal can send association/go the authentication frame to AP, and network side can send and stop charging message to aaa server simultaneously, and the shared resource of this terminal of releasing network side.
But for existing WLAN technology, if terminal abnormal goes offline, for example, when terminal outage, terminal cause association/go authentication frame packet loss or wireless network card will be caused terminal to exit network by the people for pulling out etc. away from AP, can't successfully send association/go the authentication frame to AP, then network side will think that terminal is always also online, thereby will not send and stop charging message to aaa server, and do not discharge this terminal in the shared resource of network side, not only cause terminal periodic metering mistake, and the waste Internet resources.In addition, network side also will lose efficacy based on the function of number of users (for example, based on the load balancing of number of users, based on admittance control of number of users etc.).
Summary of the invention
Whether the technical problem that the present invention will solve provides a kind of keepalive method of WLAN terminal, can active probe WLAN terminal still be associated under this AP.
The invention provides a kind of keepalive method of WLAN terminal, comprise starting clocked flip terminal keepalive counter; Judge whether AP successfully receives media access control (Medium Access Control, the MAC) frame of WLAN terminal transmission or successfully send mac frame to the WLAN terminal; If AP successfully receives and dispatches mac frame, then be terminal keepalive counter heavy duty initial value, otherwise, wait for the renewal of triggering terminal keepalive counter; When clocked flip terminal keepalive counter upgrades, whether judge the value of terminal keepalive counter less than the keep-alive thresholding, if less than the keep-alive thresholding, determine that then the WLAN terminal has broken away from AP, otherwise, the value of new terminal keepalive counter more; Judge whether the WLAN terminal enters resting state, if the resting state of entering, then by carrying out the terminal keep-alive of energy-saving mode for WLAN terminal buffers message, otherwise, carry out the terminal keep-alive of non-energy-saving mode by the keep-alive probe messages.
According to an embodiment of the inventive method, the step of carrying out the terminal keep-alive of non-energy-saving mode by the keep-alive probe messages comprises: judge that whether the value of terminal keepalive counter is less than surveying thresholding; If less than surveying thresholding, then construct and send the keep-alive probe messages, otherwise, wait for the renewal of triggering terminal keepalive counter; Judge whether the WLAN terminal responds the keep-alive probe messages, if response keep-alive probe messages then is terminal keepalive counter heavy duty initial value, otherwise, wait for the renewal of triggering terminal keepalive counter.
Another embodiment according to the inventive method, comprise by the step of carrying out the terminal keep-alive of energy-saving mode for WLAN terminal buffers message: carrying control information in transmitting flow dial gauge (Delivery Traffic Indication Map, DTIM) frame has downlink message to be buffered among the AP to inform the WLAN terminal; Judge whether the WLAN terminal reads downlink message in AP; If the WLAN terminal reads downlink message, then be terminal keepalive counter heavy duty initial value, otherwise, wait for the renewal of triggering terminal keepalive counter.
Another embodiment according to the inventive method, also comprise by the step of carrying out the terminal keep-alive of energy-saving mode for WLAN terminal buffers message: carrying control information in the DTIM frame has before downlink message is buffered among the AP to inform the WLAN terminal, judges that whether the value of terminal keepalive counter is less than economize on electricity detection thresholding; If survey thresholding less than economize on electricity, then carry out and in the DTIM frame, carry control information and have downlink message to be buffered in step among the AP to inform the WLAN terminal, otherwise, wait for the renewal of triggering terminal keepalive counter.
According to an again embodiment of the inventive method, mac frame is Frame, management frames or control frame.
According to an again embodiment of the inventive method, the keep-alive probe messages is Frame, management frames or control frame.
WLAN terminal keepalive method of the present invention; when the WLAN terminal abnormal breaks away from network so that network can be known the association status of this terminal in time; thereby can send in time and stop charging message to aaa server; prevent because of wrong charging for the user causes irrational economic loss; with the reduction customer complaint, and releasing network resources.Simultaneously, the present invention also is that other functions of upper strata (for example, based on the load balancing of number of users, based on admittance control of number of users etc.) provide foundation.
Whether another technical problem that the present invention will solve provides a kind of AP, can active probe WLAN terminal still be associated under this AP.
The invention provides a kind of AP, comprise the transmitting-receiving judge module, be used for judging whether AP successfully receives the mac frame of WLAN terminal transmission or successfully send mac frame to the WLAN terminal; Timer starts module, links to each other with the transmitting-receiving judge module, is used for starting clocked flip terminal keepalive counter; The heavy duty keep-alive module links to each other with the transmitting-receiving judge module, is used in the situation of successfully receiving and dispatching mac frame, is terminal keepalive counter heavy duty initial value, and is not is not successfully receiving and dispatching in the situation of mac frame, waits for the renewal of triggering terminal keepalive counter; The timer update module starts module with timer and links to each other, and is used for when clocked flip terminal keepalive counter upgrades, whether judge the value of terminal keepalive counter less than the keep-alive thresholding, if less than the keep-alive thresholding, determine that then the WLAN terminal has broken away from AP, otherwise, the value of renewal keepalive counter; The dormancy judge module links to each other with the timer update module, is used for judging whether the WLAN terminal enters resting state; Economize on electricity terminal keep-alive module links to each other with the dormancy judge module, is used for entering in the situation of resting state in the WLAN terminal, by carrying out the terminal keep-alive of energy-saving mode for WLAN terminal buffers message; Non-economize on electricity terminal keep-alive module links to each other with the dormancy judge module, is used for not entering in the situation of resting state in the WLAN terminal, carries out the terminal keep-alive of non-energy-saving mode by the keep-alive probe messages.
AP embodiment according to the present invention, non-economize on electricity terminal keep-alive module comprises: survey the thresholding judging unit, be used for judging that whether the value of terminal keepalive counter is less than surveying thresholding; The probe messages transmitting element links to each other with detection thresholding judging unit, is used in the situation of value less than the detection thresholding of terminal keepalive counter, and structure also sends the keep-alive probe messages; The message response judging unit links to each other with the probe messages transmitting element, is used for judging whether the WLAN terminal responds the keep-alive probe messages; The heavy duty unit links to each other with the message response judging unit, is used in the situation of WLAN terminal response keep-alive probe messages, is terminal keepalive counter heavy duty initial value; Regularly wait for the unit; link to each other with the message response judging unit with detection thresholding judging unit respectively; be used for value at the terminal keepalive counter and be not less than in the situation of surveying thresholding or the WLAN terminal does not respond in the situation of keep-alive probe messages, wait for the renewal of triggering terminal keepalive counter.
Another embodiment of AP according to the present invention, economize on electricity terminal keep-alive module comprises: DTIM frame transmitting element, being used for carrying control information at the DTIM frame has downlink message to be buffered among the AP to inform the WLAN terminal; Read judging unit, link to each other with DTIM frame transmitting element, be used for judging whether the WLAN terminal reads downlink message; Initial value heavy duty unit and reads judging unit and links to each other, is used for reading in the situation of downlink message in the WLAN terminal, and be the heavily loaded initial value of terminal keepalive counter; Wait for the unit, and read judging unit and link to each other, be used for not reading in the situation of downlink message in the WLAN terminal renewal of wait triggering terminal keepalive counter.
The another embodiment of AP according to the present invention; economize on electricity terminal keep-alive module also comprises: the thresholding judging unit is surveyed in economize on electricity; link to each other with the wait unit with DTIM frame transmitting element respectively; be used for judging whether the value of terminal keepalive counter surveys thresholding less than economize on electricity; if survey thresholding less than economize on electricity; then forward DTIM frame transmitting element to, otherwise, forward the wait unit to.
The again embodiment of AP according to the present invention, mac frame is Frame, management frames or control frame.
The again embodiment of AP according to the present invention, the keep-alive probe messages is Frame, management frames or control frame.
AP of the present invention, when the WLAN terminal abnormal breaks away from network so that network can be known the association status of this terminal in time, thereby can send in time and stop charging message to aaa server, prevent because of wrong charging for the user causes irrational economic loss, with the reduction customer complaint, and releasing network resources.Simultaneously, the present invention also is that other functions of upper strata (for example, based on the load balancing of number of users, based on admittance control of number of users etc.) provide foundation.
Description of drawings
Accompanying drawing described herein is used to provide a further understanding of the present invention, consists of the application's a part.In the accompanying drawings:
Fig. 1 is the first embodiment schematic flow sheet of the inventive method.
Fig. 2 is the schematic flow sheet of the terminal keep-alive process of non-energy-saving mode among second embodiment of the inventive method.
Fig. 3 is the schematic flow sheet of the terminal keep-alive process of energy-saving mode among the 3rd embodiment of the inventive method.
Fig. 4 is the schematic flow sheet of the terminal keep-alive process of energy-saving mode among the 4th embodiment of the inventive method.
Fig. 5 is the schematic diagram of heavily loaded terminal keepalive counter among the 6th embodiment of the inventive method.
Fig. 6 is the schematic diagram that clocked flip terminal keepalive counter upgrades among the 6th embodiment of the inventive method.
Fig. 7 is the terminal keep-alive process schematic diagram of non-energy-saving mode among the 6th embodiment of the inventive method.
Fig. 8 is the terminal keep-alive process schematic diagram of energy-saving mode among the 6th embodiment of the inventive method.
Fig. 9 is the structural representation of the first embodiment of AP of the present invention.
Figure 10 is the structural representation of the second embodiment of AP of the present invention.
Figure 11 is the structural representation of the 3rd embodiment of AP of the present invention.
Figure 12 is the structural representation of the 3rd embodiment of AP of the present invention.
Embodiment
With reference to the accompanying drawings the present invention is described more fully, exemplary embodiment of the present invention wherein is described.Exemplary embodiment of the present invention and explanation thereof are used for explaining the present invention, but do not consist of improper restriction of the present invention.
The objective of the invention is to propose a kind of keepalive method and AP of WLAN terminal; successfully send in this terminal and to go association/go in the situation of authentication frame; whether AP also can detect on one's own initiative this terminal and still be associated under this AP, provides foundation thereby stop the functions such as charging and releasing network resources for network.
For achieving the above object; the present invention is under the prerequisite of not changing 802.11 standard agreements; a kind of keepalive method of WLAN terminal is provided, has comprised the heavily loaded process of terminal keepalive counter, renewal process, the terminal keep-alive process under the non-energy-saving mode and the terminal keep-alive process under the energy-saving mode of terminal keepalive counter.
Fig. 1 is the first embodiment schematic flow sheet of the inventive method.
As shown in Figure 1, this embodiment can may further comprise the steps:
S102 starts clocked flip terminal keepalive counter;
S104, judge whether AP successfully receives the mac frame of WLAN terminal transmission or successfully send mac frame to the WLAN terminal, wherein, mac frame can be Frame, management frames or control frame, in addition, the sign that AP successfully sends mac frame is that (that is, ACK) frame is replied in the affirmation that receives the WLAN terminal response;
S106 if AP successfully receives and dispatches mac frame, determines that then this WLAN terminal still is associated under this AP, and is terminal keepalive counter heavy duty initial value (that is, making the terminal keep-alive), otherwise, wait for the renewal of triggering terminal keepalive counter;
S108, when clocked flip terminal keepalive counter upgrades, judge that whether the value of terminal keepalive counter is less than the keep-alive thresholding, if less than the keep-alive thresholding, can determine that then the WLAN terminal has broken away from AP, otherwise, the value of new terminal keepalive counter more, for example, can when each the renewal, the value of terminal keepalive counter be successively decreased;
S110 judges whether the WLAN terminal enters resting state, if the resting state of entering, then by carrying out the terminal keep-alive of energy-saving mode for WLAN terminal buffers message, otherwise, carry out the terminal keep-alive of non-energy-saving mode by the keep-alive probe messages.Wherein, can be by the notice of " power management bit " field parameter in message AP before terminal enters resting state, AP just can know whether the WLAN terminal has entered resting state like this.
This embodiment when the WLAN terminal abnormal breaks away from network so that network can be known the association status of this terminal in time, thereby can send in time and stop charging message to aaa server, prevent because of wrong charging for the user causes irrational economic loss, with the reduction customer complaint, and releasing network resources.Simultaneously, the present invention also is that other functions of upper strata (for example, based on the load balancing of number of users, based on admittance control of number of users etc.) provide foundation.
Fig. 2 is the schematic flow sheet of the terminal keep-alive process of non-energy-saving mode among second embodiment of the inventive method.
As shown in Figure 2, the terminal keep-alive process of non-energy-saving mode can may further comprise the steps among this embodiment:
S202 judges that whether the value of terminal keepalive counter is less than surveying thresholding;
S204, if less than surveying thresholding, then construct and send the keep-alive probe messages to the WLAN terminal, otherwise, wait for the renewal of triggering terminal keepalive counter;
S206 judges whether the WLAN terminal responds the keep-alive probe messages, if response keep-alive probe messages then is terminal keepalive counter heavy duty initial value (that is, making the terminal keep-alive), otherwise, wait for the renewal of triggering terminal keepalive counter.
This embodiment is in the situation of value less than the detection thresholding of terminal keepalive counter; whether respond the keep-alive probe messages by the WLAN terminal and survey the WLAN terminal and whether still be associated under this AP, whether be in association status assurance is provided for effectively surveying the WLAN terminal.
Fig. 3 is the schematic flow sheet of the terminal keep-alive process of energy-saving mode among the 3rd embodiment of the inventive method.
As shown in Figure 3, the terminal keep-alive process of energy-saving mode can may further comprise the steps among this embodiment:
S302, carrying control information in the DTIM frame has downlink message to be buffered among the AP to inform the WLAN terminal, and this downlink message can be virtual or real message;
S304 judges whether the WLAN terminal reads downlink message in AP;
S306 if the WLAN terminal reads downlink message, then is terminal keepalive counter heavy duty initial value (that is, making the terminal keep-alive), otherwise, wait for the renewal of triggering terminal keepalive counter.
This embodiment is by reading downlink message for WLAN terminal buffers message triggers the WLAN terminal in AP when reviving, whether still be associated under this AP so that AP knows current WLAN terminal, whether be in association status favourable assurance is provided for effectively surveying WLAN terminal under the resting state.
Fig. 4 is the schematic flow sheet of the terminal keep-alive process of energy-saving mode among the 4th embodiment of the inventive method.
As shown in Figure 4, the terminal keep-alive process of energy-saving mode can may further comprise the steps among this embodiment:
S402 judges whether the value of terminal keepalive counter surveys thresholding less than economize on electricity;
S404, if survey thresholding less than economize on electricity, then carrying control information in the DTIM frame has downlink message to be buffered among the AP to inform the WLAN terminal, otherwise, wait for the renewal of triggering terminal keepalive counter;
S406 judges whether the WLAN terminal reads downlink message in AP;
S408 if the WLAN terminal reads downlink message, then is terminal keepalive counter heavy duty initial value, otherwise, wait for the renewal of triggering terminal keepalive counter.
This embodiment compares with embodiment among Fig. 3; the value of terminal keepalive counter and the judgement of economize on electricity detection thresholding have been increased; judging whether the WLAN terminal under the electricity-saving state is in the situation of association status; can also prevent that AP from frequently bothering the WLAN terminal when the WLAN terminal is in electricity-saving state, thereby the WLAN terminal can be economized on electricity better.
In the above-described embodiments, mac frame can be Frame, management frames or control frame.The keep-alive probe messages can be Frame, management frames or control frame.
In the 5th embodiment of the inventive method, this embodiment can comprise the heavily loaded process of terminal keepalive counter, renewal process, the terminal keep-alive process under the non-energy-saving mode and the terminal keep-alive process under the energy-saving mode of terminal keepalive counter.
Wherein, the heavily loaded process of terminal keepalive counter is: when AP successfully receives mac frame that the WLAN terminal sends or AP and successfully sends mac frame to the WLAN terminal, can confirm that this terminal still is associated under this AP, and be the heavily loaded initial value of this terminal keepalive counter.
If AP does not does not successfully receive and dispatch mac frame, then regularly carry out the renewal process of terminal keepalive counter, and regular processing terminal keepalive state: whether the value of judging the keepalive counter that terminal is current is 0 (that is, keep-alive thresholding), if 0, think that then this terminal has broken away from this AP; Otherwise, the value of terminal keepalive counter is subtracted 1.
If the value of keepalive counter has reached the detection thresholding, then carry out terminal keep-alive process, namely, whether detecting terminal still is associated under this AP: structure keep-alive probe messages also is sent to terminal, if terminal has broken away from this AP, then will not respond the ACK control frame, until till the keepalive counter to 0; If terminal still is associated under this AP, then will responds the ACK control frame, and carry out the heavily loaded process of terminal keepalive counter.
If terminal is under the energy-saving mode; then enter resting state; revive at regular intervals; to can not respond the ACK control frame; therefore AP needs regularly to carry out the terminal keep-alive process of energy-saving mode; namely; whether detecting terminal still is associated under this AP: when finding that terminal is in energy-saving mode; AP will directly not send the keep-alive probe messages to terminal; there is its downlink message to be buffered in (can be virtual message) in the AP but in the DTIM frame, carry control information to inform terminal, waits for that terminal initiatively reads downlink message.If terminal has broken away from this AP, then terminal will not read downlink message, until till the value to 0 of keepalive counter; If terminal still is associated under this AP; then when regularly reviving, from AP, read downlink message; thereby AP is receiving that terminal to the withdrawing from park mode when notice of its transmission, can think that this terminal still is associated under this AP, and is the heavily loaded process of this terminal execution keepalive counter.
Fig. 5 is the schematic diagram of heavily loaded terminal keepalive counter among the 6th embodiment of the inventive method.
Fig. 6 is the schematic diagram that clocked flip terminal keepalive counter upgrades among the 6th embodiment of the inventive method.
Fig. 7 is the terminal keep-alive process schematic diagram of non-energy-saving mode among the 6th embodiment of the inventive method.
Fig. 8 is the terminal keep-alive process schematic diagram of energy-saving mode among the 6th embodiment of the inventive method.
Shown in Fig. 5~8, this embodiment specifically comprises:
The heavily loaded process (as shown in Figure 5) of terminal keepalive counter: when AP successfully receives and dispatches mac frame, show that this terminal still is associated under this AP, thereby need to be keepalive counter heavy duty initial value (for example, initial value is A, expression A second).If so there is not the transmitting-receiving mac frame in A this terminal second continuously always, can confirm that then this terminal has broken away from this AP, can send to stop charging message to aaa server, and releasing network resources.Wherein, A is the initial value of the configurable keepalive counter of webmaster.
Regularly carry out the renewal process (as shown in Figure 6) of terminal keepalive counter: timer can be set to trigger once this renewal process 1 second; trigger every second when upgrading; whether the value count that at first judges the terminal keepalive counter equals 0; if equal 0; confirm that then terminal has broken away from this AP; carry out terminal and (for example break away from network processes; transmission stops charging request to aaa server; releasing network resources etc.); otherwise; the value count of terminal keepalive counter subtracts 1; then whether judge count less than or equal to B, if whether the terminal keep-alive process of then carrying out non-energy-saving mode still is associated under this AP with detecting terminal.
The terminal keep-alive process (as shown in Figure 7) of non-energy-saving mode: AP sends empty data (namely; NULL-DATA) frame is to terminal; judge whether terminal still is associated under this AP; if terminal still is associated under this AP; then respond the ACK frame, still be associated under this AP thereby AP can learn this terminal, be terminal keepalive counter heavy duty initial value count=A; otherwise terminal does not respond the ACK frame.Wherein, select the NULL-DATA frame as the reason of keep-alive probe messages detecting terminal association status to be: the length of NULL-DATA frame is the shortest, can minimize the shared interface-free resources of keep-alive probe messages.The keep-alive probe messages includes but not limited to the NULL-DATA frame, and order program data frame or management frames etc. can be used as the keep-alive probe messages.
The terminal keep-alive process (as shown in Figure 8) of energy-saving mode: AP at beacon (namely; BEACON) carry the DTIM cell in the frame; inform that the terminal under this energy-saving mode state has downlink message to be buffered in AP place (can be virtual message); if terminal still is associated under this AP; then terminal will change power management state and send power-save poll (Power Save Poll, PS-POLL) frame and read downlink message to AP.Thereby AP can learn that this terminal still is associated under this AP, and is terminal keepalive counter heavy duty initial value: count=A.
Above-mentioned form and the running of energy-saving mode about frames such as NULL-DATA, BEACON, DTIM, ACK, PS-POLL can the normative reference agreement, and present embodiment no longer is described in detail.
Fig. 9 is the structural representation of the first embodiment of AP of the present invention.
As shown in Figure 9, the AP of this embodiment can comprise:
Transmitting-receiving judge module 11, be used for judging whether AP successfully receives the mac frame of WLAN terminal transmission or successfully send mac frame to the WLAN terminal, and wherein, mac frame can be Frame, management frames or control frame, in addition, successfully to send the sign of mac frame be the ACK frame that receives the WLAN terminal response to AP;
Timer starts module 13, links to each other with transmitting-receiving judge module 11, is used for starting clocked flip terminal keepalive counter, for example, can when each the renewal value of terminal keepalive counter be successively decreased;
Heavy duty keep-alive module 12 links to each other with transmitting-receiving judge module 11, is used in the situation of successfully receiving and dispatching mac frame, is terminal keepalive counter heavy duty initial value, and is not is not successfully receiving and dispatching in the situation of mac frame, waits for the renewal of triggering terminal keepalive counter;
Timer update module 14 starts module 13 with timer and links to each other, and is used for when clocked flip terminal keepalive counter upgrades, whether judge the value of terminal keepalive counter less than the keep-alive thresholding, if less than the keep-alive thresholding, determine that then the WLAN terminal has broken away from AP, otherwise, the value of renewal keepalive counter;
Dormancy judge module 15, link to each other with timer update module 14, be used for judging whether the WLAN terminal enters resting state, can be by the notice of " power management bit " field parameter in message AP before terminal enters resting state, AP just can know whether the WLAN terminal has entered resting state like this;
Economize on electricity terminal keep-alive module 16 links to each other with dormancy judge module 15, is used for entering in the situation of resting state in the WLAN terminal, by carrying out the terminal keep-alive of energy-saving mode for WLAN terminal buffers message;
Non-economize on electricity terminal keep-alive module 17 links to each other with dormancy judge module 15, is used for not entering in the situation of resting state in the WLAN terminal, carries out the terminal keep-alive of non-energy-saving mode by the keep-alive probe messages.
This embodiment when the WLAN terminal abnormal breaks away from network so that network can be known the association status of this terminal in time, thereby can send in time and stop charging message to aaa server, prevent because of wrong charging for the user causes irrational economic loss, with the reduction customer complaint, and releasing network resources.Simultaneously, the present invention also is that other functions of upper strata (for example, based on the load balancing of number of users, based on admittance control of number of users etc.) provide foundation.
Figure 10 is the structural representation of the second embodiment of AP of the present invention.
As shown in figure 10, compare with embodiment among Fig. 9, the non-economize on electricity terminal keep-alive module 21 among the AP of this embodiment comprises:
Survey thresholding judging unit 211, be used for judging that whether the value of terminal keepalive counter is less than surveying thresholding;
Probe messages transmitting element 212 links to each other with detection thresholding judging unit 211, is used in the situation of value less than the detection thresholding of terminal keepalive counter, and structure also sends the keep-alive probe messages;
Message response judging unit 213 links to each other with probe messages transmitting element 212, is used for judging whether the WLAN terminal responds the keep-alive probe messages;
Heavy duty unit 214 links to each other with message response judging unit 213, is used in the situation of WLAN terminal response keep-alive probe messages, is terminal keepalive counter heavy duty initial value;
Regularly wait for unit 215; link to each other with message response judging unit 213 with detection thresholding judging unit 211 respectively; be used for value at the terminal keepalive counter and be not less than and survey thresholding or the WLAN terminal does not respond in the situation of keep-alive probe messages, wait for the renewal of triggering terminal keepalive counter.
This embodiment is in the situation of value less than the detection thresholding of terminal keepalive counter; whether respond the keep-alive probe messages by the WLAN terminal and survey the WLAN terminal and whether still be associated under this AP, whether be in association status assurance is provided for effectively surveying the WLAN terminal.
Figure 11 is the structural representation of the 3rd embodiment of AP of the present invention.
As shown in figure 11, compare with embodiment among Fig. 9, the economize on electricity terminal keep-alive module 31 among the AP of this embodiment comprises:
DTIM frame transmitting element 311, being used for carrying control information at the DTIM frame has downlink message to be buffered among the AP to inform the WLAN terminal;
Read judging unit 312, link to each other with DTIM frame transmitting element 311, be used for judging whether the WLAN terminal reads downlink message;
Initial value heavy duty unit 313 and reads judging unit 312 and links to each other, is used for reading in the situation of downlink message in the WLAN terminal, and be the heavily loaded initial value of terminal keepalive counter;
Wait for unit 314, and read judging unit 312 and link to each other, be used for not reading in the situation of downlink message in the WLAN terminal renewal of wait triggering terminal keepalive counter.
This embodiment is by reading downlink message for WLAN terminal buffers message triggers the WLAN terminal in AP when reviving, whether still be associated under this AP so that AP knows current WLAN terminal, whether be in association status favourable assurance is provided for effectively surveying WLAN terminal under the resting state.
Figure 12 is the structural representation of the 3rd embodiment of AP of the present invention.
As shown in figure 12, compare with embodiment among Figure 11, the economize on electricity terminal keep-alive module 41 among the AP of this embodiment also comprises:
Thresholding judging unit 411 is surveyed in economize on electricity, links to each other with wait unit 314 with DTIM frame transmitting element 311 respectively, is used for judging whether the value of terminal keepalive counter surveys thresholding less than economize on electricity; if survey thresholding less than economize on electricity; then forward DTIM frame transmitting element 311 to, otherwise, forward to and wait for unit 314.
This embodiment compares with embodiment among Figure 11; the value of terminal keepalive counter and the judgement of economize on electricity detection thresholding have been increased; judging whether the WLAN terminal under the electricity-saving state is in the situation of association status; can also prevent that AP from frequently bothering the WLAN terminal when the WLAN terminal is in electricity-saving state, thereby the WLAN terminal can be economized on electricity better.
In the above-described embodiments, mac frame can be Frame, management frames or control frame.The keep-alive probe messages can be Frame, management frames or control frame.
Description of the invention provides for example with for the purpose of describing, and is not exhaustively or limit the invention to disclosed form.Many modifications and variations are apparent for the ordinary skill in the art.Selecting and describing embodiment is for better explanation principle of the present invention and practical application, thereby and makes those of ordinary skill in the art can understand the various embodiment with various modifications that the present invention's design is suitable for special-purpose.

Claims (10)

1. the keepalive method of a WLAN terminal is characterized in that, described method comprises:
Start clocked flip terminal keepalive counter;
Judge whether AP successfully receives the mac frame of WLAN terminal transmission or successfully send described mac frame to described WLAN terminal;
If described AP successfully receives and dispatches described mac frame, then be terminal keepalive counter heavy duty initial value, otherwise, wait the renewal of described terminal keepalive counter to be triggered;
When the described terminal keepalive counter of clocked flip upgrades, whether judge the value of described terminal keepalive counter less than the keep-alive thresholding, if less than described keep-alive thresholding, determine that then described WLAN terminal has broken away from described AP, otherwise, upgrade the value of described terminal keepalive counter;
Judge whether described WLAN terminal enters resting state; if the resting state of entering; then by carrying out the terminal keep-alive of energy-saving mode for described WLAN terminal buffers message; otherwise; judge that whether the value of described terminal keepalive counter is less than surveying thresholding; if less than described detection thresholding; then construct and send described keep-alive probe messages; otherwise, wait the renewal of described terminal keepalive counter to be triggered, judge whether described WLAN terminal responds described keep-alive probe messages; if respond described keep-alive probe messages; then be described terminal keepalive counter heavy duty initial value, otherwise, wait the renewal of described terminal keepalive counter to be triggered.
2. method according to claim 1 is characterized in that, describedly comprises by the step of carrying out the terminal keep-alive of energy-saving mode for WLAN terminal buffers message:
Carrying control information in the DTIM frame has downlink message to be buffered among the described AP to inform described WLAN terminal;
Judge whether described WLAN terminal reads described downlink message in described AP;
If described WLAN terminal reads described downlink message, then be described terminal keepalive counter heavy duty initial value, otherwise, wait the renewal of described terminal keepalive counter to be triggered.
3. method according to claim 2 is characterized in that, describedly also comprises by the step of carrying out the terminal keep-alive of energy-saving mode for WLAN terminal buffers message:
Carrying control information in the DTIM frame has before downlink message is buffered among the described AP to inform described WLAN terminal, judges whether the value of described terminal keepalive counter surveys thresholding less than economize on electricity;
If survey thresholding less than described economize on electricity, then carry out and describedly in the DTIM frame, carry control information and have downlink message to be buffered in step among the described AP to inform described WLAN terminal, otherwise, wait the renewal of described terminal keepalive counter to be triggered.
4. method according to claim 1 is characterized in that, described mac frame is Frame, management frames or control frame.
5. method according to claim 1 is characterized in that, described keep-alive probe messages is Frame, management frames or control frame.
6. an AP is characterized in that, described AP comprises:
The transmitting-receiving judge module is used for judging whether AP successfully receives the mac frame of WLAN terminal transmission or successfully send described mac frame to described WLAN terminal;
Timer starts module, links to each other with described transmitting-receiving judge module, is used for starting clocked flip terminal keepalive counter;
The heavy duty keep-alive module, link to each other with described transmitting-receiving judge module, be used in the situation of successfully receiving and dispatching described mac frame, be terminal keepalive counter heavy duty initial value, and successfully do not receiving and dispatching in the situation of described mac frame, wait the renewal of described terminal keepalive counter to be triggered;
The timer update module, starting module with described timer links to each other, be used for when the described terminal keepalive counter of clocked flip upgrades, judge that whether the value of described terminal keepalive counter is less than the keep-alive thresholding, if less than described keep-alive thresholding, determine that then described WLAN terminal has broken away from described AP, otherwise, the value of described terminal keepalive counter upgraded;
The dormancy judge module links to each other with described timer update module, is used for judging whether described WLAN terminal enters resting state;
Economize on electricity terminal keep-alive module links to each other with described dormancy judge module, is used for entering in the situation of resting state in described WLAN terminal, by carrying out the terminal keep-alive of energy-saving mode for described WLAN terminal buffers message;
Non-economize on electricity terminal keep-alive module; link to each other with described dormancy judge module; be used for not entering in the situation of resting state in described WLAN terminal; judge that whether the value of described terminal keepalive counter is less than surveying thresholding; if less than described detection thresholding; then construct and send described keep-alive probe messages; judge whether described WLAN terminal responds described keep-alive probe messages; if respond described keep-alive probe messages; then be described terminal keepalive counter heavy duty initial value, otherwise etc. the renewal of described terminal keepalive counter to be triggered.
7. AP according to claim 6 is characterized in that, described economize on electricity terminal keep-alive module comprises:
DTIM frame transmitting element, being used for carrying control information at the DTIM frame has downlink message to be buffered among the described AP to inform described WLAN terminal;
Read judging unit, link to each other with described DTIM frame transmitting element, be used for judging whether described WLAN terminal reads described downlink message;
Initial value heavy duty unit links to each other with the described judging unit that reads, and is used for reading in the situation of described downlink message in described WLAN terminal, is described terminal keepalive counter heavy duty initial value;
Wait for the unit, link to each other with the described judging unit that reads, be used for not reading in the situation of described downlink message in described WLAN terminal, wait the renewal of described terminal keepalive counter to be triggered.
8. AP according to claim 7 is characterized in that, described economize on electricity terminal keep-alive module also comprises:
The thresholding judging unit is surveyed in economize on electricity; link to each other with described wait unit with described DTIM frame transmitting element respectively; be used for judging whether the value of described terminal keepalive counter surveys thresholding less than economize on electricity; if survey thresholding less than described economize on electricity; then forward described DTIM frame transmitting element to; otherwise, forward described wait unit to.
9. AP according to claim 6 is characterized in that, described mac frame is Frame, management frames or control frame.
10. AP according to claim 6 is characterized in that, described keep-alive probe messages is Frame, management frames or control frame.
CN2010102441123A 2010-07-29 2010-07-29 Keep-alive method of WLAN (Wireless Local Area Network) terminal and AP (Access Point) Active CN101938811B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102441123A CN101938811B (en) 2010-07-29 2010-07-29 Keep-alive method of WLAN (Wireless Local Area Network) terminal and AP (Access Point)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102441123A CN101938811B (en) 2010-07-29 2010-07-29 Keep-alive method of WLAN (Wireless Local Area Network) terminal and AP (Access Point)

Publications (2)

Publication Number Publication Date
CN101938811A CN101938811A (en) 2011-01-05
CN101938811B true CN101938811B (en) 2013-04-10

Family

ID=43391881

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102441123A Active CN101938811B (en) 2010-07-29 2010-07-29 Keep-alive method of WLAN (Wireless Local Area Network) terminal and AP (Access Point)

Country Status (1)

Country Link
CN (1) CN101938811B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200618B (en) * 2012-01-05 2020-03-10 中兴通讯股份有限公司 Wireless local area network WLAN hotspot function control processing method and device
US9504026B2 (en) * 2012-12-13 2016-11-22 Nokia Technologies Oy Keep alive periodicity determination for WiFi networks
US20210195679A1 (en) * 2017-12-12 2021-06-24 Arris Enterprises Llc Method for detecting wi-fi client activity status
CN110636592A (en) * 2018-05-30 2019-12-31 中国电信股份有限公司 User equipment power consumption mode notification method and device and UE
CN111885598A (en) * 2020-06-02 2020-11-03 普联国际有限公司 Event sending realization system and method of Wi-Fi equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101076134A (en) * 2007-06-27 2007-11-21 山东大学 Method for controlling CDMA-1X-wireless video monitor
CN101207924A (en) * 2007-05-14 2008-06-25 开曼群岛威睿电通股份有限公司 Method for processing multi-user connections in high speed grouped data terminal
CN101222388A (en) * 2007-01-12 2008-07-16 华为技术有限公司 Method and system for confirming existence of broadcast/multicast caching frame at access point
CN101360021A (en) * 2008-10-14 2009-02-04 中国电信股份有限公司 Monitoring method and system for wireless wideband user status

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222388A (en) * 2007-01-12 2008-07-16 华为技术有限公司 Method and system for confirming existence of broadcast/multicast caching frame at access point
CN101207924A (en) * 2007-05-14 2008-06-25 开曼群岛威睿电通股份有限公司 Method for processing multi-user connections in high speed grouped data terminal
CN101076134A (en) * 2007-06-27 2007-11-21 山东大学 Method for controlling CDMA-1X-wireless video monitor
CN101360021A (en) * 2008-10-14 2009-02-04 中国电信股份有限公司 Monitoring method and system for wireless wideband user status

Also Published As

Publication number Publication date
CN101938811A (en) 2011-01-05

Similar Documents

Publication Publication Date Title
CN101938811B (en) Keep-alive method of WLAN (Wireless Local Area Network) terminal and AP (Access Point)
CN103199310B (en) Battery electric quantity support method, equipment and the mobile terminal of portable type electronic product
US9399403B2 (en) Mobile terminal, systems and methods for controlling charging and discharging battery
EP2887746B1 (en) Data transmission method and device
CN109624775B (en) Charging pile system based on NBIoT Internet of things
CN102647314A (en) Client side on-line state judgment method and system
CN103313359A (en) Power saving method and power saving device for mobile terminal and mobile terminal
CN107749172A (en) A kind of geomagnetism detecting device control method and geomagnetism detecting device
CN103582166A (en) Terminal configuration methods and terminal device
US10433270B1 (en) Synchronization for battery powered IoT networks
CN101312515A (en) Timing standby method, system and apparatus
CN103582087A (en) Discontinuously-received parameter configuration method and data transmitting method and device
CN102238108A (en) Off-line message transmission method
CN109857435A (en) Equipment room diffusion type method for upgrading software under a kind of line
CN108810971A (en) Internet of things data transmission method, internet-of-things terminal and computer readable storage medium
CN101695084A (en) Method and device for prompting
CN106332248A (en) Meter reading method and system with low power consumption
CN109246801A (en) The method and device of idle listening state terminal realization discontinuous reception
CN103309429A (en) Information processing method and electronic equipment
CN103716861B (en) Network searching method and mobile electronic device using same
CN102905245A (en) Method and device for updating information of residential area system in long-term evolution system
CN103837835A (en) Method and device for detecting capacity decreasing degree of mobile device battery
CN107244250B (en) Intelligent charging system and method for electric vehicle
KR20190129219A (en) Method And Apparatus for Providing Power Saving Optimization
CN101860983B (en) Method, system and mobile terminal for entering power saving mode under long connection mode

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant