Mechanism to avoid packet loss during off-channel / MCC operations
By setting the Channel Switch Count in the CSA IE to a value greater than one and using beacon frames to manage data transfer, the mechanism addresses power wastage and packet loss in P2P networks by synchronizing data transfer with the AP's channel status, ensuring efficient and power-efficient communication.
Patent Information
- Application Number
- US19/262122
- Authority / Receiving Office
- US · United States
- Patent Type
- Applications(United States)
- Current Assignee / Owner
- Priority Date
- 2025-05-23
- Filing Date
- 2025-07-08
- Publication Date
- 2026-11-26
AI Technical Summary
In Peer-to-Peer (P2P) networks, off-channel operations by the Access Point (AP) lead to power wastage and packet loss due to the peer devices remaining active and unaware of the AP's channel switching, resulting in inefficient data transfer.
A mechanism is introduced to pause data transfer by setting the Channel Switch Count in the Channel Switch Announcement (CSA) IE to a value greater than one, sending a beacon frame with this IE to the Slave Device, and resuming data transfer when the off-channel operation is complete, using a beacon frame without the IE.
This approach conserves power by putting Slave Devices in sleep mode during off-channel operations and prevents packet loss by synchronizing data transfer with the AP's channel availability.
Smart Images

Figure US20260380513A1-D00000_ABST
Abstract
Description
BACKGROUND
[0001] A Peer-to-Peer (P2P) network is a wireless network wherein a computer or device not specifically designed to be a router can be a wireless Access Point (AP). Typically, one device which can act as an AP is designated the Group Owner (GO) and other AP and non-AP devices (peer devices) within the P2P network are connected to the GO over various links / channels. The GO device may be a soft AP, i.e. a device which is enabled by software to act as an Access Point, and the GO may operate in a multi-channel concurrent (MCC) mode, such that the connections with the various AP and peer devices can occur over a number of different channels simultaneously.
[0002] Refer to FIG. 1A, which illustrates a Group Owner device and a peer station operating in a wireless network. The GO device is a dual AP, which can act as a STA (DUT STA) and an AP (DUT AP / P2P GO) alternately. The diagram illustrates four timing intervals, T1 ~ T4, wherein data is transmitted between the AP and the peer station at time slot T3. The peer station link remains present for the entire time period T1 ~ T4; however, at time slot T1, time slot T2 and time slot T4, there is no data to be transmitted between the GO device and the peer station. This idle duration results in power wastage.
[0003] Additionally, the DUT AP / P2P GO occasionally has to switch to a different channel for performing operations such as scanning for other peer devices within the network, using the Bluetooth coexisting link, or entering the multi-channel mode. This off-channel movement can result in certain problems. If the DUT AP / P2P GO needs to switch to a different channel for carrying out some operation such as scanning, the peer station has no way of knowing and therefore must remain in active mode for the entire duration, which wastes power.
[0004] Refer to FIG. 1B, which illustrates the above network wherein the peer station transmits data in time slots T1, T2 and T3, but the data is not received in time slot T2. When the DUT AP / P2P GO is operating as an AP (T1 and T3), data can be received from the peer station; however, when the DUT AP / P2P GO is operating as the STA (T2), the peer station continues to transmit data, resulting in packet loss.
[0005] As peer devices within a P2P network are typically portable and battery-powered, keeping the antenna / AP link active even when the AP is off-channel results in significant power loss. Further, as the peer device cannot know when the AP is performing off-channel operations, data transfer may continue, which is likely to result in packet loss.SUMMARY
[0006] This in mind, it is an objective of the present invention to provide a mechanism for pausing data transfer when an AP is performing off-channel operations, and resuming data transfer when the AP has finished the off-channel operations.
[0007] According to an exemplary embodiment of the present invention, a method for pausing data transfer over a first channel between a Master Device and a Slave Device in a Peer-to-Peer (P2P) network comprises: determining, by the Master Device, that an off-channel operation needs to be performed; setting a Channel Switch Count element of Channel Switch Announcement (CSA) information element (IE) to be a value which is greater than one; at every beacon interval, sending a beacon frame including the CSA IE to the Slave Device for pausing data transfer from the Slave Device; and when the off-channel operation is finished, sending a beacon frame to the Slave Device that does not comprise a CSA IE for restarting data transfer from the Slave Device.
[0008] According to another exemplary embodiment of the present invention, a peer-to-peer (P2P) network comprises: a Master Device, configured to perform data transfer over a first link within the P2P network, and further configured to determine that an off-channel operation needs to be performed, set a Channel Switch Count element of a Channel Switch Announcement (CSA) information element (IE) to be a value which is greater than one, send a beacon frame including the CSA IE at every beacon interval over the first link, and when the off-channel operation is finished, send a beacon frame that does not comprise a CSA IE over the first link; and a Slave Device, configured to perform data transfer over the first link, and further configured to enter a power save mode when the beacon frame including the CSA IE is received from the Master Device, and exit the power save mode when the beacon frame that does not comprise a CSA IE is received from the Master Device.
[0009] The Master Device is further configured to determine for how many beacons the off-channel operation needs to be performed, and set the Channel Switch Count to be a specific value equal to the number of beacons plus one. The Master Device is further configured to at a first beacon interval, send a beacon frame including the CSA IE having the Channel Switch Count set to the specific value at a first beacon interval, send a beacon frame including the CSA IE having a Channel Switch Count equal to the previous Channel Switch Count decremented by one at a next beacon interval, and send a beacon frame including the CSA IE having a Channel Switch Count equal to the previous Channel Switch Count decremented by one for each successive beacon interval.
[0010] The Master Device is a dual mode Access Point (AP) / Station (STA), and acts as a Group Owner (GC) of the P2P network.
[0011] These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.BRIEF DESCRIPTION OF THE DRAWINGS
[0012] FIG. 1A is a diagram illustrating a prior art Peer-to-Peer (P2P) network wherein an Access Point link becomes idle.
[0013] FIG. 1B is a diagram illustrating a prior art P2P network wherein there is data loss.
[0014] FIG. 2 is a diagram illustrating a Channel Switch Announcement Information Element.
[0015] FIG. 3 is a diagram illustrating frame exchange between a Master Device and a Slave Device in a P2P network according to an exemplary embodiment of the present invention.
[0016] FIG. 4 is a diagram illustrating a P2P network.
[0017] FIG. 5 is a flowchart illustrating a method according to an exemplary embodiment of the present invention.DETAILED DESCRIPTION
[0018] The current Wi-Fi specification teaches a Channel Switch Announcement (CSA) Mechanism, which is an Information Element (IE) that can inform a legacy STA / P2P Group Client (GC) to stop packet transfer, as communication will switch to a different channel. Refer to FIG. 2, which illustrates the CSA element format. As shown in the diagram, the CSA element comprises the following fields: Element ID, Length, Channel Switch Mode, New Channel Number, and Channel Switch Count, wherein each field is made up of one octet. The Channel Switch Count can be set to a number of Target Beacon Transmission Times (TBTTs) until a STA receiving the CSA should switch to the new channel. When the value is ‘1’, this indicates that the channel switch will occur at the next TBTT.
[0019] The present invention proposes an enhancement to the above Information Element, for enabling a peer STA within the P2P network to stop / pause data transfer when an AP performs off-channel movement. The first four fields of the CSA IE will be kept the same; however, the Channel Switch Count can be set to a particular number N which is greater than one, so that when the STA receives the CSA it will pause any data transfer.
[0020] The AP can determine for how many TBTTs the off-channel movement will be performed, and the value of N can be set accordingly. In a first beacon frame, the CSA IE will be included with the Channel Switch Count comprising a value N which is set to the maximum number of TBTTs plus one. When the STA receives the beacon frame containing the CSA, the STA will pause any data transfer as the STA is waiting to switch to a different channel. In a next beacon frame, the CSA IE will be included and the Channel Switch Count will be decremented by one (i.e. N – 1), and data transfer of the STA will continue to be paused. The Channel Switch Count is successively decremented by one for each successive beacon frame. As long as N is greater than one, the STA will remain on the original channel but will pause any data transfer. Once the AP has finished performing its off-channel operations, the AP can then resume data transfer with the STA on the original channel; therefore, a next beacon frame sent by the AP will not include any CSA, so the STA resumes normal operation.
[0021] Refer to FIG. 3, which illustrates frames sent between a Master Device, which can be referred to as a soft AP or a peer-to-peer Group Owner (P2P GO), and a Slave Device, which can be referred to as a STA or as a P2P Group Client (GC). Association is performed between the Master Device and Slave Device. The Master Device then sends a beacon (management) frame to the Slave Device, which can then send data over a specific channel. As detailed above, the Master Device may need to perform some off-channel operations, but the Slave Device does not know that the Master Device is not connected to the Slave Device on the same channel. The Slave Device therefore may attempt to send data to the Master Device, which will result in packet loss. Even when packet loss does not occur, the Slave Device remaining on during this time will result in power wastage.
[0022] In order to pause Slave Device operations while the Master Device performs the off-channel operations, the Master Device therefore sends a beacon frame to the Slave Device, the beacon frame including a CSA IE, having a Channel Switch Count = N, wherein N preferably equals a number of TBTTs required for the off-channel operation plus one. The Slave Device therefore enters power save mode, such that data transfer is paused, as the Slave Device is waiting for a channel switch after N TBTTs. In a next beacon interval, the Master Device sends a CSA IE having a Channel Switch Count = N – 1, and then sends subsequent beacons having a CSA IE wherein N is successively decremented by one. In the prior art, if a beacon frame including a CSA IE having a Channel Switch Count equal to one is received by the Slave Device, the Master and Slave Device will perform a channel switch. In the present invention, before the Channel Switch Count is decremented to equal one, the Master Device will send a beacon frame that does not include a CSA IE, indicating that the Channel Switch is aborted. The Master Device and Slave Device will resume communication on the original channel.
[0023] The value of N (the initial Channel Switch Count) is specified by the AP (Master Device) when the AP wants to do some off-channel operation, wherein N will be set to equal a number of TBTTs greater than the number of TBTTs required to perform the off-channel operation. In one embodiment, N may equal the number of TBTTs required for the off-channel operation plus one, such that the off-channel operation can be completed before the Channel Switch Count is decremented to equal one, and then a next beacon without a CSA IE can be sent.
[0024] A real-world application is illustrated in FIG. 4, which shows a laptop computer 450, which acts as the Group Owner (Master Device) of a P2P network 400, and is a dual AP / STA. The Master Device 450 is in contact with three devices 410, 420, 430 over a wireless link, wherein each of the three devices 410, 420, 430 can act as an Access Point within the P2P network 400. As shown in the diagram, the first AP 410 communicates with the Master Device 450 on a channel 149, the second AP 420 communicates with the Master Device 450 on a channel 50, and the third AP 430 communicates with the Master Device 450 on a channel 6. In addition, the P2P network 400 includes a first Group Client 440 (Slave Device), which communicates with the Master Device 450 over a first link (Link 1) on channel 11, and a second Group Client 460, which communicates with the Master Device 450 over a Bluetooth link (Link 2).
[0025] As the devices 410, 420, 430 all have AP capability, they will know when the Master Device 450 is performing off-channel operations and can pause data operations / enter sleep mode during this time. The client device 460 can continue to communicate with the Master Device 450 as communication is over a Bluetooth link. The client device 440, however, will continue to attempt to send data to the Master Device 450 even when the Master Device 450 is not operating on channel 11 or is not acting as an AP. By sending beacon frames comprising a CSA IE when the Master Device 450 begins to perform off-channel operations, the Slave Device 440 can enter a sleep mode such that data transfer is paused until the Master Device 450 resumes communications over channel 11 (Link 1), and power wastage is prevented.
[0026] Refer to FIG. 5, which is a flowchart 500 illustrating the method of an exemplary embodiment of the present invention. Note that the steps do not have to be in the exact order, and extra steps can be inserted. The method is as follows:
[0027] Step 510: The AP is connected to legacy client
[0028] Step 520: Does the AP want to move off-channel? If yes, go to Step 530; if no, go to Step 525
[0029] Step 525: No action
[0030] Step 530: The AP sends a beacon frame including a Channel Switch Announcement (CSA) Information Element (IE) to client with a Channel Switch Count set to N Step 540: Is the Channel Switch Count > 1 and the AP still off-channel? If yes, go to Step 545; if no, go to Step 550
[0031] Step 545: Client stays in low power / data pause mode, and the count is decremented by one
[0032] Step 550: AP sends beacon without CSA IE
[0033] Step 560: AP / client stays on old channel and continues operation
[0034] As shown in the above, Step 540 determines both whether the Channel Switch Count is greater than one, and whether the AP (Master Device) is still off-channel for determining whether to keep the Client (Slave Device) in the low power / data pause mode. As detailed above, the AP determines for how many TBTTs the off-channel operation needs to be performed, and sets the Channel Switch Count N to be at least equal to the number of TBTTs plus one, such that the Slave Device will remain in the low power mode while the off-channel operation is performed. It is possible, however, that the off-channel operation is completed earlier. In this case, as soon as the AP has completed the off-channel operation, a beacon frame which does not comprise the CSA IE will be sent in a next beacon interval, so that the Slave Device can immediately exit the low power mode.
[0035] By sending a beacon frame including a CSA IE when the AP (Group Owner) of the P2P network wishes to perform off-channel operations, data transfer between the AP and a peer device (STA / GC) can be paused until the off-channel operation is finished. By sending a beacon frame that does not include a CSA IE when the off-channel operation is finished, data transfer between the AP and the peer device can be resumed. This allows the peer device to enter a sleep mode while communication with the AP cannot occur over the initial channel, which saves power and prevents packet loss.
[0036] Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
Claims
1. A method for pausing data transfer over a first channel between a Master Device and a Slave Device in a Peer-to-Peer (P2P) network, the method comprising:determining, by the Master Device, that an off-channel operation needs to be performed;setting a Channel Switch Count element of a Channel Switch Announcement (CSA) information element (IE) to be a value which is greater than one;at every beacon interval, sending a beacon frame including the CSA IE to the Slave Device for pausing data transfer from the Slave Device; andwhen the off-channel operation is finished, sending a beacon frame to the Slave Device that does not comprise a CSA IE for restarting data transfer from the Slave Device.
2. The method of claim 1, wherein the step of determining that an off-channel operation needs to be performed further comprises determining, by the Master Device, for how many beacons the off-channel operation needs to be performed, wherein the Channel Switch Count is set to be a specific value equal to the number of beacons plus one.
3. The method of claim 2, wherein the step of sending a beacon frame including the CSA IE to the Slave Device at every beacon interval comprises:at a first beacon interval, sending a beacon frame including the CSA IE having the Channel Switch Count set to the specific value;at a next beacon interval, sending a beacon frame including the CSA IE having a Channel Switch Count equal to the previous Channel Switch Count decremented by one; andfor each successive beacon interval, sending a beacon frame including the CSA IE having a Channel Switch Count equal to the previous Channel Switch Count decremented by one.
4. The method of claim 1, wherein the Master Device is a dual mode Access Point (AP) / Station (STA), and acts as a Group Owner (GC) of the P2P network.
5. A peer-to-peer (P2P) network, comprising:a Master Device, configured to perform data transfer over a first link within the P2P network, and further configured to determine that an off-channel operation needs to be performed, set a Channel Switch Count element of a Channel Switch Announcement (CSA) information element (IE) to be a value which is greater than one, send a beacon frame including the CSA IE at every beacon interval over the first link, and when the off-channel operation is finished, send a beacon frame that does not comprise a CSA IE over the first link; anda Slave Device, configured to perform data transfer over the first link, and further configured to enter a power save mode when the beacon frame including the CSA IE is received from the Master Device, and exit the power save mode when the beacon frame that does not comprise a CSA IE is received from the Master Device.
6. The P2P network of claim 5, wherein the Master Device is further configured to determine for how many beacons the off-channel operation needs to be performed, and set the Channel Switch Count to be a specific value equal to the number of beacons plus one.
7. The P2P network of claim 6, wherein the Master Device is further configured to at a first beacon interval, send a beacon frame including the CSA IE having the Channel Switch Count set to the specific value at a first beacon interval, send a beacon frame including the CSA IE having a Channel Switch Count equal to the previous Channel Switch Count decremented by one at a next beacon interval, and send a beacon frame including the CSA IE having a Channel Switch Count equal to the previous Channel Switch Count decremented by one for each successive beacon interval.
8. The P2P network of claim 5, wherein the Master Device is a dual mode Access Point (AP) / Station (STA), and acts as a Group Owner (GC) of the P2P network.
