Summary of the invention
The embodiment of the invention provides a kind of dormancy method, device and equipment and communication system of wireless site, reduces the energy resource consumption of the STA in the wireless network in order to a nearlyer step ground.
The dormancy method of the wireless site that the embodiment of the invention provides comprises:
Wireless site STA self ought advance into supreme line data transmit stage to access point AP announcement, and the time of dormancy is consulted in request under wake states;
Described STA receives the response frame that AP returns, and carries the time that this definite STA of AP needs dormancy in the described response frame; Described STA needs the time of dormancy to satisfy not exist other STA to be in wake states simultaneously after this STA revives through dormancy time;
Described STA carries out dormancy according to the time of carrying in the response frame, and revives after dormancy time finishes;
If promising described STA data in buffer among the AP, the STA after reviving receives described data from described AP, and asks time of consulting dormancy next time to AP;
If do not have, the STA after reviving is to time that dormancy is next time consulted in described AP request.
The dormancy control device of the wireless site that the embodiment of the invention provides comprises:
Request unit is consulted in dormancy, is used under affiliated wireless site STA wake states, work as to the affiliated STA of access point AP announcement to advance into supreme line data transmit stage, and the time of dormancy is consulted in request; And when not being described STA data in buffer in AP, perhaps after data processing unit is received data, to the time that dormancy is next time consulted in the AP request;
The response frame receiving element is used to receive the response frame that AP returns, and carries the time that the definite affiliated STA of AP needs dormancy in the described response frame; Under STA need the time of dormancy to satisfy not exist other STA to be in wake states simultaneously after this STA revives through dormancy time;
Dormancy/the switch unit of reviving, STA carries out dormancy according to the time that response frame carries under being used for controlling, and revives after dormancy time finishes;
Data processing unit is used for when dormancy time end back STA revives, if the data that promising described STA preserves among the AP then receive described data from described AP.
A kind of wireless site equipment that the embodiment of the invention provides, this equipment comprises the dormancy control device of the wireless site that the embodiment of the invention provides.
A kind of access point apparatus that the embodiment of the invention provides comprises:
Receiving element is used to receive wireless site STA and is used to inform that self ought advance into supreme line data transmit stage under wake states, and the announcement of the time of dormancy is consulted in request;
Negotiation element, be used for announcement according to each STA initiation that receives, determine that this STA needs the time of dormancy and is back to this STA by response frame, described STA needs the time of dormancy to satisfy not exist other STA to be in wake states simultaneously after this STA revives through dormancy time;
Data transmission unit when being used for reviving, is transmitted as its data in buffer to this STA after this STA dormancy.
The embodiment of the invention also provides a kind of communication system, and this system comprises the above-mentioned wireless site equipment that above-mentioned access point apparatus that the embodiment of the invention provides and at least one embodiment of the invention provide.
The beneficial effect of the embodiment of the invention comprises:
The dormancy method of the above-mentioned wireless site that the embodiment of the invention provides, device and equipment and communication system, when STA does not have the upstream data transmission demand, consult the time of this STA dormancy by STA and AP, when this dormancy time can guarantee that STA revives, there are not other STA to be in wake states yet, like this, STA revives after dormancy time finishes, need not to send the PS-Poll frame, if promising its data in buffer among the AP, directly receive the data in buffer of AP transmission and then consult next dormancy time and get final product, saved the energy resource consumption of STA effectively, avoided in the prior art STA under wake states, carry out channel competition with other STA that are in wake states, under the situation of channel competition failure, need to keep wake states and wait for that other STA receive the consumption that the spent unnecessary time of intercept of AP data in buffer causes the unnecessary energy of STA.
Embodiment
Below in conjunction with accompanying drawing, dormancy method, device and the equipment of a kind of wireless site that the embodiment of the invention is provided and the embodiment of communication system are described in detail.
The dormancy method of the wireless site that the embodiment of the invention provides as shown in Figure 2, specifically comprises the steps:
S201, STA self ought advance into supreme line data transmit stage to access point AP announcement, and the time of dormancy are consulted in request under wake states;
S202, STA receive the response frame that AP returns; Carry this STA that AP determines in this response frame and need time of dormancy; STA needs the time of dormancy to satisfy not exist other STA to be in wake states simultaneously after this STA revives through dormancy time;
S203, STA carry out dormancy according to the time of carrying in the response frame, and revive after dormancy time finishes;
Promising this STA data in buffer among S204, the judgement AP has and then carries out following step S204; No, then carry out following step S205;
S205, the STA after reviving receive described data from AP, and to time that dormancy is next time consulted in the AP request; This step turns to step S202 after finishing;
S206, the STA after reviving are to the time that dormancy is next time consulted in the AP request, and this step turns to step S202 after finishing.
Preferably, if there is the STA of a plurality of wake states in the network, before the step of above-mentioned steps S201, STA need be under wake states, carries out channel competition when the channel idle with other STA that are in wake states; Only in channel competition when success, just carry out among the above-mentioned steps S201 to AP announcement self when advancing into supreme line data transmit stage, and the step of the time of request negotiation dormancy; When channel competition is unsuccessful, directly enter resting state, waiting for revives when channel is idle once more carries out channel competition once more, when the channel competition success, carry out among the above-mentioned steps S201 to AP announcement self when advancing into supreme line data transmit stage, and the step of the time of dormancy is consulted in request.
In above-mentioned steps S202, AP carries negotiation in replying to the null-data frame of STA STA needs the time of dormancy, after STA receives the null-data frame of AP response, resolve wherein energy conservation (Power manager, Pwr Mgmt) field is 1 o'clock, read the wherein value of Duration id field, promptly get access to AP needs dormancy for this definite STA of this STA time.
When AP determines that for this STA this STA needs the time of dormancy, take all factors into consideration according to the dormancy time that the STA for current each no upstream data transmission demand is provided with, for example current existing other STA that are in resting state, AP consults to revive when next Beacon announcement arrives with it, current this STA that is provided with of AP revives after through 2 Beacon announcement so, has only the STA reception data in buffer that comes to life in guaranteeing at the same time.
When STA needed transmit ascending data, the dormancy method of the wireless site that the embodiment of the invention provides as shown in Figure 3, also comprised the steps:
S301, STA carry out channel competition with other STA that are in wake states under wake states and when judging current channel idle; If compete successfully, then carry out following step S302; If competition is unsuccessful, then carry out following step S305;
S302, carry out transmission of uplink data, and calculate the round-trip transmission time RTT value of described upstream data correspondence;
S303, after transmitting uplink data is finished, enter resting state with the RTT value that calculates as dormancy time;
S304, revive after the time and receive the data of AP response at RTT; When the Data Receiving of response is finished, turn to execution in step S301;
S305, enter resting state; Execution in step S306 then;
S306, STA revive when channel is idle once more, then execution in step S301.
Among above-mentioned steps S201 and the step S301, the method of carrying out channel competition is: each STA that participates in channel competition produces n back off time window at random and waits for that the back off time window arrives, if the back off time window that the STA of the more every other participation channel competition of back off time window that certain STA produces produces arrives earlier, then channel competition success, otherwise, the channel competition failure.The STA of competition failure enters resting state.In the time of next channel competition, reuse and carry out channel competition with quadrat method.Channel competition adopts the back off time windowing mechanism, can guarantee the fairness of STA when carrying out channel competition of each wake states.
In above-mentioned steps S302, the value of RTT refers to STA and wraps and receive the spent transmission time of destination response from beginning to send TCP, support simultaneously under the situation of TCP timestamp option at the destination of STA and packet, the timestamp that STA is recorded in the option of TCP packet header can be reflected with response message by destination, STA can utilize and stab the transmission time that calculates this packet the reflection interval in the response message is the RTT time, the computational methods of the value of RTT are identical with the method for calculating RTT value in the existing ICP/IP protocol, are not described in detail in this.
In above-mentioned steps S301 and step S306, STA is when resting state, by intercepting network allocation vector (the Network Allocation Vector in the transmission frame that is transmitting in the channel, NAV) decide and when revive, NAV has characterized the time of the shared channel of current transmission, this time may comprise the repeatedly time of RTT, should be that this transmits needed total time.Can determine when to come to life according to this time STA and carry out channel competition, after the time of NAV arrived, STA revived and judges current channel idle, at this moment can carry out channel competition with other STA that is in wake states.
The dormancy method of the wireless site that the embodiment of the invention provides is described with a concrete example below, as shown in Figure 4, suppose to have 3 STA in the network, wherein STA1 and STA2 are in no upstream data transmission demand state, and STA3 is in by the transmitting uplink data need state.Fig. 5 is following each STA sleep procedure time corresponding axle schematic diagram.
The process prescription of the dormancy of each STA is as follows:
Channel is in idle condition at the beginning, STA1, and STA2, STA3 carries out the competition of channel, supposes that STA1 competes channel, and the busy channel time is T1, so at T1 in the time, STA2, STA3 enters resting state, and dormancy time is T1.In time, STA1 sends the null-data frame and carries out the negotiation of dormancy time to AP at T1, and AP promptly announces to first Beacon in the time that arrives from current beginning to STA1 response dormancy time, the STA1 dormancy.
After the T1 time finished, channel was idle once more, and at this moment, STA2 and STA3 are in wake states, and both carry out channel competition, if STA2 competes successfully, and the busy channel time be T2; In time, STA3 enters resting state at T2, and dormancy time is T2; In time, STA2 sends the null-data frame and carries out the dormancy negotiation to AP at T2, and AP promptly announces in the time that arrives from 2 Beacon of current beginning to the to STA2 response dormancy time, and STA2 enters dormancy.
After the T2 time finished, channel was idle once more, and STA3 listens to channel idle and comes to life, and STA1 and STA2 all are in resting state owing to this moment, have only STA3 to be in wake states, and transmission of uplink data is carried out in the success of STA3 competitive channel.
STA3 is in carrying out the transmitting uplink data process, and STA3 calculates the RTT time of single TCP transmission, after sending request of data, carries out of short duration dormancy according to the RTT time that calculates, the response of reviving the time after and returning with reception AP at RTT.So repeatedly, until the transmission of finishing this secondary data; If also need to continue the transmission data, carry out channel competition when needing to wait for channel idle so once more, transmitting uplink data is then carried out in the channel competition success, otherwise switches to resting state;
After the 1st Beacon announcement arrives, STA1 revives to receive the AP data in buffer, if exist for the STA1 data in buffer among the AP, this moment, STA1 need not to send the PS-Poll frame to AP, directly receive the data that AP sends and get final product, among the AP for after the STA1 data in buffer sends, the time that STA1 continuation and AP consult dormancy next time, promptly in the time of 4 Beacon announcements of current beginning to the, STA1 enters dormancy to AP response this moment dormancy time once more.
Suppose that the time that STA1 receives the shared channel of data in buffer that AP sends is T3, this moment STA3 be in resting state (because STA1 according to and AP between the result that consults transfer wake states to receive the data cached of AP transmission from resting state, this STA3 can not compete successful channel, therefore be in resting state), the time of dormancy is T3; After time, STA3 revives through T3, and STA1 and STA2 also are in resting state owing to this moment, and STA3 carries out transmission of uplink data, carries out of short duration dormancy in the transmission course, and the method for dormancy was similar in concrete grammar and transmission last time;
After the 2nd Beacon announcement arrived, STA2 revived and is its data in buffer to receive AP, and AP is sent as its data in buffer to STA2, and the time of whole process busy channel is T4, and STA3 carries out dormancy in the time of STA2 reception data, and the time of dormancy is T4;
After the T4 time arrived, the time that STA2 continues and AP consults dormancy next time, the time of AP response STA2 dormancy promptly arrived since current time to the 3 Beacon announcements, and STA2 enters dormancy behind the dormancy time of receiving the AP response.
Simultaneously, after the T4 time arrived, STA3 revived, because this moment, STA1 and STA2 were in resting state, it can compete the transmission that channel carries out data, carries out the dormancy of short time in the data transmission procedure according to the RTT time, and the dormancy method in concrete method and the last transmission course is similar.
In the dormancy method of the STA that the embodiment of the invention provides, the time that each STA revives does not conflict, can fully effectively utilize channel like this, do not have the STA of transmitting uplink data demand after finishing transfer of data, to switch to the state of dormancy again, determine when according to the dormancy time of consulting and revive.The STA that the transmitting uplink data demand is arranged is not then when competing channel, and carry out carrying out when transmission course is waited for the data of AP response of short duration dormancy (RTT) competing channel, these measures all make the time of intercept of STA significantly reduce, and reach to reduce the purpose of effectively saving the STA energy consumption.
Based on same inventive concept, the embodiment of the invention also provides a kind of control device, wireless site equipment, access point apparatus and communication system of wireless site dormancy, because the principle that this device, equipment and system deal with problems is similar to the method for aforementioned a kind of wireless site dormancy, therefore the enforcement of this device, equipment and system can repeat part and repeat no more referring to the enforcement of method.
The control device of the wireless site dormancy that the embodiment of the invention provides as shown in Figure 6, comprising:
Request unit 601 is consulted in dormancy, is used under affiliated wireless site STA wake states, work as to the affiliated STA of access point AP announcement to advance into supreme line data transmit stage, and the time of dormancy is consulted in request; And when not being described STA data in buffer in AP, perhaps after data processing unit is received data, to the time that dormancy is next time consulted in the AP request;
Responseframe receiving element 602 is used to receive the response frame that AP returns, and carries the time that the definite affiliated STA of AP needs dormancy in the described response frame; Under STA need the time of dormancy to satisfy not exist other STA to be in wake states simultaneously after this STA revives through dormancy time;
Dormancy/theswitch unit 603 of reviving, STA carries out dormancy according to the time that response frame carries under being used for controlling, and revives after dormancy time finishes;
Data processing unit 604 is used for when dormancy time end back STA revives, if the data that promising described STA preserves among the AP then receive described data from described AP.
Preferably, the control device of the wireless site dormancy that the embodiment of the invention provides also comprises:channel competition unit 605, be used at affiliated STA under wake states, and carry out channel competition when the channel idle with other STA that are in wake states; And when competition is unsuccessful, wait for that channel carries out channel competition when idle once more once more, until competing successfully;
Correspondingly,request unit 601 is consulted in dormancy, also is used for when competing successfully, and execution is announced self to work as to AP and advanced into supreme line data transmit stage, and the step of the time of dormancy is consulted in request.
Further,channel competition unit 605 also is used for when affiliated STA needs transmit ascending data, when affiliated STA is under the wake states and judges current channel idle and other STA that are in wake states carry out channel competition;
Correspondingly,data processing unit 604 also is used for carrying out transmission of uplink data when competing successfully, and calculates the round-trip transmission time RTT value of described upstream data correspondence; And the data that receive the AP response at RTT after the time;
Dormancy/theswitch unit 603 of reviving also is used for when competing successfully, and STA enters resting state with described RTT value as dormancy time under the control afterdata processing unit 604 is finished transmitting uplink data, and revives after the time at RTT; And when competition is unsuccessful, enter resting state, when channel is idle once more, revive.
Further,channel competition unit 605 also is used for producing at random n back off time window and waits for that the back off time window arrives; N is a natural number; If the back off time window that produces arrives earlier than the back off time window of the STA generation of all every other participation channel competitions, then channel competition success, otherwise, the channel competition failure.
Further, the dormancy/switch unit 603 of reviving before also being used for after competition is unsuccessful, entering resting state, is intercepted the network allocation vector NAV in the transmission frame that is transmitting in the channel; Determine the time of this channel occupancy according to NAV; After the described channel occupancy time finishes, determine that channel is idle once more.
The embodiment of the invention also provides a kind of wireless site equipment, and this equipment comprises the control device of the above-mentioned wireless site dormancy that the embodiment of the invention provides.
The embodiment of the invention also provides a kind of access point apparatus, as shown in Figure 7, comprising:
Receivingelement 701 is used to receive wireless site STA and is used to inform that self ought advance into supreme line data transmit stage under wake states, and the announcement of the time of dormancy is consulted in request;
Negotiation element 702, be used for announcement according to each STA initiation that receives, determine that this STA needs the time of dormancy and is back to this STA by response frame, described STA needs the time of dormancy to satisfy not exist other STA to be in wake states simultaneously after this STA revives through dormancy time;
Data transmission unit 703 when being used for reviving, is transmitted as its data in buffer to this STA after this STA dormancy.
Further, thenegotiation element 702 that the embodiment of the invention provides further returns the null-data frame of response to this STA, and this STA that the value of this null-data frame Duration id field equals to determine needs the time of dormancy.
The embodiment of the invention also provides a kind of communication system, and this system comprises the above-mentioned wireless site equipment that above-mentioned access point apparatus that the embodiment of the invention provides and at least one embodiment of the invention provide.
The dormancy method of the above-mentioned wireless site that the embodiment of the invention provides, device and equipment and communication system, when STA does not have the upstream data transmission demand, consult the time of this STA dormancy by STA and AP, when this dormancy time can guarantee that STA revives, there are not other STA to be in wake states yet, like this, STA revives after dormancy time finishes, need not to send the PS-Poll frame, if promising its data in buffer among the AP, directly receive the data in buffer of AP transmission and then consult next dormancy time and get final product, saved the energy resource consumption of STA effectively, avoided in the prior art STA under wake states, carry out channel competition with other STA that revive, under the situation of channel competition failure, need to keep wake states and wait for that other STA receive the consumption that the spent unnecessary time of intercept of AP data in buffer causes the unnecessary energy of STA.
Further, the dormancy method of the wireless site that the embodiment of the invention provides, device and equipment and communication system, when STA is in the state that the transmitting uplink data demand is arranged, STA carries out channel competition in wake states and other STA that revives, when failing, channel competition enters resting state, when the channel competition success, send upstream data, and in data transmission procedure, carry out of short duration dormancy according to the RTT time immediately after sending upstream data, reviving after the RTT time finishes receives the response data of AP.There is the STA of transmitting uplink data demand to be in wake states all the time in this dormancy mechanism and the prior art and carries out channel competition and compare, saved the energy-output ratio of STA greatly by intercepting.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.