Specific embodiment
Purpose, technical scheme and advantage for making the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described it is clear that described embodiment is
The a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment being obtained on the premise of not making creative work, broadly falls into the scope of protection of the invention.
Embodiments provide a kind of dynamic adjusting method of frame priority, as shown in figure 1, Fig. 1 provides this
The dynamic adjusting method flow chart of a bright embodiment frame priority.Methods described includes:
S101, according to terminal, the demand of access point or channel conditions, determines the adjustment mode of frame priority, described frame by
Described terminal sends to access point, and the corresponding each terminal of described access point is divided into multiple packets, and described terminal is put under described
Certain packet in multiple packets, described frame priority is determined in advance;
S103, according to the adjustment mode of the described frame priority determining, arranges competition window or arbitration frame pitch, described competing
Strive window and include maximum contention window, minimum competition window, described competition window represents the meter of enumerator before sending described frame
Numerical value, described maximum contention window represents the maximum that described competition window allows, and described minimum competition window represents described competing
Strive the initial value of window, described arbitration frame pitch represents the channel idle condition starting described enumerator before sending described frame.
In existing 802.11 standards, frame priority is be previously set, without changing with scene change.
But in some scenarios, for example in the case of having great amount of terminals (station, STA), STA needs packet to access,
Thus reducing (Traffic Indication Map, the TIM) size of transmission indicating information in Beacon and jointly competing letter every time
The number of road STA.In the mode that packet accesses, a group ID, every this specific group ID that belongs in Beacon, can be comprised
STA is considered as specific group STA.The STA belonging to specific group can use before next Beacon after current Beacon
DCF/EDCA mode sends upstream data to AP or PS-Poll to obtain downlink data.
In distributed coordination function (Distributed Coordination Function, DCF) access way, institute
The STA participating in competition is had to need to intercept channel conditions, if channel is in arbitration frame pitch (arbitration interframe
Space, AIFS) the interior holding free time, then arrive 0 and randomly select a value between competition window (contention window, CW)
As the size currently keeping out of the way window, and start down counter and kept out of the way.Therefore, the interval of enumerator be [0,
CW].If system is always maintained at the free time, then each time slot down counter subtracts until Counter Value is zero.When counting down
After device value is zero, STA sends corresponding data.If when down counter does not reduce to zero system be changed into by the free time busy,
Down counter freezes, and restarts down counter until detecting system idle time again equal to DIFS.CW initial value is set as
Minimum competition window CWmin, each collision rift afterwards, CW value is incremented by according to the rule of 2 index demultiplication one, until reaching
Maximum contention window CWmax.
Access in (Enhanced Distributed Channel Access, EDCA) mode in improved distribution channel,
By different AIFS and CWmin and CWmax are defined to different access classification (Access Category, AC), to different AC
Data provides different QoS.Frame includes according to division of teaching contents:Background frames, as possible transmission frame, frame of video, speech frame, described frame is pressed
It is arranged as according to frame priority level order from low to high:Background frames, as possible transmission frame, frame of video, speech frame.
Existing 802.11 standards are provided as the Working mould that low energy consumption STA provides a kind of power saving (power saving, PS)
Formula.As shown in Fig. 2 Fig. 2 provides access point and terminal work mode flow chart under one embodiment of the invention battery saving mode.Main
Method of work is wanted to be to need work STA in a power-save mode to inform that its needs of access point (access point, AP) are operated in
Under PS pattern.STA enters sleep, and the value periodic wakeup according to defined in ListenInterval listens to Beacon.AP is fixed
When broadcast Beacon, wherein contain TIM information.TIM is made up of a series of 0 and 1.When position a certain in TIM is 1, represent
The STA of the ID corresponding to this has downlink data.Then this STA can send PS-Poll (uplink frame) competition after current Beacon
Channel.Competitive way can adopt DCF or EDCA.After AP has successfully received the PS-Poll of this STA, AP can will be somebody's turn to do at once
The downlink data (downlink frame) of STA is sent to STA, or transmission ACK can send downlink data to it after a while to informing.For having
The transmission mechanism of the work of upstream data STA in a power-save mode, existing standard is not made separate stipulations, and is to continue with continuing to use
DCF or EDCA competitive channel.
Described frame includes the uplink frame being sent from described terminal to access point, also includes being sent from described access point to terminal
Downlink frame.Described uplink frame includes Frame, management frame or control frame.
Described terminal, the demand of access point, channel conditions include the grouping information according to terminal, are lifted or are not lifted specific
The frame priority of packet, or the busy situation according to channel, lifting or the grouping information not lifting terminal.
The embodiment of the present invention is passed through to arrange competition window or arbitration frame according to terminal, the demand of access point or channel conditions
Spacing, dynamic adjustment terminal accesses the priority of channel, decreases number of retransmissions, reduces energy consumption.
In another embodiment of the present invention, described S101 is according to terminal, the demand of access point or channel conditions, really
The adjustment mode of framing priority includes:In the frame priority of the terminal needing lifting to belong to specific cluster, improve and belong to institute
State the frame priority of the terminal of specific cluster, or the frame priority reducing the terminal being not belonging to described specific cluster;Needing to carry
When rising the frame priority of terminal being not belonging to specific cluster, reduce the frame priority belonging to described specific cluster terminal, or improve
It is not belonging to the frame priority of described specific cluster terminal.
In another embodiment of the present invention, described S101 is according to terminal, the demand of access point or channel conditions, really
The adjustment mode of framing priority specifically includes:, according to the busy extent of present channel, approval or refusal specific demand are eventually for S102
The frame priority at end improves or reduces request, so that it is determined that the adjustment mode of the frame priority of described specific demand terminal;Described
According to the adjustment mode of the described frame priority determining, setting competition window or arbitration frame pitch include:According to determine
The adjustment mode of the frame priority of specific demand terminal, setting competition window or arbitration frame pitch.
The STA and AP that have specific demand consult, and change its access priority.
In another embodiment of the present invention, access in distributed coordination function access way or improved distribution channel
In mode, when improving the frame priority of described terminal, described setting competition window or arbitration frame pitch include:Described in reduction
Big competition window, described minimum competition window or described arbitration frame pitch.
Using less AIFS/CWmin/CWmax value, STA can be made to wait the short period to begin to compete. thus comparing and adopting
It is easier to obtain channel access with the STA of higher value.
In another embodiment of the present invention, in improved distribution channel access way, improving described terminal
During frame priority, methods described also includes:The priority level of described frame is set to higher;In described improved distribution channel
In access way, frame includes according to division of teaching contents:Background frames, as possible transmission frame, frame of video, speech frame, described frame is excellent according to frame
First level grade order from low to high is arranged as:Background frames, as possible transmission frame, frame of video, speech frame.For example:Described will be described
It can be that the priority level of described frame is set to speech frame that the priority level of frame is set to higher.
In another embodiment of the present invention, access in distributed coordination function access way or improved distribution channel
In mode, when reducing the frame priority of described terminal, described setting competition window or arbitration frame pitch include:Described in increase
Big competition window, described minimum competition window or described arbitration frame pitch.Bigger AIFS/CWmin/CWmax value can lead to STA to need
The longer time is waited to access.Thus being less susceptible to obtain channel access than with using the STA of smaller value.
In another embodiment of the present invention, in improved distribution channel access way, reducing described terminal
During frame priority, methods described also includes:The priority level of described frame is set to lower;In described improved distribution channel
In access way, frame includes according to division of teaching contents:Background frames, as possible transmission frame, frame of video, speech frame, described frame is excellent according to frame
First level grade order from low to high is arranged as:Background frames, as possible transmission frame, frame of video, speech frame.For example:Described will be described
It can be that the priority level of described frame is set to background frames that the priority level of frame is set to higher.
In another embodiment of the present invention, as shown in figure 3, Fig. 3 is the dynamic adjusting method of frame priority of the present invention
Another embodiment flow chart.In the described adjustment mode according to the described frame priority determining, setting competition window or arbitration
Also include after frame pitch:S105 within the default time period, according to the adjustment mode of described frame, protect by the frame that described terminal sends
Hold the priority of the described frame after adjustment.
The described time period is determined by described terminal and informs described access point, or by described access point and described terminal association
Business determines.
Embodiments provide a kind of dynamic adjusting device of frame priority.As shown in figure 4, being one reality of the present invention
Apply the dynamic adjusting device structure chart of a frame priority.Described device includes:Adjustment mode determining module 401, setup module
403;
Described adjustment mode determining module is used for according to terminal, the demand of access point or channel conditions, determines that frame is preferential
The adjustment mode of level, described frame sends between described terminal and access point, and the corresponding each terminal of described access point is divided into many
Individual packet, certain packet that described terminal is put under in the plurality of packet, described frame priority is determined in advance;
Described setup module is used for the adjustment mode according to the described frame priority determining, setting competition window or arbitration frame
Spacing, described competition window includes maximum contention window, minimum competition window, and described competition window represents before sending described frame
Start the value upper limit of the count value of enumerator, described maximum contention window represents the maximum that described competition window allows, institute
State the initial value that minimum competition window represents described competition window, described arbitration frame pitch represents idle time of channel, described letter
Road free time is the condition starting enumerator before sending described frame.
Described adjustment mode determining module 401 is specifically for preferential in the frame of the terminal needing lifting to belong to specific cluster
During level, improve the frame priority of the terminal belonging to described specific cluster, or the frame reducing the terminal being not belonging to described specific cluster
Priority;In the frame priority of the terminal needing lifting to be not belonging to specific cluster, reduce and belong to described specific cluster terminal
Frame priority, or improve the frame priority being not belonging to described specific cluster terminal.
Described adjustment mode determining module 401 is additionally operable to described according to terminal, the demand of access point or channel conditions,
After determining the adjustment mode of frame priority, according to the busy extent of present channel, the busy situation of described access point or institute
State the reception situation of terminal, the raising of frame priority of approval or refusal specific demand terminal or reduction request are to determine described spy
The adjustment mode of the frame priority of different demand terminal;Described setup module is used for according to the determination of described adjustment mode determining module
The adjustment mode of the frame priority of described specific demand terminal, setting competition window or arbitration frame pitch.
In distributed coordination function access way or improved distribution channel access way, in the frame improving described terminal
During priority, described setup module 403 is used for:Reduce described maximum contention window, described minimum competition window or described arbitration
Frame pitch.
In improved distribution channel access way, when improving the frame priority of described terminal, described setup module 403
It is additionally operable to:The priority level of described frame is set to higher;In described improved distribution channel access way, frame is according to interior
Hold to divide and include:Background frames, as possible transmission frame, frame of video, speech frame, described frame is according to frame priority level from low to high suitable
Sequence is arranged as:Background frames, as possible transmission frame, frame of video, speech frame.
In distributed coordination function access way or improved distribution channel access way, in the frame reducing described terminal
During priority, 403 pieces of described setting mould is used for:Increase described maximum contention window, described minimum competition window or described arbitration
Frame pitch.
In improved distribution channel access way, when reducing the frame priority of described terminal, described setup module 403
It is additionally operable to:The priority level of described frame is set to lower;In described improved distribution channel access way, frame is according to interior
Hold to divide and include:Background frames, as possible transmission frame, frame of video, speech frame, described frame is according to frame priority level from low to high suitable
Sequence is arranged as:Background frames, as possible transmission frame, frame of video, speech frame.
As shown in figure 5, Fig. 5 provides the structure chart of another embodiment of dynamic adjusting device of frame priority of the present invention.
Described device also includes priority and keeps module 405, and described priority keeps module to be used in described setup module according to determination
Described frame priority adjustment mode, setting competition window or arbitration frame pitch after, within the default time period, according to institute
State the adjustment mode of frame, control the frame that described terminal sends to keep the priority of the described frame after adjustment.
Embodiments provide a kind of network access point device.As Fig. 6, Fig. 6 is inventive network access point apparatus
The structure chart of one embodiment.Described equipment includes:Comprise the frame priority described in any one of claim 9 to 16 dynamically to adjust
Device 601, sending module 603;Described sending module is used for the described competition the setting of described frame priority dynamic adjusting device
Window or described arbitration frame pitch are sent to terminal.
As shown in fig. 7, Fig. 7 is the structure chart of inventive network another embodiment of access point apparatus.Described equipment also wraps
Include downlink frame setup module 605, described downlink frame setup module is used for according to the setting of described frame priority dynamic adjusting device
Described competition window or described arbitration frame pitch arrange described downlink frame, and described downlink frame is sent to described by the described network equipment
Terminal.
Embodiments provide a kind of terminal.As Fig. 8, Fig. 8 is the structure chart of one embodiment of terminal of the present invention.Institute
State terminal to include:Comprise the frame priority dynamic adjusting device 801 described in any one of claim 9 to 16, uplink frame arranges mould
Block 803, described uplink frame setup module is used for according to the described competition window that described frame priority dynamic adjusting device is arranged
Or described arbitration frame pitch arranges described uplink frame, described uplink frame is sent to the described network equipment by described terminal.
As shown in figure 9, Fig. 9 is the structure chart of another embodiment of terminal of the present invention.Described terminal also includes sending module
805;Described sending module is used for described competition window or described arbitration frame the setting of described frame priority dynamic adjusting device
Spacing is sent to network access point device.
It will be appreciated by those skilled in the art that module in device in embodiment can be carried out point according to embodiment description
It is distributed in the device of embodiment and be disposed other than in one or more devices of the present embodiment it is also possible to carry out respective change.On
The module stating embodiment can merge into a module it is also possible to be further split into multiple submodule.
Those skilled in the art can be understood that technology in the embodiment of the present invention can be by software plus required
General hardware platform mode realizing.Based on such understanding, the technical scheme in the embodiment of the present invention substantially or
Say that what prior art was contributed partly can be embodied in the form of software product, this computer software product can be deposited
In storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions with so that a computer equipment is (permissible for storage
Be personal computer, server, or the network equipment etc.) execution each embodiment of the present invention or embodiment some part institutes
The method stated.
Finally it should be noted that:Above example only in order to technical scheme to be described, is not intended to limit;Although
With reference to the foregoing embodiments the present invention is described in detail, it will be understood by those within the art that:It still may be used
To modify to the technical scheme described in foregoing embodiments, or equivalent is carried out to wherein some technical characteristics;
And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and
Scope.