CN-122028146-A - Communication method and device
Abstract
The application provides a communication method and a communication device, which belong to the technical field of communication and are used for improving the communication performance of a station. The method comprises the steps of limiting the first moment when the first communication device starts to switch from the second channel to the first channel, enabling the first moment to be at the end moment of the busy time of the first channel or before the end moment of the busy time of the first channel, enabling the first communication device to switch back to the first channel before the duration of losing the medium synchronization of the first channel reaches the medium synchronization threshold value, avoiding the problem that the first communication device loses the medium synchronization (in a blind state) and further triggers the medium synchronization recovery flow, and avoiding influencing the communication performance of a traditional station STA (station) staying on a main channel or a non-AP STA (station) only supporting an old version protocol, and therefore improving the communication performance of the station.
Inventors
- ZHANG MAOLIN
- LI YUNBO
- GUO YUCHEN
- ZHAO YUE
Assignees
- 华为技术有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20241111
Claims (20)
- 1. A communication method applied to a first communication device, the method comprising: Acquiring a first moment, wherein the first moment is the ending moment of the busy time of a first channel or the first moment is before the ending moment; And initiating a switch from the second channel to the first channel at the first time, wherein the first communication device switches back to the first channel before a duration of losing media synchronization of the first channel reaches a media synchronization threshold (aMediumSyncThershold).
- 2. The communication method according to claim 1, wherein, The first moment is determined according to the target moment; The target time is determined according to at least one of busy time of the first channel, switching back time delay of the first communication device, switching back time delay of the second communication device and aMediumSyncThershold, and communication is carried out between the first communication device and the second communication device through the first channel and/or the second channel.
- 3. The communication method of claim 2, wherein the first time is the target time, or wherein the first time is before the target time, and wherein a duration between the first time and the target time is less than a duration required to complete one frame interaction on the second channel.
- 4. A communication method according to claim 2, wherein, The target time is a time corresponding to a target duration earlier than the end time of the busy time of the first channel; the target duration is a switching-back time delay of the first communication device or a difference value between the switching-back time delay of the second communication device and aMediumSyncThershold.
- 5. The communication method according to claim 4, wherein, The switching-back time delay of the first communication device is larger than or equal to the difference value between the switching-back time delay of the second communication device and aMediumSyncThershold, and the target duration is the switching-back time delay of the first communication device; The switching-back time delay of the first communication device is smaller than the difference between the switching-back time delay of the second communication device and aMediumSyncThershold, the target duration is the difference between the switching-back time delay of the second communication device and aMediumSyncThershold, the first communication device is a wireless Access Point (AP), the second communication device is a part or all of the STAs associated with the AP, and the switching-back time delay of the second communication device is the maximum value, the minimum value or the average value of the switching-back time delays of all or part of the second communication devices.
- 6. The communication method according to claim 1, wherein the first time is a time when a duration of the frame interaction by the first communication apparatus stopped at the second channel reaches a duration threshold.
- 7. The communication method according to claim 1, characterized in that the method further comprises: And sending switching instruction information to at least one device in the second communication devices, wherein the switching instruction information is used for instructing the second communication devices to start switching from the second channel to the first channel at a second moment, and the switching instruction information is carried in a downlink frame sent in a capability negotiation stage or an updating stage of a target mode, and the target mode is any one of an NPCA mode, a DPS mode, a DSO mode, an IDC or DUI or DUO mode.
- 8. The communication method according to claim 7, wherein the second time is the first time, or the second time is a preset time period after the first time, or the second time is a time corresponding to a switch-back time delay of the second communication device earlier than an end time of a busy time of the first channel.
- 9. A method of communication according to any one of claims 1-8, characterized in that the method further comprises: switching from the first channel to the second channel when a condition for channel switching is satisfied; The method comprises the steps that the stay time of a first communication device on a second channel is longer than or equal to the time required by the first communication device to access the second channel and perform frame interaction on the second channel, or the busy duration of the first channel is longer than or equal to a time threshold, wherein in the busy duration range of the first channel, the first communication device can complete switching from the first channel to the second channel, and access the second channel and perform frame interaction on the second channel.
- 10. The communication method according to claim 9, wherein, The stay time length is the difference value between the busy duration time of the first channel and the switching time delay of the first communication device; or the dwell time is the difference between the busy duration and the sum of the handoff delay and the handoff back delay of the first communication device; or the stay time length is the difference between the busy duration and the sum of the switching delay of the first communication device and the switching back delay of the second communication device; Or the dwell time is a difference between the sum of the busy duration and aMediumSyncThershold and a handoff delay of the first communication device; Or the dwell time is the difference between the sum of the busy duration and aMediumSyncThershold and the sum of the handoff delay of the first communication device and the handoff delay of the second communication device.
- 11. The communication method according to claim 10, wherein the first communication device is an AP, and the second communication device is some or all STAs associated with the AP; The switch-back time delay of the second communication device is the maximum value or the minimum value or the average value of the switch-back time delay of all or part of the STAs in the second communication device.
- 12. The communication method according to claim 9, wherein the first communication device is an AP, and the second communication device is some or all STAs associated with the AP; The maximum time delay is the maximum value of the sum of the switching time delay and the switching back time delay in the first communication device and the second communication device, or the maximum value of the switching back time delay in the first communication device and the second communication device.
- 13. The communication method according to claim 9, wherein, The condition that the channel switching is not satisfied includes at least one of a difference between the time length threshold and a time length required to access the second channel and perform frame interaction on the second channel, and a difference between the time length threshold and a time length required to access the second channel and perform frame interaction on the second channel when the switching time delay or the switching time delay in the second communication device is greater than or equal to the sum of the switching time delay and the switching time delay in the second communication device.
- 14. The communication method according to claim 9, wherein the first communication device is an AP, and the second communication device is some or all STAs associated with the AP; The condition of the channel switching is further that at least one second communication device meets the condition that the stay time of the second channel is longer than or equal to the time required by the second communication device to access the second channel and perform frame interaction on the second channel, or the busy duration of the first channel is longer than or equal to a time threshold, wherein the second communication device can complete the switching from the first channel to the second channel in the busy duration range of the first channel, and access the second channel and perform frame interaction on the second channel.
- 15. The communication method according to claim 9, wherein, The busy duration of the first channel is a time when the first communication device decides to start switching from the first channel to the second channel, and is an ending time of the busy time of the first channel.
- 16. The communication method according to claim 9, wherein the first communication device is an AP, and the second communication device is some or all STAs associated with the AP; The time length required for completing the access to the second channel and performing the frame interaction on the second channel is determined by at least one of uplink communication, downlink communication and channel access types, wherein the channel access types can comprise any one of contention, scheduling by the AP in only the first TXOP, downlink transmission by the AP or downlink frame transmission by the AP, limiting the contention by the AP only by the first TXOP, transmitting the first frame by the AP and contention scheduling for mixed use.
- 17. The communication method according to claim 9, wherein, And the information is used for indicating the time length required for completing the access of the second channel and carrying out frame interaction on the second channel and is borne in an uplink frame or a downlink frame which is transmitted through negotiation in a capability negotiation stage or an updating stage of a target mode, wherein the target mode is any one of an NPCA mode, a DPS mode, a DSO mode, an IDC or DUI or DUO mode.
- 18. The communication method according to claim 17, wherein, The uplink frame is at least one of an association request frame, a re-association request frame, a target mode starting frame, a target mode notification frame and a target mode special management frame; The downlink frame is at least one of a beacon frame, a data waiting indication transfer information, a beacon frame or a transmission indication mapping frame and a target mode special management frame.
- 19. A communication method applied to a second communication device, the method comprising: acquiring channel access indication information; If the channel access indication information indicates that the channel access type of the second communication device is a mixed use of scheduling and competition, synchronizing the current access type of the second channel with a first communication device according to the busy time of the first channel and the channel access indication information, wherein the current access type comprises a channel which waits for the first communication device to schedule or participate in competition for the second channel; and accessing the second channel by adopting the current access type.
- 20. The communication method according to claim 19, wherein the channel access indication information further includes a busy duration threshold; When the busy time of the first channel is greater than or equal to a busy duration threshold value, and/or the number of second communication devices switching to the second channel exceeds a number threshold value, the current access type is to wait for the first communication device to schedule; When the busy time of the first channel is less than a busy duration threshold and/or the number of second communication devices switching to the second channel does not exceed a number threshold, the current access type is to participate in competing for the second channel.
Description
Communication method and device Technical Field The present application relates to the field of communications technologies, and in particular, to a communications method and apparatus. Background Today, the large bandwidth channels used by devices that use the 802.11 protocol in the IEEE related standard for wireless communication are logically divided into sub-channels in units of 20MHz, e.g. 80MHz channels have 4 20MHz sub-channels, 160MHz channels have 8 20MHz sub-channels, etc. Among these sub-channels, the device knows that a certain sub-channel is a main channel and the rest sub-channels are non-main channels according to the configuration information of Basic Service Set (BSS) SERVICE SET. The mechanism based on the main channel access is neat in logic and simple in operation, but as devices are deployed more and more densely and the bandwidth of the devices is larger, the frequency spectrum use frequency caused by the main channel access is also reduced. For example, if a 160MHz station only detects that the primary 20MHz channel is busy and the remaining subchannels are idle, then according to the primary channel access mechanism, the device cannot use any channel but can only back off, but in reality the remaining subchannels are idle and theoretically available. Therefore, it is proposed that when the main channel is busy, transmission is performed through an idle non-main channel (Anchor channel) without backoff, at which time the device switches to the Anchor channel and performs preamble detection (preamble detection, PD) on the Anchor channel, an operation called non-main channel access (NPCA). Wherein the idle non-primary channel may also be referred to as NPCA primary channel (NPCA PRIMARY CHANNEL). The switching delay is required when switching between the main channel and the NPCA main channel, and how to ensure the communication performance under the condition of considering the switching delay is a problem of current research. Disclosure of Invention The application provides a communication method and a communication device, which are used for ensuring that the communication performance of a station in a system can be improved under the condition of switching delay. In order to achieve the above purpose, the application adopts the following technical scheme: In a first aspect, a communication method is provided, which may be performed by a first communication device, or a component of the first communication device, for example, a processor, a chip, or a system-on-chip of the first communication device, or a logic module or software capable of implementing all or part of the first communication device. The method includes obtaining a first time, the first time being an end time of a busy time of the first channel or the first time being before the end time, communicating by the first communication device on the second channel before the first time, initiating a switch from the second channel to the first channel at the first time, wherein the first communication device switches back to the first channel before a duration of losing media synchronization of the first channel reaches a media synchronization threshold (e.g., aMediumSyncThershold). It is known that by limiting the first time when the first communication device starts switching from the second channel to the first channel, the first time is at or before the end time of the busy time of the first channel, so that the first communication device can switch back to the first channel before the duration of losing the medium synchronization of the first channel reaches the medium synchronization threshold, the problem that the first communication device loses the medium synchronization (blind state) and further triggers the medium synchronization recovery flow can be avoided, and the communication performance of the legacy station STA staying on the main channel or the non-wireless access point AP station non-AP STA supporting only the old version protocol can be prevented from being influenced, so that the communication performance of the station can be improved. In one possible embodiment, the first time is determined according to a target time, the target time is determined according to at least one of a busy time of the first channel, a switching back time delay of the first communication device, a switching back time delay of the second communication device and a medium synchronization threshold, and communication is performed between the first communication device and the second communication device through the first channel and/or the second channel. Optionally, the first time is a target time, or the first time is before the target time, and the duration between the first time and the target time is less than the duration required for completing one frame interaction in the second channel. Optionally, the target time is a time corresponding to a target time length earlier than an end time of the busy time of the first chan