Communication Method and AP
By allowing the second AP to forward the communication data between the first AP and the first STA during AP channel switching, the problem of service packet loss caused by AP channel switching is solved, and the user experience and the stability of data transmission are improved.
Patent Information
- Application Number
- CN202110443453.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-23
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-04-23
AI Technical Summary
During the operation of the AP, co-channel interference causes service packet loss during channel switching, affecting user experience.
By allowing the second AP to forward the communication data between the first AP and the first STA during the channel switching period of the first AP, service packet loss is reduced, and the channel switching process is managed through indication information and CSA to ensure the accuracy and accuracy of data forwarding. Continuity.
It effectively reduces the probability of business packet loss, improves user experience, and ensures the stability and accuracy of data transmission during channel switching.
Smart Images

Figure CN115243333B
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to a communication method and an access point (AP). Background Art
[0002] During AP operation, it is susceptible to co-channel interference. For example, when two APs are close to each other and their working channels overlap, one AP will cause co-channel interference to the other AP. When the AP finds that there is serious interference on the working channel, the AP can switch channels to avoid interference. In addition, the AP needs to send a channel switch announcement (CSA) to the associated station (STA) so that the associated STA switches to the same channel. After the STA and AP switch to the new channel, the STA communicates with the AP through the new channel.
[0003] During AP switching, STA cannot communicate with AP, which will cause packet loss, black edges, or screen distortion, which will reduce user experience. Summary of the invention
[0004] The present application provides a communication method and an AP. By allowing a second AP to forward communication data between a first AP and a first STA during a channel switching period of the first AP, service packet loss can be reduced and user experience can be improved.
[0005] The first aspect of the present application provides a communication method. The method includes: a first AP sends a first indication message to a second AP. The first indication message includes a Basic Service Set Identifier (BSSID) of the first AP. The first indication message is used to instruct the second AP to forward the communication data between the first AP and the first STA during the period when the first AP switches from the first channel to the second channel. Among them, the communication data between the first AP and the first STA is referred to as the communication data of the first STA. The communication data of the first STA includes uplink data and / or downlink data. The communication data of the first STA includes the BSSID of the first AP. After the first AP sends the first indication message to the second AP, the first AP sends the second indication message to the second AP. The second indication message is used to instruct the second AP to stop forwarding the communication data of the first STA. The first AP sends a first CSA to the first STA. The first CSA is used to instruct the first STA to switch to the second channel. After the first STA switches to the second channel, the first AP communicates with the first STA through the second channel.
[0006] In the present application, the second AP can forward the communication data of the first STA during the channel switching of the first AP. Therefore, the present application can reduce the probability of packet loss and improve the user experience.
[0007] In an optional manner of the first aspect, the first indication information also includes an identifier of a first STA associated with the first AP. The first indication information is also used to instruct the second AP to forward communication data including the identifier of the first STA. Among them, for the second AP, when the received communication data includes the BSSID of the first AP and the identifier of the first STA, the second AP will forward the communication data. When the communication data includes the BSSID of the first AP but does not include the identifier of the first STA, the second AP does not forward the communication data. Therefore, the present application can improve the accuracy of forwarding communication data and avoid the second AP forwarding communication data of a STA that is not associated with the first AP.
[0008] In an optional manner of the first aspect, the first indication information is also used to instruct the second AP to establish a target virtual access point (Virtual Access Point, VAP) of the first AP according to the first indication information, and the first indication information is also used to instruct the second AP to forward the communication data of the first STA through the target VAP. The BSSID of the target VAP is the BSSID of the first AP. Among them, when the second AP communicates with the second STA associated with the second AP, the second AP adopts the BSSID of the second AP. Therefore, by establishing the target VAP, the impact on the communication between the second AP and the second STA can be reduced.
[0009] In an optional manner of the first aspect, the first indication information includes any one or more of encryption information, channel configuration information, and a service set identifier (SSID) for communication between the first AP and the first STA. The target VAP and the first AP established according to the first indication information include the same encryption information, and / or SSID, and / or channel configuration.
[0010] In an optional manner of the first aspect, after the first AP sends the first indication information to the second AP, the method also includes: the first AP receives a target VAP establishment completion notification from the second AP. After receiving the target VAP establishment completion notification, the first AP switches from the first channel to the second channel. Among them, if the second AP is not ready to forward the communication data of the first STA, it may cause packet loss in the service. After receiving the target VAP establishment completion notification, the first AP starts channel switching, which can ensure that the second AP is ready to forward the communication data of the first STA. Therefore, the present application can further reduce the probability of packet loss in the service and improve the user experience.
[0011] In an optional manner of the first aspect, when the working channel of the second AP is the first channel, the first indication information is also used to instruct the second AP to forward the communication data of the first STA through the first channel. After the first AP switches from the first channel to the second channel, the first AP sends a first CSA to the first STA. The first CSA is used to instruct the first STA to switch to the second channel. Among them, when the working channel of the second AP is the same as the working channel of the first STA before switching, the first AP takes precedence over the first STA in channel switching. Therefore, during the first AP channel switching, the first STA can communicate with the second AP through the first channel.
[0012] In an optional manner of the first aspect, the first AP sends the number of the second channel to the second AP, instructs the second AP to generate a first CSA, and instructs the second AP to send the generated first CSA to the first STA. Or, the first AP sends the first CSA to the second AP, instructing the second AP to forward the first CSA to the first STA. Among them, if the first AP sends the first CSA directly to the first STA, the first AP needs to send it before switching the channel and estimate its own switching duration. If the estimated duration is inaccurate, it may cause the first STA to switch to the second channel before the first AP, resulting in the first STA being unable to communicate with the first AP or the second AP. Therefore, by allowing the second AP to send the first CSA to the first STA, the probability of packet loss of the service can be reduced and the user experience can be improved.
[0013] In an optional manner of the first aspect, when the working channel of the second AP is the second channel, before the first AP switches from the first channel to the second channel, the first AP sends a first CSA to the first STA to instruct the first STA to switch to the second channel. The first indication information is also used to instruct the second AP to forward the communication data of the first STA through the second channel. Among them, when the working channel of the second AP is the same as the working channel after the first STA switches, the first STA has priority over the first AP for channel switching. Therefore, during the first AP channel switching, the first STA can communicate with the second AP through the first channel.
[0014] In an optional manner of the first aspect, when the working channel of the second AP is the third channel, before the first AP switches from the first channel to the second channel, the method also includes: the first AP sends a second CSA to the first STA. The second CSA is used to instruct the first STA to switch to the third channel. The first indication information is also used to instruct the second AP to forward the communication data of the first STA through the third channel. After the first AP switches from the first channel to the second channel, the first AP sends a first CSA to the first STA, instructing the first STA to switch to the second channel. Wherein, when the working channel of the second AP is different from the working channel of the first STA before or after the switching, the first STA has priority over the first AP for channel switching. Therefore, during the channel switching of the first AP, the first STA can communicate with the second AP through the third channel.
[0015] In an optional manner of the first aspect, before the first AP switches from the first channel to the second channel, the method further includes: the first AP sends the downlink cache data of the first STA to the second AP. The first indication information is also used to instruct the second AP to forward the downlink cache data. The downlink cache data is the downlink data that the first AP has cached locally. By sending the downlink data to the second AP, the efficiency of the second AP in obtaining the downlink data can be improved, thereby reducing the delay and improving the user experience.
[0016] The second aspect of the present application provides a communication method. The method includes: a second AP receives first indication information from a first AP. The first indication information includes a BSSID of the first AP. In response to the first indication information, the second AP forwards communication data of a first STA associated with the first AP, wherein the communication data of the first STA includes the BSSID of the first AP. The second AP receives second indication information from the first AP. In response to the second indication information, the second AP stops forwarding the communication data of the first STA.
[0017] In an optional manner of the second aspect, the first indication information further includes an identifier of a first STA associated with the first AP. The first indication information is further used to instruct the second AP to forward communication data including the identifier of the first STA.
[0018] In an optional manner of the second aspect, the second AP establishes a target VAP according to the first indication information, the BSSID of the target VAP is the BSSID of the first AP, and the second AP forwards the communication data of the first STA through the target VAP.
[0019] In an optional manner of the second aspect, the first indication information further includes any one or more of encryption information, channel configuration information, and SSID for communication between the first AP and the first STA. The target VAP and the first AP established according to the first indication information include the same encryption information, and / or SSID, and / or channel configuration.
[0020] In an optional manner of the second aspect, after the second AP establishes the target VAP according to the first indication information, the method further includes: the second AP sends a target VAP establishment completion notification to the first AP.
[0021] In an optional manner of the second aspect, when the working channel of the second AP is the first channel, the second AP forwards the communication data of the first STA through the first channel. After the second AP receives the first indication information from the first AP, the method further includes: the second AP receives the number of the second channel or the first CSA from the first AP. The second AP sends the first CSA to the first STA, and the first CSA instructs the first STA to switch to the second channel. Among them, when the second AP receives the number of the second channel from the first AP, the method further includes: the second AP generates the first CSA according to the number of the second channel.
[0022] In an optional manner of the second aspect, when the working channel of the second AP is the second channel, before the second AP receives the first indication information from the first AP, the method further includes: the second AP sends the number of the second channel to the first AP. The number of the second channel is used by the first AP to generate a first CSA to instruct the first STA to switch to the second channel. The second AP forwards the communication data of the first STA through the second channel.
[0023] In an optional manner of the second aspect, when the working channel of the second AP is the third channel, before the second AP receives the first indication information from the first AP, the method also includes: the second AP sends the number of the third channel to the first AP. The number of the third channel is used by the first AP to generate a second CSA, instructing the first STA to switch to the third channel. The second AP forwards the communication data of the first STA through the third channel. After the second AP receives the first indication information from the first AP, the method also includes: the second AP receives the number of the second channel or the first CSA from the first AP. The second AP sends the first CSA to the first STA, and the first CSA is used to instruct the first STA to switch to the second channel. Among them, when the second AP receives the number of the second channel from the first AP, the method also includes: the second AP generates the first CSA according to the number of the second channel.
[0024] In an optional manner of the second aspect, after the second AP receives the first indication information from the first AP, the method further includes: the second AP receives downlink buffer data of the first STA from the first AP. The second AP forwards the downlink buffer data.
[0025] The third aspect of the present application provides a communication system. The system includes a first AP and a second AP. The first AP is used to send a first indication message to the second AP. The first indication message includes the BSSID of the first AP. The second AP is used to receive the first indication message from the first AP. In response to the first indication message, the second AP is also used to forward the communication data of the first STA associated with the first AP during the period when the first AP switches from the first channel to the second channel. The communication data of the first STA includes the BSSID of the first AP. After the first AP sends the first indication message to the second AP, the first AP is also used to send the second indication message to the second AP. The second AP is also used to receive the second indication message from the first AP. In response to the second indication message, the second AP is also used to stop forwarding the communication data of the first STA. The first AP is also used to send a first CSA to the first STA. The first CSA is used to instruct the first STA to switch to the second channel. After the first STA switches to the second channel, the first AP is also used to communicate with the first STA through the second channel.
[0026] In an optional manner of the third aspect, the first indication information further includes an identifier of a first STA associated with the first AP. The second AP is further configured to forward communication data including the identifier of the first STA.
[0027] In an optional manner of the third aspect, the second AP is further configured to establish a target VAP according to the first indication information. The target VAP includes a BSSID of the first AP. The second AP is further configured to forward communication data of the first STA through the target VAP.
[0028] In an optional manner of the third aspect, the first indication information further includes any one or more of encryption information, channel configuration information, and SSID for communication between the first AP and the first STA. The target VAP established according to the first indication information and the first AP include the same encryption information, and / or SSID, and / or channel configuration.
[0029] In an optional manner of the third aspect, the second AP is further configured to send a target VAP establishment completion notification to the first AP. The first AP is further configured to switch from the first channel to the second channel after receiving the target VAP establishment completion notification.
[0030] In an optional manner of the third aspect, when the working channel of the second AP is the first channel, the second AP is also used to forward the communication data of the first STA through the first channel. The first AP is also used to send a first CSA to the first STA after the first AP switches from the first channel to the second channel, instructing the first STA to switch to the second channel.
[0031] In an optional manner of the third aspect, the first AP is further used to send the number of the second channel to the second AP. The second AP is further used to generate a first CSA according to the number of the second channel, send the first CSA to the first STA, and instruct the first STA to switch to the second channel. Or, the first AP is further used to send the first CSA to the second AP. The second AP is further used to receive the first CSA, send the first CSA to the first STA, and instruct the first STA to switch to the second channel.
[0032] In an optional manner of the third aspect, when the working channel of the second AP is the second channel, before the second AP receives the first indication information, the second AP is also used to send the number of the second channel to the first AP. The first AP is also used to generate a first CSA according to the number of the second channel and send the first CSA to the first STA. The first CSA instructs the first STA to switch to the second channel. The second AP is also used to forward the communication data of the first STA through the second channel.
[0033] In an optional manner of the third aspect, when the working channel of the second AP is the third channel, before the second AP receives the first indication information, the second AP is also used to send the number of the third channel to the first AP. The first AP is also used to generate a second CSA according to the number of the third channel and send the second CSA to the first STA. The second CSA is used to instruct the first STA to switch to the third channel. The second AP is also used to forward the communication data of the first STA through the third channel. The first AP is also used to send the first CSA to the first STA after the first AP switches from the first channel to the second channel. The first CSA instructs the first STA to switch to the second channel.
[0034] In an optional manner of the third aspect, before the first AP switches from the first channel to the second channel, the first AP is further configured to send downlink buffered data of the first STA to the second AP. The second AP is further configured to forward the downlink buffered data.
[0035] The fourth aspect of the present application provides a first AP. The first AP includes a first sending module, a second sending module, a third sending module and a communication module. Among them, the first sending module is used to send a first indication message to the second AP. The first indication message includes the BSSID of the first AP. The first indication message is used to instruct the second AP to forward the communication data of the first STA associated with the first AP during the period when the first AP switches from the first channel to the second channel. The communication data of the first STA includes the BSSID of the first AP. The second sending module is used to send a second indication message to the second AP. The second indication message is used to instruct the second AP to stop forwarding the communication data of the first STA. The third sending module is used to send a first CSA to the first STA. The first CSA is used to instruct the first STA to switch from the first channel to the second channel. The communication module is used to communicate with the first STA through the second channel after the first STA switches to the second channel.
[0036] In an optional manner of the fourth aspect, the first indication information further includes an identifier of a first STA associated with the first AP. The first indication information is further used to instruct the second AP to forward communication data including the identifier of the first STA.
[0037] In an optional manner of the fourth aspect, the first indication information is further used to instruct the second AP to establish a target VAP according to the first indication information. The BSSID of the target VAP is the BSSID of the first AP. The first indication information is further used to instruct the second AP to forward the communication data of the first STA through the target VAP.
[0038] In an optional manner of the fourth aspect, the first indication information includes any one or more of encryption information, channel configuration information and SSID for communication between the first AP and the first STA. The target VAP established according to the first indication information and the first AP include the same encryption information, and / or SSID, and / or channel configuration.
[0039] In an optional manner of the fourth aspect, the first AP further includes a receiving module and a switching module. The receiving module is used to receive a target VAP establishment completion notification from the second AP. The switching module is used to switch from the first channel to the second channel after receiving the target VAP establishment completion notification.
[0040] In an optional manner of the fourth aspect, when the working channel of the second AP is the first channel, the first indication information is also used to instruct the second AP to forward the communication data of the first STA through the first channel. The third sending module is also used to send a first CSA to the first STA after the first AP switches from the first channel to the second channel. The first CSA is used to instruct the first STA to switch to the second channel.
[0041] In an optional manner of the fourth aspect, the third sending module is further used to send the number of the second channel to the second AP, instructing the second AP to generate the first CSA and send the first CSA to the first STA. Or, the third sending module is further used to send the first CSA to the second AP, instructing the second AP to forward the first CSA to the first STA.
[0042] In an optional manner of the fourth aspect, when the working channel of the second AP is the second channel, the third sending module is also used to send a first CSA to the first STA before the first AP switches from the first channel to the second channel. The first CSA is used to instruct the first STA to switch to the second channel. The first indication information is also used to instruct the second AP to forward the communication data of the first STA through the second channel.
[0043] In an optional manner of the fourth aspect, when the working channel of the second AP is the third channel, the first sending module is also used to send a second CSA to the first STA. The second CSA is used to instruct the first STA to switch to the third channel. The first indication information is also used to instruct the second AP to forward the communication data of the first STA through the third channel. The third sending module is also used to send the first CSA to the first STA after the first AP switches from the first channel to the second channel. The first CSA is used to instruct the first STA to switch to the second channel.
[0044] In an optional manner of the fourth aspect, the first sending module is further used to send the downlink buffer data of the first STA to the second AP. The first indication information is further used to instruct the second AP to forward the downlink buffer data.
[0045] The fifth aspect of the present application provides a second AP. The second AP includes a first receiving module, a forwarding module, a second receiving module and a stop module. The first receiving module is used to receive first indication information from the first AP. The first indication information includes the BSSID of the first AP. The forwarding module is used to forward the communication data of the first STA associated with the first AP in response to the first indication information. The communication data of the first STA includes the BSSID of the first AP. The second receiving module is used to receive second indication information from the first AP. The stop module is used to stop forwarding the communication data of the first STA in response to the second indication information.
[0046] In an optional manner of the fifth aspect, the first indication information further includes an identifier of a first STA associated with the first AP. The forwarding module is further configured to forward communication data including the identifier of the first STA.
[0047] In an optional manner of the fifth aspect, the second AP further includes an establishment module. The establishment module is used to establish a target VAP according to the first indication information. The target VAP includes a BSSID of the first AP. The forwarding module is also used to forward the communication data of the first STA through the target VAP.
[0048] In an optional manner of the fifth aspect, the first indication information includes any one or more of encryption information, channel configuration information and SSID for communication between the first AP and the first STA. The target VAP established according to the first indication information and the first AP include the same encryption information, and / or SSID, and / or channel configuration.
[0049] In an optional manner of the fifth aspect, the second AP further includes a sending module. The sending module is configured to send a target VAP establishment completion notification to the first AP.
[0050] In an optional manner of the fifth aspect, when the working channel of the second AP is the first channel, the forwarding module is also used to forward the communication data of the first STA through the first channel. The second receiving module is also used to receive the number of the second channel or the first channel switching announcement CSA from the first AP. The second AP also includes a sending module. The sending module is used to send the first CSA to the first STA, instructing the first STA to switch to the second channel. Among them, when the second AP receives the number of the second channel from the first AP, the second AP also includes a generating module. The generating module is used to generate the first CSA according to the number of the second channel.
[0051] In an optional manner of the fifth aspect, when the working channel of the second AP is the second channel, the second AP further includes a sending module. The sending module is used to send the number of the second channel to the first AP. The number of the second channel is used by the first AP to generate a first CSA. The first CSA is used to instruct the first STA to switch to the second channel. The forwarding module is also used to forward the communication data of the first STA through the second channel.
[0052] In an optional manner of the fifth aspect, when the working channel of the second AP is the third channel, the second AP also includes a sending module. The sending module is used to send the number of the third channel to the first AP. The number of the third channel is used by the first AP to generate a second CSA. The second CSA is used to instruct the first STA to switch to the third channel. The forwarding module is also used to forward the communication data of the first STA through the third channel. The second receiving module is also used to receive the number of the second channel or the first CSA from the first AP. The sending module is also used to send the first CSA to the first STA. The first CSA is used to instruct the first STA to switch to the second channel. Among them, when the second AP receives the number of the second channel from the first AP, the second AP also includes a generating module. The generating module is used to generate the first CSA according to the number of the second channel.
[0053] In an optional manner of the fifth aspect, the first receiving module is further configured to receive downlink buffer data of the first STA from the first AP. The forwarding module is further configured to forward the downlink buffer data.
[0054] In a sixth aspect of the present application, a first AP is provided. The first AP includes a transceiver and a processor. The transceiver is used to send a first indication message to a second AP. The first indication message includes the BSSID of the first AP. The first indication message is used to instruct the second AP to forward the communication data of the first STA associated with the first AP during the period when the first AP switches from the first channel to the second channel. The communication data of the first STA includes the BSSID of the first AP. The transceiver is also used to send a second indication message to the second AP. The second indication message is used to instruct the second AP to stop forwarding the communication data of the first STA. The processor is used to generate a first CSA according to the number of the second channel. The transceiver is also used to send a first CSA to the first STA. The first CSA is used to instruct the first STA to switch from the first channel to the second channel. The transceiver is also used to communicate with the first STA through the second channel after the first STA switches to the second channel.
[0055] In an optional manner of the sixth aspect, the first indication information further includes an identifier of a first STA associated with the first AP. The first indication information is also used to instruct the second AP to forward communication data including the identifier of the first STA.
[0056] In an optional manner of the sixth aspect, the first indication information is further used to instruct the second AP to establish a target VAP according to the first indication information. The BSSID of the target VAP is the BSSID of the first AP. The first indication information is further used to instruct the second AP to forward communication data of the first STA through the target VAP.
[0057] In an optional manner of the sixth aspect, the first indication information includes any one or more of encryption information, channel configuration information and SSID for communication between the first AP and the first STA. The target VAP and the first AP established according to the first indication information include the same encryption information, and / or SSID, and / or channel configuration.
[0058] In an optional manner of the sixth aspect, the transceiver is further configured to receive a target VAP establishment completion notification from the second AP. The processor is configured to switch from the first channel to the second channel after receiving the target VAP establishment completion notification.
[0059] In an optional manner of the sixth aspect, when the working channel of the second AP is the first channel, the first indication information is also used to instruct the second AP to forward the communication data of the first STA through the first channel. The transceiver is also used to send a first CSA to the first STA after the first AP switches from the first channel to the second channel. The first CSA is used to instruct the first STA to switch to the second channel.
[0060] In an optional manner of the sixth aspect, the transceiver is further used to send the number of the second channel to the second AP, instruct the second AP to generate the first CSA, and send the first CSA to the first STA. Or, the transceiver is further used to send the first CSA to the second AP, instructing the second AP to forward the first CSA to the first STA.
[0061] In an optional manner of the sixth aspect, when the working channel of the second AP is the second channel, the transceiver is also used to send a first CSA to the first STA before the first AP switches from the first channel to the second channel. The first CSA is used to instruct the first STA to switch to the second channel. The first indication information is also used to instruct the second AP to forward the communication data of the first STA through the second channel.
[0062] In an optional manner of the sixth aspect, when the working channel of the second AP is the third channel, the transceiver is also used to send a second CSA to the first STA. The second CSA is used to instruct the first STA to switch to the third channel. The first indication information is also used to instruct the second AP to forward the communication data of the first STA through the third channel. The transceiver is also used to send a first CSA to the first STA after the first AP switches from the first channel to the second channel. The first CSA is used to instruct the first STA to switch to the second channel.
[0063] In an optional manner of the sixth aspect, the transceiver is further used to send downlink buffer data of the first STA to the second AP. The first indication information is further used to instruct the second AP to forward the downlink buffer data.
[0064] The seventh aspect of the present application provides a second AP. The second AP includes a transceiver and a processor. The transceiver is used to receive first indication information from the first AP. The first indication information includes the BSSID of the first AP. The transceiver is also used to forward the communication data of the first STA associated with the first AP in response to the first indication information. The communication data of the first STA includes the BSSID of the first AP. The transceiver is also used to receive second indication information from the first AP. The processor is used to control the transceiver to stop forwarding the communication data of the first STA in response to the second indication information.
[0065] In an optional manner of the seventh aspect, the first indication information further includes an identifier of a first STA associated with the first AP. The transceiver is further configured to forward communication data including the identifier of the first STA.
[0066] In an optional manner of the seventh aspect, the processor is further configured to establish a target VAP according to the first indication information. The target VAP includes a BSSID of the first AP. The transceiver is further configured to forward communication data of the first STA through the target VAP.
[0067] In an optional manner of the seventh aspect, the first indication information includes any one or more of encryption information, channel configuration information and SSID for communication between the first AP and the first STA. The target VAP established according to the first indication information and the first AP include the same encryption information, and / or SSID, and / or channel configuration.
[0068] In an optional manner of the seventh aspect, the transceiver is further configured to send a target VAP establishment completion notification to the first AP.
[0069] In an optional manner of the seventh aspect, when the working channel of the second AP is the first channel, the transceiver is also used to forward the communication data of the first STA through the first channel. The transceiver is also used to receive the number of the second channel or the first channel switching announcement CSA from the first AP. The transceiver is also used to send the first CSA to the first STA, instructing the first STA to switch to the second channel. Wherein, when the second AP receives the number of the second channel from the first AP, the processor is also used to generate the first CSA according to the number of the second channel.
[0070] In an optional manner of the seventh aspect, when the working channel of the second AP is the second channel, the transceiver is also used to send the number of the second channel to the first AP. The number of the second channel is used by the first AP to generate a first CSA. The first CSA is used to instruct the first STA to switch to the second channel. The transceiver is also used to forward the communication data of the first STA through the second channel.
[0071] In an optional manner of the seventh aspect, when the working channel of the second AP is the third channel, the transceiver is also used to send the number of the third channel to the first AP. The number of the third channel is used by the first AP to generate a second CSA. The second CSA is used to instruct the first STA to switch to the third channel. The transceiver is also used to forward the communication data of the first STA through the third channel. The transceiver is also used to receive the number of the second channel or the first channel switching announcement CSA from the first AP. The transceiver is also used to send the first CSA to the first STA. The first CSA is used to instruct the first STA to switch to the second channel. Wherein, when the second AP receives the number of the second channel from the first AP, the processor is also used to generate the first CSA according to the number of the second channel.
[0072] In an optional manner of the seventh aspect, the transceiver is further configured to receive downlink buffer data of the first STA from the first AP. The transceiver is further configured to forward the downlink buffer data.
[0073] In an eighth aspect, the present application provides a digital processing chip, the chip comprising a processor and a memory, the memory and the processor are interconnected by lines, instructions are stored in the memory, the processor is used to execute functions related to processing in the method as described in the first aspect or any one of the first aspect; or the processor is used to execute functions related to processing in the method as described in the second aspect or any one of the embodiments of the second aspect.
[0074] The ninth aspect of the present application provides a computer storage medium, characterized in that instructions are stored in the computer storage medium, and when the instructions are executed on a computer, the computer executes the method as described in the first aspect or any one of the embodiments of the first aspect; or the computer executes the method as described in the second aspect or any one of the embodiments of the second aspect.
[0075] The tenth aspect of the present application provides a computer program product, characterized in that when the computer program product is executed on a computer, it enables the computer to execute the method as described in the first aspect or any one of the embodiments of the first aspect; or enables the computer to execute the method as described in the second aspect or any one of the embodiments of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] Figure 1 A schematic diagram of a structure of a communication system including multiple APs provided in this application;
[0077] Figure 2 This is a first flow chart of the communication method provided in this application;
[0078] Figure 3 A second flow chart of the communication method provided in this application;
[0079] Figure 4 A third flow chart of the communication method provided in this application;
[0080] Figure 5 This is a fourth flow chart of the communication method provided in this application;
[0081] Figure 6 This is a fifth flow chart of the communication method provided in this application;
[0082] Figure 7 This is a sixth flow chart of the communication method provided in this application;
[0083] Figure 8 This is a schematic diagram of the structure of the first AP provided in this application;
[0084] Fig. 9This is a schematic diagram of the structure of the second AP provided in this application;
[0085] Fig.10 This is a schematic diagram of the structure of the computer device provided in this application. DETAILED DESCRIPTION
[0086] The present application provides a communication method and an AP. By allowing a second AP to forward the communication data of a first STA associated with a first AP during the channel switching of the first AP, packet loss of services can be reduced and user experience can be improved. It should be understood that the terms "first", "second", etc. used in the present application are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.
[0087] The communication method in the present application is applied to the field of communication. Specifically, the communication method can be applied to a wireless local area network (WLAN) communication system including multiple APs. For example, Figure 1 FIG. 1 is a schematic diagram of a structure of a communication system including multiple APs provided in this application. Figure 1 As shown, the communication system includes a first AP 101, a second AP 102 and a first STA 103. The first AP 101 is associated with one or more first STAs. When the first AP 101 finds that there is severe interference in the working channel, the first AP 101 can switch channels to avoid interference. Or the first AP 101 receives instructions from an Access Point Controller (AC) and switches channels according to the instructions of the AC. During the channel switching of the first AP 101, the second AP 102 can forward the communication data of the first STA 103.
[0088] During the channel switching of the first AP 101, based on the working channel of the second AP, the first STA 103 can communicate with the second AP 102 through different channels. Specifically, it is assumed that the working channel of the first STA 103 before the channel switching is the first channel, and the working channel of the first STA 103 after the channel switching is the second channel. The following takes the working channels of the second AP as the first channel, the second channel and the third channel as an example to describe the communication method in the present application.
[0089] First, the working channel of the second AP is the first channel. At this time, the first STA communicates with the second AP through the first channel. Figure 2 This is a first flow chart of the communication method provided in this application. Figure 2 As shown, the communication method includes the following steps.
[0090] In step 201, a first AP sends first indication information to a second AP.
[0091] The first AP and the second AP can establish a connection through a variety of connection methods. For example, the first AP is directly connected to the second AP by wire or wireless. Alternatively, the first AP and the second AP are indirectly connected through one or more intermediate nodes. The intermediate node can be another AP, or an AC. Before the first AP sends the first indication information to the second AP, the first AP is associated with the first STA. The working channel of the first STA and the first AP is the first channel. The channel is also called a channel. The channel is a data signal transmission channel using a wireless signal as a transmission carrier. The AP and the first STA can operate on multiple channels. For example, in the standard 802.11b / g / n, the 2.4GHz frequency band is divided into 14 channels. In the case where the 14th channel is generally not used, the 2.4GHz frequency band generally includes 13 channels. The 13 channels are channels 1 to 13. The working channel is the channel used when the AP and the first STA communicate. For example, when the first STA communicates with the first AP through channel 13, the working channel of the first STA and the first AP is channel 13.
[0092] The first indication information includes the BSSID of the first AP. The first AP and the first STA belong to the first basic service set (Basic Service Set, BSS). The BSSID of the first AP is the BSSID of the first BSS. The BSSID of the first AP is a 48-bit binary identifier used to identify different BSSs and perform data filtering. Specifically, when the first AP communicates with the first STA through the first channel, the communication data of the first STA carries the BSSID of the first AP. The communication data of the first STA includes downlink data and uplink data. When the first AP receives uplink data including the BSSID of the first AP, the first AP forwards the uplink data. When the first AP receives uplink data including the BSSID of other BSSs, if the first AP does not belong to other BSSs, the first AP discards the uplink data. Similarly, the first STA filters downlink data by the BSSID of the first AP.
[0093] The BSSID of the first AP may be the MAC address of the first AP, or the BSSID of the first AP may be mapped to the MAC address of the first AP. For example, when the first AP establishes a VAP and the first AP is associated with the first STA through the VAP, the BSSID of the first AP may be the MAC address of the first AP plus 1.
[0094] The first indication information also includes an association list of STAs associated with the first AP. The association list records one or more identifiers of the first STAs associated with the first AP. The identifier of the first STA may be a MAC address or an IP address of the first STA.
[0095] In step 202, in response to the first indication information, the second AP forwards the communication data of the first STA.
[0096] The communication data of the first STA includes uplink data and downlink data. The first STA is within the signal coverage of the second AP. Therefore, before the second AP receives the first indication information, the second AP can monitor the uplink data of the first STA. However, since the uplink data of the first STA carries the BSSID of the first AP, the second AP does not belong to the first BSS, and the second AP will discard the uplink data. After receiving the first indication information, the second AP can forward the uplink data of the first STA according to the BSSID of the first AP.
[0097] Specifically, when the second AP monitors the uplink data, the second AP parses the uplink data to determine whether the uplink data includes the BSSID of the first AP. For example, the second AP can parse the address field of the uplink data to determine whether the address field of the uplink data includes the BSSID of the first AP. If the uplink data includes the BSSID of the first AP, the second AP forwards the uplink data. If the uplink data does not include the BSSID of the first AP, the second AP processes the uplink data according to the normal process. For example, if the uplink data carries the BSSID of the second AP, the second AP forwards the uplink data. If the uplink data carries the BSSID of the third AP, the second AP discards the uplink data.
[0098] When the second AP monitors the downlink data, the second AP parses the downlink data and determines that the destination address of the downlink data is the MAC address of the first STA. The MAC address of the first STA is not in the association list of the second AP. The association list of the second AP maintains the second STA associated with the second AP. Since the first STA is not in the association list of the second AP, the second AP should discard the downlink data. However, after receiving the first indication information, the second AP adds the BSSID of the first AP to the downlink data and sends the downlink data to the first STA. Specifically, the second AP can add the BSSID of the first AP in the address field of the downlink data.
[0099] When the first indication information also includes the identifier of the first STA, in order to improve the accuracy of forwarding communication data, the second AP can also use the identifier of the first STA to verify the identity of the first STA. Specifically, it is assumed that the identifier of the first STA is the MAC address of the first STA. When the second AP monitors uplink data, if the uplink data includes the BSSID of the first AP and the source MAC address of the uplink data is the MAC address of the first STA, the second AP forwards the uplink data. If the uplink data includes the BSSID of the first AP, but the source MAC address of the uplink data is not the MAC address of the first STA, the second AP discards the uplink data. When the second AP monitors downlink data, if the destination MAC address of the downlink data is the MAC address of the first STA, the second AP adds the BSSID of the first AP to the downlink data and forwards the downlink data. If the destination MAC address of the downlink data is neither the MAC address of the first STA nor the MAC address of the second STA, the second AP discards the downlink data.
[0100] In other embodiments, the closest common superior of the first AP and the second AP is the target device. For example, the closest common superior is a gateway device. The first AP, the second AP and the gateway device are connected. Before the first AP switches channels, the communication data of the first STA passes through the first AP and the gateway device. During the channel switching of the first AP, the communication data of the first STA passes through the second AP and the gateway device. Therefore, the first AP can also send indication information to the gateway device. The gateway device sends the downlink data of the first STA to the second AP according to the indication information. The closest common superior can also be the first AP, for example, in a wireless mesh network, the first AP is the upper node of the second AP. At this time, before the first AP switches channels, the communication data of the first STA passes through the first AP. During the channel switching of the first AP, the communication data of the first STA passes through the second AP and the first AP. The closest common superior can also be the second AP. At this time, before the first AP switches channels, the communication data of the first STA passes through the first AP and the second AP. During the channel switching of the first AP, the communication data of the first STA passes through the second AP.
[0101] In other embodiments, the first indication information may also include a first sequence number (SN), a sending window size, and a sending window position. The first SN indicates the position of the current service in the sending window. After receiving the first indication information, the second AP encapsulates the received downlink data of the STA according to the first SN. Similarly, the first indication information may also include a second SN, a receiving window size, and a receiving window position. The second SN indicates the position of the current service in the receiving window.
[0102] In step 203, the first AP sends a first CSA to the first STA.
[0103] After the first AP sends the first indication information to the second AP, the first AP sends the first CSA to the first STA. The first CSA can be a beacon frame or a probe response frame. Before the first AP switches the channel, the first AP estimates the time required for itself to switch the channel. The time is added to the channel switch count (ChannelSwitch Count) of the first CSA. The first AP sends the first CSA to the first STA.
[0104] In step 204, the first AP switches from the first channel to the second channel. After the first AP sends the first CSA to the first STA, the first AP switches from the first channel to the second channel. For example, the first AP switches from channel 13 to channel 12.
[0105] In step 205, the first AP sends second indication information to the second AP. After the first AP completes channel switching, the first AP sends the second indication information to the second AP.
[0106] In step 206, in response to the second indication information, the second AP stops forwarding the communication data of the first STA. When the second AP monitors the uplink data, the second AP parses the uplink data to determine whether the uplink data includes the BSSID of the second AP. If the uplink data includes the BSSID of the second AP, the second AP forwards the uplink data. If the uplink data does not include the BSSID of the second AP (even if it includes the BSSID of the first AP), the second AP discards the uplink data. Among them, the BSSID of the second AP is the BSSID of the second BSS. The second AP belongs to the second BSS. When the second AP monitors the downlink data, the second AP parses the downlink data to determine that the destination address of the downlink data is the MAC address of the first STA. If the MAC address of the first STA is not in the association list of the second AP, the second AP discards the downlink data. If the MAC address of the first STA is in the association list of the second AP, the second AP adds the BSSID of the second AP in the downlink data and forwards the downlink data.
[0107] In other embodiments, there is a delay between the first moment when the second AP receives the second indication information and the second moment when the second AP stops forwarding the communication data of the first STA. Specifically, at the first moment, the second AP caches the downlink cache data of the first STA. In order to avoid wasting transmission resources, after the second AP forwards the downlink cache data of the first STA, the second AP stops forwarding the downlink data of the first STA.
[0108] In step 207, the first STA switches from the first channel to the second channel.
[0109] The first CSA carries the number of the second channel. After receiving the first CSA from the first AP, the first STA waits for a period of time according to the channel switching timing. After waiting for a period of time, the first STA switches from the second channel to the first channel according to the first CSA. After the first STA switches to the second channel, the first STA communicates with the first AP through the second channel. At this time, the first AP is responsible for forwarding the communication data of the first STA.
[0110] Secondly, the working channel of the second AP is the second channel. At this time, the first STA communicates with the second AP through the second channel. Figure 3 FIG. 2 is a second flow chart of the communication method provided in this application. Figure 3 As shown, the communication method includes the following steps.
[0111] In step 301, a first AP sends first indication information to a second AP.
[0112] In step 302, in response to the first indication information, the second AP forwards the communication data of the first STA.
[0113] In step 303, the first AP sends a first CSA to the first STA. At this time, the working channel of the first AP is the first channel. After the first AP determines that the working channel after switching is the second channel, the first AP generates the first CSA according to the number of the second channel. The first CSA carries the number of the second channel.
[0114] In step 304, the first STA switches from the first channel to the second channel. The first CSA carries the number of the second channel. After receiving the first CSA from the first AP, the first AP switches from the first channel to the second channel according to the first CSA. After the first STA switches to the second channel, the first STA communicates with the second AP through the second channel. At this time, the second AP is responsible for forwarding the communication data of the first STA.
[0115] In step 305, the first AP switches from the first channel to the second channel.
[0116] In step 306, the first AP sends second indication information to the second AP.
[0117] In step 307, in response to the second indication information, the second AP stops forwarding the communication data of the first STA.
[0118] It should be understood that Figure 3 The steps in Figure 2 There are similar contents in the steps of Figure 3 For a description of Figure 2For example, step 301 may refer to step 201. Step 302 may refer to step 202. Steps 305 to 307 may refer to steps 204 to 206.
[0119] Finally, the working channel of the second AP is the third channel. At this time, the first STA1 communicates with the second AP through the third channel. Figure 4 FIG. 3 is a third flow chart of the communication method provided in this application. Figure 4 As shown, the communication method includes the following steps.
[0120] In step 401, a first AP sends first indication information to a second AP.
[0121] In step 402, in response to the first indication information, the second AP forwards the communication data of the first STA.
[0122] In step 403, the first AP sends a second CSA to the first STA.
[0123] Before the first AP sends the first indication information to the second AP, the first AP may send a channel request to the second AP. According to the channel request, the second AP sends the number of the third channel to the first AP. After the first AP obtains the number of the working channel (third channel) of the second AP, the first AP generates a second CSA according to the number of the third channel. The second CSA carries the number of the third channel.
[0124] In step 404, the first STA switches from the first channel to the third channel. The first CSA carries the number of the third channel. After receiving the second CSA from the first AP, the first AP switches from the first channel to the third channel according to the second CSA. After the first STA switches to the third channel, the first STA communicates with the second AP through the third channel. At this time, the second AP is responsible for forwarding the communication data of the first STA.
[0125] In step 405, the first AP switches from the first channel to the second channel.
[0126] In step 406, the first AP sends second indication information to the second AP.
[0127] In step 407, in response to the second indication information, the second AP stops forwarding the communication data of the first STA.
[0128] In step 408, in response to the second indication information, the second AP sends a first CSA to the first STA.
[0129] The second indication information carries the number of the second channel or the first CSA. When the second indication information carries the number of the second channel, in response to the second indication information, the second AP generates the first CSA according to the number of the second channel. After generating the first CSA, the second AP sends the first CSA to the first CSA. When the second indication information carries the first CSA, in response to the second indication information, the second AP sends the first CSA to the first CSA. The moment when the second AP sends the first CSA to the first CSA is recorded as the third moment. The moment when the second AP stops forwarding the communication data of the first STA is recorded as the second moment. In order to reduce the packet loss of the service and improve the user experience, the third moment can be earlier than the second moment, that is, step 408 can be before step 407. Specifically, after the second AP sends the first CSA to the first STA, the second AP may still receive the uplink data of the first STA. If the second AP stops forwarding the communication data of the first STA, it will cause packet loss of the service of the first STA.
[0130] In step 409, the first AP switches from the third channel to the second channel.
[0131] It should be understood that Figure 4 The steps and Figure 2 There are similar contents in the steps of Figure 4 For a description of Figure 2 For example, step 401 may refer to the aforementioned step 201. Step 402 may refer to the aforementioned step 202. Steps 405 to 407 may refer to the aforementioned steps 204 to 206.
[0132] According to the aforementioned Figure 2 , Figure 3 and Figure 4 From the description, it can be seen that based on the working channel of the second AP, the first STA communicates with the second AP through different channels. And, based on the working channel of the second AP, the number of times the first STA switches channels is also different. Specifically, when the working channels of the second AP are the first channel and the second channel, the number of times the first STA switches channels is 1. When the working channel of the second AP is the third channel, the number of times the first STA switches channels is 2. Therefore, in order to reduce the number of times the first STA switches channels. Before the first AP switches channels, the first AP can also obtain an AP list from the first STA. The AP list includes information about APs that the first STA can search, such as the MAC address of the AP, or the SSID of the AP, etc. Then, the first AP obtains the working channel of the AP in the AP list. The first AP selects an AP whose working channel is the first channel or the second channel as the second AP. The first channel is the current working channel of the first AP. The second channel is the working channel after the first AP switches.
[0133] In actual applications, the second AP can be associated with the second STA. The second AP provides services to the second STA through the BSSID of the second AP. Figure 2 to Figure 4 It can be seen from the description that the second AP can forward the communication data of the first STA associated with the first AP. The communication data of the first STA carries the BSSID of the first AP, that is, the second AP provides services for the first STA through the BSSID of the first AP. Therefore, in order to facilitate the second AP to provide services to the first STA on the basis of providing services to the second STA, the second AP can establish a target VAP. The second AP forwards the communication data of the first STA through the target VAP. Specifically, the communication method in the present application will be described below by taking the working channels of the second AP as the first channel, the second channel and the third channel as an example.
[0134] First, the working channel of the second AP is the first channel. Figure 5 FIG. 4 is a fourth flow chart of the communication method provided in this application. Figure 5 As shown, the communication method includes the following steps.
[0135] In step 501, a first AP sends first indication information to a second AP.
[0136] In step 502, the second AP establishes a target VAP according to the first indication information, and forwards the communication data of the first STA through the target VAP.
[0137] The second AP device can provide differentiated services for the first STA and the second STA by configuring the target VAP. For example, the second AP generates the first VAP and the second VAP. The second VAP is also called the target VAP. The BSSID of the target VAP is different from the BSSID of the first VAP, that is, the target VAP and the first VAP belong to different BSSs. Specifically, the BSSID of the first VAP is the BSSID of the second AP, and the BSSID of the target VAP is the BSSID of the first AP. The first indication information carries the BSSID of the first AP.
[0138] In other embodiments, the first indication information further includes any one or more of encryption information for communication between the first AP and the first STA, channel configuration information, and SSID. When the first indication information includes SSID, the target VAP and the first AP include the same SSID. For example, the SSIDs of the first AP and the target VAP are both "WLAN-XX05". The channel configuration information includes information such as the channel number and the bandwidth of the channel. When the first indication information includes channel configuration information, the second AP creates a target VAP according to the channel configuration information, so that the target VAP and the first AP include the same channel configuration. When the first indication information includes encryption information for communication between the first AP and the first STA, the second AP communicates with the first STA through the encryption information. Specifically, after the second AP receives the uplink data of the first STA through the target VAP, the second AP uses the encryption information to decrypt the uplink data of the first STA; after the second AP receives the downlink data of the first STA through the target VAP, the second AP uses the encryption information to encrypt the downlink data of the first STA. At this time, the target VAP and the first AP include the same encryption information.
[0139] The more the target VAP and the first AP contain the same content, the more similar the target VAP and the first AP are. In order to improve the communication efficiency of the first STA, the present application may limit the target VAP as a mirror VAP of the first AP. At this time, during the communication process between the first STA and the second AP, the first STA does not perceive the second AP, that is, the first STA still believes that the communication object is the first AP.
[0140] In step 503, the second AP sends a target VAP establishment completion notification to the first AP.
[0141] After the second AP establishes the target VAP, the second AP sends a target VAP establishment completion notification to the first AP. The target VAP establishment completion notification indicates that the second AP is ready to forward the communication data of the first STA.
[0142] In step 504, the first AP sends the downlink buffer data of the first STA to the second AP.
[0143] Before the second AP forwards the communication data of the first STA, the first STA is associated with the first AP, that is, the first AP is responsible for forwarding the communication data of the first STA. Therefore, the first AP may have local downlink buffer data to be sent to the first STA. After receiving the target VAP establishment completion notification, the first AP sends the downlink buffer data to the second AP. After receiving the downlink buffer data, the second AP will forward the downlink buffer data to the first STA.
[0144] In step 505, the first AP switches from the first channel to the second channel.
[0145] In step 506, the first AP sends second indication information to the second AP.
[0146] In step 507, in response to the second indication information, the second AP stops forwarding the communication data of the first STA.
[0147] In step 508, the second AP sends the downlink buffer data of the first STA to the first AP.
[0148] After the second AP forwards the communication data of the first STA, the second AP may have downlink buffer data to be sent to the first STA locally. After determining to stop forwarding the communication data of the first STA, the second AP sends the downlink buffer data to the first AP. After receiving the downlink buffer data, the first AP forwards the downlink buffer data to the first STA.
[0149] In step 509, in response to the second indication information, the second AP sends a first CSA to the first STA.
[0150] In step 510, the first AP switches from a first channel to a second channel.
[0151] It should be understood that Figure 5 The steps in Figure 2 ,or Figure 4 There are similar contents in the steps of Figure 5 For a description of Figure 2 ,or Figure 4 For example, step 501 can refer to the aforementioned step 201. Step 502 can refer to the aforementioned step 202. Steps 505 to 507 can refer to the aforementioned steps 204 to 206. Steps 509 to 510 can refer to steps 408 to 409.
[0152] Secondly, the working channel of the second AP is the second channel. Figure 6 FIG. 5 is a fifth flow chart of the communication method provided in this application. Figure 6 As shown, the communication method includes the following steps.
[0153] In step 601, a first AP sends first indication information to a second AP.
[0154] In step 602, the second AP establishes a target VAP according to the first indication information, and forwards the communication data of the first STA through the target VAP.
[0155] In step 603, the second AP sends a target VAP establishment completion notification to the first AP.
[0156] In step 604, the first AP sends a first CSA to the first STA.
[0157] In step 605, the first AP switches from the first channel to the second channel.
[0158] In step 606, the first AP sends the downlink buffer data of the first STA to the second AP.
[0159] In step 607, the first STA switches from the first channel to the second channel.
[0160] In step 608, the first AP sends second indication information to the second AP.
[0161] In step 609, in response to the second indication information, the second AP stops forwarding the communication data of the first STA.
[0162] In step 610, the first AP sends downlink buffer data of the first STA to the second AP.
[0163] It should be understood that Figure 6 The steps and Figure 3 , Figure 5 There are similar contents in the steps of Figure 6 For a description of Figure 3 , Figure 5 For example, steps 601 to 603 may refer to the aforementioned steps 501 to 503. Steps 601 to 602 may refer to the aforementioned steps 301 to 302. Steps 604 to 605 may refer to the aforementioned steps 303 to 304. Step 606 may refer to the aforementioned step 504. Steps 607 to 609 may refer to the aforementioned steps 305 to 307. Step 610 may refer to the aforementioned step 508.
[0164] Finally, the working channel of the second AP is the third channel. Figure 7 This is a sixth flow chart of the communication method provided in this application. Figure 7 As shown, the communication method includes the following steps.
[0165] In step 701, a first AP sends first indication information to a second AP.
[0166] In step 702, the second AP establishes a target VAP according to the first indication information, and forwards the communication data of the first STA through the target VAP.
[0167] In step 703, the second AP sends a target VAP establishment completion notification to the first AP.
[0168] In step 704, the first AP sends a second CSA to the first STA.
[0169] In step 705, the first AP switches from the first channel to the third channel.
[0170] In step 706, the first AP sends the downlink buffer data of the first STA to the second AP.
[0171] In step 707, the first STA switches from the first channel to the second channel.
[0172] In step 708, the first AP sends second indication information to the second AP.
[0173] In step 709, in response to the second indication information, the second AP stops forwarding the communication data of the first STA.
[0174] In step 710, in response to the second indication information, the second AP sends a first CSA to the first STA.
[0175] In step 711, the first AP switches from the third channel to the second channel.
[0176] In step 712, the first AP sends the downlink buffer data of the first STA to the second AP.
[0177] It should be understood that Figure 7 The steps and Figure 4 , Figure 5 There are similar contents in the steps of Figure 7 For a description of Figure 4 , Figure 5 For example, steps 701 to 703 may refer to the aforementioned steps 501 to 503. Steps 701 to 702 may refer to the aforementioned steps 401 to 402. Steps 704 to 705 may refer to the aforementioned steps 403 to 404. Step 706 may refer to the aforementioned step 504. Steps 707 to 711 may refer to the aforementioned steps 405 to 409. Step 712 may refer to the aforementioned step 508.
[0178] According to the aforementioned Figures 2 to 7 As can be seen from the description, during the channel switching of the first AP, the second AP in the present application can forward the communication data of the first STA associated with the first AP, thereby reducing the packet loss of the service and improving the user experience. It should be understood that the aforementioned Figures 2 to 7 Only limited embodiments are described. In practical applications, those skilled in the art can make adaptive changes to the above embodiments according to requirements. These changes should be included in the protection scope of this application.
[0179] For example, in order for the first STA to communicate with the second AP through the second channel after the channel switching, the second AP needs to be ready to forward the communication data of the first STA before the first STA switches the channel. Figure 3 In the embodiment, step 301 is before step 303. In practical applications, the timing of step 303 may be before step 301. Specifically, the first CSA may carry a channel switching timing. The channel switching timing is the time interval between step 304 and step 303. Therefore, by flexibly controlling the channel switching timing, the moment when the first STA performs channel switching can be flexibly controlled, so that the first AP performs channel switching after the second AP has made relevant preparations.
[0180] For example, in Figure 2 In the embodiment, the first AP sends the first CSA to the first STA through the second AP. Specifically, the second indication information carries the number of the second channel or the first CSA. When the second indication information carries the number of the second channel, in response to the second indication information, the second AP generates the first CSA according to the number of the second channel. After generating the first CSA, the second AP sends the first CSA to the first CSA. When the second indication information carries the first CSA, in response to the second indication information, the second AP sends the first CSA to the first CSA. After the first STA receives the first CSA, the first STA switches channels according to the first CSA. At this time, the channel switching timing in the first CSA can be 0.
[0181] For example, in Figure 5 In the embodiment of the present invention, the second AP may not perform step 508. Specifically, after the second AP receives the second indication information, the second AP does not directly stop forwarding the communication data of the first STA. After the second AP forwards the communication data of the first STA, the second AP sends a completion message to the first AP. After the first AP receives the completion message, the first AP starts forwarding the communication data of the first STA.
[0182] For example, in Figure 2 In the second indication information, the second indication information does not include the number of the second channel or the first CSA. The first AP sends the number of the second channel or the first CSA to the second AP alone.
[0183] The communication method in the present application is described above, and the communication device in the present application is described below. The communication device includes a first AP and a second AP.
[0184] Figure 8 FIG. 1 is a schematic diagram of the structure of the first AP provided in this application. Figure 8 As shown, the first AP includes a first sending module 801, a second sending module 802, a third sending module 803 and a communication module 804. The modules in the first AP are used to perform the above Figures 2 to 7 All or part of the operations that the first AP can perform in any of the figures. For example, the first sending module 801 is used to perform Figure 2 Step 201 in the second sending module 802 is used to execute Figure 2 Step 205 in the above. The third sending module 803 is used to execute Figure 2 Step 203 in .
[0185] Fig. 9 FIG. 1 is a schematic diagram of the structure of the second AP provided in this application. Fig. 9 As shown, the second AP includes a first receiving module 901, a forwarding module 902, a second receiving module 903 and a stopping module 904. The modules in the second AP are used to perform the above Figures 2 to 7 All or part of the operations that the second AP in any figure can perform. For example, the forwarding module 902 is used to perform Figure 2 Step 202 in the above. The stop module 904 is used to execute Figure 2 Step 205 in .
[0186] The communication device in the embodiment of the present application is described above, and the computer device in the embodiment of the present application is described below. Fig.10 This is a schematic diagram of the structure of the computer device provided in this application. Fig.10 As shown, the computer device includes a processor 1001 and a transceiver 1002. The processor 1001 and the transceiver 1002 are interconnected via a line. The processor 1001 can be a central processing unit (CPU), a network processor (NP) or a combination of a CPU and a NP. The processor 1001 can further include a hardware chip or other general-purpose processor. The above-mentioned hardware chip can be an application specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof.
[0187] The transceiver 1002 may be a wireless radio frequency module, or a combination of a fiber optic transceiver and a wireless radio frequency module, etc.
[0188] Optionally, the computer device further includes a memory 1003. The memory 1003 may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory.
[0189] The computer device may be the above Figures 1 to 7 The first AP or the second AP in any of the figures.
[0190] When the device is a first AP, the processor 1001 and the transceiver 1002 in the first AP are used to execute the above Figures 2 to 7 All or part of the operations that the first AP in any figure can perform. For example, the transceiver 1002 is used to perform Figure 2 The processor 1001 is used to execute steps 201, 203, and 205. Figure 2 Step 204 in .
[0191] When the computer device is the second AP, the processor 1001 and the transceiver 1002 in the second AP are used to execute the above Figures 2 to 7 All or part of the operations that the second AP in any figure can perform. For example, the processor 1001 is used to perform Figure 2 Step 202 and step 206 in .
[0192] The embodiment of the present application also provides a digital processing chip. The digital processing chip integrates a circuit and one or more interfaces for implementing the functions of the above-mentioned processor 1001. When the digital processing chip integrates a memory, the digital processing chip can complete the method steps of any one or more of the above-mentioned embodiments. When the digital processing chip does not integrate a memory, it can be connected to an external memory through an interface. The digital processing chip implements the actions performed by the first AP or the second AP in the above-mentioned embodiment according to the program code stored in the external memory.
[0193] The above are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be covered by the protection scope of the present application.
Claims
1. A communication method, characterized in that: include: The first access point AP sends first indication information to the second AP, where the first indication information includes a basic service set identifier BSSID of the first AP; The first indication information is used to instruct the second AP to forward communication data between the first AP and the first station STA during the period when the first AP switches from the first channel to the second channel, and the communication data between the first AP and the first STA includes the BSSID of the first AP; After the first AP sends the first indication information to the second AP, the first AP sends the second indication information to the second AP, where the second indication information is used to instruct the second AP to stop forwarding the communication data between the first AP and the first STA; The first AP sends a first channel switching notification CSA to the first STA, where the first CSA is used to instruct the first STA to switch to the second channel; The first AP communicates with the first STA through the second channel.
2. The method according to claim 1, characterized in that The first indication information further includes an identifier of the first STA associated with the first AP; The first indication information is further used to instruct the second AP to forward communication data including the identifier of the first STA.
3. The method according to claim 1, characterized in that The first indication information is further used to instruct the second AP to establish a target virtual access point VAP according to the first indication information, and the BSSID of the target VAP is the BSSID of the first AP; The first indication information is further used to instruct the second AP to forward communication data between the first AP and the first STA through the target VAP.
4. The method according to claim 3, characterized in that The method further comprises: The first AP receives a target VAP establishment completion notification from the second AP; After receiving the target VAP establishment completion notification, the first AP switches from the first channel to the second channel.
5. The method according to any one of claims 1 to 4, characterized in that: When the working channel of the second AP is the first channel, the forwarding of communication data between the first AP and the first STA includes: forwarding communication data between the first AP and the first STA through the first channel; The first AP sending the first CSA to the first STA includes: After the first AP switches from the first channel to the second channel, the first AP sends the first CSA to the first STA, instructing the first STA to switch to the second channel.
6. The method according to claim 5, characterized in that The first AP sending the first CSA to the first STA includes: The first AP sends the number of the second channel to the second AP, instructs the second AP to generate the first CSA, and sends the first CSA to the first STA; or, The first AP sends the first CSA to the second AP, instructing the second AP to forward the first CSA to the first STA.
7. The method according to any one of claims 1 to 4, characterized in that When the working channel of the second AP is the second channel, the first AP sending the first CSA to the first STA includes: Before the first AP switches from the first channel to the second channel, the first AP sends the first CSA to the first STA to instruct the first STA to switch to the second channel; The forwarding of communication data between the first AP and the first STA includes: The communication data between the first AP and the first STA is forwarded through the second channel.
8. The method according to any one of claims 1 to 4, characterized in that When the working channel of the second AP is the third channel, before the first AP switches from the first channel to the second channel, the method further includes: The first AP sends a second CSA to the first STA, where the second CSA is used to instruct the first STA to switch to the third channel; The forwarding of communication data between the first AP and the first STA includes: forwarding communication data between the first AP and the first STA through the third channel; The first AP sending the first CSA to the first STA includes: After the first AP switches from the first channel to the second channel, the first AP sends the first CSA to the first STA, instructing the first STA to switch to the second channel.
9. The method according to any one of claims 1 to 4, characterized in that: Before the first AP switches from the first channel to the second channel, the method further includes: The first AP sends the downlink buffer data of the first STA to the second AP; The communication data between the first AP and the first STA includes: The downlink buffer data is forwarded.
10. A communication method, characterized in that: include: The second access point AP receives first indication information from the first AP, where the first indication information includes a BSSID of the first AP; In response to the first indication information, the second AP forwards communication data between the first AP and a first station STA during a period in which the first AP switches from a first channel to a second channel, wherein the communication data between the first AP and the first STA includes a BSSID of the first AP; The second AP receives second indication information from the first AP; In response to the second indication information, the second AP stops forwarding the communication data between the first AP and the first STA.
11. The method according to claim 10, characterized in that The first indication information further includes an identifier of the first STA associated with the first AP; The first indication information is further used to instruct the second AP to forward communication data including the identifier of the first STA.
12. The method according to claim 10, characterized in that After the second AP receives the first indication information from the first AP, the method further includes: The second AP establishes a target virtual access point VAP according to the first indication information, and the BSSID of the target VAP is the BSSID of the first AP; The second AP forwarding the communication data between the first AP and the first STA includes: The second AP forwards the communication data between the first AP and the first STA through the target VAP.
13. The method according to claim 12, characterized in that After the second AP establishes the target VAP according to the first indication information, the method further includes: The second AP sends a target VAP establishment completion notification to the first AP.
14. The method according to any one of claims 10 to 13, characterized in that When the working channel of the second AP is the first channel, the forwarding of communication data between the first AP and the first STA includes: forwarding communication data between the first AP and the first STA through the first channel; After the second AP receives the first indication information from the first AP, the method further includes: The second AP receives a second channel number or a first channel switching announcement CSA from the first AP; The second AP sends the first CSA to the first STA, instructing the first STA to switch to the second channel; When the second AP receives the number of the second channel from the first AP, the method further includes: The second AP generates the first CSA according to the number of the second channel.
15. The method according to any one of claims 10 to 13, characterized in that When the working channel of the second AP is the second channel, before the second AP receives the first indication information from the first AP, the method further includes: The second AP sends the number of the second channel to the first AP, where the number of the second channel is used by the first AP to generate a first channel switching announcement CSA to instruct the first STA to switch to the second channel; The forwarding of communication data between the first AP and the first STA includes: The communication data between the first AP and the first STA is forwarded through the second channel.
16. The method according to any one of claims 10 to 13, characterized in that When the working channel of the second AP is the third channel, before the second AP receives the first indication information from the first AP, the method further includes: The second AP sends the number of the third channel to the first AP, where the number of the third channel is used by the first AP to generate a second CSA to instruct the first STA to switch to the third channel; The forwarding of communication data between the first AP and the first STA includes: forwarding communication data between the first AP and the first STA through the third channel; After the second AP receives the first indication information from the first AP, the method further includes: The second AP receives a number of a second channel or a first CSA from the first AP; The second AP sends the first CSA to the first STA, instructing the first STA to switch to the second channel; When the second AP receives the number of the second channel from the first AP, the method further includes: The second AP generates the first CSA according to the number of the second channel.
17. The method according to any one of claims 10 to 13, characterized in that After the second AP receives the first indication information from the first AP, the method further includes: The second AP receives downlink buffer data of the first STA from the first AP; The forwarding of communication data between the first AP and the first STA includes: The downlink buffer data is forwarded.
18. A communication system, characterized in that: include: The first AP as described in any one of the preceding claims 1 to 9 and the second AP as described in any one of the preceding claims 10 to 17.
19. The communication system according to claim 18, characterized in that: The first indication information is further used to instruct the second AP to establish a target virtual access point VAP according to the first indication information, and the BSSID of the target VAP is the BSSID of the first AP; The first indication information is further used to instruct the second AP to forward communication data between the first AP and the first STA through the target VAP.
20. A first access point AP, characterized in that: include: A first sending module, configured to send first indication information to a second AP, where the first indication information includes a basic service set identifier BSSID of the first AP; The first indication information is used to instruct the second AP to forward communication data between the first AP and the first station STA during the period when the first AP switches from the first channel to the second channel, and the communication data between the first AP and the first STA includes the BSSID of the first AP; A second sending module, used to send second indication information to the second AP, where the second indication information is used to instruct the second AP to stop forwarding communication data between the first AP and the first STA; A third sending module is used to send a first channel switching notification CSA to the first STA, where the first CSA is used to instruct the first STA to switch to the second channel; A communication module is used to communicate with the first STA through the second channel after the first STA switches to the second channel.
21. The first AP according to claim 20, characterized in that: The first indication information further includes an identifier of the first STA associated with the first AP; The first indication information is further used to instruct the second AP to forward communication data including the identifier of the first STA.
22. The first AP according to claim 20, characterized in that: The first indication information is further used to instruct the second AP to establish a target virtual access point VAP according to the first indication information, and the BSSID of the target VAP is the BSSID of the first AP; The first indication information is further used to instruct the second AP to forward communication data between the first AP and the first STA through the target VAP.
23. A second access point AP, characterized in that: include: A first receiving module is configured to receive first indication information from a first AP, where the first indication information includes a basic service set identifier (BSSID) of the first AP; a forwarding module, configured to forward, in response to the first indication information, communication data between the first AP and a first station STA during a period in which the first AP switches from a first channel to a second channel, wherein the communication data between the first AP and the first STA includes a BSSID of the first AP; A second receiving module, configured to receive second indication information from the first AP; A stopping module is used to stop forwarding the communication data between the first AP and the first STA in response to the second indication information.
24. The second AP according to claim 23, characterized in that: The first indication information further includes an identifier of the first STA associated with the first AP; The forwarding module is further configured to forward communication data including the identifier of the first STA.
25. The second AP according to claim 23 or 24, characterized in that: The second AP further includes: An establishing module, configured to establish a target virtual access point VAP according to the first indication information, wherein the BSSID of the target VAP is the BSSID of the first AP; The forwarding module is further configured to forward communication data between the first AP and the first STA through the target VAP.
