WO2017036258A1 - Contention access method, contention access device, base station and contention access system - Google Patents

Contention access method, contention access device, base station and contention access system Download PDF

Info

Publication number
WO2017036258A1
WO2017036258A1 PCT/CN2016/090856 CN2016090856W WO2017036258A1 WO 2017036258 A1 WO2017036258 A1 WO 2017036258A1 CN 2016090856 W CN2016090856 W CN 2016090856W WO 2017036258 A1 WO2017036258 A1 WO 2017036258A1
Authority
WO
WIPO (PCT)
Prior art keywords
channel
subchannel
backoff
idle
station
Prior art date
Application number
PCT/CN2016/090856
Other languages
French (fr)
Chinese (zh)
Inventor
杨懋
屈桥
李云波
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN201510738789.5A external-priority patent/CN106488580B/en
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2017036258A1 publication Critical patent/WO2017036258A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W74/00Wireless channel access
    • H04W74/08Non-scheduled access, e.g. ALOHA

Definitions

  • the embodiments of the present invention relate to the field of wireless communications technologies, and in particular, to a contention access method, a contention access device, a station, and a contention access system.
  • Wireless Local Area Networks is a data transmission system that uses radio frequency technology to communicate and connect in the air using electromagnetic waves.
  • Station referred to as STA
  • Access Point referred to as The AP
  • the AP is a basic component of the WLAN. Specifically, the AP connects the STAs together and then connects the wireless network to the Ethernet.
  • the IEEE 802.11 protocol is a standard established by the Institute of Electrical and Electronics Engineers for wireless local area networks in September 2009. Currently commonly used protocols are: IEEE 802.11n and IEEE 802.11ac, and multi-channel communication is used in the above two protocols. .
  • the STA accesses the signal in a manner that is avoided by the carrier Sense Multiple Access with Collision Avoidance (CSMA/CA), that is, the STA needs to transmit data in a competitive manner.
  • CSMA/CA carrier Sense Multiple Access with Collision Avoidance
  • a backoff value needs to be determined first.
  • the AP sends a Trigger Frame (TF) to indicate a subchannel that can be used for random contention. After receiving the TF, the STA reduces the backoff value by one. If the backoff value becomes 0, the STA randomly selects one subchannel to transmit the uplink packet.
  • TF Trigger Frame
  • the STA randomly selects one subchannel to transmit the uplink data packet. If the channel to which the randomly selected subchannel belongs is busy, the STA cannot send the uplink data packet, and also interferes with other data packets being transmitted by using the subchannel. , reducing the efficiency of uplink access, thereby reducing the network's performance.
  • the embodiments of the present invention provide a contention access method, a contention access device, a site, and a contention access system, which are used to improve uplink access efficiency and improve network performance.
  • a first aspect of the present invention provides a contention access method, including:
  • the station listens to whether the channel corresponding to the channel identifier is idle;
  • the station detects that there is a free channel, select at least one subchannel from the idle channel according to the allocation information of the idle channel, and send a data packet by using the selected at least one subchannel; or
  • the allocation information corresponding to the idle channel or the allocation information corresponding to the channel identifier included in the trigger frame is performed, and the backoff processing is performed.
  • the allocation information of the idle channel includes a subchannel for contention
  • the allocation information corresponding to the idle channel or the The allocation information corresponding to the channel identifier included in the trigger frame is performed, and the backoff processing is performed, including:
  • the first backoff value is a backoff value when the station receives the trigger frame, and the first number is the number of subchannels used for contention in the allocation information of the idle channel.
  • the method further includes:
  • the backoff value is greater than 0, the backoff is not completed, and the data packet is not sent.
  • the allocation information corresponding to the channel identifier includes a subchannel for contention
  • the allocation information corresponding to the idle channel or The allocation information corresponding to the channel identifier included in the trigger frame is performed at the backoff Rational, including:
  • the first backoff value is a backoff value when the station receives the trigger frame
  • the second number is the total number of all the subchannels used for contention included in the trigger frame.
  • the method further includes:
  • the backoff is not completed, and the data packet is not sent.
  • the allocation information of the idle channel includes a subchannel for contention and allocated to the station, Channel allocation information, selecting at least one subchannel from the idle channel, and transmitting the data packet by using the selected at least one subchannel, including:
  • the method further includes:
  • the allocation information corresponding to the idle channel or the allocation information corresponding to the channel identifier included in the trigger frame is determined. , carry out the evacuation process.
  • the method further includes:
  • the existing channel for contention and the subchannel allocated to the station belongs to is not an idle channel, selecting at least one subchannel from the idle channel according to the allocation information of the idle channel, and passing The selected at least one subchannel transmits a data packet.
  • a second aspect of the present invention provides a contention access apparatus, including:
  • a transceiver module configured to receive a trigger frame sent by the access point, where the trigger frame includes a channel identifier and allocation information corresponding to the channel identifier;
  • a listening module configured to listen to whether a channel corresponding to the channel identifier is idle
  • a processing module if the listening module detects that there is a free channel, and is configured to select at least one subchannel from the idle channel according to the allocation information of the idle channel, and trigger the transceiver module to pass the selected
  • the at least one subchannel transmits the data packet; or performs the backoff processing according to the allocation information corresponding to the idle channel or the allocation information corresponding to the channel identifier included in the trigger frame.
  • the processing module includes:
  • the first backoff unit is configured to subtract the first backoff value from the first backoff value according to the allocation information corresponding to the idle channel, and obtain a second backoff value;
  • a first determining unit configured to determine whether the second backoff value is less than or equal to 0, and if the second backoff value is less than or equal to 0, select at least one subchannel from the idle channel, and trigger the transceiver module to pass Selecting at least one subchannel to send a data packet;
  • the first backoff value is a backoff value when the station receives the trigger frame, and the first number is the number of subchannels used for contention in the allocation information of the idle channel.
  • the second backoff value is greater than 0, the backoff is not completed, and the data packet is not sent.
  • the processing module includes:
  • a second backoff unit configured to subtract a second backoff value from the second backoff value according to the allocation information corresponding to the channel identifier included in the trigger frame, to obtain a third backoff value
  • a second determining unit configured to determine whether the third backoff value is less than or equal to 0, if the third back If the value of the evasion is less than or equal to 0, selecting at least one subchannel from the idle channel, and triggering the transceiver module to send the data packet by using the selected at least one subchannel;
  • the first backoff value is a backoff value when the station receives the trigger frame
  • the second number is the total number of all the subchannels used for contention included in the trigger frame.
  • the fourth possible implementation manner of the second aspect if the third backoff value is greater than 0, the backoff is not completed, and the data packet is not sent.
  • the processing is performed.
  • the module is specifically configured to select, according to the idle channel allocation information, the subchannel for contention and allocated to the contention access device from the idle channel, and trigger the transceiver module to select by using the The data packet is used for contention and is allocated to the sub-channel of the contention access device.
  • the processing module is further configured to determine whether, in the trigger frame, there is a subchannel allocated for the contention and allocated to the contention access device If yes, determining whether the existing channel for contention and the subchannel allocated to the contention access device belongs to is a free channel;
  • the corresponding information according to the idle channel or the channel identifier included in the trigger frame is corresponding.
  • the allocation information is subjected to backoff processing.
  • the processing module is further configured to determine whether, in the trigger frame, there is a subchannel allocated for the contention and allocated to the contention access device If yes, determining whether the existing channel for contention and the subchannel allocated to the contention access device belongs to is a free channel;
  • the existing channel for contention and the subchannel allocated to the contention access device belongs to is not an idle channel, selecting at least one subchannel from the idle channel according to the allocation information of the idle channel And transmitting the data packet through the selected at least one subchannel.
  • a third aspect of the present invention provides a station, including: a processor, a transmitter, and a receiver,
  • the receiver is configured to receive a trigger frame sent by the access point, where the trigger frame includes a channel identifier and allocation information corresponding to the channel identifier;
  • the processor is configured to listen to whether a channel corresponding to the channel identifier is idle;
  • the processor is further configured to: if the idle channel is detected, select at least one subchannel from the idle channel according to the allocation information of the idle channel, and trigger the transmitter to pass the selected at least One subchannel transmits a data packet; or performs a backoff process according to the allocation information corresponding to the idle channel or the allocation information corresponding to the channel identifier included in the trigger frame.
  • the processor is specifically configured to:
  • the first backoff value is a backoff value when the station receives the trigger frame, and the first number is the number of subchannels used for contention in the allocation information of the idle channel.
  • the backoff value is greater than 0, the backoff is not completed, and the data packet is not sent.
  • the processor is further configured to:
  • the first backoff value is a backoff value when the station receives the trigger frame
  • the second number is the total number of all the subchannels used for contention included in the trigger frame.
  • the fourth possible implementation manner of the third aspect if the third backoff value is greater than 0, the backoff is not completed, and the data packet is not sent.
  • the processor specifically uses And: selecting, according to the idle channel allocation information, the subchannel used for contention and allocated to the station from the idle channel, and triggering the transmitter to use the selected one for The data packets are transmitted by the subchannels that are contentive and assigned to the station.
  • the processor is further configured to: determine, in the trigger frame, whether there is a subchannel for contention and allocated to the station, if If yes, it is determined whether the existing channel for contention and the subchannel allocated to the station belongs to is a free channel;
  • the allocation information corresponding to the idle channel or the allocation information corresponding to the channel identifier included in the trigger frame is determined. , carry out the evacuation process.
  • the processor is further configured to: determine, in the trigger frame, whether there is a subchannel for contention and allocated to the station, if If yes, it is determined whether the existing channel for contention and the subchannel allocated to the station belongs to is a free channel;
  • the existing channel for contention and the subchannel allocated to the station belongs to is not an idle channel, selecting at least one subchannel from the idle channel according to the allocation information of the idle channel, and passing The selected at least one subchannel transmits a data packet.
  • a fourth aspect of the present invention provides a contention access system comprising: an access point and a station, the station being a contention access device.
  • the contention access method, the contention access device, the station, and the contention access system provided by the embodiment of the present invention according to the trigger frame sent by the received access point, the station listens to whether the channel corresponding to the channel identifier is idle, and is in the process of detecting When the idle channel is heard, selecting at least one subchannel from the idle channel according to the allocation information of the idle channel, and transmitting the data packet through the selected at least one subchannel, or according to the idle channel and the channel identifier included in the trigger frame.
  • Allocating information, performing backoff processing first determining whether the channel corresponding to the channel identifier is an idle channel, and then selecting at least one subchannel from the available idle channels, or corresponding to the allocation information corresponding to the idle channel or the channel identifier included in the trigger frame.
  • the allocation information is subjected to the backoff processing. Therefore, it is ensured that once a subchannel is selected, it is necessarily a subchannel in the idle channel, thereby avoiding the problem that the channel of the subchannel randomly selected by the station is busy in the prior art.
  • Reduce the efficiency of uplink access thereby reducing the performance of the network Thereby effectively improving the efficiency of uplink access the site, and improving network performance.
  • FIG. 1 is a schematic structural diagram of a WLAN system according to the present invention.
  • FIG. 2 is a flowchart of Embodiment 1 of a contention access method according to an embodiment of the present invention
  • FIG. 3 is a flowchart of Embodiment 2 of a contention access method according to an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of Embodiment 2 of a contention access method according to an embodiment of the present disclosure
  • FIG. 5 is a flowchart of Embodiment 3 of a contention access method according to an embodiment of the present disclosure
  • FIG. 6 is a schematic diagram of Embodiment 3 of a contention access method according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic diagram of Embodiment 5 of a contention access method according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic diagram of Embodiment 6 of a contention access method according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of Embodiment 1 of a contention access device according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of Embodiment 2 of a contention access device according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic structural diagram of Embodiment 3 of a contention access device according to an embodiment of the present disclosure.
  • FIG. 12 is a schematic structural diagram of a site according to an embodiment of the present disclosure.
  • FIG. 13 is a schematic structural diagram of a contention access system according to an embodiment of the present invention.
  • FIG. 14 is a schematic diagram of an application scenario according to Embodiment 7 of the present invention.
  • FIG. 15 is a flowchart of a communication method applied to a wireless local area network according to Embodiment 7 of the present invention.
  • the embodiment of the present invention can be applied to a WLAN.
  • the standard adopted by the WLAN is the Institute of Electrical and Electronics Engineers (IEEE) 802.11 series.
  • the station (Station, referred to as STA) and the access point (AP) are the basic components of the WLAN.
  • the STA is generally a client in the WLAN.
  • the STA can be mobile or fixed, and is the most basic component of a wireless local area network.
  • the AP is an access point for mobile users to enter the wired network. It is mainly deployed in the home, inside the building, and inside the campus. The typical coverage radius is tens of meters to hundreds of meters. Of course, it can also be deployed outdoors.
  • An AP is equivalent to a bridge connecting a wired network and a wireless network. Its main function is to connect the wireless network clients together and then connect the wireless network to the Ethernet.
  • the AP may be a terminal device or a network device with a Wireless Fidelity (WiFi) chip.
  • the AP may be a device supporting the 802.11ax system. Further, the AP may be a device supporting multiple WLAN technologies such as 802.11ac, 802.11n, 802.11g, 802.11b, and 802.11a.
  • FIG. 1 is a schematic structural diagram of a WLAN system according to the present invention.
  • an AP in a WLAN system can perform information interaction with multiple STAs (including three examples), including STA1, STA2, and STA3.
  • STA1, STA2, and STA3 can perform information interaction with multiple STA groups.
  • single channel communication is adopted in the 802.11a protocol.
  • multi-channel communication is adopted in the 802.11ac and 802.11n protocols, and the bandwidth of each channel in the multi-channel communication is not specifically limited, and different The bandwidth specification for the channel is different in the protocol.
  • the number of divided channels is determined according to specific scheduling conditions.
  • a communication method in which multiple channels and channels are divided into multiple subchannels is proposed, wherein each subchannel The bandwidth and the number of subchannels are determined according to specific scheduling conditions. In this communication mode, not only each subchannel can transmit data packets, but also multiple channels can be used to transmit data packets. Therefore, this communication method can be greatly Improve uplink access efficiency.
  • the STA accesses the channel in a CSMA/CA manner, that is, the STA needs to transmit data packets in a contentive manner.
  • the current WLAN use bandwidth type is 20MHz, 40MHz, 80MHz, 160MHz, 80+80MHz.
  • This channel aggregation mode is a continuous channel aggregation mode, and the next generation WLAN can also adopt a non-continuous channel aggregation method, but In the channel aggregation mode, both the AP and the STA have the capability of full channel interception. Therefore, the channels in the embodiment of the present invention are all described by using a channel with a bandwidth of 20 MHz as an example.
  • FIG. 2 is a flowchart of Embodiment 1 of a contention access method according to an embodiment of the present invention; as shown in FIG. 2, the contention access method provided by Embodiment 1 of the present invention specifically includes the following steps:
  • Step S201 The station receives a trigger frame sent by the access point, where the trigger frame includes allocation information corresponding to the channel identifier and the channel identifier.
  • the trigger frame includes at least one channel identifier, and the allocation information corresponding to the channel identifier is specifically, which subchannels in each channel are available for random contention.
  • Step S202 The station listens to whether the channel corresponding to the channel identifier is idle.
  • Step S203 If the station detects that there is a free channel, select at least one subchannel from the idle channel according to the allocation information of the idle channel, and send the data packet through the selected at least one subchannel; or according to the allocation information corresponding to the idle channel. Or the allocation information corresponding to the channel identifier included in the trigger frame is used to perform the backoff processing.
  • the contention access method detects whether the channel corresponding to the channel identifier is idle according to the trigger frame sent by the received access point, and according to the allocation of the idle channel when detecting the idle channel.
  • the information is: selecting at least one subchannel from the idle channel, and transmitting the data packet by using the selected at least one subchannel, or performing backoff processing according to the allocation information corresponding to the channel identifier included in the idle channel and the trigger frame, because the channel identifier is determined first Which of the corresponding channels is an idle channel, and at least one subchannel is selected from the available idle channels, or the backoff processing is performed according to the allocation information corresponding to the idle channel or the allocation information corresponding to the channel identifier included in the trigger frame, thereby ensuring Once the at least one subchannel is selected, it is necessarily a subchannel in the idle channel, thereby avoiding the efficiency of reducing the uplink access caused by the busy channel of the subchannel randomly selected by the station in the prior art, thereby reducing the network. Performance issues, which in turn
  • One AP interacts with two STAs, and two STAs are STA1 and STA2.
  • two STAs are STA1 and STA2.
  • one AP can also exchange information with multiple STA groups.
  • FIG. 3 is a flowchart of Embodiment 2 of the contention access method according to the embodiment of the present invention.
  • the allocation information of the idle channel includes a subchannel for contention
  • the allocation information corresponding to the idle channel in step S203 is shown.
  • the allocation information corresponding to the channel identifier included in the frame is triggered, and the backoff processing is performed, including:
  • Step S301 Subtract the first backoff value from the first backoff value according to the allocation information corresponding to the idle channel, and obtain the second backoff value.
  • the first backoff value is a backoff value when the station receives the trigger frame, and the first number is the number of subchannels used for contention in the allocation information of the idle channel.
  • Step S302 Determine whether the second backoff value is less than or equal to 0. If the second backoff value is less than or equal to 0, select at least one subchannel from the idle channel, and send the data packet through the selected at least one subchannel.
  • the contention access method provided in this embodiment further includes: if the second backoff value is greater than 0, the backoff is not completed, and the data packet is not sent.
  • the description includes two channel identifiers in the trigger frame as an example, specifically including: channel 1 and channel 2, and dividing each channel into four subchannels, and the sub-number of each channel is from The next time is sub-channel 1-4, wherein the allocation information corresponding to each channel identifier of the trigger frame is that 4 subchannels of channel 1 can be used for random competition, and subchannel 1 and subchannel 2 of channel 2 can be used for random competition. .
  • the trigger frame may include multiple channel identifiers, and the corresponding allocation information of each channel identifier is not limited thereto.
  • the STA's first backoff value is selected before the AP transmits the TF frame according to the selection in the IEEE 802.11 protocol.
  • the first backoff value of STA1 is 3, and the first backoff value of STA2 is 7 as an example.
  • FIG. 4 is a schematic diagram of Embodiment 2 of a contention access method according to an embodiment of the present invention.
  • STA1 receives an access point to send the trigger frame, for example, TF-1, and detects It is heard that channel 1 is idle and channel 2 is busy. Since the allocation information corresponding to channel 1 in TF-1 is that there are 4 subchannels on channel 1 that can be used for random competition, STA1 decrements the first backoff value by 4 (ie a first number) to obtain a second backoff value, the second backoff value being less than or equal to 0.
  • STA1 may select at least one subchannel from the idle channel (channel 1), for example, select subchannel 1 to transmit uplink data DATA. -1 (ie, data packet), or select subchannel 1 and subchannel 2, and send uplink data DATA-1 (ie, data packet) through subchannel 1 and subchannel 2.
  • channel 1 select subchannel 1 to transmit uplink data DATA. -1 (ie, data packet), or select subchannel 1 and subchannel 2, and send uplink data DATA-1 (ie, data packet) through subchannel 1 and subchannel 2.
  • FIG. 4 is to select a subchannel. 1 is explained as an example.
  • the station is STA2, STA2 detects that channel 1 is busy, and channel 2 is idle. Since the allocation information corresponding to channel 2 in TF-1 is 2 channels on channel 2, it can be used for random competition.
  • the STA1 subtracts 2 (that is, the first number) from the first backoff value to obtain a second backoff value (5). Since the second backoff value is greater than 0, STA2 backoff is not completed, and cannot be selected from the idle channel.
  • the subchannel transmits uplink data DATA-2 (ie, a data packet).
  • the trigger frame sent by the access point may be received again, for example, TF-2, and after receiving the TF-2, STA2 has a first backoff value of 5, and then performs physical carrier sensing. STA2 hears that both channel 1 and channel 2 are idle. Since TF-2 indicates that there are 6 subchannels on channel 1 and channel 2 that can be used for contention at any time, STA2 subtracts 6 from the first backoff value. The first number is obtained to obtain the second backoff value, and the second backoff value is less than 0. Therefore, STA2 may randomly select at least one subchannel from the idle channel to send the uplink data DATA-2.
  • FIG. 5 is a flowchart of Embodiment 3 of a contention access method according to an embodiment of the present invention.
  • the allocation information corresponding to the channel identifier includes the subchannel for contention
  • the allocation information corresponding to the idle channel or the trigger frame is included in step S203.
  • the channel identification corresponds to the allocation information, and performs backoff processing, including:
  • step S501 the first backoff value is subtracted from the second number according to the allocation information corresponding to the channel identifier included in the trigger frame, and the third backoff value is obtained.
  • the first backoff value is a backoff value when the station receives the trigger frame
  • the second number is the total number of all the subchannels used for contention included in the trigger frame.
  • Step S502 Determine whether the third backoff value is less than or equal to 0. If the third backoff value is less than or equal to 0, select at least one subchannel from the idle channel, and send the data packet by using the selected at least one subchannel.
  • the contention access method provided in this embodiment further includes: if the third backoff value is greater than 0, the backoff is not completed, and the data packet is not sent.
  • the description includes two channel identifiers in the trigger frame as an example, specifically including: channel 1 and channel 2, and dividing each channel into four subchannels, and the sub-number of each channel is from The next time is sub-channel 1-4, wherein the allocation information corresponding to each channel identifier of the trigger frame is that 4 subchannels of channel 1 can be used for random competition, and subchannel 1 and subchannel 2 of channel 2 can be used for random competition. .
  • the trigger frame may include multiple channel identifiers, and the corresponding allocation information of each channel identifier is not limited thereto.
  • the STA's first backoff value is selected before the AP transmits the TF frame according to the selection in the IEEE 802.11 protocol.
  • the first backoff value of STA1 is 3, and the second backoff value of STA2 is 7 as an example.
  • FIG. 6 is a schematic diagram of Embodiment 3 of a contention access method according to an embodiment of the present invention.
  • STA1 receives an access point to send the trigger frame, for example, TF-1, and detects It is heard that channel 1 is idle and channel 2 is busy. Since the allocation information corresponding to the channel identifier in TF-1 is that channel 1 and channel 6 have a total of six subchannels that can be used for random competition, STA1 reduces the first backoff value. 6 (ie, the second number) to obtain a third backoff value, which is less than or equal to 0.
  • STA1 may select at least one subchannel from the idle channel (channel 1), for example, select subchannel 1 to send Uplink data DATA-1 (ie, data packet), or select subchannel 1 and subchannel 2, and send uplink data DATA-1 (ie, data packet) through subchannel 1 and subchannel 2, it should be noted that FIG. 6 is The subchannel 1 is selected as an example for explanation.
  • STA2 detects that channel 1 is busy and channel 2 is idle. Since the allocation information corresponding to the TF-1 channel identifier is that channel 1 and channel 2 have 6 subchannels available for random competition, STA2 will The first backoff value is subtracted by 6 (ie, the second number) to obtain the third backoff value (1). Since the third backoff value is greater than 0, the STA2 backoff is not completed, and the uplink data cannot be selected from the idle channel. DATA-2 (ie packet).
  • the trigger frame sent by the access point may be received again, for example, TF-2, and after receiving the TF-2, STA2 has a first backoff value of 5, and then performs physical carrier sensing. STA2 hears that both channel 1 and channel 2 are idle. Since TF-2 indicates that there are 6 subchannels on channel 1 and channel 2 that can be used for contention at any time, STA2 subtracts 6 from the first backoff value. The second number is obtained to obtain the third backoff value, and the third backoff value is less than 0. Therefore, STA2 can randomly select at least one subchannel from the idle channel (channel 1 and channel 2) to transmit the uplink data DATA-2.
  • the allocation information includes subchannels for contention and allocated to the station;
  • step S203 according to the allocation information of the idle channel, selecting at least one subchannel from the idle channel, and transmitting the data packet through the selected at least one subchannel is:
  • a subchannel for contention and allocated to the station is selected from the idle channel to transmit the data packet.
  • the description includes two channel identifiers in the trigger frame as an example, specifically including: channel 1 and channel 2, and dividing each channel into 4 subchannels, and subchannels of each channel are The next time is sub-channel 1-4, wherein the allocation information corresponding to each channel identifier of the trigger frame is that 4 subchannels of channel 1 can be used for random competition, and subchannel 1 and subchannel 2 of channel 2 can be used for random competition. And subchannel 1 of channel 2 is allocated to STA1. It can be understood that the subchannel allocated to the station may also be allocated to STA2, and the invention is not limited thereto.
  • the STA's first backoff value is selected before the AP transmits the TF frame according to the selection in the IEEE 802.11 protocol.
  • the first backoff value of STA1 is 3, and the first backoff value of STA2 is 7 as an example.
  • the STA1 receives the triggering frame, for example, TF-1, and the channel 1 is busy, and the channel 2 is idle, because the subchannel 1 of the channel 2 is allocated in the TF-1. To STA1, therefore, according to the idle channel allocation information, STA1 selects subchannel 1 of channel 2 from the idle channel 2 to transmit uplink data DATA-1 (i.e., a data packet).
  • DATA-1 uplink data
  • the STA2 is the STA2, the STA2 is aware that the channel 1 is busy, and the channel 2 is idle.
  • the STA2 can use the contention access mode of the second embodiment and the third embodiment to select the subchannel to transmit the subchannel. In this embodiment, the embodiment is used.
  • the contention access method of the third is described as an example. Since the allocation information corresponding to the TF-1 channel identifier is that there are 6 subchannels on the channel 1 and the channel 2, which can be used for random competition, STA2 subtracts 6 from the first backoff value. The second number is obtained to obtain the third backoff value (1). Since the third backoff value is greater than 0, the STA2 backoff is not completed, and the uplink data DATA-2 cannot be transmitted by selecting the subchannel from the idle channel.
  • the trigger frame sent by the access point may be received again, for example, TF-2, and after receiving the TF-2, STA2 has a first backoff value of 5, and then performs physical carrier sensing. STA2 hears that both channel 1 and channel 2 are idle. Since TF-2 indicates that there are 6 subchannels on channel 1 and channel 2 that can be used for contention at any time, STA2 subtracts 6 from the first backoff value. a second number) to obtain a third backoff value, and the third backoff value is less than 0, therefore, After STA2, the uplink data DATA-2 can be transmitted by randomly selecting a subchannel from the idle channels (channel 1 and channel 2).
  • the contention access method provided by the fifth embodiment of the present invention further includes the following steps:
  • Step S203 includes: if it is determined that the existing channel for the contention and the subchannel to which the station belongs is not the idle channel, according to the allocation information corresponding to the idle channel or the allocation information corresponding to the channel identifier included in the trigger frame, Perform backoff processing.
  • the description includes two channel identifiers in the trigger frame as an example, specifically including: channel 1 and channel 2, and dividing each channel into four subchannels, and the sub-number of each channel is from The next time is sub-channel 1-4, wherein the allocation information corresponding to each channel identifier of the trigger frame is that 4 subchannels of channel 1 can be used for random competition, and subchannel 1 and subchannel 2 of channel 2 can be used for random competition. And subchannel 1 of channel 2 is allocated to STA1.
  • the trigger frame may include multiple channel identifiers, and the corresponding allocation information of each channel identifier is not limited thereto.
  • the STA's first backoff value is selected before the AP transmits the TF frame according to the selection in the IEEE 802.11 protocol.
  • the first backoff value of STA1 is 3, and the first backoff value of STA2 is 7 as an example.
  • FIG. 7 is a schematic diagram of Embodiment 5 of a contention access method according to an embodiment of the present invention.
  • STA1 receives an access point to send the trigger frame, for example, TF-1, and detects It is heard that channel 1 is idle and channel 2 is busy.
  • the subchannel of channel 2 in TF-1 is allocated to STA1 for transmitting data packets, at this time, STA1 hears that channel 2 is busy, STA1 cannot The data packet is transmitted on the channel 2, and the contention access method in the second embodiment or the third embodiment is used for the random competition.
  • This embodiment uses the contention access method in the third embodiment as an example, that is, the channel in the TF-1.
  • the corresponding allocation information is that a total of six subchannels on channel 1 and channel 2 can be used for random competition. Therefore, STA1 reduces the first backoff value by 6 (ie, the second number) to obtain a third backoff value, and the third backoff. The value is less than or equal to 0. Therefore, STA1 can select at least one subchannel from the idle channel (channel 1), for example, select subchannel 1 to transmit an uplink packet, or select subchannel 1 and subchannel 2, and pass subchannel 1 and sub Channel 2 to send uplink According DATA-1 (i.e. The data packet), it should be noted that FIG. 7 is an example in which the subchannel 1 is selected as an example.
  • STA2 detects that channel 1 is busy and channel 2 is idle. Since the allocation information corresponding to the TF-1 channel identifier is that channel 1 and channel 2 have 6 subchannels available for random competition, STA2 will The first backoff value is subtracted by 6 (ie, the second number) to obtain a third backoff value (1). Since the third backoff value is greater than 0, the STA2 backoff is not completed, and the subchannel cannot be selected from the idle channel. Upstream data DATA-2.
  • the trigger frame sent by the access point may be received again, for example, TF-2, and after receiving the TF-2, STA2 has a first backoff value of 5, and then performs physical carrier sensing. STA2 hears that both channel 1 and channel 2 are idle. Since TF-2 indicates that there are 6 subchannels on channel 1 and channel 2 that can be used for contention at any time, STA2 subtracts 6 from the first backoff value. The second number is obtained to obtain the third backoff value, and the third backoff value is less than 0. Therefore, STA2 can randomly select the subchannel to transmit the uplink data DATA-2 from the idle channels (channel 1 and channel 2).
  • the contention access method provided by the sixth embodiment of the present invention further includes the following steps:
  • Step S203 includes: if it is determined that the existing channel for contention and the subchannel allocated to the station belongs to the channel that is not the idle channel, select at least one subchannel from the idle channel according to the allocation information of the idle channel, and select At least one subchannel transmits a data packet.
  • the description includes two channel identifiers in the trigger frame as an example, specifically including: channel 1 and channel 2, and dividing each channel into four subchannels, and the sub-number of each channel is from The next time is sub-channel 1-4, wherein the allocation information corresponding to each channel identifier of the trigger frame is that 4 subchannels of channel 1 can be used for random competition, and subchannel 1 and subchannel 2 of channel 2 can be used for random competition. And subchannel 1 of channel 2 is allocated to STA1.
  • the trigger frame may include multiple channel identifiers, and the corresponding allocation information of each channel identifier is not limited thereto.
  • the STA's first backoff value is selected before the AP transmits the TF frame according to the selection in the IEEE 802.11 protocol.
  • the first backoff value of STA1 is 3, and the first backoff value of STA2 is 7 as an example.
  • FIG. 8 is a schematic diagram of Embodiment 6 of a contention access method according to an embodiment of the present invention.
  • STA1 receives an access point to send the trigger frame, for example, TF-1, and detects It is heard that channel 1 is idle and channel 2 is busy.
  • the subchannel of channel 2 in TF-1 is allocated to STA1 for transmitting data packets, at this time, STA1 hears that channel 2 is busy, STA1 cannot The data packet is transmitted on channel 2.
  • STA1 can select at least one subchannel from the idle channel (channel 1), for example, select subchannel 1 to transmit an uplink data packet, or select subchannel 1 and subchannel 2, and pass subchannel 1 And the subchannel 2 transmits the uplink data DATA-1 (that is, the data packet).
  • channel 1 select subchannel 1 to transmit an uplink data packet
  • select subchannel 1 and subchannel 2 pass subchannel 1
  • the subchannel 2 transmits the uplink data DATA-1 (that is, the data packet).
  • FIG. 8 is an example in which the subchannel 1 is selected as an example.
  • the STA2 is the STA2, the STA2 is aware that the channel 1 is busy, and the channel 2 is idle.
  • the STA2 can use the contention access method of the second embodiment or the third embodiment to perform random competition.
  • the content of the third embodiment is competitive.
  • the access mode is described as an example. Specifically, since the allocation information corresponding to the TF-1 channel identifier is that a total of six subchannels on the channel 1 and the channel 2 can be used for random competition, STA2 subtracts 6 from the first backoff value. The second number is obtained to obtain the third backoff value (1). Since the third backoff value is greater than 0, the STA2 backoff is not completed, and the uplink data DATA-2 cannot be transmitted by selecting the subchannel from the idle channel.
  • the trigger frame sent by the access point may be received again, for example, TF-2, and after receiving the TF-2, STA2 has a first backoff value of 5, and then performs physical carrier sensing. STA2 hears that both channel 1 and channel 2 are idle. Since TF-2 indicates that there are 6 subchannels on channel 1 and channel 2 that can be used for contention at any time, STA2 subtracts 6 from the first backoff value. The second number is obtained to obtain the third backoff value, and the third backoff value is less than 0. Therefore, STA2 can randomly select the subchannel to transmit the uplink data DATA-2 from the idle channels (channel 1 and channel 2).
  • FIG. 9 is a schematic structural diagram of Embodiment 1 of a contention access device according to an embodiment of the present invention. As shown in FIG. 9, the contention access device provided in this embodiment includes: a transceiver module 901, a listening module 902, and processing. Module 903.
  • the transceiver module 901 is configured to receive a trigger frame sent by the access point; specifically, The triggering frame 902 includes: the channel identifier and the channel identifier corresponding to the allocation information; the listening module 902 is configured to listen to whether the channel corresponding to the channel identifier is idle; and the processing module 903 is configured to: if the listening module 902 detects that there is a free channel, Selecting at least one subchannel from the idle channel according to the allocation information of the idle channel, and triggering the transceiver module to send the data packet through the selected at least one subchannel subchannel; or according to the allocation information corresponding to the idle channel or the channel identifier included in the trigger frame The corresponding allocation information is subjected to backoff processing.
  • the contention access device in this embodiment may be a site, and may implement the technical solution of the method embodiment of FIG. 2, and the implementation principles thereof are similar, and details are not described herein again.
  • the triggering frame sent by the access point received by the transceiver module is used, and the listening module detects whether the channel corresponding to the channel identifier is idle, and the processing module detects that the channel is idle in the listening module. And selecting at least one subchannel from the idle channel according to the allocation information of the idle channel, and triggering the transceiver module to send the data packet through the selected at least one subchannel subchannel, or according to the idle channel and the channel identifier included in the trigger frame.
  • Allocating information, performing backoff processing first determining whether the channel corresponding to the channel identifier is an idle channel, and then selecting at least one subchannel from the available idle channels, or corresponding to the allocation information corresponding to the idle channel or the channel identifier included in the trigger frame.
  • the allocation information is subjected to the backoff processing. Therefore, it is ensured that once a subchannel is selected, it is necessarily a subchannel in the idle channel, thereby avoiding the problem that the channel of the subchannel randomly selected by the station is busy in the prior art.
  • Reduce the efficiency of uplink access thereby reducing network performance Problems, thereby effectively improving the efficiency of uplink access the site, and improving network performance.
  • FIG. 10 is a schematic structural diagram of Embodiment 2 of the contention access device according to the embodiment of the present invention.
  • the processing module 903 includes: a first backoff unit 101 and a first judging unit 102.
  • the first backoff unit 101 is configured to: after the first backoff value is subtracted from the first backoff value, the second backoff value is obtained according to the allocation information corresponding to the idle channel; the first determining unit 102 is configured to determine the second Whether the backoff value is less than or equal to 0, if the second backoff value is less than or equal to 0, selecting at least one subchannel from the idle channel, and triggering the transceiver module to send the data packet through the selected at least one subchannel; wherein, the first backoff value It is a backoff value when the station receives the trigger frame, and the first number of allocation information of the idle channel includes the number of subchannels for contention.
  • the backoff value is greater than 0, the backoff is not completed, and the number of transmissions is not completed. According to the package.
  • the contention access device in this embodiment may be a site, and may implement the technical solution of the method embodiment of FIG. 3, and the implementation principles thereof are similar, and details are not described herein again.
  • FIG. 11 is an embodiment of a contention access device according to an embodiment of the present invention.
  • the processing module 903 includes: a second backoff unit 111 and a second judging unit 112.
  • the second backoff unit 111 is configured to: according to the allocation information corresponding to the channel identifier included in the trigger frame, subtract the second backoff value from the second backoff value to obtain a third backoff value; the second determining unit 112, For determining whether the third backoff value is less than or equal to 0, if the third backoff value is less than or equal to 0, selecting at least one subchannel from the idle channel, and triggering the transceiver module to send the data packet through the selected at least one subchannel;
  • the first backoff value is a backoff value when the station receives the trigger frame, and the second number triggers the total number of all the subchannels used for contention included in the frame.
  • the backoff is not completed, and the data packet is not transmitted.
  • the contention access device in this embodiment may be a site, and may implement the technical solution of the method embodiment in FIG. 5, and the implementation principles thereof are similar, and details are not described herein again.
  • the method includes: if the allocation information of the idle channel includes content for contention, and And the processing module is configured to: select, according to the idle channel allocation information, a subchannel for contention and allocated to the contention access device from the idle channel, and trigger the transceiver module to select A sub-channel for contention and assigned to a contention access device transmits a data packet.
  • the contending access device in this embodiment may be a site, and may implement the technical solution of the embodiment of the method in the fourth embodiment of the method, and the implementation principle thereof is similar, and details are not described herein again.
  • the processing module is further configured to determine whether there is a contention for the competition in the trigger frame. And the subchannel allocated to the contention access device, if yes, determining whether the existing channel for the contention and the subchannel allocated to the contention access device belongs to the idle channel; If the channel to which the subchannel that is used for the contention and is allocated to the contention access device is not the idle channel, the backoff processing is performed according to the allocation information corresponding to the idle channel or the allocation information corresponding to the channel identifier included in the trigger frame. .
  • the contention access device in this embodiment may be a site, and may implement the technical solution of the method embodiment in FIG. 7.
  • the implementation principle is similar, and details are not described herein again.
  • the processing module is further configured to determine whether there is a contention for triggering in the trigger frame. And the subchannel allocated to the contention access device, if yes, determining whether the existing channel for the contention and the subchannel allocated to the contention access device belongs to the idle channel; if it is determined that there is competition for existence And the channel to which the subchannel allocated to the contention access device belongs is not an idle channel, and at least one subchannel is selected from the idle channel according to the allocation information of the idle channel, and the data packet is transmitted through the selected at least one subchannel.
  • the contention access device in this embodiment may be a site, and may implement the technical solution of the method embodiment of FIG. 8.
  • the implementation principle is similar, and details are not described herein again.
  • FIG. 12 is a schematic structural diagram of a site according to an embodiment of the present invention. As shown in FIG. 12, the site provided by the embodiment includes: a receiver 121, a processor 122, and a transmitter 123.
  • the receiver 121 is configured to receive a trigger frame sent by the access point, where the trigger frame includes the channel identifier and the allocation information corresponding to the channel identifier, and the processor 122 is configured to: listen to whether the channel corresponding to the channel identifier is idle.
  • the processor 122 is further configured to: if the idle channel is detected, select at least one subchannel from the idle channel according to the allocation information of the idle channel, and trigger the transmitter 123 to send the data packet by using the selected at least one subchannel;
  • the backoff process is performed according to the allocation information corresponding to the idle channel or the allocation information corresponding to the channel identifier included in the trigger frame.
  • the processor 122 is specifically configured to: Determining, according to the allocation information corresponding to the idle channel, the first backoff value by the first number, obtaining the second backoff value; determining whether the second backoff value is less than or equal to 0, and if the second backoff value is less than or equal to 0, the slave idle channel Selecting at least one subchannel, and triggering the transmitter to send the data packet by using the selected at least one subchannel; wherein, the first backoff value is a backoff value when the station receives the trigger frame, and the first quantity is included in the allocation information of the idle channel.
  • the number of subchannels used for contention is a backoff value when the station receives the trigger frame, and the first quantity is included in the allocation information of the idle channel.
  • the backoff value is greater than 0, the backoff is not completed, and the number of transmissions is not completed. According to the package.
  • the processor 122 further The method is: using the allocation information corresponding to the channel identifier included in the trigger frame, subtracting the second backoff value from the second backoff value, and acquiring the third backoff value; determining whether the third backoff value is less than or equal to 0, if the third backoff value is less than Or equal to 0, selecting at least one subchannel from the idle channel, and triggering the transmitter to send the data packet through the selected at least one subchannel; wherein the first backoff value is a backoff value when the station receives the trigger frame, The total number of all subchannels used for contention included in the two number trigger frame.
  • the backoff is not completed, and the data packet is not transmitted.
  • the allocation information of the idle channel includes a subchannel for contention and allocated to the station
  • the processor 122 is specifically configured to: select, according to the idle channel allocation information, a subchannel for contention and allocated to the station from the idle channel, and trigger the transmitter to pass the selected subchannel for contention and allocated to the station. Send a packet.
  • the processor 122 is further configured to: determine whether there is a contention for the competition in the trigger frame, and allocate the site to the site. If there is a subchannel, if it exists, it is determined whether the existing channel used for contention and allocated to the subchannel of the station belongs to the idle channel; if it is determined that the subchannel reserved for the competition and allocated to the station belongs to If the channel is not an idle channel, the backoff process is performed according to the allocation information corresponding to the idle channel or the allocation information corresponding to the channel identifier included in the trigger frame.
  • the processor 122 is further configured to: determine whether there is a contention for the competition in the trigger frame, and allocate the site to the site. If there is a subchannel, if it exists, it is determined whether the existing channel used for contention and allocated to the subchannel of the station belongs to the idle channel; if it is determined that the subchannel reserved for the competition and allocated to the station belongs to The channel is not an idle channel, and at least one subchannel is selected from the idle channel according to the allocation information of the idle channel, and the data packet is transmitted through the selected at least one subchannel.
  • FIG. 13 is a schematic structural diagram of a contention access system according to an embodiment of the present invention. As shown in FIG. 13, the contention access system provided in this embodiment includes: an access point 131 and a site 132.
  • the site in this embodiment is the contention access device of any of FIG. 9 to FIG. 11, and the implementation principles are similar, and details are not described herein again.
  • the embodiment sends a trigger frame for an access point, where a part of the subchannels are allocated to the scheduled station, and another part of the subchannels is used for random access, but the scheduled station is detected by interception.
  • the scheduled station listens to the allocated subchannel, which is usually obtained by listening to the state of the channel where the allocated subchannel is located. When the station detects that a certain channel is busy, all subchannels included in the channel are busy. status. Conversely, when a station detects that a channel is in an idle state, all subchannels included in the channel are idle.
  • the interception based on the state of the channel is simple to implement, and avoids the high complexity caused by the separate listening of each subchannel.
  • the contention access method provided in Embodiment 7 of the present invention specifically includes the following steps:
  • the access point sends a trigger frame, which allocates a part of the subchannels to the scheduled station, and uses another part of the subchannels for random competition;
  • the station receives the trigger frame, and determines whether it is a scheduled station according to the trigger frame;
  • the scheduled station If it is judged that it is a scheduled station, it listens to the state of the scheduled subchannel. When the scheduled subchannel state is idle, the data is transmitted on the scheduled subchannel; when the scheduled subchannel is busy, it is further determined whether There are idle subchannels for random contention, and if there are idle random competing subchannels, one of the following methods is performed:
  • Manner 2 first perform backoff, that is, subtract the idle number of subchannels for random competition by using the backoff counter value, and if the updated backoff counter value is 0 or a negative number, randomly select an idle random competing subchannel for data. send;
  • Manner 3 First, the backoff is performed, that is, the number of subchannels used for random competition is subtracted by the backoff counter value. If the updated backoff counter value is 0 or a negative number, an idle random competing subchannel is randomly selected for data transmission.
  • the scheduled station does not perform backoff and directly selects the random contention subchannel for data transmission, and the scheduled station is given a higher priority than the random competition site. This way, the scheduled site has more data transmission opportunities. But when there are a large number of scheduled sites that are tuned When the subchannel is in a busy state, a serious collision occurs due to a large number of stations transmitting in a limited random competing subchannel at the same time.
  • a method for controlling conflicts is to limit the site of the execution mode 1. For example, only sites belonging to a specific access type or high priority can use the mode one for access, and for example, the access point can be in the trigger frame. The dispatching station of the first mode can be instructed to prevent the conflict of the scheduling site of the first execution mode 1 from being excessive.
  • the access point sends a trigger frame indicating that there are two channels available for data transmission: channel 1 and channel 2, each channel being divided into 4 subchannels.
  • the trigger frame uses 4 subchannels in channel 1 for random contention, and subchannel 1 and subchannel 2 in channel 2 are also used for random contention, and subchannel 3 and subchannel 4 in channel 2 are allocated to scheduling users, for example Subchannel 4 of channel 2 is assigned to station 1.
  • the station 1 After receiving the trigger frame, the station 1 first learns that it is scheduled to transmit to the subchannel 4 of the channel 2 according to the scheduling information in the trigger frame. At this time, the station 1 will decide how to transmit data according to the channel conditions of the subchannels scheduled by itself and the random access subchannel. As shown in FIG. 14, channel 2 is in a busy state, so subchannel 4 of channel 2 is also in a busy state, and data transmission on subchannel 4 of channel 2 is not possible at this time. Further, the station 1 determines whether there is an idle random contention subchannel, and as shown in FIG. 14, the four randomly-contiguous subchannels of the channel 1 are in an idle state, and at this time, the station one can perform one of the following modes:
  • Manner 1 Select one of the four random competing subchannels in channel 1 for data transmission;
  • Manner 2 first perform backoff, that is, subtract the idle number of subchannels for random competition by using the backoff counter value. If the value of the backoff counter before updating is less than or equal to 4, the value of the backoff counter after updating is 0 or a negative number, and thus Select one of the four random competing subchannels in channel 1 for data transmission; if the value of the backoff counter before the update is greater than 4, the value of the backoff counter after updating is greater than 0, and data transmission cannot be performed;
  • Manner 2 first perform backoff, that is, subtract the number of subchannels used for random competition by using the backoff counter value. If the value of the backoff counter before the update is less than or equal to 6, the value of the backoff counter after updating is 0 or a negative number, and thus the channel can be One of the four random competing subchannels in 1 is selected for data transmission; if the value of the backoff counter before the update is greater than 6, the value of the backoff counter after the update is greater than 0, and the data cannot be transmitted.
  • a seventh embodiment of the present invention provides a communication method applied to a wireless local area network, including:
  • S701 The station receives a trigger frame sent by the access point; the trigger frame indicates that a part of the subchannel is a subchannel allocated for the scheduled station, and another part of the subchannel is a subchannel for random access;
  • S702 If the station is a scheduled station, listen to whether the subchannel allocated to the station is busy;
  • S703 If the subchannel allocated to the station is busy, randomly select an idle random access subchannel for data transmission, or perform backoff first, and then randomly select an idle random access subchannel for data transmission after the backoff is completed.
  • the manner of performing backoff is: subtracting the number of idle subchannels for random access by using the backoff counter value, and if the updated backoff counter value is 0 or a negative number, the backoff ends; or using the backoff counter The value is subtracted from the number of subchannels used for random access. If the updated backoff counter value is 0 or a negative number, the backoff ends.
  • the station knows whether the subchannel allocated to the station is busy by listening to the state of the channel where the allocated subchannel is located, and when the station detects that one channel is in a busy state, all the subchannels are included in the channel.
  • the channel is in a busy state; when the station detects that a channel is in an idle state, all subchannels included in the channel are idle.
  • a seventh embodiment of the present invention discloses a station, including:
  • the receiver 121 is configured to receive a trigger frame sent by the access point, where the trigger frame indicates that a part of the subchannel is a subchannel for allocation to the scheduled station, and another part of the subchannel is a subchannel for random access;
  • the processor 122 is configured to determine, according to the trigger frame, whether the site is a scheduled site, and listen to whether a subchannel allocated to the site is busy; and the processor 122 is further configured to allocate to the site When the channel is busy, an idle random access subchannel is randomly selected for data transmission; or when the subchannel allocated to the station is busy, the backoff is performed first, and after the backoff is ended, an idle random access sub is randomly selected. Channel for data transmission; and
  • the transmitter 123 is configured to transmit data on the allocated subchannel or send data on the subchannel that is contending.
  • the manner in which the processor 122 performs backoff is specifically: subtracting the number of idle subchannels for random access by using the backoff counter value, and if the updated backoff counter value is 0 or a negative number, the backoff ends; or using backoff The counter value is subtracted from the number of subchannels used for random access. If the updated backoff counter value is 0 or a negative number, the backoff ends.
  • the station knows whether the subchannel allocated to the station is busy by listening to the state of the channel where the allocated subchannel is located, and when the station detects that one channel is in a busy state, all the subchannels are included in the channel.
  • the channel is in a busy state; when the station detects that a channel is in an idle state, all subchannels included in the channel are idle.
  • the aforementioned program can be stored in a computer readable storage medium.
  • the program when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention provides a communications method applied to a WLAN, comprising: a station receiving a trigger frame sent by an access point, the trigger frame indicating that a part of sub-channels is allocated to a scheduled station, and another part of the sub-channels is for random access; if the station is a scheduled station, monitoring whether or not the sub-channel allocated to the station is busy; if so, then randomly selecting an idle random access sub-channel and sending data, or first performing a backoff, and after the backoff is complete, again randomly selecting an idle random access sub-channel and sending data. The present invention provides a WLAN communications method and related apparatus, capable of effectively improving station uplink access efficiency and network functions.

Description

竞争接入方法、竞争接入装置、站点及竞争接入系统Competitive access method, competitive access device, site and competitive access system
本申请要求于2015年9月2日提交中国专利局、申请号为201510558023.9、发明名称为“竞争接入方法、竞争接入装置、站点及竞争接入系统”的CN专利申请的优先权,本申请还要求于2015年11月3日提交中国专利局、申请号为201510738789.5、发明名称为“竞争接入方法、竞争接入装置、站点及竞争接入系统”的CN专利申请的优先权,上述两个申请的全部内容通过引用结合在本申请中。This application claims the priority of the CN patent application submitted to the China Patent Office on September 2, 2015, the application number is 201510558023.9, and the invention name is “competition access method, competition access device, site and competition access system”. The application also requires the priority of the CN patent application filed on November 3, 2015, the Chinese Patent Office, application number 201510738789.5, and the invention name "competition access method, competition access device, site and competition access system". The entire contents of both applications are incorporated herein by reference.
技术领域Technical field
本发明实施例涉及无线通信技术领域,尤其涉及一种竞争接入方法、竞争接入装置、站点及竞争接入系统。The embodiments of the present invention relate to the field of wireless communications technologies, and in particular, to a contention access method, a contention access device, a station, and a contention access system.
背景技术Background technique
无线局域网络(Wireless Local Area Networks,简称WLAN)是一种利用射频技术,使用电磁波,在空中进行通信连接的数据传输系统,其中,站点(Station,简称STA)和接入点(Access Point,简称AP)是WLAN的基本组成单元,具体的,AP将各个STA连接到一起,然后将无线网络接入以太网。Wireless Local Area Networks (WLAN) is a data transmission system that uses radio frequency technology to communicate and connect in the air using electromagnetic waves. Station (Station, referred to as STA) and access point (Access Point, referred to as The AP is a basic component of the WLAN. Specifically, the AP connects the STAs together and then connects the wireless network to the Ethernet.
IEEE 802.11协议是国际电气和电子工程师协会在2009年9月为无线局域网络制定的标准,目前常用的协议有:IEEE 802.11n和IEEE 802.11ac,且在上述两个协议中采用的是多信道通信。具体的,STA采用载波监听/冲突(Carrier Sense Multiple Access with Collision Avoidance,简称CSMA/CA)避免的方式接入信号,即,STA需要通过竞争方式传输数据。在STA传输数据的过程中,首先需要确定一个退避值,AP发送触发帧(Trigger Frame,简称TF)以指示可用于随机竞争的子信道,STA每次接收到TF之后,则退避值减1,如果退避值变为0,则STA随机选择一条子信道发送上行数据包。The IEEE 802.11 protocol is a standard established by the Institute of Electrical and Electronics Engineers for wireless local area networks in September 2009. Currently commonly used protocols are: IEEE 802.11n and IEEE 802.11ac, and multi-channel communication is used in the above two protocols. . Specifically, the STA accesses the signal in a manner that is avoided by the carrier Sense Multiple Access with Collision Avoidance (CSMA/CA), that is, the STA needs to transmit data in a competitive manner. In the process of transmitting data by the STA, a backoff value needs to be determined first. The AP sends a Trigger Frame (TF) to indicate a subchannel that can be used for random contention. After receiving the TF, the STA reduces the backoff value by one. If the backoff value becomes 0, the STA randomly selects one subchannel to transmit the uplink packet.
然而,STA随机选择一条子信道发送上行数据包,若随机选择的子信道所属的信道是繁忙的,则STA无法发送上行数据包,而且还会对正在使用该子信道传输的其他数据包造成干扰,降低上行接入的效率,进而降低网络的 性能。However, the STA randomly selects one subchannel to transmit the uplink data packet. If the channel to which the randomly selected subchannel belongs is busy, the STA cannot send the uplink data packet, and also interferes with other data packets being transmitted by using the subchannel. , reducing the efficiency of uplink access, thereby reducing the network's performance.
发明内容Summary of the invention
本发明实施例提供一种竞争接入方法、竞争接入装置、站点及竞争接入系统,用于提高上行接入的效率,进而提高网络性能。The embodiments of the present invention provide a contention access method, a contention access device, a site, and a contention access system, which are used to improve uplink access efficiency and improve network performance.
本发明的第一方面提供一种竞争接入方法,包括:A first aspect of the present invention provides a contention access method, including:
站点接收接入点发送的触发帧;所述触发帧中包括信道标识和所述信道标识对应的分配信息;Receiving, by the station, a trigger frame sent by the access point, where the trigger frame includes a channel identifier and allocation information corresponding to the channel identifier;
所述站点侦听所述信道标识对应的信道是否空闲;The station listens to whether the channel corresponding to the channel identifier is idle;
所述站点若侦听到有空闲信道,则根据所述空闲信道的分配信息,从所述空闲信道中选择至少一个子信道,并通过选择的所述至少一个子信道发送数据包;或者根据所述空闲信道对应的分配信息或者所述触发帧中包括的信道标识对应的分配信息,进行退避处理。If the station detects that there is a free channel, select at least one subchannel from the idle channel according to the allocation information of the idle channel, and send a data packet by using the selected at least one subchannel; or The allocation information corresponding to the idle channel or the allocation information corresponding to the channel identifier included in the trigger frame is performed, and the backoff processing is performed.
结合第一方面,在第一方面第一种可能的实现方式中,若所述空闲信道的分配信息中包括用于竞争的子信道;则所述根据所述空闲信道对应的分配信息或者所述触发帧中包括的信道标识对应的分配信息,进行退避处理,包括:With reference to the first aspect, in a first possible implementation manner of the first aspect, if the allocation information of the idle channel includes a subchannel for contention, the allocation information corresponding to the idle channel or the The allocation information corresponding to the channel identifier included in the trigger frame is performed, and the backoff processing is performed, including:
根据所述空闲信道对应的分配信息,将第一退避值减去第一数量,获取第二退避值;And subtracting the first backoff value from the first backoff value according to the allocation information corresponding to the idle channel, and acquiring a second backoff value;
判断所述第二退避值是否小于或等于0,若第二退避值小于或等于0,则从所述空闲信道中选择至少一个子信道,并通过选择的所述至少一个子信道发送数据包;Determining whether the second backoff value is less than or equal to 0, and if the second backoff value is less than or equal to 0, selecting at least one subchannel from the idle channel, and transmitting the data packet by using the selected at least one subchannel;
其中,所述第一退避值是所述站点接收到触发帧时的退避值,所述第一数量为所述空闲信道的分配信息中包括用于竞争的子信道的数量。The first backoff value is a backoff value when the station receives the trigger frame, and the first number is the number of subchannels used for contention in the allocation information of the idle channel.
结合第一方面第一种可能的实现方式中,在第一方面第二种可能的实现方式中,还包括:In combination with the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the method further includes:
若所述第二退避值大于0,则退避未完成,不发送所述数据包。If the second backoff value is greater than 0, the backoff is not completed, and the data packet is not sent.
结合第一方面,在第一方面第三种可能的实现方式中,若所述信道标识对应的分配信息中均包括用于竞争的子信道,则所述根据所述空闲信道对应的分配信息或者所述触发帧中包括的信道标识对应的分配信息,进行退避处 理,包括:With reference to the first aspect, in a third possible implementation manner of the first aspect, if the allocation information corresponding to the channel identifier includes a subchannel for contention, the allocation information corresponding to the idle channel or The allocation information corresponding to the channel identifier included in the trigger frame is performed at the backoff Rational, including:
根据所述触发帧中包括的信道标识对应的分配信息,将第一退避值减去第二数量,获取第三退避值;Determining the first backoff value by the second amount according to the allocation information corresponding to the channel identifier included in the trigger frame, and acquiring the third backoff value;
判断所述第三退避值是否小于或等于0,若第三退避值小于或等于0,则从所述空闲信道中选择至少一个子信道,并通过选择的所述至少一个子信道发送数据包;Determining whether the third backoff value is less than or equal to 0, and if the third backoff value is less than or equal to 0, selecting at least one subchannel from the idle channel, and transmitting the data packet by using the selected at least one subchannel;
其中,所述第一退避值是所述站点接收到触发帧时的退避值,所述第二数量所述触发帧中包括的所有用于竞争的子信道的总数量。The first backoff value is a backoff value when the station receives the trigger frame, and the second number is the total number of all the subchannels used for contention included in the trigger frame.
结合第一方面第三种可能实现的方式,在第一方面第四种可能实现的方式中,还包括:In combination with the third possible implementation manner of the first aspect, in the fourth possible implementation manner of the first aspect, the method further includes:
若所述第三退避值大于0,则退避未完成,不发送所述数据包。If the third backoff value is greater than 0, the backoff is not completed, and the data packet is not sent.
结合第一方面,在第一方面第五种可能的实现方式中,若所述空闲信道的分配信息中包括用于竞争的、且分配给所述站点的子信道;则所述根据所述空闲信道的分配信息,从所述空闲信道中选择至少一个子信道,并通过选择的所述至少一个子信道发送数据包,包括:With reference to the first aspect, in a fifth possible implementation manner of the first aspect, if the allocation information of the idle channel includes a subchannel for contention and allocated to the station, Channel allocation information, selecting at least one subchannel from the idle channel, and transmitting the data packet by using the selected at least one subchannel, including:
根据所述空闲信道分配信息,从所述空闲信道中选择所述用于竞争的、且分配给所述站点的子信道来发送所述数据包。And selecting, according to the idle channel allocation information, the subchannel for contention and allocated to the station from the idle channel to send the data packet.
结合第一方面,在第一方面第六种可能的实现方式中,还包括:With reference to the first aspect, in a sixth possible implementation manner of the first aspect, the method further includes:
判断所述触发帧中是否存在用于竞争的、且分配给所述站点的子信道,若存在,则判断存在的用于竞争的、且分配给所述站点的子信道所属的信道是否是空闲信道;Determining, in the trigger frame, whether there is a subchannel for contention and allocated to the station, and if yes, determining whether a channel that is used for contention and that is allocated to the subchannel to which the station belongs is idle. channel;
则所述根据所述空闲信道对应的分配信息或者所述触发帧中包括的信道标识对应的分配信息,进行退避处理,包括:And performing the backoff processing according to the allocation information corresponding to the idle channel or the allocation information corresponding to the channel identifier included in the trigger frame, including:
若判断出存在的用于竞争的、且分配给所述站点的子信道所属的信道不是空闲信道,则根据所述空闲信道对应的分配信息或者所述触发帧中包括的信道标识对应的分配信息,进行退避处理。If it is determined that the existing channel for the contention and the subchannel to which the station belongs is not the idle channel, the allocation information corresponding to the idle channel or the allocation information corresponding to the channel identifier included in the trigger frame is determined. , carry out the evacuation process.
结合第一方面,在第一方面第七种可能的实现方式中,还包括:In combination with the first aspect, in a seventh possible implementation manner of the first aspect, the method further includes:
判断所述触发帧中是否存在用于竞争的、且分配给所述站点的子信道,若存在,则判断存在的用于竞争的、且分配给所述站点的子信道所属的信道是否是空闲信道; Determining, in the trigger frame, whether there is a subchannel for contention and allocated to the station, and if yes, determining whether a channel that is used for contention and that is allocated to the subchannel to which the station belongs is idle. channel;
则所述根据所述空闲信道的分配信息,从所述空闲信道中选择至少一个子信道,并通过选择的所述至少一个子信道发送数据包,包括:And selecting, according to the allocation information of the idle channel, selecting at least one subchannel from the idle channel, and sending the data packet by using the selected at least one subchannel, including:
若判断出存在的用于竞争的、且分配给所述站点的子信道所属的信道不是空闲信道,则根据所述空闲信道的分配信息,从所述空闲信道中选择至少一个子信道,并通过选择的所述至少一个子信道发送数据包。If it is determined that the existing channel for contention and the subchannel allocated to the station belongs to is not an idle channel, selecting at least one subchannel from the idle channel according to the allocation information of the idle channel, and passing The selected at least one subchannel transmits a data packet.
本发明的第二方面提供一种竞争接入装置,包括:A second aspect of the present invention provides a contention access apparatus, including:
收发模块,用于接收接入点发送的触发帧;所述触发帧中包括信道标识和所述信道标识对应的分配信息;a transceiver module, configured to receive a trigger frame sent by the access point, where the trigger frame includes a channel identifier and allocation information corresponding to the channel identifier;
侦听模块,用于侦听所述信道标识对应的信道是否空闲;a listening module, configured to listen to whether a channel corresponding to the channel identifier is idle;
处理模块,若所述侦听模块侦听到有空闲信道,则用于根据所述空闲信道的分配信息,从所述空闲信道中选择至少一个子信道,并触发所述收发模块通过选择的所述至少一条子信道发送数据包;或者根据所述空闲信道对应的分配信息或者所述触发帧中包括的信道标识对应的分配信息,进行退避处理。a processing module, if the listening module detects that there is a free channel, and is configured to select at least one subchannel from the idle channel according to the allocation information of the idle channel, and trigger the transceiver module to pass the selected The at least one subchannel transmits the data packet; or performs the backoff processing according to the allocation information corresponding to the idle channel or the allocation information corresponding to the channel identifier included in the trigger frame.
结合第二方面,在第二方面第一种可能的实现方式中,若所述空闲信道的分配信息中包括用于竞争的子信道;则所述处理模块包括:With reference to the second aspect, in a first possible implementation manner of the second aspect, if the allocation information of the idle channel includes a subchannel for contention, the processing module includes:
第一退避单元,用于根据所述空闲信道对应的分配信息,将第一退避值减去第一数量,获取第二退避值;The first backoff unit is configured to subtract the first backoff value from the first backoff value according to the allocation information corresponding to the idle channel, and obtain a second backoff value;
第一判断单元,用于判断所述第二退避值是否小于或等于0,若第二退避值小于或等于0,则从所述空闲信道中选择至少一个子信道,并触发所述收发模块通过选择的所述至少一个子信道发送数据包;a first determining unit, configured to determine whether the second backoff value is less than or equal to 0, and if the second backoff value is less than or equal to 0, select at least one subchannel from the idle channel, and trigger the transceiver module to pass Selecting at least one subchannel to send a data packet;
其中,所述第一退避值是所述站点接收到触发帧时的退避值,所述第一数量为所述空闲信道的分配信息中包括用于竞争的子信道的数量。The first backoff value is a backoff value when the station receives the trigger frame, and the first number is the number of subchannels used for contention in the allocation information of the idle channel.
结合第二方面第一种可能的实现方式中,在第二方面第二种可能的实现方式中,若所述第二退避值大于0,则退避未完成,不发送所述数据包。With reference to the first possible implementation manner of the second aspect, in the second possible implementation manner of the second aspect, if the second backoff value is greater than 0, the backoff is not completed, and the data packet is not sent.
结合第二方面,在第二方面第三种可能的实现方式中,若所述信道标识对应的分配信息中均包括用于竞争的子信道,则所述处理模块,包括:With reference to the second aspect, in a third possible implementation manner of the second aspect, if the allocation information corresponding to the channel identifier includes a subchannel for contention, the processing module includes:
第二退避单元,用于根据所述触发帧中包括的信道标识对应的分配信息,将第一退避值减去第二数量,获取第三退避值;a second backoff unit, configured to subtract a second backoff value from the second backoff value according to the allocation information corresponding to the channel identifier included in the trigger frame, to obtain a third backoff value;
第二判断单元,用于判断所述第三退避值是否小于或等于0,若第三退 避值小于或等于0,则从所述空闲信道中选择至少一个子信道,并触发所述收发模块通过选择的所述至少一个子信道发送数据包;a second determining unit, configured to determine whether the third backoff value is less than or equal to 0, if the third back If the value of the evasion is less than or equal to 0, selecting at least one subchannel from the idle channel, and triggering the transceiver module to send the data packet by using the selected at least one subchannel;
其中,所述第一退避值是所述站点接收到触发帧时的退避值,所述第二数量所述触发帧中包括的所有用于竞争的子信道的总数量。The first backoff value is a backoff value when the station receives the trigger frame, and the second number is the total number of all the subchannels used for contention included in the trigger frame.
结合第二方面第三种可能的实现方式,在第二方面第四种可能的实现方式中,若所述第三退避值大于0,则退避未完成,不发送所述数据包。With reference to the third possible implementation manner of the second aspect, in the fourth possible implementation manner of the second aspect, if the third backoff value is greater than 0, the backoff is not completed, and the data packet is not sent.
结合第二方面,在第二方面第五种可能的实现方式中,若所述空闲信道的分配信息中包括用于竞争的、且分配给所述竞争接入装置的子信道;则所述处理模块具体用于根据所述空闲信道分配信息,从所述空闲信道中选择所述用于竞争的、且分配给所述竞争接入装置的子信道,并触发所述收发模块通过选择的所述用于竞争的、且分配给所述竞争接入装置的子信道发送所述数据包。With reference to the second aspect, in a fifth possible implementation manner of the second aspect, if the allocation information of the idle channel includes a subchannel for contention and allocated to the contention access device, the processing is performed. The module is specifically configured to select, according to the idle channel allocation information, the subchannel for contention and allocated to the contention access device from the idle channel, and trigger the transceiver module to select by using the The data packet is used for contention and is allocated to the sub-channel of the contention access device.
结合第二方面,在第二方面第六种可能的实现方式中,所述处理模块还用于判断所述触发帧中是否存在用于竞争的、且分配给所述竞争接入装置的子信道,若存在,则判断存在的用于竞争的、且分配给所述竞争接入装置的子信道所属的信道是否是空闲信道;With reference to the second aspect, in a sixth possible implementation manner of the second aspect, the processing module is further configured to determine whether, in the trigger frame, there is a subchannel allocated for the contention and allocated to the contention access device If yes, determining whether the existing channel for contention and the subchannel allocated to the contention access device belongs to is a free channel;
若判断出存在的用于竞争的、且分配给所述竞争接入装置的子信道所属的信道不是空闲信道,则根据所述空闲信道对应的分配信息或者所述触发帧中包括的信道标识对应的分配信息,进行退避处理。If it is determined that the existing channel for the contention and the subchannel to which the contention access device belongs is not the idle channel, the corresponding information according to the idle channel or the channel identifier included in the trigger frame is corresponding. The allocation information is subjected to backoff processing.
结合第二方面,在第二方面第七种可能的实现方式中,所述处理模块还用于判断所述触发帧中是否存在用于竞争的、且分配给所述竞争接入装置的子信道,若存在,则判断存在的用于竞争的、且分配给所述竞争接入装置的子信道所属的信道是否是空闲信道;With reference to the second aspect, in a seventh possible implementation manner of the second aspect, the processing module is further configured to determine whether, in the trigger frame, there is a subchannel allocated for the contention and allocated to the contention access device If yes, determining whether the existing channel for contention and the subchannel allocated to the contention access device belongs to is a free channel;
若判断出存在的用于竞争的、且分配给所述竞争接入装置的子信道所属的信道不是空闲信道,则根据所述空闲信道的分配信息,从所述空闲信道中选择至少一个子信道,并通过选择的所述至少一个子信道发送数据包。If it is determined that the existing channel for contention and the subchannel allocated to the contention access device belongs to is not an idle channel, selecting at least one subchannel from the idle channel according to the allocation information of the idle channel And transmitting the data packet through the selected at least one subchannel.
本发明的第三方面提供一种站点,包括:处理器、发送器和接收器,A third aspect of the present invention provides a station, including: a processor, a transmitter, and a receiver,
所述接收器,用于接收接入点发送的触发帧;所述触发帧中包括信道标识和所述信道标识对应的分配信息;The receiver is configured to receive a trigger frame sent by the access point, where the trigger frame includes a channel identifier and allocation information corresponding to the channel identifier;
所述处理器,用于侦听所述信道标识对应的信道是否空闲; The processor is configured to listen to whether a channel corresponding to the channel identifier is idle;
所述处理器,还用于若侦听到有空闲信道,则根据所述空闲信道的分配信息,从所述空闲信道中选择至少一个子信道,并触发所述发送器通过选择的所述至少一个子信道发送数据包;或者根据所述空闲信道对应的分配信息或者所述触发帧中包括的信道标识对应的分配信息,进行退避处理。The processor is further configured to: if the idle channel is detected, select at least one subchannel from the idle channel according to the allocation information of the idle channel, and trigger the transmitter to pass the selected at least One subchannel transmits a data packet; or performs a backoff process according to the allocation information corresponding to the idle channel or the allocation information corresponding to the channel identifier included in the trigger frame.
结合第三方面,在第三方面第一种可能的实现方式中,若所述空闲信道的分配信息中包括用于竞争的子信道;所述处理器具体用于:With reference to the third aspect, in a first possible implementation manner of the third aspect, if the allocation information of the idle channel includes a subchannel for contention, the processor is specifically configured to:
根据所述空闲信道对应的分配信息,将第一退避值减去第一数量,获取第二退避值;And subtracting the first backoff value from the first backoff value according to the allocation information corresponding to the idle channel, and acquiring a second backoff value;
判断所述第二退避值是否小于或等于0,若第二退避值小于或等于0,则从所述空闲信道中选择至少一个子信道,并触发所述发送器通过选择的所述至少一个子信道发送数据包;Determining whether the second backoff value is less than or equal to 0, and if the second backoff value is less than or equal to 0, selecting at least one subchannel from the idle channel, and triggering the transmitter to pass the selected at least one sub Channel sending data packet;
其中,所述第一退避值是所述站点接收到触发帧时的退避值,所述第一数量为所述空闲信道的分配信息中包括用于竞争的子信道的数量。The first backoff value is a backoff value when the station receives the trigger frame, and the first number is the number of subchannels used for contention in the allocation information of the idle channel.
结合第三方面第一种可能的实现方式中,在第三方面第二中可能的实现方式中,若所述第二退避值大于0,则退避未完成,不发送所述数据包。In conjunction with the first possible implementation manner of the third aspect, in a possible implementation manner of the third aspect, if the second backoff value is greater than 0, the backoff is not completed, and the data packet is not sent.
结合第三方面,在第三方面第三种可能的实现方式中,若所述信道标识对应的分配信息中均包括用于竞争的子信道,则所述处理器还用于:With reference to the third aspect, in a third possible implementation manner of the third aspect, if the allocation information corresponding to the channel identifier includes a subchannel for contention, the processor is further configured to:
根据所述触发帧中包括的信道标识对应的分配信息,将第二退避值减去第二数量,获取第三退避值;Obtaining a second backoff value by subtracting a second amount from the second backoff value according to the allocation information corresponding to the channel identifier included in the trigger frame;
判断所述第三退避值是否小于或等于0,若第三退避值小于或等于0,则从所述空闲信道中选择至少一个子信道,并触发所述发送器通过选择的所述至少一个子信道发送数据包;Determining whether the third backoff value is less than or equal to 0, and if the third backoff value is less than or equal to 0, selecting at least one subchannel from the idle channel, and triggering the transmitter to pass the selected at least one sub Channel sending data packet;
其中,所述第一退避值是所述站点接收到触发帧时的退避值,所述第二数量所述触发帧中包括的所有用于竞争的子信道的总数量。The first backoff value is a backoff value when the station receives the trigger frame, and the second number is the total number of all the subchannels used for contention included in the trigger frame.
结合第三方面第三种可能的实现方式中,在第三方面第四种可能的实现方式中,若所述第三退避值大于0,则退避未完成,不发送所述数据包。In conjunction with the third possible implementation manner of the third aspect, in the fourth possible implementation manner of the third aspect, if the third backoff value is greater than 0, the backoff is not completed, and the data packet is not sent.
结合第三方面,在第三方面第五种可能的实现方式中,若所述空闲信道的分配信息中包括用于竞争的、且分配给所述站点的子信道;则所述处理器具体用于:根据所述空闲信道分配信息,从所述空闲信道中选择所述用于竞争的、且分配给所述站点的子信道,并触发所述发送器通过选择的所述用于 竞争的、且分配给所述站点的子信道发送所述数据包。With reference to the third aspect, in a fifth possible implementation manner of the third aspect, if the allocation information of the idle channel includes a subchannel for contention and allocated to the station, the processor specifically uses And: selecting, according to the idle channel allocation information, the subchannel used for contention and allocated to the station from the idle channel, and triggering the transmitter to use the selected one for The data packets are transmitted by the subchannels that are contentive and assigned to the station.
结合第三方面,在第三方面第六种可能的实现方式中,所述处理器还用于,判断所述触发帧中是否存在用于竞争的、且分配给所述站点的子信道,若存在,则判断存在的用于竞争的、且分配给所述站点的子信道所属的信道是否是空闲信道;With reference to the third aspect, in a sixth possible implementation manner of the third aspect, the processor is further configured to: determine, in the trigger frame, whether there is a subchannel for contention and allocated to the station, if If yes, it is determined whether the existing channel for contention and the subchannel allocated to the station belongs to is a free channel;
若判断出存在的用于竞争的、且分配给所述站点的子信道所属的信道不是空闲信道,则根据所述空闲信道对应的分配信息或者所述触发帧中包括的信道标识对应的分配信息,进行退避处理。If it is determined that the existing channel for the contention and the subchannel to which the station belongs is not the idle channel, the allocation information corresponding to the idle channel or the allocation information corresponding to the channel identifier included in the trigger frame is determined. , carry out the evacuation process.
结合第三方面,在第三方面第七种可能的实现方式中,所述处理器还用于,判断所述触发帧中是否存在用于竞争的、且分配给所述站点的子信道,若存在,则判断存在的用于竞争的、且分配给所述站点的子信道所属的信道是否是空闲信道;With reference to the third aspect, in a seventh possible implementation manner of the third aspect, the processor is further configured to: determine, in the trigger frame, whether there is a subchannel for contention and allocated to the station, if If yes, it is determined whether the existing channel for contention and the subchannel allocated to the station belongs to is a free channel;
若判断出存在的用于竞争的、且分配给所述站点的子信道所属的信道不是空闲信道,则根据所述空闲信道的分配信息,从所述空闲信道中选择至少一个子信道,并通过选择的所述至少一个子信道发送数据包。If it is determined that the existing channel for contention and the subchannel allocated to the station belongs to is not an idle channel, selecting at least one subchannel from the idle channel according to the allocation information of the idle channel, and passing The selected at least one subchannel transmits a data packet.
本发明的第四方面提供一种竞争接入系统,包括:接入点和站点,所述站点为竞争接入装置。A fourth aspect of the present invention provides a contention access system comprising: an access point and a station, the station being a contention access device.
本发明实施例提供的竞争接入方法、竞争接入装置、站点及竞争接入系统,通过站点根据接收到的接入点发送的触发帧,侦听信道标识对应的信道是否空闲,并在侦听到有空闲信道时,根据空闲信道的分配信息,从空闲信道中选择至少一个子信道,并通过选择的至少一个子信道发送数据包,或者根据空闲信道以及触发帧中包括的信道标识对应的分配信息,进行退避处理,由于先判断信道标识对应的信道哪些是空闲信道,再从可用空闲信道中选择至少一个子信道,或者根据空闲信道对应的分配信息或者触发帧中的包括的信道标识对应的分配信息,进行退避处理,因此,保证了一旦在选择一个子信道时,必然是空闲信道中的子信道,从而避免了现有技术中若站点随机选择的子信道的信道是繁忙而造成的降低上行接入的效率,进而降低网络的性能的问题,进而有效地提高了站点上行接入效率,并提高网络性能。The contention access method, the contention access device, the station, and the contention access system provided by the embodiment of the present invention, according to the trigger frame sent by the received access point, the station listens to whether the channel corresponding to the channel identifier is idle, and is in the process of detecting When the idle channel is heard, selecting at least one subchannel from the idle channel according to the allocation information of the idle channel, and transmitting the data packet through the selected at least one subchannel, or according to the idle channel and the channel identifier included in the trigger frame. Allocating information, performing backoff processing, first determining whether the channel corresponding to the channel identifier is an idle channel, and then selecting at least one subchannel from the available idle channels, or corresponding to the allocation information corresponding to the idle channel or the channel identifier included in the trigger frame. The allocation information is subjected to the backoff processing. Therefore, it is ensured that once a subchannel is selected, it is necessarily a subchannel in the idle channel, thereby avoiding the problem that the channel of the subchannel randomly selected by the station is busy in the prior art. Reduce the efficiency of uplink access, thereby reducing the performance of the network Thereby effectively improving the efficiency of uplink access the site, and improving network performance.
附图说明 DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图1为本发明提供的WLAN系统的结构示意图;1 is a schematic structural diagram of a WLAN system according to the present invention;
图2为本发明实施例提供的竞争接入方法实施例一的流程图;FIG. 2 is a flowchart of Embodiment 1 of a contention access method according to an embodiment of the present invention;
图3为本发明实施例提供的竞争接入方法实施例二的流程图;FIG. 3 is a flowchart of Embodiment 2 of a contention access method according to an embodiment of the present disclosure;
图4为本发明实施例提供的竞争接入方法的实施例二的示意图;FIG. 4 is a schematic diagram of Embodiment 2 of a contention access method according to an embodiment of the present disclosure;
图5为本发明实施例提供的竞争接入方法实施例三的流程图;FIG. 5 is a flowchart of Embodiment 3 of a contention access method according to an embodiment of the present disclosure;
图6为本发明实施例提供的竞争接入方法的实施例三的示意图;FIG. 6 is a schematic diagram of Embodiment 3 of a contention access method according to an embodiment of the present disclosure;
图7为本发明实施例提供的竞争接入方法的实施例五的示意图;FIG. 7 is a schematic diagram of Embodiment 5 of a contention access method according to an embodiment of the present disclosure;
图8为本发明实施例提供的竞争接入方法的实施例六的示意图;FIG. 8 is a schematic diagram of Embodiment 6 of a contention access method according to an embodiment of the present disclosure;
图9为本发明实施例提供的竞争接入装置的实施例一的结构示意图;FIG. 9 is a schematic structural diagram of Embodiment 1 of a contention access device according to an embodiment of the present disclosure;
图10为本发明实施例提供的竞争接入装置的实施例二的结构示意图;FIG. 10 is a schematic structural diagram of Embodiment 2 of a contention access device according to an embodiment of the present disclosure;
图11为本发明实施例提供的竞争接入装置的实施例三的结构示意图;FIG. 11 is a schematic structural diagram of Embodiment 3 of a contention access device according to an embodiment of the present disclosure;
图12为本发明实施例提供的站点的结构示意图;FIG. 12 is a schematic structural diagram of a site according to an embodiment of the present disclosure;
图13为本发明实施例提供的竞争接入系统的结构示意图。FIG. 13 is a schematic structural diagram of a contention access system according to an embodiment of the present invention.
图14为本发明实施例七的应用场景示意图。FIG. 14 is a schematic diagram of an application scenario according to Embodiment 7 of the present invention.
图15为本发明实施例七提供的应用于无线局域网的通信方法的流程图。FIG. 15 is a flowchart of a communication method applied to a wireless local area network according to Embodiment 7 of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例可以应用于WLAN,目前WLAN采用的标准为电气和电子工程师协会(Institute of Electrical and Electronics Engineers,简称IEEE)802.11系列。其中,站点(Station,简称STA)和接入点(Access Point,简称AP)是WLAN的基本组成单元。 The embodiment of the present invention can be applied to a WLAN. Currently, the standard adopted by the WLAN is the Institute of Electrical and Electronics Engineers (IEEE) 802.11 series. The station (Station, referred to as STA) and the access point (AP) are the basic components of the WLAN.
具体的,STA在WLAN中一般为客户端。STA可以是移动的,也可以是固定的,是无线局域网的最基本组成单元。AP是移动用户进入有线网络的接入点,主要部署于家庭、大楼内部以及园区内部,典型覆盖半径为几十米至上百米,当然,也可以部署于户外。AP相当于一个连接有线网和无线网的桥梁,其主要作用是将各个无线网络客户端连接到一起,然后将无线网络接入以太网。具体地,AP可以是带有无线保真(Wireless Fidelity,简称WiFi)芯片的终端设备或者网络设备。可选地,AP可以为支持802.11ax制式的设备,进一步可选地,该AP可以为支持802.11ac、802.11n、802.11g、802.11b及802.11a等多种WLAN制式的设备。Specifically, the STA is generally a client in the WLAN. The STA can be mobile or fixed, and is the most basic component of a wireless local area network. The AP is an access point for mobile users to enter the wired network. It is mainly deployed in the home, inside the building, and inside the campus. The typical coverage radius is tens of meters to hundreds of meters. Of course, it can also be deployed outdoors. An AP is equivalent to a bridge connecting a wired network and a wireless network. Its main function is to connect the wireless network clients together and then connect the wireless network to the Ethernet. Specifically, the AP may be a terminal device or a network device with a Wireless Fidelity (WiFi) chip. Optionally, the AP may be a device supporting the 802.11ax system. Further, the AP may be a device supporting multiple WLAN technologies such as 802.11ac, 802.11n, 802.11g, 802.11b, and 802.11a.
图1为本发明提供的WLAN系统的结构示意图,如图1所示,WLAN系统中1个AP可以与多个STA(以3个为例)进行信息交互,其中包括STA1、STA2和STA3。当然,也并不局限于此,1个AP还可以与多个STA组进行信息交互。FIG. 1 is a schematic structural diagram of a WLAN system according to the present invention. As shown in FIG. 1 , an AP in a WLAN system can perform information interaction with multiple STAs (including three examples), including STA1, STA2, and STA3. Of course, it is not limited to this, and one AP can also perform information interaction with multiple STA groups.
具体的,802.11a协议中采用单信道通信,为了提高站点接入效率,在802.11ac和802.11n协议里采用多信道通信,而在多信道通信中每个信道的带宽并没有具体限制,不同的协议中对于信道的带宽规定是不同的,另外,划分的信道的数量是根据具体调度情况决定。然而,对于发送数据包较小的场景中,采用这种多信道通信的上行接入效率也不是很高,因此,提出了多信道且信道被划分为多条子信道的通信方式,其中每条子信道的带宽和子信道的数量是根据具体调度情况确定,这种通信方式中,不仅每条子信道可以发送数据包,而且还可以多条信道绑定发送数据包,因此,采用这种通信方式,可以大大的提高上行接入效率。Specifically, single channel communication is adopted in the 802.11a protocol. In order to improve site access efficiency, multi-channel communication is adopted in the 802.11ac and 802.11n protocols, and the bandwidth of each channel in the multi-channel communication is not specifically limited, and different The bandwidth specification for the channel is different in the protocol. In addition, the number of divided channels is determined according to specific scheduling conditions. However, in the scenario where the transmission data packet is small, the uplink access efficiency using such multi-channel communication is not very high. Therefore, a communication method in which multiple channels and channels are divided into multiple subchannels is proposed, wherein each subchannel The bandwidth and the number of subchannels are determined according to specific scheduling conditions. In this communication mode, not only each subchannel can transmit data packets, but also multiple channels can be used to transmit data packets. Therefore, this communication method can be greatly Improve uplink access efficiency.
在多信道且信道被划分为多条子信道通信状态下,STA采用CSMA/CA的方式接入信道,即STA需要通过竞争方式传输数据包。In a multi-channel and channel is divided into multiple sub-channel communication states, the STA accesses the channel in a CSMA/CA manner, that is, the STA needs to transmit data packets in a contentive manner.
另外,目前WLAN使用带宽类型有20MHz,40MHz,80MHz,160MHz,80+80MHz的方式,这种信道聚合方式是连续信道聚合的方式,下一代WLAN中也可以采用非连续信道聚合的方式,但是无论采用哪种信道聚合方式,AP和STA均具备全信道侦听的能力,因此,本发明实施例中的信道均以带宽为20MHz的信道为例说明。In addition, the current WLAN use bandwidth type is 20MHz, 40MHz, 80MHz, 160MHz, 80+80MHz. This channel aggregation mode is a continuous channel aggregation mode, and the next generation WLAN can also adopt a non-continuous channel aggregation method, but In the channel aggregation mode, both the AP and the STA have the capability of full channel interception. Therefore, the channels in the embodiment of the present invention are all described by using a channel with a bandwidth of 20 MHz as an example.
下面对本发明实施例的原理进行说明: The principle of the embodiment of the present invention is described below:
图2为本发明实施例提供的竞争接入方法实施例一的流程图;如图2所示,本发明实施例一提供的竞争接入方法,具体包括以下步骤:FIG. 2 is a flowchart of Embodiment 1 of a contention access method according to an embodiment of the present invention; as shown in FIG. 2, the contention access method provided by Embodiment 1 of the present invention specifically includes the following steps:
步骤S201、站点接收接入点发送的触发帧;该触发帧中包括信道标识和信道标识对应的分配信息。Step S201: The station receives a trigger frame sent by the access point, where the trigger frame includes allocation information corresponding to the channel identifier and the channel identifier.
其中,触发帧中包括至少一个信道标识,且信道标识对应的分配信息具体为每个信道中哪些子信道可用于随机竞争。The trigger frame includes at least one channel identifier, and the allocation information corresponding to the channel identifier is specifically, which subchannels in each channel are available for random contention.
步骤S202、站点侦听信道标识对应的信道是否空闲。Step S202: The station listens to whether the channel corresponding to the channel identifier is idle.
步骤S203、站点若侦听到有空闲信道,则根据空闲信道的分配信息,从空闲信道中选择至少一个子信道,并通过选择的至少一个子信道发送数据包;或者根据空闲信道对应的分配信息或者触发帧中包括的信道标识对应的分配信息,进行退避处理。Step S203: If the station detects that there is a free channel, select at least one subchannel from the idle channel according to the allocation information of the idle channel, and send the data packet through the selected at least one subchannel; or according to the allocation information corresponding to the idle channel. Or the allocation information corresponding to the channel identifier included in the trigger frame is used to perform the backoff processing.
本发明实施例提供的竞争接入方法,通过站点根据接收到的接入点发送的触发帧,侦听信道标识对应的信道是否空闲,并在侦听到有空闲信道时,根据空闲信道的分配信息,从空闲信道中选择至少一个子信道,并通过选择的至少一个子信道发送数据包,或者根据空闲信道以及触发帧中包括的信道标识对应的分配信息,进行退避处理,由于先判断信道标识对应的信道哪些是空闲信道,再从可用空闲信道中选择至少一个子信道,或者根据空闲信道对应的分配信息或者触发帧中的包括的信道标识对应的分配信息,进行退避处理,因此,保证了一旦在选择至少一个子信道时,必然是空闲信道中的子信道,从而避免了现有技术中若站点随机选择的子信道的信道是繁忙而造成的降低上行接入的效率,进而降低网络的性能的问题,进而有效地提高了站点上行接入效率,并提高网络性能。The contention access method provided by the embodiment of the present invention detects whether the channel corresponding to the channel identifier is idle according to the trigger frame sent by the received access point, and according to the allocation of the idle channel when detecting the idle channel. The information is: selecting at least one subchannel from the idle channel, and transmitting the data packet by using the selected at least one subchannel, or performing backoff processing according to the allocation information corresponding to the channel identifier included in the idle channel and the trigger frame, because the channel identifier is determined first Which of the corresponding channels is an idle channel, and at least one subchannel is selected from the available idle channels, or the backoff processing is performed according to the allocation information corresponding to the idle channel or the allocation information corresponding to the channel identifier included in the trigger frame, thereby ensuring Once the at least one subchannel is selected, it is necessarily a subchannel in the idle channel, thereby avoiding the efficiency of reducing the uplink access caused by the busy channel of the subchannel randomly selected by the station in the prior art, thereby reducing the network. Performance issues, which in turn effectively improve site uplink access Rate, and improve network performance.
下面的实施例将提供实施例一的具体实现方式,在下面的实施例中,以下列场景为例进行说明,1个AP与2个STA进行信息交互,其中2个STA,分别为STA1和STA2;当然,也并不局限于此,1个AP还可以与多个STA组进行信息交互。The following embodiments will provide a specific implementation manner of the first embodiment. In the following embodiments, the following scenarios are taken as an example. One AP interacts with two STAs, and two STAs are STA1 and STA2. Of course, it is not limited to this, and one AP can also exchange information with multiple STA groups.
本发明提供实施例一的一种具体实现方式中,在本发明实施例一的技术方案的基础上,图3为本发明实施例提供的竞争接入方法实施例二的流程图;如图3所示,本发明实施例二提供的竞争接入方法中,若空闲信道的分配信息中包括用于竞争的子信道;则步骤S203中的根据空闲信道对应的分配信息 或者触发帧中包括的信道标识对应的分配信息,进行退避处理,包括:The present invention provides a specific implementation manner of the first embodiment. Based on the technical solution of the first embodiment of the present invention, FIG. 3 is a flowchart of Embodiment 2 of the contention access method according to the embodiment of the present invention; As shown in the second embodiment of the present invention, if the allocation information of the idle channel includes a subchannel for contention, the allocation information corresponding to the idle channel in step S203 is shown. Or the allocation information corresponding to the channel identifier included in the frame is triggered, and the backoff processing is performed, including:
步骤S301、根据空闲信道对应的分配信息,将第一退避值减去第一数量,获取第二退避值。Step S301: Subtract the first backoff value from the first backoff value according to the allocation information corresponding to the idle channel, and obtain the second backoff value.
其中,第一退避值是站点接收到触发帧时的退避值,第一数量为空闲信道的分配信息中包括用于竞争的子信道的数量。The first backoff value is a backoff value when the station receives the trigger frame, and the first number is the number of subchannels used for contention in the allocation information of the idle channel.
步骤S302、判断第二退避值是否小于或等于0,若第二退避值小于或等于0,则从空闲信道中选择至少一个子信道,并通过选择的至少一个子信道发送数据包。Step S302: Determine whether the second backoff value is less than or equal to 0. If the second backoff value is less than or equal to 0, select at least one subchannel from the idle channel, and send the data packet through the selected at least one subchannel.
另外,本实施例提供的竞争接入方法还包括:若第二退避值大于0,则退避未完成,不发送数据包。In addition, the contention access method provided in this embodiment further includes: if the second backoff value is greater than 0, the backoff is not completed, and the data packet is not sent.
在本实施例中,举例来说,以触发帧中包括2个信道标识为例说明,具体包括:信道1和信道2,并将每个信道划分为4个子信道,每个信道的子编号从上往下一次为子信道1-4,其中,触发帧的每个信道标识对应的分配信息为信道1的4个子信道均可用于随机竞争,信道2的子信道1和子信道2可用于随机竞争。当然,也并不局限于此,触发帧可包括多个信道标识,每个信道标识对应的分配信息也不以此为限。In this embodiment, for example, the description includes two channel identifiers in the trigger frame as an example, specifically including: channel 1 and channel 2, and dividing each channel into four subchannels, and the sub-number of each channel is from The next time is sub-channel 1-4, wherein the allocation information corresponding to each channel identifier of the trigger frame is that 4 subchannels of channel 1 can be used for random competition, and subchannel 1 and subchannel 2 of channel 2 can be used for random competition. . Of course, it is not limited to this. The trigger frame may include multiple channel identifiers, and the corresponding allocation information of each channel identifier is not limited thereto.
另外,STA的第一退避值是根据IEEE802.11协议中的选择,在AP发送TF帧之前选择的。在本实施例中,举例来说,以STA1的第一退避值为3,STA2的第一退避值为7为例进行说明。In addition, the STA's first backoff value is selected before the AP transmits the TF frame according to the selection in the IEEE 802.11 protocol. In this embodiment, for example, the first backoff value of STA1 is 3, and the first backoff value of STA2 is 7 as an example.
具体的,图4为本发明实施例提供的竞争接入方法的实施例二的示意图,如图4所示,若站点为STA1,STA1接收接入点发送上述触发帧,例如TF-1,侦听到信道1为空闲,而信道2为繁忙,由于TF-1中信道1对应的分配信息为信道1上共有4个子信道可以用于随机竞争,因此,STA1将第一退避值减4(即第一数量),以获取第二退避值,该第二退避值小于或等于0,因此,STA1可以从空闲信道(信道1)中选择至少一个子信道,例如选择子信道1来发送上行数据DATA-1(即数据包),或者选择子信道1和子信道2,并通过子信道1和子信道2来发送上行数据DATA-1(即数据包),需要说明的是,图4是以选择子信道1为例进行说明的。Specifically, FIG. 4 is a schematic diagram of Embodiment 2 of a contention access method according to an embodiment of the present invention. As shown in FIG. 4, if a station is STA1, STA1 receives an access point to send the trigger frame, for example, TF-1, and detects It is heard that channel 1 is idle and channel 2 is busy. Since the allocation information corresponding to channel 1 in TF-1 is that there are 4 subchannels on channel 1 that can be used for random competition, STA1 decrements the first backoff value by 4 (ie a first number) to obtain a second backoff value, the second backoff value being less than or equal to 0. Therefore, STA1 may select at least one subchannel from the idle channel (channel 1), for example, select subchannel 1 to transmit uplink data DATA. -1 (ie, data packet), or select subchannel 1 and subchannel 2, and send uplink data DATA-1 (ie, data packet) through subchannel 1 and subchannel 2. It should be noted that FIG. 4 is to select a subchannel. 1 is explained as an example.
站点为STA2,STA2侦听到信道1为繁忙,而信道2为空闲,由于TF-1中信道2对应的分配信息为信道2上共有2个子信道可以用于随机竞争,因 此STA1将第一退避值减去2(即第一数量),以获取第二退避值(为5),由于该第二退避值大于0,因此,STA2退避未完成,不能从空闲信道中选择子信道发送上行数据DATA-2(即数据包)。The station is STA2, STA2 detects that channel 1 is busy, and channel 2 is idle. Since the allocation information corresponding to channel 2 in TF-1 is 2 channels on channel 2, it can be used for random competition. The STA1 subtracts 2 (that is, the first number) from the first backoff value to obtain a second backoff value (5). Since the second backoff value is greater than 0, STA2 backoff is not completed, and cannot be selected from the idle channel. The subchannel transmits uplink data DATA-2 (ie, a data packet).
进一步说明,对于STA2而言,可以再接收接入点发送的上述触发帧,例如:TF-2,STA2接收到该TF-2后,其第一退避值为5,并且之后进行物理载波侦听,STA2侦听到信道1和信道2均为空闲,由于TF-2指示空闲的信道1和信道2上共有6个子信道可以用于随时竞争,因此,STA2将第一退避值减去6(即第一数量),以获取第二退避值,第二退避值小于0,因此,STA2之后可以随机从空闲信道中选择至少一条子信道发送上行数据DATA-2。Further, for STA2, the trigger frame sent by the access point may be received again, for example, TF-2, and after receiving the TF-2, STA2 has a first backoff value of 5, and then performs physical carrier sensing. STA2 hears that both channel 1 and channel 2 are idle. Since TF-2 indicates that there are 6 subchannels on channel 1 and channel 2 that can be used for contention at any time, STA2 subtracts 6 from the first backoff value. The first number is obtained to obtain the second backoff value, and the second backoff value is less than 0. Therefore, STA2 may randomly select at least one subchannel from the idle channel to send the uplink data DATA-2.
在本发明提供实施例一的另一具体实现方式中,在本发明实施例一的技术方案的基础上,图5为本发明实施例提供的竞争接入方法实施例三的流程图;如图5所示,本发明实施例三提供的竞争接入方法中,若信道标识对应的分配信息中均包括用于竞争的子信道,则步骤S203中根据空闲信道对应的分配信息或者触发帧中包括的信道标识对应的分配信息,进行退避处理,包括:In another specific implementation manner of the first embodiment of the present invention, based on the technical solution of the first embodiment of the present invention, FIG. 5 is a flowchart of Embodiment 3 of a contention access method according to an embodiment of the present invention; As shown in FIG. 5, in the contention access method provided by the third embodiment of the present invention, if the allocation information corresponding to the channel identifier includes the subchannel for contention, the allocation information corresponding to the idle channel or the trigger frame is included in step S203. The channel identification corresponds to the allocation information, and performs backoff processing, including:
步骤S501、根据触发帧中包括的信道标识对应的分配信息,将第一退避值减去第二数量,获取第三退避值。In step S501, the first backoff value is subtracted from the second number according to the allocation information corresponding to the channel identifier included in the trigger frame, and the third backoff value is obtained.
其中,第一退避值是站点接收到触发帧时的退避值,第二数量为触发帧中包括的所有用于竞争的子信道的总数量。The first backoff value is a backoff value when the station receives the trigger frame, and the second number is the total number of all the subchannels used for contention included in the trigger frame.
步骤S502、判断第三退避值是否小于或等于0,若第三退避值小于或等于0,则从空闲信道中选择至少一个子信道,并通过选择的至少一个子信道发送数据包。Step S502: Determine whether the third backoff value is less than or equal to 0. If the third backoff value is less than or equal to 0, select at least one subchannel from the idle channel, and send the data packet by using the selected at least one subchannel.
另外,在本实施例提供的竞争接入方法还包括:若第三退避值大于0,则退避未完成,不发送数据包。In addition, the contention access method provided in this embodiment further includes: if the third backoff value is greater than 0, the backoff is not completed, and the data packet is not sent.
在本实施例中,举例来说,以触发帧中包括2个信道标识为例说明,具体包括:信道1和信道2,并将每个信道划分为4个子信道,每个信道的子编号从上往下一次为子信道1-4,其中,触发帧的每个信道标识对应的分配信息为信道1的4个子信道均可用于随机竞争,信道2的子信道1和子信道2可用于随机竞争。当然,也并不局限于此,触发帧可包括多个信道标识,每个信道标识对应的分配信息也不以此为限。 In this embodiment, for example, the description includes two channel identifiers in the trigger frame as an example, specifically including: channel 1 and channel 2, and dividing each channel into four subchannels, and the sub-number of each channel is from The next time is sub-channel 1-4, wherein the allocation information corresponding to each channel identifier of the trigger frame is that 4 subchannels of channel 1 can be used for random competition, and subchannel 1 and subchannel 2 of channel 2 can be used for random competition. . Of course, it is not limited to this. The trigger frame may include multiple channel identifiers, and the corresponding allocation information of each channel identifier is not limited thereto.
另外,STA的第一退避值是根据IEEE802.11协议中的选择,在AP发送TF帧之前选择的。在本实施例中,举例来说,以STA1的第一退避值为3,STA2的第二退避值为7为例进行说明。In addition, the STA's first backoff value is selected before the AP transmits the TF frame according to the selection in the IEEE 802.11 protocol. In this embodiment, for example, the first backoff value of STA1 is 3, and the second backoff value of STA2 is 7 as an example.
具体的,图6为本发明实施例提供的竞争接入方法的实施例三的示意图,如图6所示,若站点为STA1,STA1接收接入点发送上述触发帧,例如TF-1,侦听到信道1为空闲,而信道2为繁忙,由于TF-1中信道标识对应的分配信息为信道1和信道2上共有6个子信道可以用于随机竞争,因此,STA1将第一退避值减6(即第二数量),以获取第三退避值,该第三退避值小于或等于0,因此,STA1可以从空闲信道(信道1)中选择至少一个子信道,例如选择子信道1来发送上行数据DATA-1(即数据包),或者选择子信道1和子信道2,并通过子信道1和子信道2来发送上行数据DATA-1(即数据包),需要说明的是,图6是以选择子信道1为例进行说明的。Specifically, FIG. 6 is a schematic diagram of Embodiment 3 of a contention access method according to an embodiment of the present invention. As shown in FIG. 6, if a station is STA1, STA1 receives an access point to send the trigger frame, for example, TF-1, and detects It is heard that channel 1 is idle and channel 2 is busy. Since the allocation information corresponding to the channel identifier in TF-1 is that channel 1 and channel 6 have a total of six subchannels that can be used for random competition, STA1 reduces the first backoff value. 6 (ie, the second number) to obtain a third backoff value, which is less than or equal to 0. Therefore, STA1 may select at least one subchannel from the idle channel (channel 1), for example, select subchannel 1 to send Uplink data DATA-1 (ie, data packet), or select subchannel 1 and subchannel 2, and send uplink data DATA-1 (ie, data packet) through subchannel 1 and subchannel 2, it should be noted that FIG. 6 is The subchannel 1 is selected as an example for explanation.
若站点为STA2,STA2侦听到信道1为繁忙,而信道2为空闲,由于TF-1信道标识对应的分配信息为信道1和信道2上共有6个子信道可以用于随机竞争,因此STA2将第一退避值减去6(即第二数量),以获取第三退避值(为1),由于该第三退避值大于0,因此,STA2退避未完成,不能从空闲信道中选择发送上行数据DATA-2(即数据包)。If the station is STA2, STA2 detects that channel 1 is busy and channel 2 is idle. Since the allocation information corresponding to the TF-1 channel identifier is that channel 1 and channel 2 have 6 subchannels available for random competition, STA2 will The first backoff value is subtracted by 6 (ie, the second number) to obtain the third backoff value (1). Since the third backoff value is greater than 0, the STA2 backoff is not completed, and the uplink data cannot be selected from the idle channel. DATA-2 (ie packet).
进一步说明,对于STA2而言,可以再接收接入点发送的上述触发帧,例如:TF-2,STA2接收到该TF-2后,其第一退避值为5,并且之后进行物理载波侦听,STA2侦听到信道1和信道2均为空闲,由于TF-2指示空闲的信道1和信道2上共有6个子信道可以用于随时竞争,因此,STA2将第一退避值减去6(即第二数量),以获取第三退避值,第三退避值小于0,因此,STA2之后可以随机从空闲信道(信道1和信道2)中选择至少一条子信道发送上行数据DATA-2。Further, for STA2, the trigger frame sent by the access point may be received again, for example, TF-2, and after receiving the TF-2, STA2 has a first backoff value of 5, and then performs physical carrier sensing. STA2 hears that both channel 1 and channel 2 are idle. Since TF-2 indicates that there are 6 subchannels on channel 1 and channel 2 that can be used for contention at any time, STA2 subtracts 6 from the first backoff value. The second number is obtained to obtain the third backoff value, and the third backoff value is less than 0. Therefore, STA2 can randomly select at least one subchannel from the idle channel (channel 1 and channel 2) to transmit the uplink data DATA-2.
需要说明的是,STA1侦听到的信道是否空闲与STA2侦听到的信道空闲没有必然的联系,二者是相互独立。另外,TF-1和TF-2也没有必然的联系,二者是相互独立,本实施例是以TF-1和TF-2相同为例进行说明的,当然,也并不局限于此,TF-1和TF-2可以是不同的。It should be noted that whether the channel detected by STA1 is idle is not necessarily related to the channel idleness detected by STA2, and the two are independent of each other. In addition, there is no necessary relationship between TF-1 and TF-2, and the two are independent of each other. This embodiment is described by taking the same TF-1 and TF-2 as an example. Of course, it is not limited to this, TF -1 and TF-2 can be different.
在本发明提供实施例一的另一具体实现方式中,在本发明实施例一的技术方案的基础上,本发明实施例四提供的竞争接入方法中,若空闲信道的分 配信息中包括用于竞争的、且分配给站点的子信道;In another specific implementation manner of the first embodiment of the present invention, based on the technical solution of the first embodiment of the present invention, in the contention access method provided in Embodiment 4 of the present invention, if the channel is idle The allocation information includes subchannels for contention and allocated to the station;
则步骤S203中根据空闲信道的分配信息,从空闲信道中选择至少一个子信道,并通过选择的至少一个子信道发送数据包的一种具体实现方式为:Then, in step S203, according to the allocation information of the idle channel, selecting at least one subchannel from the idle channel, and transmitting the data packet through the selected at least one subchannel is:
根据空闲信道分配信息,从空闲信道中选择用于竞争的、且分配给站点的子信道来发送数据包。According to the idle channel allocation information, a subchannel for contention and allocated to the station is selected from the idle channel to transmit the data packet.
在本实施例中,举例来说,以触发帧中包括2个信道标识为例说明,具体包括:信道1和信道2,并将每个信道划分为4个子信道,每个信道的子信道从上往下一次为子信道1-4,其中,触发帧的每个信道标识对应的分配信息为信道1的4个子信道均可用于随机竞争,信道2的子信道1和子信道2可用于随机竞争,且信道2的子信道1分配给STA1。可以理解的是,分配给站点的子信道还可以是分配给STA2,本发明并不以为限。In this embodiment, for example, the description includes two channel identifiers in the trigger frame as an example, specifically including: channel 1 and channel 2, and dividing each channel into 4 subchannels, and subchannels of each channel are The next time is sub-channel 1-4, wherein the allocation information corresponding to each channel identifier of the trigger frame is that 4 subchannels of channel 1 can be used for random competition, and subchannel 1 and subchannel 2 of channel 2 can be used for random competition. And subchannel 1 of channel 2 is allocated to STA1. It can be understood that the subchannel allocated to the station may also be allocated to STA2, and the invention is not limited thereto.
另外,STA的第一退避值是根据IEEE802.11协议中的选择,在AP发送TF帧之前选择的。在本实施例中,举例来说,以STA1的第一退避值为3,STA2的第一退避值为7为例进行说明。In addition, the STA's first backoff value is selected before the AP transmits the TF frame according to the selection in the IEEE 802.11 protocol. In this embodiment, for example, the first backoff value of STA1 is 3, and the first backoff value of STA2 is 7 as an example.
具体的,若站点为STA1,STA1接收接入点发送上述触发帧,例如:TF-1,侦听到信道1繁忙,而信道2为空闲,由于TF-1中指示信道2的子信道1分配给STA1,因此,根据空闲信道分配信息,STA1从空闲信道2中选择信道2的子信道1来发送上行数据DATA-1(即数据包)。Specifically, if the station is STA1, the STA1 receives the triggering frame, for example, TF-1, and the channel 1 is busy, and the channel 2 is idle, because the subchannel 1 of the channel 2 is allocated in the TF-1. To STA1, therefore, according to the idle channel allocation information, STA1 selects subchannel 1 of channel 2 from the idle channel 2 to transmit uplink data DATA-1 (i.e., a data packet).
若站点为STA2,STA2侦听到信道1为繁忙,而信道2为空闲,STA2可以使用实施例二和实施例三的竞争接入方式选择子信道发送子信道,在本实施例中以实施例三的竞争接入方法为例进行说明,由于TF-1信道标识对应的分配信息为信道1和信道2上共有6个子信道可以用于随机竞争,因此STA2将第一退避值减去6(即第二数量),以获取第三退避值(为1),由于该第三退避值大于0,因此,STA2退避未完成,不能从空闲信道中选择子信道发送上行数据DATA-2。If the STA2 is the STA2, the STA2 is aware that the channel 1 is busy, and the channel 2 is idle. The STA2 can use the contention access mode of the second embodiment and the third embodiment to select the subchannel to transmit the subchannel. In this embodiment, the embodiment is used. The contention access method of the third is described as an example. Since the allocation information corresponding to the TF-1 channel identifier is that there are 6 subchannels on the channel 1 and the channel 2, which can be used for random competition, STA2 subtracts 6 from the first backoff value. The second number is obtained to obtain the third backoff value (1). Since the third backoff value is greater than 0, the STA2 backoff is not completed, and the uplink data DATA-2 cannot be transmitted by selecting the subchannel from the idle channel.
进一步说明,对于STA2而言,可以再接收接入点发送的上述触发帧,例如:TF-2,STA2接收到该TF-2后,其第一退避值为5,并且之后进行物理载波侦听,STA2侦听到信道1和信道2均为空闲,由于TF-2指示空闲的信道1和信道2上共有6个子信道可以用于随时竞争,因此,STA2将第一退避值减去6(即第二数量),以获取第三退避值,第三退避值小于0,因此, STA2之后可以随机从空闲信道(信道1和信道2)中选择子信道发送上行数据DATA-2。Further, for STA2, the trigger frame sent by the access point may be received again, for example, TF-2, and after receiving the TF-2, STA2 has a first backoff value of 5, and then performs physical carrier sensing. STA2 hears that both channel 1 and channel 2 are idle. Since TF-2 indicates that there are 6 subchannels on channel 1 and channel 2 that can be used for contention at any time, STA2 subtracts 6 from the first backoff value. a second number) to obtain a third backoff value, and the third backoff value is less than 0, therefore, After STA2, the uplink data DATA-2 can be transmitted by randomly selecting a subchannel from the idle channels (channel 1 and channel 2).
在本发明提供实施例一的另一具体实现方式中,在本发明实施例一的技术方案的基础上,本发明实施例五提供的竞争接入方法具体还包括以下步骤:In another specific implementation manner of the first embodiment of the present invention, the contention access method provided by the fifth embodiment of the present invention further includes the following steps:
判断触发帧中是否存在用于竞争的、且分配给站点的子信道,若存在,则判断存在的用于竞争的、且分配给站点的子信道所属的信道是否是空闲信道。It is judged whether there is a subchannel for competition and allocated to the station in the trigger frame, and if so, it is determined whether the existing channel for contention and the subchannel allocated to the station belongs to is a free channel.
则步骤S203包括:若判断出存在的用于竞争的、且分配给站点的子信道所属的信道不是空闲信道,则根据空闲信道对应的分配信息或者触发帧中包括的信道标识对应的分配信息,进行退避处理。Step S203 includes: if it is determined that the existing channel for the contention and the subchannel to which the station belongs is not the idle channel, according to the allocation information corresponding to the idle channel or the allocation information corresponding to the channel identifier included in the trigger frame, Perform backoff processing.
在本实施例中,举例来说,以触发帧中包括2个信道标识为例说明,具体包括:信道1和信道2,并将每个信道划分为4个子信道,每个信道的子编号从上往下一次为子信道1-4,其中,触发帧的每个信道标识对应的分配信息为信道1的4个子信道均可用于随机竞争,信道2的子信道1和子信道2可用于随机竞争,且信道2的子信道1分配给STA1。当然,也并不局限于此,触发帧可包括多个信道标识,每个信道标识对应的分配信息也不以此为限。In this embodiment, for example, the description includes two channel identifiers in the trigger frame as an example, specifically including: channel 1 and channel 2, and dividing each channel into four subchannels, and the sub-number of each channel is from The next time is sub-channel 1-4, wherein the allocation information corresponding to each channel identifier of the trigger frame is that 4 subchannels of channel 1 can be used for random competition, and subchannel 1 and subchannel 2 of channel 2 can be used for random competition. And subchannel 1 of channel 2 is allocated to STA1. Of course, it is not limited to this. The trigger frame may include multiple channel identifiers, and the corresponding allocation information of each channel identifier is not limited thereto.
另外,STA的第一退避值是根据IEEE802.11协议中的选择,在AP发送TF帧之前选择的。在本实施例中,举例来说,以STA1的第一退避值为3,STA2的第一退避值为7为例进行说明。In addition, the STA's first backoff value is selected before the AP transmits the TF frame according to the selection in the IEEE 802.11 protocol. In this embodiment, for example, the first backoff value of STA1 is 3, and the first backoff value of STA2 is 7 as an example.
具体的,图7为本发明实施例提供的竞争接入方法的实施例五的示意图,如图7所示,若站点为STA1,STA1接收接入点发送上述触发帧,例如TF-1,侦听到信道1为空闲,而信道2为繁忙,虽然TF-1中信道2的子信道分配给了STA1用于发送数据包,但是,此时,STA1侦听到信道2为繁忙,则STA1不能在信道2上发送数据包,而采用实施例二或者实施例三的竞争接入方法进行随机竞争,本实施例以实施例三的竞争接入方法为例进行说明,即由于TF-1中信道标识对应的分配信息为信道1和信道2上共有6个子信道可以用于随机竞争,因此,STA1将第一退避值减6(即第二数量),以获取第三退避值,该第三退避值小于或等于0,因此,STA1可以从空闲信道(信道1)中选择至少一个子信道,例如选择子信道1发送上行数据包,或者,选择子信道1和子信道2,并通过子信道1和子信道2来发送上行数据DATA-1(即 数据包),需要说明的是,图7是以选择子信道1为例进行说明的。Specifically, FIG. 7 is a schematic diagram of Embodiment 5 of a contention access method according to an embodiment of the present invention. As shown in FIG. 7, if a station is STA1, STA1 receives an access point to send the trigger frame, for example, TF-1, and detects It is heard that channel 1 is idle and channel 2 is busy. Although the subchannel of channel 2 in TF-1 is allocated to STA1 for transmitting data packets, at this time, STA1 hears that channel 2 is busy, STA1 cannot The data packet is transmitted on the channel 2, and the contention access method in the second embodiment or the third embodiment is used for the random competition. This embodiment uses the contention access method in the third embodiment as an example, that is, the channel in the TF-1. The corresponding allocation information is that a total of six subchannels on channel 1 and channel 2 can be used for random competition. Therefore, STA1 reduces the first backoff value by 6 (ie, the second number) to obtain a third backoff value, and the third backoff. The value is less than or equal to 0. Therefore, STA1 can select at least one subchannel from the idle channel (channel 1), for example, select subchannel 1 to transmit an uplink packet, or select subchannel 1 and subchannel 2, and pass subchannel 1 and sub Channel 2 to send uplink According DATA-1 (i.e. The data packet), it should be noted that FIG. 7 is an example in which the subchannel 1 is selected as an example.
若站点为STA2,STA2侦听到信道1为繁忙,而信道2为空闲,由于TF-1信道标识对应的分配信息为信道1和信道2上共有6个子信道可以用于随机竞争,因此STA2将第一退避值减去6(即第二数量),以获取第三退避值(为1),由于该第三退避值大于0,因此,STA2退避未完成,不能从空闲信道中选择子信道发送上行数据DATA-2。If the station is STA2, STA2 detects that channel 1 is busy and channel 2 is idle. Since the allocation information corresponding to the TF-1 channel identifier is that channel 1 and channel 2 have 6 subchannels available for random competition, STA2 will The first backoff value is subtracted by 6 (ie, the second number) to obtain a third backoff value (1). Since the third backoff value is greater than 0, the STA2 backoff is not completed, and the subchannel cannot be selected from the idle channel. Upstream data DATA-2.
进一步说明,对于STA2而言,可以再接收接入点发送的上述触发帧,例如:TF-2,STA2接收到该TF-2后,其第一退避值为5,并且之后进行物理载波侦听,STA2侦听到信道1和信道2均为空闲,由于TF-2指示空闲的信道1和信道2上共有6个子信道可以用于随时竞争,因此,STA2将第一退避值减去6(即第二数量),以获取第三退避值,第三退避值小于0,因此,STA2之后可以随机从空闲信道(信道1和信道2)中选择子信道发送上行数据DATA-2。Further, for STA2, the trigger frame sent by the access point may be received again, for example, TF-2, and after receiving the TF-2, STA2 has a first backoff value of 5, and then performs physical carrier sensing. STA2 hears that both channel 1 and channel 2 are idle. Since TF-2 indicates that there are 6 subchannels on channel 1 and channel 2 that can be used for contention at any time, STA2 subtracts 6 from the first backoff value. The second number is obtained to obtain the third backoff value, and the third backoff value is less than 0. Therefore, STA2 can randomly select the subchannel to transmit the uplink data DATA-2 from the idle channels (channel 1 and channel 2).
在本发明提供实施例一的另一具体实现方式中,在本发明实施例一的技术方案的基础上,本发明实施例六提供的竞争接入方法具体还包括以下步骤:In another specific implementation manner of the first embodiment of the present invention, the contention access method provided by the sixth embodiment of the present invention further includes the following steps:
判断触发帧中是否存在用于竞争的、且分配给站点的子信道,若存在,则判断存在的用于竞争的、且分配给站点的子信道所属的信道是否是空闲信道。It is judged whether there is a subchannel for competition and allocated to the station in the trigger frame, and if so, it is determined whether the existing channel for contention and the subchannel allocated to the station belongs to is a free channel.
则步骤S203包括:若判断出存在的用于竞争的、且分配给站点的子信道所属的信道不是空闲信道,则根据空闲信道的分配信息,从空闲信道中选择至少一个子信道,并通过选择的至少一个子信道发送数据包。Step S203 includes: if it is determined that the existing channel for contention and the subchannel allocated to the station belongs to the channel that is not the idle channel, select at least one subchannel from the idle channel according to the allocation information of the idle channel, and select At least one subchannel transmits a data packet.
在本实施例中,举例来说,以触发帧中包括2个信道标识为例说明,具体包括:信道1和信道2,并将每个信道划分为4个子信道,每个信道的子编号从上往下一次为子信道1-4,其中,触发帧的每个信道标识对应的分配信息为信道1的4个子信道均可用于随机竞争,信道2的子信道1和子信道2可用于随机竞争,且信道2的子信道1分配给STA1。当然,也并不局限于此,触发帧可包括多个信道标识,每个信道标识对应的分配信息也不以此为限。In this embodiment, for example, the description includes two channel identifiers in the trigger frame as an example, specifically including: channel 1 and channel 2, and dividing each channel into four subchannels, and the sub-number of each channel is from The next time is sub-channel 1-4, wherein the allocation information corresponding to each channel identifier of the trigger frame is that 4 subchannels of channel 1 can be used for random competition, and subchannel 1 and subchannel 2 of channel 2 can be used for random competition. And subchannel 1 of channel 2 is allocated to STA1. Of course, it is not limited to this. The trigger frame may include multiple channel identifiers, and the corresponding allocation information of each channel identifier is not limited thereto.
另外,STA的第一退避值是根据IEEE802.11协议中的选择,在AP发送TF帧之前选择的。在本实施例中,举例来说,以STA1的第一退避值为3,STA2的第一退避值为7为例进行说明。 In addition, the STA's first backoff value is selected before the AP transmits the TF frame according to the selection in the IEEE 802.11 protocol. In this embodiment, for example, the first backoff value of STA1 is 3, and the first backoff value of STA2 is 7 as an example.
具体的,图8为本发明实施例提供的竞争接入方法的实施例六的示意图,如图8所示,若站点为STA1,STA1接收接入点发送上述触发帧,例如TF-1,侦听到信道1为空闲,而信道2为繁忙,虽然TF-1中信道2的子信道分配给了STA1用于发送数据包,但是,此时,STA1侦听到信道2为繁忙,则STA1不能在信道2上发送数据包,因此,STA1可以从空闲信道(信道1)中选择至少一个子信道,例如选择子信道1发送上行数据包,或者选择子信道1和子信道2,并通过子信道1和子信道2来发送上行数据DATA-1(即数据包),需要说明的是,图8是以选择子信道1为例进行说明的。Specifically, FIG. 8 is a schematic diagram of Embodiment 6 of a contention access method according to an embodiment of the present invention. As shown in FIG. 8, if a station is STA1, STA1 receives an access point to send the trigger frame, for example, TF-1, and detects It is heard that channel 1 is idle and channel 2 is busy. Although the subchannel of channel 2 in TF-1 is allocated to STA1 for transmitting data packets, at this time, STA1 hears that channel 2 is busy, STA1 cannot The data packet is transmitted on channel 2. Therefore, STA1 can select at least one subchannel from the idle channel (channel 1), for example, select subchannel 1 to transmit an uplink data packet, or select subchannel 1 and subchannel 2, and pass subchannel 1 And the subchannel 2 transmits the uplink data DATA-1 (that is, the data packet). It should be noted that FIG. 8 is an example in which the subchannel 1 is selected as an example.
若站点为STA2,STA2侦听到信道1为繁忙,而信道2为空闲,STA2可以采用实施例二或者实施例三的竞争接入方法进行随机竞争,在本实施例中以实施例三的竞争接入方式为例进行说明,具体的,由于TF-1信道标识对应的分配信息为信道1和信道2上共有6个子信道可以用于随机竞争,因此STA2将第一退避值减去6(即第二数量),以获取第三退避值(为1),由于该第三退避值大于0,因此,STA2退避未完成,不能从空闲信道中选择子信道发送上行数据DATA-2。If the STA2 is the STA2, the STA2 is aware that the channel 1 is busy, and the channel 2 is idle. The STA2 can use the contention access method of the second embodiment or the third embodiment to perform random competition. In this embodiment, the content of the third embodiment is competitive. The access mode is described as an example. Specifically, since the allocation information corresponding to the TF-1 channel identifier is that a total of six subchannels on the channel 1 and the channel 2 can be used for random competition, STA2 subtracts 6 from the first backoff value. The second number is obtained to obtain the third backoff value (1). Since the third backoff value is greater than 0, the STA2 backoff is not completed, and the uplink data DATA-2 cannot be transmitted by selecting the subchannel from the idle channel.
进一步说明,对于STA2而言,可以再接收接入点发送的上述触发帧,例如:TF-2,STA2接收到该TF-2后,其第一退避值为5,并且之后进行物理载波侦听,STA2侦听到信道1和信道2均为空闲,由于TF-2指示空闲的信道1和信道2上共有6个子信道可以用于随时竞争,因此,STA2将第一退避值减去6(即第二数量),以获取第三退避值,第三退避值小于0,因此,STA2之后可以随机从空闲信道(信道1和信道2)中选择子信道发送上行数据DATA-2。Further, for STA2, the trigger frame sent by the access point may be received again, for example, TF-2, and after receiving the TF-2, STA2 has a first backoff value of 5, and then performs physical carrier sensing. STA2 hears that both channel 1 and channel 2 are idle. Since TF-2 indicates that there are 6 subchannels on channel 1 and channel 2 that can be used for contention at any time, STA2 subtracts 6 from the first backoff value. The second number is obtained to obtain the third backoff value, and the third backoff value is less than 0. Therefore, STA2 can randomly select the subchannel to transmit the uplink data DATA-2 from the idle channels (channel 1 and channel 2).
需要说明的是,STA1侦听到的信道是否空闲与STA2侦听到的信道空闲没有必然的联系,二者是相互独立。另外,TF-1和TF-2也没有必然的联系,二者是相互独立,本实施例是以TF-1和TF-2相同为例进行说明的,当然,也并不局限于此,TF-1和TF-2可以是不同的。It should be noted that whether the channel detected by STA1 is idle is not necessarily related to the channel idleness detected by STA2, and the two are independent of each other. In addition, there is no necessary relationship between TF-1 and TF-2, and the two are independent of each other. This embodiment is described by taking the same TF-1 and TF-2 as an example. Of course, it is not limited to this, TF -1 and TF-2 can be different.
图9为本发明实施例提供的竞争接入装置的实施例一的结构示意图;如图9所示,本实施例提供的竞争接入装置,具体包括:收发模块901、侦听模块902和处理模块903。FIG. 9 is a schematic structural diagram of Embodiment 1 of a contention access device according to an embodiment of the present invention; as shown in FIG. 9, the contention access device provided in this embodiment includes: a transceiver module 901, a listening module 902, and processing. Module 903.
在本实施例中,收发模块901,用于接收接入点发送的触发帧;具体的, 触发帧中包括信道标识和信道标识对应的分配信息;侦听模块902,用于侦听信道标识对应的信道是否空闲;处理模块903,若侦听模块902侦听到有空闲信道,则用于根据空闲信道的分配信息,从空闲信道中选择至少一个子信道,并触发收发模块通过选择的至少一个子信道子信道发送数据包;或者根据空闲信道对应的分配信息或者触发帧中包括的信道标识对应的分配信息,进行退避处理。In this embodiment, the transceiver module 901 is configured to receive a trigger frame sent by the access point; specifically, The triggering frame 902 includes: the channel identifier and the channel identifier corresponding to the allocation information; the listening module 902 is configured to listen to whether the channel corresponding to the channel identifier is idle; and the processing module 903 is configured to: if the listening module 902 detects that there is a free channel, Selecting at least one subchannel from the idle channel according to the allocation information of the idle channel, and triggering the transceiver module to send the data packet through the selected at least one subchannel subchannel; or according to the allocation information corresponding to the idle channel or the channel identifier included in the trigger frame The corresponding allocation information is subjected to backoff processing.
本实施例中的竞争接入装置具体可以为站点,并可以执行图2方法实施例的技术方案,其实现原理相类似,此处不再赘述。The contention access device in this embodiment may be a site, and may implement the technical solution of the method embodiment of FIG. 2, and the implementation principles thereof are similar, and details are not described herein again.
本发明实施例提供的竞争接入装置,通过收发模块接收到的接入点发送的触发帧,侦听模块侦听信道标识对应的信道是否空闲,处理模块在侦听模块侦听到有空闲信道时,根据空闲信道的分配信息,从空闲信道中选择至少一个子信道,并触发收发模块通过选择的至少一个子信道子信道发送数据包,或者根据空闲信道以及触发帧中包括的信道标识对应的分配信息,进行退避处理,由于先判断信道标识对应的信道哪些是空闲信道,再从可用空闲信道中选择至少一个子信道,或者根据空闲信道对应的分配信息或者触发帧中的包括的信道标识对应的分配信息,进行退避处理,因此,保证了一旦在选择一个子信道时,必然是空闲信道中的子信道,从而避免了现有技术中若站点随机选择的子信道的信道是繁忙而造成的降低上行接入的效率,进而降低网络的性能的问题,进而有效地提高了站点上行接入效率,并提高网络性能。In the contention access device provided by the embodiment of the present invention, the triggering frame sent by the access point received by the transceiver module is used, and the listening module detects whether the channel corresponding to the channel identifier is idle, and the processing module detects that the channel is idle in the listening module. And selecting at least one subchannel from the idle channel according to the allocation information of the idle channel, and triggering the transceiver module to send the data packet through the selected at least one subchannel subchannel, or according to the idle channel and the channel identifier included in the trigger frame. Allocating information, performing backoff processing, first determining whether the channel corresponding to the channel identifier is an idle channel, and then selecting at least one subchannel from the available idle channels, or corresponding to the allocation information corresponding to the idle channel or the channel identifier included in the trigger frame. The allocation information is subjected to the backoff processing. Therefore, it is ensured that once a subchannel is selected, it is necessarily a subchannel in the idle channel, thereby avoiding the problem that the channel of the subchannel randomly selected by the station is busy in the prior art. Reduce the efficiency of uplink access, thereby reducing network performance Problems, thereby effectively improving the efficiency of uplink access the site, and improving network performance.
进一步地,在上述实施例一的技术方案的基础上,在本发明提供的竞争接入装置的实施例二中,图10为本发明实施例提供的竞争接入装置的实施例二的结构示意图;如图10所示,若空闲信道的分配信息中包括用于竞争的子信道;则处理模块903,包括:第一退避单元101和第一判断单元102。Further, based on the technical solution of the first embodiment, in the second embodiment of the contention access device provided by the present invention, FIG. 10 is a schematic structural diagram of Embodiment 2 of the contention access device according to the embodiment of the present invention. As shown in FIG. 10, if the allocation information of the idle channel includes a subchannel for contention, the processing module 903 includes: a first backoff unit 101 and a first judging unit 102.
在本实施例中,第一退避单元101,用于根据空闲信道对应的分配信息,将第一退避值减去第一数量,获取第二退避值;第一判断单元102,用于判断第二退避值是否小于或等于0,若第二退避值小于或等于0,则从空闲信道中选择至少一个子信道,并触发收发模块通过选择的至少一个子信道发送数据包;其中,第一退避值是站点接收到触发帧时的退避值,第一数量为空闲信道的分配信息中包括用于竞争的子信道的数量。In this embodiment, the first backoff unit 101 is configured to: after the first backoff value is subtracted from the first backoff value, the second backoff value is obtained according to the allocation information corresponding to the idle channel; the first determining unit 102 is configured to determine the second Whether the backoff value is less than or equal to 0, if the second backoff value is less than or equal to 0, selecting at least one subchannel from the idle channel, and triggering the transceiver module to send the data packet through the selected at least one subchannel; wherein, the first backoff value It is a backoff value when the station receives the trigger frame, and the first number of allocation information of the idle channel includes the number of subchannels for contention.
另外,在本实施例中,若第二退避值大于0,则退避未完成,不发送数 据包。In addition, in this embodiment, if the second backoff value is greater than 0, the backoff is not completed, and the number of transmissions is not completed. According to the package.
本实施例中的竞争接入装置具体可以为站点,并可以执行图3方法实施例的技术方案,其实现原理相类似,此处不再赘述。The contention access device in this embodiment may be a site, and may implement the technical solution of the method embodiment of FIG. 3, and the implementation principles thereof are similar, and details are not described herein again.
进一步地,在竞争接入装置的实施例一的技术方案的基础上,在本发明提供的竞争接入装置的实施例三中,图11为本发明实施例提供的竞争接入装置的实施例三的结构示意图;如图11所示,若信道标识对应的分配信息中均包括用于竞争的子信道,则处理模块903,包括:第二退避单元111和第二判断单元112。Further, on the basis of the technical solution of the first embodiment of the contention access device, in the third embodiment of the contention access device provided by the present invention, FIG. 11 is an embodiment of a contention access device according to an embodiment of the present invention. As shown in FIG. 11, if the allocation information corresponding to the channel identifier includes a subchannel for contention, the processing module 903 includes: a second backoff unit 111 and a second judging unit 112.
在本实施例中,第二退避单元111,用于根据触发帧中包括的信道标识对应的分配信息,将第一退避值减去第二数量,获取第三退避值;第二判断单元112,用于判断第三退避值是否小于或等于0,若第三退避值小于或等于0,则从空闲信道中选择至少一个子信道,并触发收发模块通过选择的至少一个子信道发送数据包;其中,第一退避值是站点接收到触发帧时的退避值,第二数量触发帧中包括的所有用于竞争的子信道的总数量。In this embodiment, the second backoff unit 111 is configured to: according to the allocation information corresponding to the channel identifier included in the trigger frame, subtract the second backoff value from the second backoff value to obtain a third backoff value; the second determining unit 112, For determining whether the third backoff value is less than or equal to 0, if the third backoff value is less than or equal to 0, selecting at least one subchannel from the idle channel, and triggering the transceiver module to send the data packet through the selected at least one subchannel; The first backoff value is a backoff value when the station receives the trigger frame, and the second number triggers the total number of all the subchannels used for contention included in the frame.
另外,在本实施例中,若第三退避值大于0,则退避未完成,不发送数据包。Further, in the present embodiment, if the third backoff value is greater than 0, the backoff is not completed, and the data packet is not transmitted.
本实施例中的竞争接入装置具体可以为站点,并可以执行图5方法实施例的技术方案,其实现原理相类似,此处不再赘述。The contention access device in this embodiment may be a site, and may implement the technical solution of the method embodiment in FIG. 5, and the implementation principles thereof are similar, and details are not described herein again.
进一步地,在竞争接入装置的实施例一的技术方案的基础上,在本发明提供的竞争接入装置的实施例四中,包括:若空闲信道的分配信息中包括用于竞争的、且分配给竞争接入装置的子信道;则处理模块具体用于根据空闲信道分配信息,从空闲信道中选择用于竞争的、且分配给竞争接入装置的子信道,并触发收发模块通过选择的用于竞争的、且分配给竞争接入装置的子信道发送数据包。Further, based on the technical solution of the first embodiment of the contention access device, in the fourth embodiment of the contention access device provided by the present invention, the method includes: if the allocation information of the idle channel includes content for contention, and And the processing module is configured to: select, according to the idle channel allocation information, a subchannel for contention and allocated to the contention access device from the idle channel, and trigger the transceiver module to select A sub-channel for contention and assigned to a contention access device transmits a data packet.
本实施例中的竞争接入装置具体可以为站点,并可以执行方法的实施例四方法的实施例的技术方案,其实现原理向类似,此处不再赘述。The contending access device in this embodiment may be a site, and may implement the technical solution of the embodiment of the method in the fourth embodiment of the method, and the implementation principle thereof is similar, and details are not described herein again.
进一步地,在竞争接入装置的实施例一的技术方案的基础上,在本发明提供的竞争接入装置的实施例五中,处理模块还用于判断触发帧中是否存在用于竞争的、且分配给竞争接入装置的子信道,若存在,则判断存在的用于竞争的、且分配给竞争接入装置的子信道所属的信道是否是空闲信道;若判 断出存在的用于竞争的、且分配给竞争接入装置的子信道所属的信道不是空闲信道,则根据空闲信道对应的分配信息或者触发帧中包括的信道标识对应的分配信息,进行退避处理。Further, on the basis of the technical solution of the first embodiment of the contention access device, in the fifth embodiment of the contention access device provided by the present invention, the processing module is further configured to determine whether there is a contention for the competition in the trigger frame. And the subchannel allocated to the contention access device, if yes, determining whether the existing channel for the contention and the subchannel allocated to the contention access device belongs to the idle channel; If the channel to which the subchannel that is used for the contention and is allocated to the contention access device is not the idle channel, the backoff processing is performed according to the allocation information corresponding to the idle channel or the allocation information corresponding to the channel identifier included in the trigger frame. .
本实施例中的竞争接入装置具体可以为站点,并可以执行图7方法实施例的技术方案,其实现原理向类似,此处不再赘述。The contention access device in this embodiment may be a site, and may implement the technical solution of the method embodiment in FIG. 7. The implementation principle is similar, and details are not described herein again.
进一步地,在竞争接入装置的实施例一的技术方案的基础上,在本发明提供的竞争接入装置的实施例六中,处理模块还用于判断触发帧中是否存在用于竞争的、且分配给竞争接入装置的子信道,若存在,则判断存在的用于竞争的、且分配给竞争接入装置的子信道所属的信道是否是空闲信道;若判断出存在的用于竞争的、且分配给竞争接入装置的子信道所属的信道不是空闲信道,则根据空闲信道的分配信息,从空闲信道中选择至少一个子信道,并通过选择的至少一个子信道发送数据包。Further, on the basis of the technical solution of the first embodiment of the contention access device, in the sixth embodiment of the contention access device provided by the present invention, the processing module is further configured to determine whether there is a contention for triggering in the trigger frame. And the subchannel allocated to the contention access device, if yes, determining whether the existing channel for the contention and the subchannel allocated to the contention access device belongs to the idle channel; if it is determined that there is competition for existence And the channel to which the subchannel allocated to the contention access device belongs is not an idle channel, and at least one subchannel is selected from the idle channel according to the allocation information of the idle channel, and the data packet is transmitted through the selected at least one subchannel.
本实施例中的竞争接入装置具体可以为站点,并可以执行图8方法实施例的技术方案,其实现原理向类似,此处不再赘述。The contention access device in this embodiment may be a site, and may implement the technical solution of the method embodiment of FIG. 8. The implementation principle is similar, and details are not described herein again.
图12为本发明实施例提供的站点的结构示意图;如图12所示,本实施例提供的站点,具体包括:接收器121、处理器122和发送器123。FIG. 12 is a schematic structural diagram of a site according to an embodiment of the present invention; as shown in FIG. 12, the site provided by the embodiment includes: a receiver 121, a processor 122, and a transmitter 123.
在本实施例中,接收器121,用于接收接入点发送的触发帧;触发帧中包括信道标识和信道标识对应的分配信息;处理器122,用于侦听信道标识对应的信道是否空闲;处理器122,还用于若侦听到有空闲信道,则根据空闲信道的分配信息,从空闲信道中选择至少一个子信道,并触发发送器123通过选择的至少一个子信道发送数据包;或者根据空闲信道对应的分配信息或者触发帧中包括的信道标识对应的分配信息,进行退避处理。In this embodiment, the receiver 121 is configured to receive a trigger frame sent by the access point, where the trigger frame includes the channel identifier and the allocation information corresponding to the channel identifier, and the processor 122 is configured to: listen to whether the channel corresponding to the channel identifier is idle. The processor 122 is further configured to: if the idle channel is detected, select at least one subchannel from the idle channel according to the allocation information of the idle channel, and trigger the transmitter 123 to send the data packet by using the selected at least one subchannel; The backoff process is performed according to the allocation information corresponding to the idle channel or the allocation information corresponding to the channel identifier included in the trigger frame.
进一步地,在站点的实施例一的技术方案的基础上,在本发明提供的站点的实施例二中,若空闲信道的分配信息中包括用于竞争的子信道;处理器122具体用于:根据空闲信道对应的分配信息,将第一退避值减去第一数量,获取第二退避值;判断第二退避值是否小于或等于0,若第二退避值小于或等于0,则从空闲信道中选择至少一个子信道,并触发发送器通过选择的至少一个子信道发送数据包;其中,第一退避值是站点接收到触发帧时的退避值,第一数量为空闲信道的分配信息中包括用于竞争的子信道的数量。Further, on the basis of the technical solution of the first embodiment of the site, in the second embodiment of the site provided by the present invention, if the allocation information of the idle channel includes a subchannel for contention, the processor 122 is specifically configured to: Determining, according to the allocation information corresponding to the idle channel, the first backoff value by the first number, obtaining the second backoff value; determining whether the second backoff value is less than or equal to 0, and if the second backoff value is less than or equal to 0, the slave idle channel Selecting at least one subchannel, and triggering the transmitter to send the data packet by using the selected at least one subchannel; wherein, the first backoff value is a backoff value when the station receives the trigger frame, and the first quantity is included in the allocation information of the idle channel. The number of subchannels used for contention.
另外,在本实施例中,若第二退避值大于0,则退避未完成,不发送数 据包。In addition, in this embodiment, if the second backoff value is greater than 0, the backoff is not completed, and the number of transmissions is not completed. According to the package.
进一步地,在站点的实施例一的技术方案的基础上,在本发明提供的站点的实施例三中,若信道标识对应的分配信息中均包括用于竞争的子信道,则处理器122还用于:根据触发帧中包括的信道标识对应的分配信息,将第一退避值减去第二数量,获取第三退避值;判断第三退避值是否小于或等于0,若第三退避值小于或等于0,则从空闲信道中选择至少一个子信道,并触发发送器通过选择的至少一个子信道发送数据包;其中,第一退避值是所述站点接收到触发帧时的退避值,第二数量触发帧中包括的所有用于竞争的子信道的总数量。Further, on the basis of the technical solution of the first embodiment of the site, in the third embodiment of the site provided by the present invention, if the allocation information corresponding to the channel identifier includes a subchannel for contention, the processor 122 further The method is: using the allocation information corresponding to the channel identifier included in the trigger frame, subtracting the second backoff value from the second backoff value, and acquiring the third backoff value; determining whether the third backoff value is less than or equal to 0, if the third backoff value is less than Or equal to 0, selecting at least one subchannel from the idle channel, and triggering the transmitter to send the data packet through the selected at least one subchannel; wherein the first backoff value is a backoff value when the station receives the trigger frame, The total number of all subchannels used for contention included in the two number trigger frame.
另外,在本实施例中,若所述第三退避值大于0,则退避未完成,不发送所述数据包。In addition, in this embodiment, if the third backoff value is greater than 0, the backoff is not completed, and the data packet is not transmitted.
进一步地,在站点的实施例一的技术方案的基础上,在本发明提供的站点的实施例四中,若空闲信道的分配信息中包括用于竞争的、且分配给站点的子信道;则处理器122具体用于:根据空闲信道分配信息,从空闲信道中选择用于竞争的、且分配给站点的子信道,并触发发送器通过选择的用于竞争的、且分配给站点的子信道发送数据包。Further, on the basis of the technical solution of the first embodiment of the site, in the fourth embodiment of the site provided by the present invention, if the allocation information of the idle channel includes a subchannel for contention and allocated to the station, The processor 122 is specifically configured to: select, according to the idle channel allocation information, a subchannel for contention and allocated to the station from the idle channel, and trigger the transmitter to pass the selected subchannel for contention and allocated to the station. Send a packet.
进一步地,在站点的实施例一的技术方案的基础上,在本发明提供的站点的实施例五中,处理器122还用于,判断触发帧中是否存在用于竞争的、且分配给站点的子信道,若存在,则判断存在的用于竞争的、且分配给站点的子信道所属的信道是否是空闲信道;若判断出存在的用于竞争的、且分配给站点的子信道所属的信道不是空闲信道,则根据空闲信道对应的分配信息或者触发帧中包括的信道标识对应的分配信息,进行退避处理。Further, on the basis of the technical solution of the first embodiment of the site, in the fifth embodiment of the site provided by the present invention, the processor 122 is further configured to: determine whether there is a contention for the competition in the trigger frame, and allocate the site to the site. If there is a subchannel, if it exists, it is determined whether the existing channel used for contention and allocated to the subchannel of the station belongs to the idle channel; if it is determined that the subchannel reserved for the competition and allocated to the station belongs to If the channel is not an idle channel, the backoff process is performed according to the allocation information corresponding to the idle channel or the allocation information corresponding to the channel identifier included in the trigger frame.
进一步地,在站点的实施例一的技术方案的基础上,在本发明提供的站点的实施例六中,处理器122还用于,判断触发帧中是否存在用于竞争的、且分配给站点的子信道,若存在,则判断存在的用于竞争的、且分配给站点的子信道所属的信道是否是空闲信道;若判断出存在的用于竞争的、且分配给站点的子信道所属的信道不是空闲信道,则根据空闲信道的分配信息,从空闲信道中选择至少一个子信道,并通过选择的至少一个子信道发送数据包。Further, on the basis of the technical solution of the first embodiment of the site, in the sixth embodiment of the site provided by the present invention, the processor 122 is further configured to: determine whether there is a contention for the competition in the trigger frame, and allocate the site to the site. If there is a subchannel, if it exists, it is determined whether the existing channel used for contention and allocated to the subchannel of the station belongs to the idle channel; if it is determined that the subchannel reserved for the competition and allocated to the station belongs to The channel is not an idle channel, and at least one subchannel is selected from the idle channel according to the allocation information of the idle channel, and the data packet is transmitted through the selected at least one subchannel.
图13为本发明实施例提供的竞争接入系统的结构示意图;如图13所示,本实施例提供的竞争接入系统,包括:接入点131和站点132。 FIG. 13 is a schematic structural diagram of a contention access system according to an embodiment of the present invention; as shown in FIG. 13, the contention access system provided in this embodiment includes: an access point 131 and a site 132.
本实施例中的站点为图9至11任一的竞争接入装置,其实现原理相类似,此处不再赘述。The site in this embodiment is the contention access device of any of FIG. 9 to FIG. 11, and the implementation principles are similar, and details are not described herein again.
实施例七:Example 7:
请参阅图14,本实施例针对接入点发送触发帧,其中将一部分子信道分配给被调度站点,并将另一部分子信道用于随机竞争(random access),但是被调度站点通过侦听发现为自身所分配的子信道处于繁忙状态的场景。被调度站点侦听被分配的子信道通常是通过侦听被分配的子信道所在信道的状态来得知的,当站点侦听到某一个信道处于繁忙状态时,该信道所包含所有子信道处于繁忙状态。反之,当站点侦听到某一信道处于空闲状态时,该信道所包含的所有子信道处于空闲状态。这种基于信道进行状态的侦听,实现方式简单,避免了对每一个子信道单独进行侦听而带来的高复杂度。Referring to FIG. 14, the embodiment sends a trigger frame for an access point, where a part of the subchannels are allocated to the scheduled station, and another part of the subchannels is used for random access, but the scheduled station is detected by interception. A scenario in which the subchannels allocated to itself are in a busy state. The scheduled station listens to the allocated subchannel, which is usually obtained by listening to the state of the channel where the allocated subchannel is located. When the station detects that a certain channel is busy, all subchannels included in the channel are busy. status. Conversely, when a station detects that a channel is in an idle state, all subchannels included in the channel are idle. The interception based on the state of the channel is simple to implement, and avoids the high complexity caused by the separate listening of each subchannel.
本发明实施例七提供的竞争接入方法,具体包括以下步骤:The contention access method provided in Embodiment 7 of the present invention specifically includes the following steps:
接入点发送触发帧,该触发帧将一部分子信道分配给被调度站点,并将另一部分子信道用于随机竞争;The access point sends a trigger frame, which allocates a part of the subchannels to the scheduled station, and uses another part of the subchannels for random competition;
站点接收触发帧,并根据触发帧判断自身是否为被调度站点;The station receives the trigger frame, and determines whether it is a scheduled station according to the trigger frame;
如果判断自身是被调度站点则侦听被调度子信道的状态,当被调度子信道状态为空闲时,则在被调度子信道上发送数据;当被调度子信道为繁忙时,则进一步判断是否存在空闲的用于随机竞争的子信道,如果有空闲的随机竞争子信道则执行以下方式之一:If it is judged that it is a scheduled station, it listens to the state of the scheduled subchannel. When the scheduled subchannel state is idle, the data is transmitted on the scheduled subchannel; when the scheduled subchannel is busy, it is further determined whether There are idle subchannels for random contention, and if there are idle random competing subchannels, one of the following methods is performed:
方式一:随机选择一个空闲的随机竞争子信道进行数据发送;Manner 1: randomly select an idle random competing subchannel for data transmission;
方式二:先进行退避,即用退避计数器数值减去空闲的用于随机竞争的子信道的数目,如果更新后的退避计数器数值为0或者负数,则随机选择一个空闲的随机竞争子信道进行数据发送;Manner 2: first perform backoff, that is, subtract the idle number of subchannels for random competition by using the backoff counter value, and if the updated backoff counter value is 0 or a negative number, randomly select an idle random competing subchannel for data. send;
方式三:先进行退避,即用退避计数器数值减去用于随机竞争的子信道的数目,如果更新后的退避计数器数值为0或者负数,则随机选择一个空闲的随机竞争子信道进行数据发送。Manner 3: First, the backoff is performed, that is, the number of subchannels used for random competition is subtracted by the backoff counter value. If the updated backoff counter value is 0 or a negative number, an idle random competing subchannel is randomly selected for data transmission.
方式一中被调度站点没有进行退避就直接选择随机竞争子信道进行数据发送,被调度的站点被赋予了比随机竞争站点更高的优先级。这种方式可以使得被调度站点有更多的数据发送机会。但是当有大量的被调度站点的被调 度子信道处于繁忙状态的时候,会由于大量站点同时在有限的随机竞争子信道中进行发送而产生严重的冲突。一种控制冲突的方式是对执行方式一的站点进行限定,例如只有属于特定接入类型,或者高优先级的站点才可以使用方式一进行接入,又例如接入点可以在触发帧中对可以执行方式一的调度站点进行指示,从而防止同时执行方式一的调度站点过多而造成冲突。In the first mode, the scheduled station does not perform backoff and directly selects the random contention subchannel for data transmission, and the scheduled station is given a higher priority than the random competition site. This way, the scheduled site has more data transmission opportunities. But when there are a large number of scheduled sites that are tuned When the subchannel is in a busy state, a serious collision occurs due to a large number of stations transmitting in a limited random competing subchannel at the same time. A method for controlling conflicts is to limit the site of the execution mode 1. For example, only sites belonging to a specific access type or high priority can use the mode one for access, and for example, the access point can be in the trigger frame. The dispatching station of the first mode can be instructed to prevent the conflict of the scheduling site of the first execution mode 1 from being excessive.
下面是根据图14以一个更具体的例子进行介绍。假设接入点发送一个触发帧,该触发帧指示有可用于数据传输的两个信道:信道1和信道2,每个信道分为4个子信道。其中触发帧将信道1中的4个子信道用于随机竞争,将信道2中的子信道1和子信道2也用于随机竞争,将信道2中的子信道3和子信道4分配给调度用户,例如将信道2的子信道4分配个站点1。The following is a more specific example based on Figure 14. It is assumed that the access point sends a trigger frame indicating that there are two channels available for data transmission: channel 1 and channel 2, each channel being divided into 4 subchannels. The trigger frame uses 4 subchannels in channel 1 for random contention, and subchannel 1 and subchannel 2 in channel 2 are also used for random contention, and subchannel 3 and subchannel 4 in channel 2 are allocated to scheduling users, for example Subchannel 4 of channel 2 is assigned to station 1.
站点1接收到触发帧之后,首先根据触发帧中的调度信息获知自身被调度到信道2的子信道4进行数据传输。此时站点1将根据自身被调度的子信道以及随机接入子信道的信道状况来决定如何进行数据的发送。如图14所示,信道2处于繁忙状态,因此信道2的子信道4也为繁忙状态,此时不可以在信道2的子信道4上进行数据的发送。进一步地,站点1要判断是否存在空闲的随机竞争的子信道,如图14所示信道1的4个随机竞争子信道处于空闲状态,此时站点一可以执行以下方式之一:After receiving the trigger frame, the station 1 first learns that it is scheduled to transmit to the subchannel 4 of the channel 2 according to the scheduling information in the trigger frame. At this time, the station 1 will decide how to transmit data according to the channel conditions of the subchannels scheduled by itself and the random access subchannel. As shown in FIG. 14, channel 2 is in a busy state, so subchannel 4 of channel 2 is also in a busy state, and data transmission on subchannel 4 of channel 2 is not possible at this time. Further, the station 1 determines whether there is an idle random contention subchannel, and as shown in FIG. 14, the four randomly-contiguous subchannels of the channel 1 are in an idle state, and at this time, the station one can perform one of the following modes:
方式一:在信道1中的4个随机竞争子信道中选择一个进行数据发送;Manner 1: Select one of the four random competing subchannels in channel 1 for data transmission;
方式二:先进行退避,即用退避计数器数值减去空闲的用于随机竞争的子信道的数目,如果更新之前的退避计数器数值小于等于4,则更新之后退避计数器数值为0或者负数,进而可以在信道1中的4个随机竞争子信道中选择一个进行数据发送;如果如果更新之前的退避计数器数值大于4,则更新之后退避计数器数值大于0,则不可以进行数据的发送;Manner 2: first perform backoff, that is, subtract the idle number of subchannels for random competition by using the backoff counter value. If the value of the backoff counter before updating is less than or equal to 4, the value of the backoff counter after updating is 0 or a negative number, and thus Select one of the four random competing subchannels in channel 1 for data transmission; if the value of the backoff counter before the update is greater than 4, the value of the backoff counter after updating is greater than 0, and data transmission cannot be performed;
方式二:先进行退避,即用退避计数器数值减去用于随机竞争的子信道的数目,如果更新之前的退避计数器数值小于等于6,则更新之后退避计数器数值为0或者负数,进而可以在信道1中的4个随机竞争子信道中选择一个进行数据发送;如果如果更新之前的退避计数器数值大于6,则更新之后退避计数器数值大于0,则不可以进行数据的发送。Manner 2: first perform backoff, that is, subtract the number of subchannels used for random competition by using the backoff counter value. If the value of the backoff counter before the update is less than or equal to 6, the value of the backoff counter after updating is 0 or a negative number, and thus the channel can be One of the four random competing subchannels in 1 is selected for data transmission; if the value of the backoff counter before the update is greater than 6, the value of the backoff counter after the update is greater than 0, and the data cannot be transmitted.
请参阅图15,本发明实施例七提供一种应用于无线局域网的通信方法,包括: Referring to FIG. 15, a seventh embodiment of the present invention provides a communication method applied to a wireless local area network, including:
S701:站点接收接入点发送的触发帧;该触发帧指示一部分子信道是用于分配给被调度的站点的子信道,另一部分子信道是用于随机接入的子信道;S701: The station receives a trigger frame sent by the access point; the trigger frame indicates that a part of the subchannel is a subchannel allocated for the scheduled station, and another part of the subchannel is a subchannel for random access;
S702:如果该站点是被调度的站点,则侦听分配给该站点的子信道是否繁忙;S702: If the station is a scheduled station, listen to whether the subchannel allocated to the station is busy;
S703:如果分配给该站点的子信道繁忙,则随机选择一个空闲的随机接入子信道进行数据发送,或先进行退避,退避结束后再随机选择一个空闲的随机接入子信道进行数据发送。S703: If the subchannel allocated to the station is busy, randomly select an idle random access subchannel for data transmission, or perform backoff first, and then randomly select an idle random access subchannel for data transmission after the backoff is completed.
具体地,所述进行退避的方式为:用退避计数器数值减去空闲的用于随机接入的子信道的数目,如果更新后的退避计数器数值为0或者负数,则退避结束;或用退避计数器数值减去用于随机接入的子信道的数目,如果更新后的退避计数器数值为0或者负数,则退避结束。Specifically, the manner of performing backoff is: subtracting the number of idle subchannels for random access by using the backoff counter value, and if the updated backoff counter value is 0 or a negative number, the backoff ends; or using the backoff counter The value is subtracted from the number of subchannels used for random access. If the updated backoff counter value is 0 or a negative number, the backoff ends.
具体地,所述站点通过侦听被分配的子信道所在信道的状态来得知分配给该站点的子信道是否繁忙,当站点侦听到某一个信道处于繁忙状态时,则该信道所包含所有子信道处于繁忙状态;当站点侦听到某一信道处于空闲状态时,该信道所包含的所有子信道处于空闲状态。Specifically, the station knows whether the subchannel allocated to the station is busy by listening to the state of the channel where the allocated subchannel is located, and when the station detects that one channel is in a busy state, all the subchannels are included in the channel. The channel is in a busy state; when the station detects that a channel is in an idle state, all subchannels included in the channel are idle.
请参阅图12,本发明实施例七揭示了一种站点,其包括:Referring to FIG. 12, a seventh embodiment of the present invention discloses a station, including:
接收器121,用于接收接入点发送的触发帧;该触发帧指示一部分子信道是用于分配给被调度的站点的子信道,另一部分子信道是用于随机接入的子信道;The receiver 121 is configured to receive a trigger frame sent by the access point, where the trigger frame indicates that a part of the subchannel is a subchannel for allocation to the scheduled station, and another part of the subchannel is a subchannel for random access;
处理器122,用于根据所述触发帧判断所述站点是否为被调度的站点,并侦听分配给该站点的子信道是否繁忙;所述处理器122还用于在分配给该站点的子信道繁忙时,随机选择一个空闲的随机接入子信道以进行数据发送;或用于在分配给该站点的子信道繁忙时,先执行退避,退避结束后再随机选择一个空闲的随机接入子信道进行数据发送;及The processor 122 is configured to determine, according to the trigger frame, whether the site is a scheduled site, and listen to whether a subchannel allocated to the site is busy; and the processor 122 is further configured to allocate to the site When the channel is busy, an idle random access subchannel is randomly selected for data transmission; or when the subchannel allocated to the station is busy, the backoff is performed first, and after the backoff is ended, an idle random access sub is randomly selected. Channel for data transmission; and
发送器123,用于在分配的子信道上传输数据或在竞争到的子信道上发送数据。The transmitter 123 is configured to transmit data on the allocated subchannel or send data on the subchannel that is contending.
所述处理器122执行退避的方式具体为:用退避计数器数值减去空闲的用于随机接入的子信道的数目,如果更新后的退避计数器数值为0或者负数,则退避结束;或用退避计数器数值减去用于随机接入的子信道的数目,如果更新后的退避计数器数值为0或者负数,则退避结束。 The manner in which the processor 122 performs backoff is specifically: subtracting the number of idle subchannels for random access by using the backoff counter value, and if the updated backoff counter value is 0 or a negative number, the backoff ends; or using backoff The counter value is subtracted from the number of subchannels used for random access. If the updated backoff counter value is 0 or a negative number, the backoff ends.
具体地,所述站点通过侦听被分配的子信道所在信道的状态来得知分配给该站点的子信道是否繁忙,当站点侦听到某一个信道处于繁忙状态时,则该信道所包含所有子信道处于繁忙状态;当站点侦听到某一信道处于空闲状态时,该信道所包含的所有子信道处于空闲状态。Specifically, the station knows whether the subchannel allocated to the station is busy by listening to the state of the channel where the allocated subchannel is located, and when the station detects that one channel is in a busy state, all the subchannels are included in the channel. The channel is in a busy state; when the station detects that a channel is in an idle state, all subchannels included in the channel are idle.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。One of ordinary skill in the art will appreciate that all or part of the steps to implement the various method embodiments described above may be accomplished by hardware associated with the program instructions. The aforementioned program can be stored in a computer readable storage medium. The program, when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换。因此,本发明的保护范围应以权利要求的保护范围为准。 Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that Modifications may be made to the technical solutions described in the foregoing embodiments, or some or all of the technical features may be equivalently replaced. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims (8)

  1. 一种应用于无线局域网的通信方法,其特征在于,该方法包括:A communication method applied to a wireless local area network, the method comprising:
    站点接收接入点发送的触发帧;该触发帧指示一部分子信道是用于分配给被调度的站点的子信道,另一部分子信道是用于随机接入的子信道;The station receives a trigger frame sent by the access point; the trigger frame indicates that a part of the subchannel is a subchannel for allocation to the scheduled station, and another part of the subchannel is a subchannel for random access;
    如果该站点是被调度的站点,则侦听分配给该站点的子信道是否繁忙;If the site is a scheduled site, listen to whether the subchannel assigned to the site is busy;
    如果分配给该站点的子信道繁忙,则随机选择一个空闲的随机接入子信道进行数据发送,或先进行退避,退避结束后再随机选择一个空闲的随机接入子信道进行数据发送。If the subchannel allocated to the station is busy, randomly select an idle random access subchannel for data transmission, or perform backoff first, and then randomly select an idle random access subchannel for data transmission after the backoff is completed.
  2. 根据权利要求1所述的方法,其特征在于,所述进行退避的方式具体为:用退避计数器数值减去空闲的用于随机接入的子信道的数目,如果更新后的退避计数器数值为0或者负数,则退避结束。The method according to claim 1, wherein the manner of performing backoff is specifically: subtracting the number of idle subchannels for random access by using a backoff counter value, if the updated backoff counter value is 0. Or a negative number, the backoff ends.
  3. 根据权利要求1所述的方法,其特征在于,所述进行退避的方式具体为:用退避计数器数值减去用于随机接入的子信道的数目,如果更新后的退避计数器数值为0或者负数,则退避结束。The method according to claim 1, wherein the manner of performing backoff is specifically: subtracting the number of subchannels used for random access by using a backoff counter value, if the updated backoff counter value is 0 or a negative number , the end of the retreat.
  4. 根据权利要求1-3其中任意一项所述的方法,其特征在于,所述站点通过侦听被分配的子信道所在信道的状态来得知分配给该站点的子信道是否繁忙,当站点侦听到某一个信道处于繁忙状态时,则该信道所包含所有子信道处于繁忙状态;当站点侦听到某一信道处于空闲状态时,该信道所包含的所有子信道处于空闲状态。The method according to any one of claims 1 to 3, wherein the station knows whether the subchannel allocated to the station is busy by listening to the state of the channel in which the allocated subchannel is located, when the station listens When a channel is busy, all subchannels included in the channel are busy; when the station detects that a channel is in an idle state, all subchannels included in the channel are idle.
  5. 一种站点,其特征在于,其包括:A site characterized in that it comprises:
    接收器,用于接收接入点发送的触发帧;该触发帧指示一部分子信道是用于分配给被调度的站点的子信道,另一部分子信道是用于随机接入的子信道;a receiver, configured to receive a trigger frame sent by the access point; the trigger frame indicates that a part of the subchannel is a subchannel for allocation to the scheduled station, and another part of the subchannel is a subchannel for random access;
    处理器,用于根据所述触发帧判断所述站点是否为被调度的站点,并侦听分配给该站点的子信道是否繁忙;a processor, configured to determine, according to the trigger frame, whether the site is a scheduled site, and listen to whether a subchannel allocated to the site is busy;
    所述处理器还用于在分配给该站点的子信道繁忙时,随机选择一个空闲的随机接入子信道以进行数据发送;或用于在分配给该站点的子信道繁忙时,先执行退避,退避结束后再随机选择一个空闲的随机接入子信道进行数据发送。 The processor is further configured to: when the subchannel allocated to the station is busy, randomly select an idle random access subchannel for data transmission; or to perform backoff when the subchannel allocated to the station is busy After the end of the backoff, an idle random access subchannel is randomly selected for data transmission.
  6. 根据权利要求5所述的站点,其特征在于,所述处理器执行退避的方式具体为:用退避计数器数值减去空闲的用于随机接入的子信道的数目,如果更新后的退避计数器数值为0或者负数,则退避结束。The station according to claim 5, wherein the manner in which the processor performs backoff is specifically: subtracting the number of idle subchannels for random access by using a backoff counter value, if the updated backoff counter value If it is 0 or a negative number, the backoff ends.
  7. 根据权利要求5所述的站点,其特征在于,所述处理器执行退避的方式具体为:用退避计数器数值减去用于随机接入的子信道的数目,如果更新后的退避计数器数值为0或者负数,则退避结束。The station according to claim 5, wherein the manner in which the processor performs backoff is specifically: subtracting the number of subchannels used for random access by using a backoff counter value, if the updated backoff counter value is 0. Or a negative number, the backoff ends.
  8. 根据权利要求5-7其中任意一项所述的站点,其特征在于,所述站点通过侦听被分配的子信道所在信道的状态来得知分配给该站点的子信道是否繁忙,当站点侦听到某一个信道处于繁忙状态时,则该信道所包含所有子信道处于繁忙状态;当站点侦听到某一信道处于空闲状态时,该信道所包含的所有子信道处于空闲状态。 The station according to any one of claims 5 to 7, wherein the station knows whether the subchannel allocated to the station is busy by listening to the state of the channel in which the allocated subchannel is located, when the station is listening. When a channel is busy, all subchannels included in the channel are busy; when the station detects that a channel is in an idle state, all subchannels included in the channel are idle.
PCT/CN2016/090856 2015-09-02 2016-07-21 Contention access method, contention access device, base station and contention access system WO2017036258A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201510558023.9 2015-09-02
CN201510558023 2015-09-02
CN201510738789.5A CN106488580B (en) 2015-09-02 2015-11-03 Competition access method, competition access device, station and competition access system
CN201510738789.5 2015-11-03

Publications (1)

Publication Number Publication Date
WO2017036258A1 true WO2017036258A1 (en) 2017-03-09

Family

ID=58186660

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/090856 WO2017036258A1 (en) 2015-09-02 2016-07-21 Contention access method, contention access device, base station and contention access system

Country Status (1)

Country Link
WO (1) WO2017036258A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024055739A1 (en) * 2022-09-16 2024-03-21 青岛海尔智能技术研发有限公司 Method for determining uplink channel, and terminal and network device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1741679A (en) * 2004-08-27 2006-03-01 三星电子株式会社 Accidental access method in multi-cell ofdma networks
CN101132621A (en) * 2006-08-21 2008-02-27 华为技术有限公司 Random access method and system thereof and access resource allocation device
CN101400145A (en) * 2007-09-29 2009-04-01 中兴通讯股份有限公司 Random access collision back-off method
US20140286203A1 (en) * 2013-03-24 2014-09-25 Broadcom Corporation Channel sharing within wireless communications

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1741679A (en) * 2004-08-27 2006-03-01 三星电子株式会社 Accidental access method in multi-cell ofdma networks
CN101132621A (en) * 2006-08-21 2008-02-27 华为技术有限公司 Random access method and system thereof and access resource allocation device
CN101400145A (en) * 2007-09-29 2009-04-01 中兴通讯股份有限公司 Random access collision back-off method
US20140286203A1 (en) * 2013-03-24 2014-09-25 Broadcom Corporation Channel sharing within wireless communications

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024055739A1 (en) * 2022-09-16 2024-03-21 青岛海尔智能技术研发有限公司 Method for determining uplink channel, and terminal and network device

Similar Documents

Publication Publication Date Title
WO2021008502A1 (en) Multilink communication method and apparatus
EP3968724A1 (en) Frame transmission method and device using multiple random backoff operation in broadband wireless communication network
US10194468B2 (en) Wireless channel reservation
US10638516B2 (en) Controlling transmissions from multiple user devices via a request-clear technique
JP5781699B2 (en) Collision reduction mechanisms for wireless communication networks
JP2020174372A (en) Access method and device
CN107113782B (en) System and method for avoiding interference in digital communications
KR101812151B1 (en) Methods and systems for protection and bandwidth selection for downlink and uplink frequency division multiple access communications
US9185692B2 (en) Method and apparatus for retrieving transmit opportunity control in reverse direction grant
US20120207074A1 (en) Transmitting multiple group-addressed frames in a wireless network
CN108028735B (en) Multiplexed messaging in wireless networks
CN105900513B (en) Method and device for channel competition
US20170208618A1 (en) Direct link scheduling method, access point and terminal device
US20170346608A1 (en) Access Point AP, Station STA, Communications System, and Data Transmission Method
WO2016187836A1 (en) Channel access method, access point, and station
WO2018107370A1 (en) Point to multi-point channel allocation method, apparatus, and system
WO2015113204A1 (en) Data transmission method and site
US9584433B2 (en) Data transmission method and apparatus
WO2016191967A1 (en) Channel access method and station
WO2017036258A1 (en) Contention access method, contention access device, base station and contention access system
WO2017084503A1 (en) Method and apparatus for changing txop holder
CN106488580B (en) Competition access method, competition access device, station and competition access system
US20240155650A1 (en) Resource selection method and apparatus
WO2024031687A1 (en) Method and apparatus for using channel, and device and storage medium
WO2022083233A1 (en) Data transmission method and apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16840687

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16840687

Country of ref document: EP

Kind code of ref document: A1