All of lore.kernel.org
 help / color / mirror / Atom feed
* Fun with QoS in AP mode.
@ 2013-05-08  4:58 Ben Greear
  2013-05-08  5:06 ` Sujith Manoharan
  0 siblings, 1 reply; 10+ messages in thread
From: Ben Greear @ 2013-05-08  4:58 UTC (permalink / raw)
  To: linux-wireless

We were doing some testing with ToS/QoS in some VOIP streams today.

The mappings on the station machine work fine, but on the AP, the packets
always go to the BE queue.  Both systems are 3.9.0+ ath9k, recent hostapd,
supplicant, etc.

The VOIP call traffic is going station to station, so the AP is just turning
the packets around..

Any ideas where to go poking?

Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Fun with QoS in AP mode.
  2013-05-08  4:58 Fun with QoS in AP mode Ben Greear
@ 2013-05-08  5:06 ` Sujith Manoharan
  2013-05-08 15:15   ` Ben Greear
  0 siblings, 1 reply; 10+ messages in thread
From: Sujith Manoharan @ 2013-05-08  5:06 UTC (permalink / raw)
  To: Ben Greear; +Cc: linux-wireless

Ben Greear wrote:
> We were doing some testing with ToS/QoS in some VOIP streams today.
> 
> The mappings on the station machine work fine, but on the AP, the packets
> always go to the BE queue.  Both systems are 3.9.0+ ath9k, recent hostapd,
> supplicant, etc.

Is the AP running ath9k ?

Sujith

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Fun with QoS in AP mode.
  2013-05-08  5:06 ` Sujith Manoharan
@ 2013-05-08 15:15   ` Ben Greear
  2013-05-09  5:13     ` Sujith Manoharan
  0 siblings, 1 reply; 10+ messages in thread
From: Ben Greear @ 2013-05-08 15:15 UTC (permalink / raw)
  To: Sujith Manoharan; +Cc: linux-wireless

On 05/07/2013 10:06 PM, Sujith Manoharan wrote:
> Ben Greear wrote:
>> We were doing some testing with ToS/QoS in some VOIP streams today.
>>
>> The mappings on the station machine work fine, but on the AP, the packets
>> always go to the BE queue.  Both systems are 3.9.0+ ath9k, recent hostapd,
>> supplicant, etc.
>
> Is the AP running ath9k ?

Yes, both AP and Station machine are ath9k, 3.9.0+, etc....

Basically identicaly hardware and software loads..just one is acting as AP
and one as station(s) in this scenario.

Ben

>
> Sujith
>


-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Fun with QoS in AP mode.
  2013-05-08 15:15   ` Ben Greear
@ 2013-05-09  5:13     ` Sujith Manoharan
  2013-05-09 14:43       ` Ben Greear
  0 siblings, 1 reply; 10+ messages in thread
From: Sujith Manoharan @ 2013-05-09  5:13 UTC (permalink / raw)
  To: Ben Greear; +Cc: linux-wireless

Ben Greear wrote:
> Yes, both AP and Station machine are ath9k, 3.9.0+, etc....
> 
> Basically identicaly hardware and software loads..just one is acting as AP
> and one as station(s) in this scenario.

Works okay here.

STA1 <-> AP <-> STA2 (ath9k stations, ath9k AP running OpenWrt trunk).

Voice traffic from STA1 to STA2 and in the other direction are marked
as VO in the AP.

root@OpenWrt:/# cat /sys/kernel/debug/ieee80211/phy1/ath9k/xmit 
                            BE         BK        VI        VO

MPDUs Queued:              411          0         0   1780727
MPDUs Completed:           411          0         0   1780659
MPDUs XRetried:              0          0         0         2
Aggregates:             111093          0         0         0
AMPDUs Queued HW:        21843          0         0         0
AMPDUs Queued SW:      2297530          0         0         0
AMPDUs Completed:      2319373          0         0         0
AMPDUs Retried:          28995          0         0         0
AMPDUs XRetried:             0          0         0         0
TXERR Filtered:              0          0         0       217
FIFO Underrun:               0          0         0         0
TXOP Exceeded:               0          0         0         0
TXTIMER Expiry:              0          0         0         0
DESC CFG Error:              0          0         0         0
DATA Underrun:               0          0         0         0
DELIM Underrun:              0          0         0         0
TX-Pkts-All:           2319784          0         0   1780661
TX-Bytes-All:        455830482          0         02734843421
HW-put-tx-buf:          153471          0         0    263350
HW-tx-start:                 0          0         0         0
HW-tx-proc-desc:        153681          0         0   1780661
TX-Failed:                   0          0         0         0

Sujith

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Fun with QoS in AP mode.
  2013-05-09  5:13     ` Sujith Manoharan
@ 2013-05-09 14:43       ` Ben Greear
       [not found]         ` <CAJu560hVBcdJ67uNprj0TOY6rWNd-iT8f7QNaE64=ENz91yj6w@mail.gmail.com>
  0 siblings, 1 reply; 10+ messages in thread
From: Ben Greear @ 2013-05-09 14:43 UTC (permalink / raw)
  To: Sujith Manoharan; +Cc: linux-wireless

On 05/08/2013 10:13 PM, Sujith Manoharan wrote:
> Ben Greear wrote:
>> Yes, both AP and Station machine are ath9k, 3.9.0+, etc....
>>
>> Basically identicaly hardware and software loads..just one is acting as AP
>> and one as station(s) in this scenario.
>
> Works okay here.
>
> STA1 <-> AP <-> STA2 (ath9k stations, ath9k AP running OpenWrt trunk).

We're running Fedora 17..maybe we have to configure some more routing/QoS
logic to enable the feature on the AP side...

Thanks,
Ben


-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Fun with QoS in AP mode.
       [not found]         ` <CAJu560hVBcdJ67uNprj0TOY6rWNd-iT8f7QNaE64=ENz91yj6w@mail.gmail.com>
@ 2013-05-09 16:26           ` Ben Greear
  2013-05-09 16:32             ` Sujith Manoharan
  0 siblings, 1 reply; 10+ messages in thread
From: Ben Greear @ 2013-05-09 16:26 UTC (permalink / raw)
  To: Cyril Segretain; +Cc: Sujith Manoharan, linux-wireless

On 05/09/2013 08:42 AM, Cyril Segretain wrote:
> Hello,
> I have the same issue but it's with Video streaming, all the frames are in Best_Effort Access Category.
> I work with ath9k driver and hostapd for the AP.
> STA1 <- - - - > AP <--------> Server
> Same software and hardware for STA and AP, WMM enabled in hostapd, hardware support WMM, I don't know where is the problem...
> If you have any idea.

I suspect we need to set up rules with 'tc' and maybe iptables.

I'm not having any luck finding any examples out on the web, but
surely the info is somewhere w/out having to fully understand 'tc'.

Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Fun with QoS in AP mode.
  2013-05-09 16:26           ` Ben Greear
@ 2013-05-09 16:32             ` Sujith Manoharan
  2013-05-09 16:39               ` Ben Greear
  0 siblings, 1 reply; 10+ messages in thread
From: Sujith Manoharan @ 2013-05-09 16:32 UTC (permalink / raw)
  To: Ben Greear; +Cc: Cyril Segretain, linux-wireless

Ben Greear wrote:
> I suspect we need to set up rules with 'tc' and maybe iptables.
> 
> I'm not having any luck finding any examples out on the web, but
> surely the info is somewhere w/out having to fully understand 'tc'.

DSCP can be used...

Something like "iptables -t mangle -A OUTPUT -p tcp --dport 5005 -j DSCP --set-dscp-class "CS6""
(Change the class for other priorities).

Sujith

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Fun with QoS in AP mode.
  2013-05-09 16:32             ` Sujith Manoharan
@ 2013-05-09 16:39               ` Ben Greear
  2013-05-09 17:00                 ` Krishna Chaitanya
  0 siblings, 1 reply; 10+ messages in thread
From: Ben Greear @ 2013-05-09 16:39 UTC (permalink / raw)
  To: Sujith Manoharan; +Cc: Cyril Segretain, linux-wireless

On 05/09/2013 09:32 AM, Sujith Manoharan wrote:
> Ben Greear wrote:
>> I suspect we need to set up rules with 'tc' and maybe iptables.
>>
>> I'm not having any luck finding any examples out on the web, but
>> surely the info is somewhere w/out having to fully understand 'tc'.
>
> DSCP can be used...
>
> Something like "iptables -t mangle -A OUTPUT -p tcp --dport 5005 -j DSCP --set-dscp-class "CS6""
> (Change the class for other priorities).

In my case, I'd like to match on the ToS set in the IP headers.

Basically, just map ToS 192 to VO, for instance.

Thanks,
Ben

>
> Sujith
>


-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Fun with QoS in AP mode.
  2013-05-09 16:39               ` Ben Greear
@ 2013-05-09 17:00                 ` Krishna Chaitanya
  2013-05-09 18:50                   ` Ben Greear
  0 siblings, 1 reply; 10+ messages in thread
From: Krishna Chaitanya @ 2013-05-09 17:00 UTC (permalink / raw)
  To: Ben Greear; +Cc: Sujith Manoharan, Cyril Segretain, linux-wireless

On Thu, May 9, 2013 at 10:09 PM, Ben Greear <greearb@candelatech.com> wrote:
>
> On 05/09/2013 09:32 AM, Sujith Manoharan wrote:
>>
>> Ben Greear wrote:
>>>
>>> I suspect we need to set up rules with 'tc' and maybe iptables.
>>>
>>> I'm not having any luck finding any examples out on the web, but
>>> surely the info is somewhere w/out having to fully understand 'tc'.
>>
>>
>> DSCP can be used...
>>
>> Something like "iptables -t mangle -A OUTPUT -p tcp --dport 5005 -j DSCP --set-dscp-class "CS6""
>> (Change the class for other priorities).
>
>
> In my case, I'd like to match on the ToS set in the IP headers.
>
> Basically, just map ToS 192 to VO, for instance.

Talking about rules, Are you able to see the ToS marked in the IP header in
the sniffer and not in the 802.11 header? Then we can concentrate on
marking the packet (or) mapping in the driver?

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Fun with QoS in AP mode.
  2013-05-09 17:00                 ` Krishna Chaitanya
@ 2013-05-09 18:50                   ` Ben Greear
  0 siblings, 0 replies; 10+ messages in thread
From: Ben Greear @ 2013-05-09 18:50 UTC (permalink / raw)
  To: Krishna Chaitanya; +Cc: Sujith Manoharan, Cyril Segretain, linux-wireless

On 05/09/2013 10:00 AM, Krishna Chaitanya wrote:
> On Thu, May 9, 2013 at 10:09 PM, Ben Greear <greearb@candelatech.com> wrote:
>>
>> On 05/09/2013 09:32 AM, Sujith Manoharan wrote:
>>>
>>> Ben Greear wrote:
>>>>
>>>> I suspect we need to set up rules with 'tc' and maybe iptables.
>>>>
>>>> I'm not having any luck finding any examples out on the web, but
>>>> surely the info is somewhere w/out having to fully understand 'tc'.
>>>
>>>
>>> DSCP can be used...
>>>
>>> Something like "iptables -t mangle -A OUTPUT -p tcp --dport 5005 -j DSCP --set-dscp-class "CS6""
>>> (Change the class for other priorities).
>>
>>
>> In my case, I'd like to match on the ToS set in the IP headers.
>>
>> Basically, just map ToS 192 to VO, for instance.
>
> Talking about rules, Are you able to see the ToS marked in the IP header in
> the sniffer and not in the 802.11 header? Then we can concentrate on
> marking the packet (or) mapping in the driver?
>

Ahh, in my case, I introduced the bug in my code trying to fix a kernel
splat when using pktgen to drive packets against wifi interfaces.

When I remove that, then the AP uses queues as expected.  I'm going to
have to make the pktgen hack a bit better it seems.

With this in mind, other folks that want QoS working on their APs
probably just needs to somehow mangle the ToS on their packets
to get it automatically working.  Hopefully no 'tc' or similar commands
would be needed.

Thanks,
Ben


-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-05-09 18:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-08  4:58 Fun with QoS in AP mode Ben Greear
2013-05-08  5:06 ` Sujith Manoharan
2013-05-08 15:15   ` Ben Greear
2013-05-09  5:13     ` Sujith Manoharan
2013-05-09 14:43       ` Ben Greear
     [not found]         ` <CAJu560hVBcdJ67uNprj0TOY6rWNd-iT8f7QNaE64=ENz91yj6w@mail.gmail.com>
2013-05-09 16:26           ` Ben Greear
2013-05-09 16:32             ` Sujith Manoharan
2013-05-09 16:39               ` Ben Greear
2013-05-09 17:00                 ` Krishna Chaitanya
2013-05-09 18:50                   ` Ben Greear

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.