Retry control & iwconfig
Hi Marc,
You can set NO_ACK bit in Tx descriptor of each packet to indicate the hardware to not to wait for ACK, which in turn avoids retries for that particular packet.
If you set IEEE80211_TX_CTL_NO_ACK flag in tx_ctl information, ath9k layer will take care of setting the Tx descriptor flag ATH9K_TXDESC_NOACK.
Regards
Pradeep
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20140327/68392481/attachment.htm
Hi Pradeep,
thanks, this helped me a lot.
It pointed me out to iw command "set noack_map" that is made to set IEEE80211_TX_CTL_NO_ACK flag, and that I did not consider before.
I then used "iw <dev> set noack_map 9" to avoid waiting for ACK and to avoid retries by <dev>.
What I expected was to see almost no difference with noack when the link conditions are good (i.e. high RSSI level).
But this is not the case, with noack set, the data transfer is almost not possible (I used iperf, and it even does not complete its test, 95 to 98% lost packet with ping).
What is the reason for this ? Does the NO_ACK bit has an additional impact on the device behaviour like not respecting the requested delays on the air, or whatever ?
Any idea ?
Thanks.
Olivier.
Quoted 18 lines · Pradeep Reddy
Hi Marc,
You can set
NO_ACKbit in Tx descriptor of each packet to indicate the hardware to not to wait for ACK, which in turn avoids retries for that particular packet.If you set
IEEE80211_TX_CTL_NO_ACKflag intx_ctlinformation, ath9k layer will take care of setting the Tx descriptor flagATH9K_TXDESC_NOACK.Regards
Pradeep_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Signature · 2 lines
Olivier Marc? Alcatel-Lucent Bell Labs France
Hi Olivier,
NO_ACK feature is meant for few special cases, like,
(i)when you want to inject certain packets (Injector), but doesn't bother whether it is delivered or not, (ii) In QoS/11n case, where per packet ACK is disabled and Block ACK is enabled
(iii) For boradcast/multicast packets, for which ACK is not needed, For Ex Beacons
As you are aware the purpose of ACK in 802.11 Std is to ensure the data packet is delivered without any errors to intended destination, due to uncertainty nature of Wireless Medium.
In your case, NO_ACK is set, but Rate control algorithm is still decides the rate based on Tx stats and sets number of retries. But since NO_ACK bit is set, h/w won't wait for ACK and doesn't ensure the error-free delivery of data packets to target.
With NO_ACK set also, still the STA follows the CSMA/CA protocol, doesn't violate any protocol timings. I think, your env might be busy with lot of WLAN traffic, so that even with higher signal strengths the packets might not be making till destination as error-free. Is that Correct ?
I think, fixing the data rates to make it behave better.
Let me know how it goes.
Regards
Pradeep
Date: Fri, 28 Mar 2014 17:26:06 +0100
From: Olivier Marce<[email protected]>
Subject: Re: [ath9k-devel] Retry control & iwconfig To:<[email protected]> Message-ID:<[email protected]>
Content-Type: text/plain; charset="ISO-8859-1"; format=flowed
Hi Pradeep,
thanks, this helped me a lot.
It pointed me out to iw command "set noack_map" that is made to set IEEE80211_TX_CTL_NO_ACK flag, and that I did not consider before.
I then used "iw <dev> set noack_map 9" to avoid waiting for ACK and to avoid retries by <dev>.
What I expected was to see almost no difference with noack when the link conditions are good (i.e. high RSSI level).
But this is not the case, with noack set, the data transfer is almost not possible (I used iperf, and it even does not complete its test, 95 to 98% lost packet with ping).
What is the reason for this ? Does the NO_ACK bit has an additional impact on the device behaviour like not respecting the requested delays on the air, or whatever ?
Any idea ?
Thanks.
Olivier.
Quoted 11 lines · Pradeep Reddy
Hi Marc,
You can set
NO_ACKbit in Tx descriptor of each packet to indicate the hardware to not to wait for ACK, which in turn avoids retries for that particular packet.If you set
IEEE80211_TX_CTL_NO_ACKflag intx_ctlinformation, ath9k layer will take care of setting the Tx descriptor flagATH9K_TXDESC_NOACK.Regards
Pradeep
Quoted 2 lines · Pradeep Reddy
I think, fixing the data rates to make it behave better.
I think so too, maybe minstrel does something very unclever in context of NO_ACK being set (like sticking to a very high MCS). Or this is simply what we get when turning off (fast!) mac-layer retransmission in a busy environment and using TCP over that very leaky pipe then.
-paul
Hi,
thanks Pradeep and Paul.
I investigated on this.
But as this time, I'm unable to make a link working with no_ack, even if I fix the rate.
The environment is crowded, but not so much. With ACK (iw <dev> set noack_map 0 to be sure), for a iperf 10 sec long test, I found only 43 retry packets over 19k TCP packets.
As soon as I set noack (iw <dev> set noack_map 9), the iperf test does not work at all. I'm able to see only 2 packets coming from the iperf client over 15 seconds of capture.
The same when fixing the rate (iwconfig <dev> rate 11M), the same with 1M rate.
The capture done at the 2 ends (AP and STA) are consistent. This is the same with ping, it does not work (98% packet loss)
Other observations :
- the ACK are well transmitted in the 2 directions
- same behaviour if RTS/CTS on or off
Did someone make a link with no_ack work ? In which condition ?
Regards
Quoted 12 lines · Paul Fuxjaeger
Quoted 2 lines · Pradeep Reddy
I think, fixing the data rates to make it behave better.
I think so too, maybe minstrel does something very unclever in context of
NO_ACKbeing set (like sticking to a very high MCS). Or this is simply what we get when turning off (fast!) mac-layer retransmission in a busy environment and using TCP over that very leaky pipe then.-paul
Signature · 2 lines
Olivier Marc? Alcatel-Lucent Bell Labs France
Hi,
I found that it can work but depends on device used as STA. As I used special feature like noack on AP side only, I did not think that STA device would be so important in the setup. Then changing the STA makes it working.
Not investigated yet why it did not work, I'll let the list know why mater (looks that some strange Block Ack policy was sent back by the STA toward the AP).
Regards
Quoted 41 lines · Olivier Marce
Hi,
thanks Pradeep and Paul.I investigated on this.
But as this time, I'm unable to make a link working withno_ack, even if I fix the rate.The environment is crowded, but not so much. With ACK (iw <dev> set
noack_map0 to be sure), for a iperf 10 sec long test, I found only 43 retry packets over 19k TCP packets.As soon as I set noack (iw <dev> set
noack_map9), the iperf test does not work at all. I'm able to see only 2 packets coming from the iperf client over 15 seconds of capture.
The same when fixing the rate (iwconfig <dev> rate 11M), the same with 1M rate.
The capture done at the 2 ends (AP and STA) are consistent. This is the same with ping, it does not work (98% packet loss)Other observations :
- the ACK are well transmitted in the 2 directions
- same behaviour if RTS/CTS on or offDid someone make a link with
no_ackwork ? In which condition ?Regards
Quoted 12 lines · Paul Fuxjaeger
Quoted 2 lines · Pradeep Reddy
I think, fixing the data rates to make it behave better.
I think so too, maybe minstrel does something very unclever in context of
NO_ACKbeing set (like sticking to a very high MCS). Or this is simply what we get when turning off (fast!) mac-layer retransmission in a busy environment and using TCP over that very leaky pipe then.-paul
Signature · 2 lines
Olivier Marc? Alcatel-Lucent Bell Labs France