Abstract:
A channel competition method, includes: a first device detecting whether a target channel contains an idle sub-channel which is in an idle state or not, and if so, sending a request frame to a second device over a target sub-channel, wherein the target sub-channel is at least one sub-channel which is contained in the idle sub-channel; and when the first device receives a response frame sent by the second device, the first device determining that the competition for the target sub-channel is successful, wherein the response frame is a response frame issued by the second device to the request frame. Correspondingly, further provided is a corresponding device. The embodiments of the present application can improve the spectrum efficiency of a network system.

Description:
CROSS-REFERENCE TO RELATED APPLICATIONS 
       [0001]    This application is a continuation of International Patent Application No. PCT/CN2013/087313, filed on Nov. 18, 2013, which claims priority to Chinese Patent Application No. 201310190470.4, filed on May 21, 2013, both of which are hereby incorporated by reference in their entireties. 
     
    
     TECHNICAL FIELD 
       [0002]    The present application relates to the field of communication, particularly to a channel competition method and a device thereof. 
       BACKGROUND 
       [0003]    In wireless local area networks (WLAN) system, data transmission of a station (STA) competes for a channel based on a mechanism of carrier sense multiple access with collision avoidance (CSMA/CA). In this mechanism, if a STA succeeds in the competition, the STA may use a whole frequency band of a basic service set (BSS) to which the STA belongs to transmit data, and if there is interference in a sub-band of the bands, the transmission at the whole frequency band fails. 
         [0004]    At present, the above problem is mainly solved through a back-off mechanism. In the back-off mechanism, an access point (AP) or STA maintains a back-off timer, and the back-off timer is set with a random back-off time. After the AP or STA detects an idle channel, the back-off timer is started when the channel is idle for a period of (Distributed Inter-Frame Spacing) DIFS, and the competition is launched when timing of the back-off timer ends. If in the back-off period, the AP or STA senses a data frame transmitted on the channel from other devices, the back-off timer is frozen and is restarted after a next detection that the channel is idle for the period of DIFS. The competition is launched when the timing of the back-off timer ends. In this technology, the AP or STA may launch the competition only when the timing of the back-off timer ends and no other devices compete currently, i.e., only one device can succeed in the channel competition at the same time. 
         [0005]    In the above technology, since only one device can succeed in the channel competition at the same time, spectrum efficiency of the network system is very low. 
       SUMMARY 
       [0006]    A channel competition method and a device thereof are provided, which may improve spectrum utilization rate of the network system. 
         [0007]    In one aspect, a channel competition method according to the embodiments of the disclosure includes: 
         [0008]    detecting, by a first device, whether a target channel includes sub-channel(s) in an idle state, and if it is detected that the target channel includes the idle sub-channel(s) in the idle state, the first device transmitting a request frame to a second device on a target sub-channel, where the target sub-channel is at least one sub-channel included in the idle sub-channel(s); and 
         [0009]    confirming, by the first device, a success in a competition for the target sub-channel once the first device receives a response frame sent from the second device, wherein the response frame is a response frame from the second device in response to the request frame. 
         [0010]    In a second aspect, a channel competition method is provided according to the embodiments of the disclosure, including: 
         [0011]    receiving, by a second device, on a target sub-channel, a request frame sent by a first device; where the target sub-channel is at least one sub-channel of idle sub-channel(s) in idle state included in a target channel. 
         [0012]    generating, by the second device, a response frame in response to the request frame, and transmitting the response frame to the first device, so that the first device confirms a success in competition for the target sub-channel. 
         [0013]    In a third aspect, a channel competition device is provided according to the embodiments of the disclosure, including a detecting module, a transmitting module and a conforming module, where: 
         [0014]    the detecting module is configured to detect whether a target channel includes sub-channel(s) in an idle state; 
         [0015]    the transmitting module is configured to transmit a request frame to a second device on a target sub-channel in a case that the detecting module detects that the target channel includes the idle sub-channel(s) in the idle state; where the target sub-channel is at least one sub-channel included in the idle sub-channel(s); and 
         [0016]    the conforming module is configured to confirm a success in a competition for the target sub-channel once the channel competition device receives a response frame sent by the second device; where the response frame is a response frame from the second device in response to the request frame. 
         [0017]    In a fourth aspect, a channel competition device is provided according to the embodiments of the disclosure, including a receiving module and a transmitting module, where 
         [0018]    the receiving module is configured to receive, on a target sub-channel, a request frame sent by a first device; where the target sub-channel is at least one sub-channel of idle sub-channel(s) in an idle state included in a target channel; 
         [0019]    the transmitting module is configured to generate a response frame in response to the request frame, and transmit the response frame to the first device, so that the first device confirms a success in a competition for the target sub-channel. 
         [0020]    In the above technical solutions, the first device detects whether the target channel includes idle sub-channel(s) in idle state, and if it is detected that the target channel includes the idle sub-channel(s) in the idle state, the first device transmits a request frame to a second device on a target sub-channel, where the target sub-channel is at least one sub-channel included in the idle sub-channel(s); and once the first device receives the response frame sent from the second device, the first device confirms the success in competition for the target sub-channel, where the response frame is response frame from the second device in response to the request frame. The first device only competes for a part of sub-channels of the target channel, and other devices may compete for other parts of the sub-channels of the target channel, thus spectrum utilization rate of the network system may be improved. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0021]      FIG. 1  is a flow chart of a channel competition method according to an embodiment of the application; 
           [0022]      FIG. 2  is a diagram of another channel competition method according to an embodiment of the application; 
           [0023]      FIG. 3  is a flow chart of another channel competition method according to an embodiment of the application; 
           [0024]      FIG. 4  is a flow chart of another channel competition method according to an embodiment of the application; 
           [0025]      FIG. 5  is a flow chart of another channel competition method according to an embodiment of the application; 
           [0026]      FIG. 6  is a diagram of another channel competition method according to an embodiment of the application; 
           [0027]      FIG. 7  is a structural diagram of a channel competition device according to an embodiment of the application; 
           [0028]      FIG. 8  is a structural diagram of another channel competition device according to an embodiment of the application; 
           [0029]      FIG. 9  is a structural diagram of another channel competition device according to an embodiment of the application; 
           [0030]      FIG. 10  is a structural diagram of another channel competition device according to an embodiment of the application; and 
           [0031]      FIG. 11  is a structural diagram of another channel competition device according to an embodiment of the application. 
       
    
    
     DETAILED DESCRIPTION OF THE EMBODIMENTS 
       [0032]      FIG. 1  is a flow chart of a channel competition method according to an embodiment of the application. As shown in  FIG. 1 , the method includes: 
         [0033]    Step  101 , a first device detects whether a target channel includes idle sub-channel(s) in an idle state; if it is detected that the target channel includes the idle sub-channel(s) in the idle state, the process proceeds to step  102 , and if it is detected that the target channel includes no idle sub-channel in the idle state, the process proceeds to step  101 ; 
         [0034]    Step  102 , the first device transmits a request frame on a target sub-channel to a second device; where the target sub-channel is at least one sub-channel included in the idle sub-channel(s); 
         [0035]    Step  103 , once the first device receives a response frame sent from the second device, the first device confirms a success in competition for the target sub-channel; where the response frame is a response frame from the second device in response to the request frame. 
         [0036]    Optionally, the first device may be a STA, or an AP. The second device may also be an AP, or a STA. In a case that the first device is a STA, the second device may also be a STA, or an AP, and in a case that the first device is an AP, the second device may be a STA, or an AP. 
         [0037]    Optionally, the target channel may be any channel in a network system. 
         [0038]    Optionally, when the first device competes for the target sub-channel, other devices may also compete for sub-channels in the target channel other than the target sub-channel. For example, as shown in  FIG. 2 , idle sub-channels of the target channel between the AP side and the STA include sub-channel 1 and sub-channel 2, thus STAT and STA2 may compete for sub-channel 1 and sub-channel 2 respectively after a fixed period (e.g., DIFS) since sub-channel 1 and sub-channel 2 are detected. 
         [0039]    Optionally, the forgoing request frame may be a data frame, and the forgoing response frame may be a confirmation frame, such as acknowledgement (ACK). The forgoing request frame may also be a short channel request frame (such as RTS frame, where RTS is a frame name defined in a protocol, without Chinese meaning), and the forgoing response frame may be a channel request response frame (such as CTS frame or a predefined response frame, where CTS is a frame name defined in the protocol, without Chinese meaning) In the embodiments of the application, the request frame and response frame include but are not limited to the forgoing described request frames and response frames. 
         [0040]    In the above technical solution, the first device detects whether the target channel includes the idle sub-channel(s) in the idle state; if it is detected that the target channel includes the idle sub-channel(s) in the idle state, the first device transmits, on the target sub-channel, the request frame to the second device, where the target sub-channel is at least one sub-channel included in the idle sub-channel(s); and once the first device receives the response frame sent from the second device, the first device confirms the success in competition for the target sub-channel, where the response frame is a response frame from the second device in response to the request frame. The first device only competes for a part of sub-channels of the target channel, and other devices may compete for other parts of the sub-channels of the target channel, thus spectrum utilization rate of the network system may be improved. 
         [0041]      FIG. 3  is a flow chart of another channel competition method according to an embodiment of the application. As shown in  FIG. 3 , the method includes: 
         [0042]    Step  201 , a first device detects whether a target channel includes idle channel element(s) in an idle state; if it is detected that the target channel includes the idle channel element(s) in the idle state, the process proceeds to step  202 , and if it is detected that the target channel includes no idle channel element in the idle state, the process proceeds to step  201 . 
         [0043]    The target channel includes a plurality of channel elements, and the channel elements include: 
         [0044]    at least one sub-carrier or at least one sub-channel. 
         [0045]    Optionally, one channel element may include one sub-carrier, or one channel element includes a plurality of continuous sub-carriers, or one channel element includes a plurality of discontinuous sub-carriers, or one channel element includes one or more sub-channels. 
         [0046]    Optionally, it may be predefined that the target channel includes a plurality of channel elements, and each channel element may be a minimum channel unit for the first device to launch a competition, i.e., the forgoing first device may launch the competition on any channel element included in the target channel. 
         [0047]    Step  202 , the first device transmits, on N channel elements included in the idle channel element(s), a request frame to a second device; where N is less than or equal to M, and M is a preset maximum quantity of channel elements participating the competition. 
         [0048]    For example, in step  201 , it is detected that the target channel includes 5 idle channel sub-elements, and in a case that M is 4, the request frame may be sent on at most 4 idle channel sub-elements in step  202 ; in another example, in step  201 , it is detected that the target channel includes 5 idle channel sub-elements, and in a case that M is 7, the request frame may be sent on at most 5 idle channel sub-elements in step  202 . 
         [0049]    Optionally, the forgoing request frame may include at least one of the following: 
         [0050]    identification information of the second device, identification information of the first device, length of a target data packet, quantity information of the requested time-frequency resource, channel feedback information, and quality of service (QoS) information. 
         [0051]    Optionally, in a case that the first device is an AP, the forgoing request frame may further include information for scheduling the second device. 
         [0052]    Step  203 , once the first device receives a response frame sent from the second device, the first device confirms a success in a competition for the N channel elements; where the response frame is a response frame from the second device in response to the request frame. 
         [0053]    Optionally, after the first device confirms the success in the competition for the target sub-channel, the first device may transmit the target data packet to the second device through the forgoing target sub-channel. 
         [0054]    As an optional implementation, step  203  includes: 
         [0055]    once the first device receives, on a first target channel element, the response frame sent from the second device, the first device confirms a success in the competition for the first target channel element, where the first target channel element is one or more channel elements included in the N channel elements. 
         [0056]    The forgoing first target channel element is one or more channel elements included in the forgoing N channel elements, i.e., as long as any one or more of the forgoing N channel elements receive the response frame sent from the second device, the success in competition for the forgoing first target channel may be confirmed. In other words, the second device transmits the response frame to the first device only on the successfully competed channel element. 
         [0057]    As an optional implementation, step  203  includes: 
         [0058]    once the first device receives, on a second target channel element, the response frame sent from the second device, the first device confirms a success in the competition for the N channel elements, where the second target channel element is any one channel element or any multiple channel elements included in the target channel. 
         [0059]    Optionally, in the implementation, the second device may transmit the response frame to the first device on all channel elements of the target channel. Once receiving the response frame on any one channel element or any multiple channel elements among all channel elements of the target channel, the first device confirms a success in a competition for the N channel elements. 
         [0060]    As an optional implementation, before step  202 , the method may further include: 
         [0061]    analyzing, by the first device, a quantity of channel elements required for transmitting a target data packet, and then setting a maximum quantity of the channel elements participating the competition based on the quantity; 
         [0062]    where the target data packet is the data packet needing to compete for transmission on the at least one sub-channel, i.e., the purpose of the channel competition method in the disclosure is to transmit the target data packet. 
         [0063]    For example, in a case that the target data packet is a video or audio data packet, maximum quantity of the channel elements participating the competition may be set at a relatively large value in the above steps, thus the competition may be launched on more channel elements, to compete for more channel elements with higher probability. For example, in a case that the target data packet is a background or text data packet, the maximum quantity of the channel elements participating the competition may be set at a relatively small value in the above steps, thus the competition may be launched on fewer channel elements, to compete for fewer channel elements. In other words, in the implementation, the first device may set the maximum quantity of the channel elements participating the competition in real time based on the target data packet. 
         [0064]    As an optional implementation, before step  202 , the method may further include: 
         [0065]    setting by the first device, based on a pre-obtained mapping relationship between data packets and the maximum quantities of the channel elements participating the competition, a quantity corresponding to the target data packet in the mapping relationship as the maximum quantity of the channel elements participating the competition. 
         [0066]    Optionally, in the implementation, the mapping relationship between the data packets sent by the AP or other devices and the maximum quantities of the channel elements participating the competition may be pre-obtained, and the mapping relationship indicates the maximum quantities of the channel elements participating the competition which should be set for the data packets. 
         [0067]    As an optional implementation, in a case that the first device is AP, before step  202 , the method may further include: 
         [0068]    setting, by the first device, a pre-designated number corresponding to the first device as the maximum quantity of the channel elements participating the competition. Since the number of STAs is greater than that of APs in a BSS, it is difficult for the AP to succeed in the competition in a case that the maximum quantity of the channel elements participating the competition set for the AP is equal to the maximum quantity of the channel elements participating the competition set for the STA, i.e., a probability of success competition of a downlink data packet is much smaller than that of a uplink data packet. To achieve a balance between the competition probabilities of uplink and downlink data packets, the maximum quantity of the channel elements participating the competition set for the AP may be set at a larger value, i.e., the pre-designated number corresponding to the first device is larger. 
         [0069]    As an optional implementation, in a case that the first device is AP, before step  202 , the method may further include: 
         [0070]    setting, by the first device, a quantity of all channel elements included in the target channel as the maximum quantity of the channel elements participating the competition. Thus the AP may launch the competition on the whole frequency band (all channel elements included in the target channel), and in this case, the AP succeeds in the competition as long as no conflict occurs on an arbitrary channel element. 
         [0071]    In the above technical solution, a variety of channel competition methods are conceived based on the embodiments, which may improve spectrum utilization rate of the network system. 
         [0072]      FIG. 4  is a flow chart of another channel competition method according to an embodiment of the application. As shown in  FIG. 4 , the method includes: 
         [0073]    Step  301 , a second device receives, on a target sub-channel, a request frame sent by a first device; where the target sub-channel is at least one of idle sub-channel(s) in an idle state included in a target channel. 
         [0074]    Step  302 , the second device generates a response frame in response to the request frame, and transmits the response frame to the first device, so that the first device confirms a success in competition for the target sub-channel. 
         [0075]    Optionally, the first device may be a STA, or an AP. The second device may also be an AP, or a STA. In a case that the first device is a STA, the second device may also be a STA, or an AP, and in a case that the first device is an AP, the second device may be a STA, or an AP. 
         [0076]    Optionally, the target channel may be any channel in a network system. 
         [0077]    Optionally, when the first device competes for the target sub-channel, other devices may also compete for sub-channels in the target channel other than the target sub-channel. For example, as shown in  FIG. 2 , idle sub-channels of the target channel between the AP side and the STA include sub-channel 1 and sub-channel 2, thus STAT and STA2 may compete for sub-channel 1 and sub-channel 2 respectively after a fixed period (e.g., DIFS) since sub-channel 1 and sub-channel 2 are detected. 
         [0078]    Optionally, the forgoing request frame may be a data frame, and the forgoing response frame may be a confirmation frame, such as acknowledgement (ACK). The forgoing request frame may also be a short channel request frame (such as RTS frame, where RTS is a frame name defined in a protocol, without Chinese meaning), and the forgoing response frame may be a channel request response frame (such as CTS frame or a predefined response frame, where CTS is a frame name defined in the protocol, without Chinese meaning) In the embodiments of the application, the request frame and response frame include but are not limited to the forgoing described request frames and response frames. 
         [0079]    In the above technical solution, the second device receives, on the target sub-channel, the request frame sent by the first device; where the target sub-channel is at least one of idle sub-channel(s) in an idle state included in the target channel; and the second device generates the response frame in response to the request frame, and transmits the response frame to the first device, so that the first device confirms the success in competition for the target sub-channel. The first device only competes for a part of sub-channels of the target channel, and other devices may compete for other parts of the sub-channels of the target channel, thus spectrum utilization rate of the network system may be improved. 
         [0080]      FIG. 5  is a flow chart of another channel competition method according to an embodiment of the application. As shown in  FIG. 5 , the method includes: 
         [0081]    Step  401 , a second device receives, on N channel elements included in idle channel element(s), a request frame sent by a first device; where the idle channel element is channel element in the idle state included in a target channel, N is less than or equal to M, and M is a maximum quantity, preset by the first device, of channel elements participating the competition. 
         [0082]    The target channel includes a plurality of channel elements, and the channel elements includes: 
         [0083]    at least one sub-carrier or at least one sub-channel. 
         [0084]    Optionally, the forgoing request frame may include at least one of the following: 
         [0085]    identification information of the second device, identification information of the first device, length of a target data packet, quantity information of the requested time-frequency resource, channel feedback information, and quality of service (QoS) information. 
         [0086]    Optionally, in a case that the first device is an AP, the forgoing request frame may further include information for scheduling the second device. 
         [0087]    Step  402 , the second device generates a response frame in response to the request frame, and transmits the response frame to the first device, so that the first device confirms a success in a competition for the N channel elements. 
         [0088]    As an optional implementation, transmitting the response frame to the first device in step  402  may include: 
         [0089]    transmitting, by the second device, the response frame to the first device on a first target channel element, so that the first device confirms a success in the competition for the first target channel element, where the first target channel element is one or more channel elements included in the N channel elements. 
         [0090]    As an optional implementation, step  402  may include: 
         [0091]    transmitting, by the second device, the response frame to the first device on a second target channel element, so that the first device confirms a success in a competition for the N channel elements, where the second target channel element is any one channel element or any multiple channel elements included in the target channel. 
         [0092]    Optionally, in a case that the second device is an AP, the second device may transmit, on the second target channel element, the response frame to a plurality of first devices simultaneously, the response frames sent to respective first devices may be the same or different, and the response frames may further include resource dispatch information and time-frequency resource information corresponding to respective first devices. 
         [0093]    In the above technical solution, a variety of channel competition methods are conceived based on the embodiments, which may improve spectrum utilization rate of the network system. 
         [0094]      FIG. 6  is a diagram of another channel competition method according to an embodiment of the application. As shown in  FIG. 6 , the method includes: 
         [0095]    Step  501 , a first device detects whether a target channel includes sub-channel(s) in an idle state, if it is detected that the target channel includes the idle sub-channel(s) in the idle state, the process proceeds to step  502 , and if it is detected that the target channel includes no idle sub-channel in the idle state, the process proceeds to step  501 ; 
         [0096]    Step  502 , the first device transmits, on a target sub-channel, a request frame to a second device; where the target sub-channel is at least one sub-channel included in the idle sub-channel(s); 
         [0097]    Step  503 , the second device transmits a response frame to the first device, where the response frame is a response frame from the second device in response to the request frame; 
         [0098]    Step  504 , the first device confirms a success in competition for the target sub-channel. 
         [0099]    In the above technical solution, the first device detects whether the target channel includes the idle sub-channel(s) in the idle state; if it is detected that the target channel includes the idle sub-channel(s) in the idle state, the first device transmits, on the target sub-channel, the request frame to the second device; where the target sub-channel is at least one sub-channel included in the idle sub-channel(s); the first device confirms the success in competition for the target sub-channel once receiving the response frame sent by the second device; where the response frame is a response frame from the second device in response to the request frame. The first device only competes for a part of sub-channels of the target channel, and other devices may compete for other parts of the sub-channels of the target channel, thus spectrum utilization rate of the network system may be improved. 
         [0100]    The following are device embodiments of the application, which are configured to execute the first to fifth method embodiments of the application. For convenient illustration, only parts related with embodiments of the application are shown. For specific technical details that are not disclosed, the first, second, third, fourth and fifth embodiments may be referred to. 
         [0101]      FIG. 7  is a structural diagram of a channel competition device according to an embodiment of the application. As shown in  FIG. 7 , the device includes a detecting module  11 , a transmitting module  12  and a conforming module  13 , where: 
         [0102]    the detecting module  11  is configured to detect whether a target channel includes sub-channel(s) in an idle state; 
         [0103]    the transmitting module  12  is configured to transmit, a request frame to a second device on a target sub-channel in a case that the detecting module  11  detects that the target channel includes the idle sub-channel(s) in the idle state; where the target sub-channel is at least one sub-channel included in the idle sub-channel(s); and 
         [0104]    the conforming module  13  is configured to confirm a success in a competition for the target sub-channel once the channel competition device receives a response frame sent by the second device; where the response frame is a response frame from the second device in response to the request frame. 
         [0105]    Optionally, the channel competition device may be a STA, or an AP. The second device may also be an AP, or a STA. 
         [0106]    In the above technical solution, the channel competition device detects whether the target channel includes the idle sub-channel(s) in the idle state, if it is detected that the target channel includes the idle sub-channel(s) in the idle state, the channel competition device transmits, on the target sub-channel, the request frame to the second device; where the target sub-channel is at least one sub-channel included in the idle sub-channel(s); and the channel competition device confirms the success in competition for the target sub-channel once receiving the response frame sent by the second device; where the response frame is a response frame from the second device in response to the request frame. The channel competition device only competes for a part of sub-channels of the target channel, and other devices may compete for other parts of the sub-channels of the target channel, thus spectrum utilization rate of the network system may be improved. 
         [0107]      FIG. 8  is a structural diagram of another channel competition device according to an embodiment of the application. As shown in  FIG. 8 , the device includes a detecting module  21 , a transmitting module  22  and a conforming module  23 , where: 
         [0108]    the detecting module  21  is configured to detect whether a target channel includes idle channel element(s) in an idle state. 
         [0109]    The target channel includes a plurality of channel elements, and the channel elements include: 
         [0110]    at least one sub-carrier or at least one sub-channel. 
         [0111]    Optionally, one channel element may include one sub-carrier, or one channel element includes a plurality of continuous sub-carriers, or one channel element includes a plurality of discontinuous sub-carriers, or one channel element includes one or more sub-channels. 
         [0112]    The transmitting module  22  is configured to, in a case that the detecting module  21  detects that the target channel includes the idle channel element(s) in the idle state, transmit a request frame to a second device on N channel elements included in idle channel element(s); where N is less than or equal to M, and M is a preset maximum quantity of channel elements participating the competition. 
         [0113]    Optionally, the forgoing request frame may include at least one of the following: 
         [0114]    identification information of the second device, identification information of the channel competition device, length of a target data packet, quantity information of the requested time-frequency resource, channel feedback information, and QoS information. 
         [0115]    Optionally, in a case that the channel competition device is an AP, the forgoing request frame may further include information for scheduling the second device. 
         [0116]    The conforming module  23  is configured to confirm a success in a competition for the N channel elements once the channel competition device receives a response frame sent by the second device; where the response frame is a response frame from the second device in response to the request frame. 
         [0117]    As an optional implementation, the conforming module  23  is further configured to confirm a success in a competition for a first target channel element, once the channel competition device receives on the first target channel element a response frame sent by the second device, where the first target channel element is one or more channel elements included in the N channel elements. 
         [0118]    As an optional implementation, the conforming module  23  is further configured to confirm a success in a competition for the N channel elements, once the channel competition device receives on a second target channel element a response frame sent by the second device, where the second target channel element is any one channel element or any multiple channel elements included in the target channel. 
         [0119]    As an optional implementation, the channel competition device may further include: 
         [0120]    a first setting unit (not shown in the drawings), configured to analyze a quantity of channel elements required for transmitting a target data packet, and then set a maximum quantity of channel elements participating the competition based on the quantity; 
         [0121]    where the target data packet is the data packet needing to compete for transmission on the at least one sub-channel. 
         [0122]    As an optional implementation, the channel competition device may further include: 
         [0123]    a second setting unit (not shown in the drawings), configured to set, based on a pre-obtained mapping relationship between data packets and the maximum quantities of the channel elements participating the competition, a quantity corresponding to the target data packet in the mapping relationship as the maximum quantity of the channel elements participating the competition; 
         [0124]    where the target data packet is the data packet needing to compete for transmission on the at least one sub-channel. 
         [0125]    As an optional implementation, the channel competition device is an access point device, and the channel competition device may further include: 
         [0126]    a third setting unit (not shown in the drawings), configured to set a pre-designated number corresponding to the first device as the maximum quantity of the channel elements participating the competition. 
         [0127]    As an optional implementation, the channel competition device is an access point device, and the channel competition device may further include: 
         [0128]    a fourth setting unit (not shown in the drawings), configured to set a quantity of all channel elements included in the target channel as the maximum quantity of the channel elements participating the competition. 
         [0129]    In the above technical solution, a variety of channel competition methods are conceived based on the embodiments, which may improve spectrum utilization rate of the network system. 
         [0130]      FIG. 9  is a structural diagram of another channel competition device according to an embodiment of the application. As shown in  FIG. 9 , the device includes a receiving module  31  and a transmitting module  32 , where: 
         [0131]    the receiving module  31  is configured to receive, on a target sub-channel, a request frame sent by a first device; where the target sub-channel is at least one sub-channel of idle sub-channel(s) in an idle state included in a target channel; and 
         [0132]    the transmitting module  32  is configured to generate a response frame in response to the request frame, and transmit the response frame to the first device, so that the first device confirms a success in competition for the target sub-channel. 
         [0133]    As an optional implementation, the target channel includes a plurality of channel elements, and the channel elements include: 
         [0134]    at least one sub-carrier or at least one sub-channel. 
         [0135]    Optionally, the receiving module  31  may further configured to receive, on N channel elements included in idle channel element(s), the request frame sent by the first device; where the idle channel element is the channel element in the idle state included in the target channel, N is less than or equal to M, and M is a maximum quantity, preset by the first device, of channel elements participating the competition. 
         [0136]    Optionally, the transmitting module  32  may further configured to transmit, on a first target channel element, the response frame to the first device, so that the first device confirms a success in the competition for the first target channel element, where the first target channel element is one or more channel elements included in the N channel elements; or 
         [0137]    Optionally, the transmitting module  32  may further configured to transmit, on a second target channel element, the response frame to the first device, so that the first device confirms a success in a competition for the N channel elements, where the second target channel element is any one channel element or any multiple channel elements included in the target channel. 
         [0138]    Optionally, the first device may be a STA, or an AP. The channel competition device may also be an AP, or a STA. 
         [0139]    Optionally, the target channel may be an arbitrary channel in a network system. 
         [0140]    In the above technical solution, the second device receives, on the target sub-channel, the request frame sent by the first device; where the target sub-channel is at least one sub-channel of idle sub-channel(s) in the idle state included in the target channel; the second device generates the response frame in response to the request frame, and transmits the response frame to the first device, so that the first device confirms the success in competition for the target sub-channel. The first device only competes for a part of sub-channels of the target channel, and other devices may compete for other parts of the sub-channels of the target channel, thus spectrum utilization rate of the network system may be improved. 
         [0141]      FIG. 10  is a structural diagram of another channel competition device according to an embodiment of the application. As shown in  FIG. 10 , the device includes a transmitter  41 , a receiver  42 , a storage  43 , and a processor  44  connected to the transmitter  41 , the receiver  42  and the storage  43 . The storage  43  stores a set of program codes, and the processor  44  is configured to invoke the program codes stored in the storage  43  to execute the following operations: 
         [0142]    detecting, through the transmitter  41  and receiver  42 , whether a target channel includes sub-channel(s) in an idle state, and controlling the transmitter  41  to transmit, on a target sub-channel, a request frame to a second device if it is detected that the target channel includes the idle sub-channel(s) in the idle state; where the target sub-channel is at least one sub-channel included in the idle sub-channel(s); and 
         [0143]    confirming a success in competition for the target sub-channel once the receiver  42  receives a response frame sent from the second device; where the response frame is a response frame from the second device in response to the request frame. 
         [0144]    Optionally, the first device may be a STA, or an AP. The channel competition device may also be an AP, or a STA. 
         [0145]    Optionally, the target channel may be nay channel in a network system. 
         [0146]    In another optional embodiment, the processor  44  is further configured to execute the following operations: 
         [0147]    detecting, through the transmitter  41  and receiver  42 , whether the target channel includes idle channel element(s) in idle state, and controlling the transmitter  41  to transmit, on N channel elements included in the idle channel element(s), the request frame to the second device if it is detected that the target channel includes the idle channel element(s) in the idle state; where N is less than or equal to M, and M is a preset maximum quantity of channel elements participating the competition; and 
         [0148]    confirming a success in a competition for the N channel elements once the receiver  42  receives the response frame sent from the second device; where the response frame is response frame from the second device in response to the request frame. 
         [0149]    The target channel includes a plurality of channel elements, and the channel elements include: 
         [0150]    at least one sub-carrier or at least one sub-channel. 
         [0151]    Optionally, one channel element may include one sub-carrier, or one channel element includes a plurality of continuous sub-carriers, or one channel element includes a plurality of discontinuous sub-carriers, or one channel element includes one or more sub-channels. 
         [0152]    Optionally, it may be predefined that the target channel includes a plurality of channel elements, and each channel element may be a minimum channel unit for the first device to launch a competition, i.e., the forgoing first device may launch the competition on any channel element included in the target channel. 
         [0153]    Optionally, the forgoing request frame may include at least one of the following: 
         [0154]    identification information of the second device, identification information of the channel competition device, length of a target data packet, quantity information of the requested time-frequency resource, channel feedback information, and QoS information. 
         [0155]    Optionally, in a case that the channel competition device is an AP, the forgoing request frame may further include information for scheduling the second device. 
         [0156]    As an optional implementation, confirming, by the processor  44 , a success in a competition for the N channel elements once the receiver  42  receives the response frame sent from the second device may include: 
         [0157]    confirming a success in a competition for a first target channel element once the receiver  42  receives, on the first target channel element, the response frame sent from the second device, where the first target channel element is one or more channel elements included in the N channel elements. 
         [0158]    As an optional implementation, confirming, by the processor  44 , a success in a competition for the N channel elements once the receiver  42  receives the response frame sent from the second device may include: 
         [0159]    confirming, by the first device, a success in the competition for the N channel elements once the receiver  42  receives, on a second target channel element, the response frame sent from the second device, where the second target channel element is any one channel element or any multiple channel elements included in the target channel. 
         [0160]    As an optional implementation, before controlling the transmitter  41  to transmit the request frame to the second device on N channel elements included in the idle channel element(s), the processor  44  is further configured to execute the following operations: 
         [0161]    setting, based on a pre-obtained mapping relationship between data packets and the maximum quantities of the channel elements participating the competition, a quantity corresponding to the target data packet in the mapping relationship as the maximum quantity of the channel elements participating the competition. 
         [0162]    The target data packet is the data packet needing to compete for transmission on the at least one sub-channel, i.e., the purpose of the channel competition method in the disclosure is to transmit the target data packet. 
         [0163]    As an optional implementation, before controlling the transmitter  41  to transmit the request frame to the second device on N channel elements included in the idle channel element(s), the processor  44  is further configured to execute the following operations: 
         [0164]    analyzing a quantity of channel elements required for transmitting a target data packet, and then setting a maximum quantity of channel elements participating the competition based on the quantity; 
         [0165]    where the target data packet is the data packet needing to compete for transmission on the at least one sub-channel, i.e., the purpose of the channel competition method in the disclosure is to transmit the target data packet. 
         [0166]    As an optional implementation, in a case that the channel competition device is an AP, the processor  44  is further configured to execute the following operations before controlling the transmitter  41  to transmit the request frame to the second device on N channel elements included in the idle channel element(s): 
         [0167]    setting a quantity of all channel elements included in the target channel as the maximum quantity of the channel elements participating the competition. 
         [0168]    As an optional implementation, in a case that the channel competition device is an AP, the processor  44  is further configured to execute the following operations before controlling the transmitter  41  to transmit the request frame to the second device on N channel elements included in the idle channel element(s): 
         [0169]    setting, by the first device, a pre-designated number corresponding to the first device as the maximum quantity of the channel elements participating the competition. 
         [0170]    In the above technical solution, the channel competition device detects whether the target channel includes the idle sub-channel(s) in the idle state, if it is detected that the target channel includes the idle sub-channel(s) in the idle state, the channel competition device transmits, on the target sub-channel, the request frame to the second device; where the target sub-channel is at least one sub-channel included in the idle sub-channel(s); and the channel competition device confirms the success in competition for the target sub-channel once receiving the response frame sent by the second device; where the response frame is a response frame from the second device in response to the request frame. The first device only competes for a part of sub-channels of the target channel, and other devices may compete for other parts of the sub-channels of the target channel, thus spectrum utilization rate of the network system may be improved. 
         [0171]      FIG. 11  is a structural diagram of another channel competition device according to an embodiment of the application. As shown in  FIG. 11 , the device includes a transmitter  51 , a receiver  52 , a storage  53 , and a processor  54  connected to the transmitter  51 , the receiver  52  and the storage  53 . The storage  53  stores a set of program codes, and the processor  54  is configured to invoke the program codes stored in the storage  43  to execute the following operations: 
         [0172]    controlling the receiver  52  to receive, on a target sub-channel, a request frame sent by a first device; where the target sub-channel is at least one sub-channel of idle sub-channel(s) in an idle state included in a target channel; and 
         [0173]    generating a response frame in response to the request frame, and controlling the transmitter  52  to transmit the response frame to the first device, so that the first device confirms a success in competition for the target sub-channel. 
         [0174]    Optionally, the first device may be a STA, or an AP. The channel competition device may also be an AP, or a STA. 
         [0175]    Optionally, the target channel may be an arbitrary channel in a network system. 
         [0176]    In another optional implementation, the processor  54  is further configured to execute the following operations: 
         [0177]    controlling the receiver  52  to receive, on N channel elements included in idle channel element(s), the request frame sent by the first device; where the idle channel element is channel element in the idle state included in the target channel, N is less than or equal to M, and M is a maximum quantity, preset by the first device, of channel elements participating the competition; and 
         [0178]    generating a response frame in response to the request frame, and controlling the transmitter  51  to transmit the response frame to the first device, so that the first device confirms a success in a competition for the N channel elements. 
         [0179]    The target channel includes a plurality of channel elements, and the channel elements include: 
         [0180]    at least one sub-carrier or at least one sub-channel. 
         [0181]    Optionally, the forgoing request frame may include at least one of the following: 
         [0182]    identification information of the second device, identification information of the first device, length of a target data packet, quantity information of the requested time-frequency resource, channel feedback information, and quality of service (QoS) information. 
         [0183]    Optionally, in a case that the first device is an AP, the forgoing request frame may further include information for scheduling the second device. 
         [0184]    As an optional implementation, controlling, by the processor  54 , the transmitter  51  to transmit the response frame to the first device, may include: 
         [0185]    controlling the transmitter  51  to transmit the response frame to the first device on a first target channel element, so that the first device confirms a success in the competition for the first target channel element, where the first target channel element is one or more channel elements included in the N channel elements. 
         [0186]    As an optional implementation, controlling, by the processor  54 , the transmitter  51  to transmit the response frame to the first device, may include: 
         [0187]    controlling the transmitter  51  to transmit the response frame to the first device on a second target channel element, so that the first device confirms a success in a competition for the N channel elements, where the second target channel element is any one channel element or any multiple channel elements included in the target channel. 
         [0188]    In the above technical solution, the second device receives, on the target sub-channel, the request frame sent by the first device; where the target sub-channel is at least one sub-channel of idle sub-channel(s) in the idle state included in the target channel; and the second device generates the response frame in response to the request frame, and transmits the response frame to the first device, so that the first device confirms the success in competition for the target sub-channel. The first device only competes for a part of sub-channels of the target channel, and other devices may compete for other parts of the sub-channels of the target channel, thus spectrum utilization rate of the network system may be improved. 
         [0189]    Those skilled in the art may understand that, all of or a part of the steps implementing the above methods may be accomplished through related hardware instructed by programs, and the programs may be stored in a computer readable storage medium. The programs may include the steps of the method embodiments when being executed, and the storage medium may be disc, compact disc, read-only memory (ROM), random access memory (RAM), etc. 
         [0190]    Preferred embodiments of the disclosure are described above, and are not intended to limit the scope of the disclosure. Any equivalent modification based on the claims of the disclosure should falls in the scope of the disclosure.