Candela Technologies Logo
Network Testing and Emulation Solutions

Using WiFi Access Classes (QoS/WMM/802.11e)

In order to test the different wifi access classes in LANforge, reference the following webpage: https://wireless.wiki.kernel.org/en/developers/documentation/mac80211/queues

The two tables to use are the UP/AC/Priority and TOS/UP tables.
AC - Access Class
UP - User Priority

UP 1 and 2 correspond to BK (Background) Lowest Priority UP 0 and 3 correspond to BE (Best Effort) UP 4 and 5 correspond to VI (Video) UP 6 and 7 correspond to VO (Voice) Highest Priority

IPv4 TOS   0 -  31 corresponds with UP 0
IPv4 TOS  32 -  63 corresponds with UP 1
IPv4 TOS  64 -  95 corresponds with UP 2
IPv4 TOS  96 - 127 corresponds with UP 3
IPv4 TOS 128 - 159 corresponds with UP 4
IPv4 TOS 160 - 191 corresponds with UP 5
IPv4 TOS 192 - 223 corresponds with UP 6
IPv4 TOS 224 - 255 corresponds with UP 7

Lowest two bits of IPv4 TOS are reserved for ECN.

On the LANforge system, check which AC queues are being filled with the following command:
cat /debug/ieee80211/wiphy0/ath9k/xmit

LANforge Layer-3 connections IP TOS fields were set to the following values to test that the different AC queues were being filled.

For UP 7, VO traffic, set IP TOS to decimal 224 or hex 0xe0 on A and B.
For UP 6, VO traffic, set IP TOS to decimal 192 or hex 0xc0 on A and B.
For UP 5, VI traffic, set IP TOS to decimal 160 or hex 0xa0 on A and B.
For UP 4, VI traffic, set IP TOS to decimal 128 or hex 0x80 on A and B.
For UP 3, BE traffic, set IP TOS to decimal  96 or hex 0x60 on A and B.
For UP 2, BK traffic, set IP TOS to decimal  64 or hex 0x40 on A and B.
For UP 1, BK traffic, set IP TOS to decimal  32 or hex 0x20 on A and B.
For UP 0, BE traffic, set IP TOS to decimal   0 or hex 0x0  on A and B.

Candela  Technologies, 2417 Main Street, Suite 201, Ferndale, WA 98248, USA
www.candelatech.com | sales@candelatech.com | +1.360.380.1618
Facebook | LinkedIn | Blog