Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The method provided by the invention can be used in a wireless local area network to assist in realizing the communication between the AP and a Station (Station; hereinafter referred to as STA).
Fig. 1 is a flowchart of an embodiment of a station access method according to the present invention, and as shown in fig. 1, the station access method may include:
step 101, the STA listens to the channel and demodulates the listened frame to obtain the first information in the frame, where the first information is used to identify the basic service set.
Step 102, if the first information in the frame is the same as the first information known by the STA, the STA contends for the channel according to a value of a transmission opportunity END (TXOP _ END) bit in a physical layer signal (PHY SIG) field of the frame to access the channel.
In this embodiment, if the first information in the frame is the same as the first information known by the STA, the STA may determine that the frame belongs to the BSS to which the STA belongs, and then the STA may contend for the channel according to the value of the TXOP _ END bit in the PHY SIG field of the frame to access the channel. The first information known by the STA is the first information which is known and recorded locally at the STA when the STA establishes connection with the access point AP.
Specifically, the first information in the frame is carried in a PHY SIG field of the frame; in this embodiment, a random _ number bit may be newly added to the PHY SIG field, where the length of the random _ number bit may be 2 bits (bit), and the value of the random _ number bit is the first information in the frame; or, the first information in the frame may also be a partial bit of a Basic Service Set Identifier (BSSID) in the PHY SIG field, in this case, since the STA learns the BSSID of the BSS when associating with the AP, the STA may distinguish the BSS from an adjacent BSS according to the partial bit of the BSSID.
Specifically, when the first information known by the STA is that the STA associates with an AP in the BSS, the AP sends the first information to the STA; wherein, the first information sent by the AP to each STA in the BSS is the same. Specifically, the AP may carry the first information in a PHY SIG field of a frame that the AP transmits to the STA when the STA associates with the AP. In this embodiment, a random _ number bit may be newly added in the PHY SIG field, where the length of the random _ number bit may be 2 bits (bit), and the value of the random _ number bit is the first information; alternatively, the first information may be partial bits of the BSSID in the PHY SIG field, and in this case, since the STA learns the BSSID of the own BSS when associating with the AP, the STA may distinguish the own BSS from the adjacent BSS according to the partial bits of the BSSID.
In this embodiment, the carrying manner of the first information is not limited, as long as the same carrying manner is adopted in the frame sent by the AP to the STA when the STA associates with the AP as that in the frame intercepted by the STA.
In this embodiment, the STA may not be a receiver STA that transmits the TXOP of the frame.
In the above embodiment, the STA listens to the channel and demodulates the listened frame to obtain the first information in the frame; if the first information in the frame is the same as the first information of the STA, the STA may determine that the frame belongs to the BSS to which the STA belongs, and then the STA may contend for the channel according to the value of the TXOP _ END bit in the PHY SIG field of the frame to access the channel; therefore, the accuracy of the STA in judging the frames belonging to the basic service set of the STA can be improved in an OBSS scene, so that the STA can accurately select the time for accessing the channel; and further, the data sent by the STA and the data of another STA in the BSS to which the STA belongs can be prevented from colliding at the AP, the STA is prevented from being influenced by another STA which belongs to a different BSS from the STA, and the success rate of the STA in accessing the channel is improved.
Fig. 2 is a flowchart of another embodiment of a station access method according to the present invention, and as shown in fig. 2, the station access method may include:
in step 201, the STA receives first information sent by an AP in a BSS to which the STA belongs.
In this embodiment, the first information is used to identify a BSS. The first information transmitted by the AP is generated by the AP, and the AP transmits the first information to the STA when the STA associates with the AP. Wherein, the first information sent by the AP to each STA in the BSS is the same.
Specifically, the AP may carry the first information in a PHY SIG field of a frame that the AP transmits to the STA when the STA associates with the AP. In this embodiment, a random _ number bit may be newly added in the PHY SIG field, where the length of the random _ number bit may be 2 bits (bit), and the value of the random _ number bit is the first information; alternatively, the first information may be a partial bit of the BSSID in the PHYSIG field, and in this case, since the STA learns the BSSID of the own BSS when associating with the AP, the STA can distinguish the own BSS from the adjacent BSS according to the partial bit of the BSSID.
Further, after receiving the first information, the STA saves the first information.
Step 202, the STA listens to the channel and demodulates the listened frame to obtain the first information in the frame.
Specifically, when the STA wakes up from a long sleep state, it will listen to the channel first and demodulate the listened frame to obtain the first information in the frame.
Similarly, the first information in the frame is also carried in the PHY SIG field of the frame; in this embodiment, a random _ number bit may be newly added in the PHY SIG field, where the length of the random _ number bit may be 2 bits (bit), and the value of the random _ number bit is the first information in the frame; alternatively, the first information in the frame may be a partial bit of the BSSID in the PHY SIG field, in which case, since the STA learns the BSSID of the own BSS when associating with the AP, the STA may distinguish the own BSS from the adjacent BSS according to the partial bit of the BSSID.
In this embodiment, the carrying manner of the first information is not limited, as long as the same carrying manner is adopted in the frame sent by the AP to the STA when the STA associates with the AP as that in the frame intercepted by the STA.
Step 203, the STA determines whether the first information in the frame is the same as the first information known by the STA; if the frames are the same, the STA may determine that the frame belongs to the BSS to which the STA belongs, and then perform step 204; if not, the STA may determine that the frame does not belong to the BSS to which the STA belongs, and then perform step 207.
Step 204, the STA demodulates the MAC layer of the frame, and determines whether the STA can correctly demodulate the MAC layer; if the STA can correctly demodulate the MAC layer, go to step 205; if the STA cannot demodulate the MAC layer correctly, step 208 is performed.
Specifically, if the STA can demodulate the MAC layer of the frame to obtain a value of a Cyclic Redundancy Check (CRC) field in the MAC layer, and the value of the CRC field is correct, the STA may determine that the STA can correctly demodulate the MAC layer; if the value of the CRC field is incorrect, the STA may determine that the STA cannot demodulate the MAC layer correctly.
In addition, if the STA cannot demodulate the MAC layer of the frame and cannot obtain the value of the CRC field in the MAC layer, it may be determined that the STA cannot correctly demodulate the MAC layer.
In step 205, the STA determines whether the frame belongs to the BSS to which the STA belongs according to a Basic Service Set Identifier (BSSID) of the MAC header in the MAC layer. If so, go to step 206; if it is determined that the frame does not belong to the BSS to which the STA belongs, step 207 is performed.
In step 206, the STA contends for the channel according to the value of the TXOP _ END bit in the PHY SIG field of the frame.
Specifically, when the value of the TXOP _ END bit indicates that the TXOP for transmitting the frame has ended, the STA continues to listen to the channel for the minimum medium synchronization time and then contends for the channel; or, when the value of the TXOP _ END bit indicates that the TXOP to transmit the frame has not ended and does not require Acknowledgement (ACK) feedback, the STA waits for the channel to contend after the END of the frame.
In step 207, the STA ignores the value of the TXOP _ END bit in the PHY SIG field of the frame and continues to listen to the channel.
In step 208, the STA ignores the value of the TXOP _ END bit in the PHY SIG field of the frame and contends for the channel.
In this embodiment, the STA may not be a receiver STA that transmits the TXOP of the frame.
The embodiment can improve the accuracy of the STA in judging the frame belonging to the basic service set of the STA under the OBSS scene, so that the STA can accurately select the time for accessing the channel; and further, the data sent by the STA and the data of another STA in the BSS to which the STA belongs can be prevented from colliding at the AP, the STA is prevented from being influenced by another STA which belongs to a different BSS from the STA, and the success rate of the STA in accessing the channel is improved.
Fig. 3 is a flowchart of a station access method according to still another embodiment of the present invention, and as shown in fig. 3, the station access method may include:
step 301, the STA parses the received frame to obtain the value of the TXOP _ END bit in the PHY SIG field of the frame.
Step 302, the STA demodulates the MAC layer of the frame.
Step 303, if the value of the TXOP _ END bit indicates that the TXOP to transmit the frame has ended, the STA demodulates the MAC layer correctly, and determines that the frame belongs to the BSS to which the STA belongs according to the BSSID of the MAC header in the MAC layer, and then the STA contends for the channel of the BSS to access the channel.
In this embodiment, the STA may not be a receiver STA that transmits the TXOP of the frame.
In the above embodiment, the STA parses the received frame to obtain the value of the TXOP _ END bit in the PHY SIG field of the frame; then the STA needs to continue demodulating the MAC layer of the frame, but cannot make a decision by only demodulating the PHY layer; if the value of the TXOP _ END bit indicates that the TXOP for transmitting the frame is finished, the STA can correctly demodulate the MAC layer, and the STA determines that the frame belongs to the BSS to which the STA belongs according to the BSSID of the MAC head in the MAC layer, and then the STA contends for the channel of the BSS to access the channel; therefore, the accuracy of the STA in judging the frame belonging to the BSS of the STA can be improved in an OBSS scene, and the STA can accurately select the time for accessing the channel; therefore, the data sent by the STA and the data of another STA in the BSS the STA belongs to can be prevented from colliding at the AP, the STA is prevented from being influenced by another STA which belongs to a different BSS from the STA, and the success rate of the STA accessing the channel is improved.
Fig. 4 is a flowchart of a station access method according to still another embodiment of the present invention, and as shown in fig. 4, the station access method may include:
in step 401, the STA parses the received frame to obtain the value of the TXOP _ END bit in the PHY SIG field of the frame.
In step 402, the STA demodulates the MAC layer of the frame.
Step 403, the STA determines whether the value of the TXOP _ END bit indicates that the TXOP to transmit the frame has ended; if so, go to step 404; if the value of the TXOP _ END bit indicates that the TXOP to transmit the frame has not ended, step 408 is performed.
Specifically, in an implementation manner of this embodiment, when the value of the TXOP _ END bit is "0", it may be determined that the value of the TXOP _ END bit indicates that the TXOP transmitting the frame has ended; when the value of the TXOP _ END bit is "1," it may be determined that the value of the TXOP _ END bit indicates that the TXOP to transmit the frame has not ended.
Step 404, the STA judges whether the STA can demodulate the MAC layer correctly; if the STA can correctly demodulate the MAC layer, go to step 405; if the STA cannot demodulate the MAC layer correctly, step 407 is performed.
Specifically, if the STA can demodulate the MAC layer of the frame, obtain the value of the CRC field in the MAC layer, and the value of the CRC field is correct, the STA may determine that the STA can correctly demodulate the MAC layer; if the value of the CRC field is incorrect, the STA may determine that the STA cannot demodulate the MAC layer correctly.
In addition, if the STA cannot demodulate the MAC layer of the frame and cannot obtain the value of the CRC field in the MAC layer, it may be determined that the STA cannot correctly demodulate the MAC layer.
Step 405, the STA determines whether the frame belongs to the BSS to which the STA belongs according to the BSSID of the MAC header in the MAC layer; if the frame is determined to belong to the BSS to which the STA belongs, go to step 406; if it is determined that the frame does not belong to the BSS to which the STA belongs, step 407 is performed.
Specifically, if the BSSID of the MAC header is the same as the BSSID of the BSS to which the STA belongs, it may be determined that the frame belongs to the BSS to which the STA belongs; if the BSSID of the MAC header is different from the BSSID of the BSS to which the STA belongs, it may be determined that the frame does not belong to the BSS to which the STA belongs.
In step 406, the STA contends for the channel of the BSS to access the channel.
In step 407, the STA ignores the value of the TXOP _ END bit, and waits or enters a sleep state according to the information in the frame.
In step 408, the STA waits or goes to sleep according to the information in the above frame.
In this embodiment, the STA may not be a receiver STA that transmits the TXOP of the frame.
In the above embodiment, the STA parses the received frame to obtain the value of the TXOP _ END bit in the PHY SIG field of the frame; then, the STA needs to continue demodulating the MAC layer of the frame, but cannot make a decision by demodulating only the PHY layer; that is to say, in this embodiment, when the value of the TXOP _ END bit indicates that the TXOP for transmitting the frame is completed, the STA needs to determine whether the frame belongs to the BSS to which the STA belongs according to the BSSID of the MAC header in the MAC layer of the frame, so that in an OBSS scene, the accuracy of determining, by the STA, the frame belonging to the BSS to which the STA belongs can be improved, and the STA can accurately select the time for accessing the channel; therefore, the data sent by the STA and the data of another STA in the BSS the STA belongs to can be prevented from colliding at the AP, the STA is prevented from being influenced by another STA which belongs to a different BSS from the STA, and the success rate of the STA accessing the channel is improved.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The embodiment of the invention also provides device equipment for realizing the method flow. Such as a Station (STA) in a wireless local area network.
Fig. 5 is a schematic structural diagram of an embodiment of a station of the present invention, where an STA in this embodiment may implement the flow of the embodiment shown in fig. 1 of the present invention, as shown in fig. 5, the STA may include: a listening module 51, a first demodulation module 52 and a first contention module 53;
the listening module 51 is configured to listen to a channel;
a first demodulation module 52, configured to demodulate the frame sensed by the sensing module 51 to obtain first information in the frame, where the first information is used to identify a BSS;
a first contention module 53, configured to contend for the channel according to a value of the TXOP _ END bit in the PHY SIG field of the frame to access the channel when the first information in the frame is the same as the first information known by the STA.
In this embodiment, if the first information in the frame is the same as the first information known by the STA, it may be determined that the frame belongs to the BSS to which the STA belongs, and then the first contention module 53 may contend for the channel according to the value of the TXOP _ END bit in the PHY SIG field of the frame, so as to access the channel.
Specifically, the first information in the frame is carried in the PHY SIG of the frame; in this embodiment, a first information (random _ number) bit is newly added in the PHY SIG field, where the length of the random _ number bit may be 2 bits (bit), and a value of the random _ number bit is the first information in the frame. Alternatively, the first information in the frame may be a partial bit of the BSSID in the PHY SIG field, in which case, since the STA learns the BSSID of the own BSS when associating with the AP, the STA may distinguish the own BSS from the adjacent BSS according to the partial bit of the BSSID.
Specifically, when the first information known by the STA is that the STA associates with an AP in the BSS, the AP sends the first information to the STA; wherein, the first information sent by the AP to each STA in the BSS is the same. Specifically, the AP may carry the first information in a PHY SIG field of a frame that the AP transmits to the STA when the STA associates with the AP. In this embodiment, a random _ number bit may be newly added in the PHY SIG field, where the length of the random _ number bit may be 2 bits (bit), and the value of the random _ number bit is the first information; alternatively, the first information may be partial bits of the BSSID in the PHY SIG field, and in this case, since the STA learns the BSSID of the own BSS when associating with the AP, the STA may distinguish the own BSS from the adjacent BSS according to the partial bits of the BSSID.
In this embodiment, the carrying manner of the first information is not limited, as long as the same carrying manner is adopted in the frame sent by the AP to the STA when the STA associates with the AP as that in the frame intercepted by the STA.
In the STA, an interception module 51 intercepts a channel, and a first demodulation module 52 demodulates an intercepted frame to obtain first information in the frame; if the first information in the frame is the same as the first information known by the STA, it may be determined that the frame belongs to the BSS to which the STA belongs, and then the first contention module 53 may contend for the channel according to the value of the TXOP _ END bit in the PHY SIG field of the frame to access the channel; therefore, the accuracy of the STA in judging the frames belonging to the basic service set of the STA can be improved in an OBSS scene, so that the STA can accurately select the time for accessing the channel; and further, the data sent by the STA and the data of another STA in the BSS to which the STA belongs can be prevented from colliding at the AP, the STA is prevented from being influenced by another STA which belongs to a different BSS from the STA, and the success rate of the STA in accessing the channel is improved.
Fig. 6 is a schematic structural diagram of another embodiment of a station of the present invention, where an STA in this embodiment may implement the flows of the embodiments shown in fig. 1 and fig. 2 of the present invention, and compared with the STA shown in fig. 5, the difference is that, in the STA shown in fig. 6, further, the first demodulation module 52 is further configured to demodulate the MAC layer of the frame; the first contending module 53 is specifically configured to, when the first demodulating module 52 can correctly demodulate the MAC layer, contend for the channel according to the value of the TXOP _ END bit in the PHY SIG field of the frame after determining that the frame belongs to the BSS to which the STA belongs according to the BSSID of the MAC header in the MAC layer.
In this embodiment, the first contention module 53 is further configured to ignore the value of the TXOP _ END bit in the PHY SIG field of the frame and contend for the channel when the first demodulation module 52 cannot correctly demodulate the MAC.
Specifically, if the first demodulation module 52 can demodulate the MAC layer of the frame, obtain the value of the CRC field in the MAC layer, and the value of the CRC field is correct, it can be determined that the first demodulation module 52 can correctly demodulate the MAC layer; if the value of the CRC field is incorrect, it can be determined that the first demodulation module 52 cannot correctly demodulate the MAC layer.
In addition, if the first demodulation module 52 cannot demodulate the MAC layer of the frame and cannot obtain the value of the CRC field in the MAC layer, it may also be determined that the first demodulation module 52 cannot correctly demodulate the MAC layer.
Specifically, the first contention module 53 may contend for the channel after the listening module 51 continues to listen to the channel for the minimum medium synchronization time when the value of the TXOP _ END bit indicates that the TXOP to transmit the frame has ended; alternatively, the first contention module 53 may wait for contention for the channel after the END of the frame when the value of the TXOP _ END bit indicates that the TXOP to transmit the frame has not ended and does not require ACK feedback.
Further, the station may further include: a first determination module 54;
a first determining module 54, configured to determine that the frame does not belong to the BSS to which the STA belongs when the first information in the frame is different from the first information of the STA; in this case, the listening module 51 is further configured to ignore the frame and continue listening to the channel after the first determining module 54 determines that the frame does not belong to the BSS to which the STA belongs.
The STA can improve the accuracy of judging the frame belonging to the basic service set of the STA by the STA under an OBSS scene, so that the STA can accurately select the opportunity of accessing a channel; and further, the data sent by the STA and the data of another STA in the BSS to which the STA belongs can be prevented from colliding at the AP, the STA is prevented from being influenced by another STA which belongs to a different BSS from the STA, and the success rate of the STA in accessing the channel is improved.
Fig. 7 is a schematic structural diagram of a station according to still another embodiment of the present invention, where an STA in this embodiment may implement the flow of the embodiment shown in fig. 3 of the present invention, as shown in fig. 7, the STA may include: a parsing module 71, a second demodulation module 72, a second determination module 73 and a second competition module 74;
the parsing module 71 is configured to parse a received frame to obtain a value of a TXOP _ END bit in a PHY SIG field of the frame;
a second demodulation module 72, configured to demodulate the MAC layer of the frame; specifically, if the second demodulation module 72 can demodulate the MAC layer of the frame, obtain the value of the CRC field in the MAC layer, and the value of the CRC field is correct, it can be determined that the second demodulation module 72 can correctly demodulate the MAC layer; if the value of the CRC field is incorrect, it may be determined that the second demodulation module 72 cannot correctly demodulate the MAC layer; in addition, if the second demodulation module 72 cannot demodulate the MAC layer of the frame and cannot obtain the value of the CRC field in the MAC layer, it may also be determined that the second demodulation module 72 cannot correctly demodulate the MAC layer;
a second determining module 73, configured to determine, according to the BSSID of the MAC header in the MAC layer, that the frame belongs to the BSS to which the STA belongs when the value of the TXOP _ END bit indicates that the TXOP to transmit the frame has ended and the second demodulating module 72 correctly demodulates the MAC layer; specifically, if the BSSID of the MAC header is the same as the BSSID of the BSS to which the STA belongs, it may be determined that the frame belongs to the BSS to which the STA belongs;
a second competition module 74, configured to, after the second determining module 73 determines that the frame belongs to the BSS to which the STA belongs, compete for a channel of the BSS to access the channel.
In the STA, the parsing module 71 parses the received frame to obtain the value of the TXOP _ END bit in the PHY SIG field of the frame; then, the second demodulation module 72 continues to demodulate the MAC layer of the above frame, and cannot only demodulate the PHY layer to make a determination; when the value of the TXOP _ END bit indicates that the TXOP to transmit the frame has ended, if the second demodulation module 72 can correctly demodulate the MAC layer and the second determination module 73 determines that the frame belongs to the BSS to which the STA belongs according to the BSSID of the MAC header in the MAC layer, the second contention module 74 contends for the channel of the BSS to access the channel; therefore, the accuracy of the STA in judging the frame belonging to the BSS of the STA can be improved in an OBSS scene, and the STA can accurately select the time for accessing the channel; therefore, the data sent by the STA and the data of another STA in the BSS the STA belongs to can be prevented from colliding at the AP, the STA is prevented from being influenced by another STA which belongs to a different BSS from the STA, and the success rate of the STA accessing the channel is improved.
Fig. 8 is a flowchart of a further embodiment of a station of the present invention, where an STA in this embodiment may implement the flowchart of the embodiment shown in fig. 3 or fig. 4 of the present invention, and compared with the STA shown in fig. 7, the difference is that the STA shown in fig. 8 may further include: a first processing module 75, a second processing module 76 and a third processing module 77;
in this embodiment, the second determining module 73 is further configured to determine, when the second demodulating module 72 can correctly demodulate the MAC layer, that the frame does not belong to the BSS to which the STA belongs according to the BSSID of the MAC header in the MAC layer; specifically, if the BSSID of the MAC header is different from the BSSID of the BSS to which the STA belongs, it may be determined that the frame does not belong to the BSS to which the STA belongs.
The first processing module 75 is configured to ignore the value of the TXOP _ END bit and wait or enter a sleep state according to the information in the frame after the second determining module 73 determines that the frame does not belong to the BSS to which the STA belongs.
A second processing module 76, configured to ignore the value of the transmission opportunity end bit and wait or enter a sleep state according to the information in the frame when the second demodulation module 72 cannot correctly demodulate the MAC layer.
A third processing module 77, configured to wait or enter a sleep state according to the information in the frame when the value of the TXOP _ END bit indicates that the TXOP transmitting the frame has not ended.
Specifically, in an implementation manner of this embodiment, when the value of the TXOP _ END bit is "0", it may be determined that the value of the TXOP _ END bit indicates that the TXOP transmitting the frame has ended; when the value of the TXOP _ END bit is "1," it may be determined that the value of the TXOP _ END bit indicates that the TXOP to transmit the frame has not ended.
In the STA, the parsing module 71 parses the received frame to obtain the value of the TXOP _ END bit in the PHY SIG field of the frame; then, the second demodulation module 72 needs to continue demodulating the MAC layer of the frame, but cannot make a determination by demodulating only the PHY layer; that is to say, in this embodiment, when the value of the TXOP _ END bit indicates that the TXOP for transmitting the frame is completed, the STA needs to determine whether the frame belongs to the BSS to which the STA belongs according to the BSSID of the MAC header in the MAC layer of the frame, so that in an OBSS scene, the accuracy of determining, by the STA, the frame belonging to the BSS to which the STA belongs can be improved, and the STA can accurately select the time for accessing the channel; therefore, the data sent by the STA and the data of another STA in the BSS the STA belongs to can be prevented from colliding at the AP, the STA is prevented from being influenced by another STA which belongs to a different BSS from the STA, and the success rate of the STA accessing the channel is improved.
Those skilled in the art will appreciate that the drawings are merely schematic representations of one preferred embodiment and that the blocks or flow diagrams in the drawings are not necessarily required to practice the present invention.
Those skilled in the art will appreciate that the modules in the devices in the embodiments may be distributed in the devices in the embodiments according to the description of the embodiments, and may be correspondingly changed in one or more devices different from the embodiments. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.