♥India♥

What are the scenarios for STA to wake up from sleep?


2 comments
Categories : PowerSave , WLAN

It’s recommended to know about LegacyPowersave, WMMPS, DTIM before reading this article. From these articles we got to know about listen interval, DTIM beacon, TIM and may be confused about STA wake up procedures.

Assumptions:

STA is in sleeping state and it has shared listen interval as 600ms in Association Request frame.

♦ AP beacon interval is 100ms.

♦ AP DTIM period is 3.

Here are the scenarios where STA wakes from sleep:

Scenario 1:

As we see DTIM period is 3 [DTIM count in beacon-> 2 1 0…2 1 0] so every 3rd beacon is DTIM beacon [DTIM count = 0 ]. According to protocol AP can only indicate about any multicast data in this beacon making Multicast bit = 1. This means connected sleeping STA is supposed to wake on every 3rd DTIM beacon to receive multicast if there is any. If STA does not wake up then STA will lose multicast data and cannot get that missed multicast data as there is no ACK/Retry mechanism for multicast data. So we got the importance of waking up on DTIM beacon for STA.

According to my knowledge, STA does not miss to wake up on DTIM beacon intentionally. This wake up is important.

Scenario 2:

As STA declares “listen interval” as 600ms, this means “STA will wake up on every 6th beacon”. Now AP collects this information and keeps it. But in this scenario if STA does not wake up on every 6th beacon, it does not affect much. Because if AP has unicast buffered data then it starts indicating in Beacon. And there will be multiple beacons to indicate about unicast buffered data. So STA has more change of getting it even if STA fails to wake up on particular time. Once STA receives all unicast buffered data then AP stops indicating about unicast data in beacon. Now we can say listen interval is just filled because of protocol mandates that but STA can choose not wake up as per listen interval time.

Now, any vendor may implement like below wake strategy:

STA wakes up on only DTIM beacon and check for Multicast data and also checks for TIM fields for any unicast data.

If there is multicast but no unicast then keep awake and receive only multicast and go for sleep.

If there is multicast and unicast then keep awake and receive multicast and then receive unicast data and go for sleep.

If there is no multicast but only unicast then keep awake and receive unicast and go for sleep.

If there is no multicast and no unicast then go back to sleep.

♦ Or STA is configured to wake up on every beacon to check multicast and unicast data indicated by AP. In this case, STA listen interval and DTIM beacon wake up does not any importance because STA wakes on every beacon which covers all.

It’s important to remember that multicast data receive will have more priority than unicast data receive from STA side. Also another way we can say , AP should first clear multicast data then go for unicast data.

***Multicast has more priority than unicast***

♥♥If you have any doubts or query please let me know in comment section or send mail at feedback@wifisharks.com.♥♥

2 comments on “What are the scenarios for STA to wake up from sleep?

    Mark D’Rozario

    • September 26, 2023 at 2:55 pm

    if the AP has multicast data (which is being indicated at the DTIM beacon), what is the max duration for which the sta has to wake up ? also do we have any spec which tells for how much duration the sta has to be awake for the multicast data ?

      Bamdeb

      • October 1, 2023 at 12:05 am

      As there is no ACK for multicast data so AP is not caring if STA has recived it or not. AP just sends all multicast data at one go in Basic data rate.STA has to be awake to receive all.
      Some vendor implements multicast to unicast conversion and send multicast data to one client with highest data rate as a unicast frame.

      Spec does not say anything on waiting duration.

Leave a Reply

Your email address will not be published. Required fields are marked *

error: Content is protected !!
%d bloggers like this: