Understanding Traffic Prioritization

The access point automatically prioritizes all data traffic that it forwards. The access point uses the WMM indicator, the 802.1p priority tag, and DiffServ code point (DSCP) to prioritize traffic. The access point also supports the SpectraLink Voice Priority (SVP) traffic classification.

WMM voice frames are not subject to 802.11n frame aggregation. This allows for low latency of each voice frame in a WMM voice traffic stream. Depending on the traffic on the network, this could give the appearance that aggregated WMM traffic—such as video—is being given higher priority than voice because the aggregated throughput of video traffic could be higher than the voice traffic. However, each unaggregated voice data frame is actually being assigned to a higher priority WMM queue.

The following sections define the rules for prioritizing frames.

Frames Received on Wireless Medium

For packets received on the wireless medium the access point checks whether the frame contains WMM markings in the header. If the markings are present, the access point maps the WMM user priority (802.11e) to 802.1p priority as shown in Table 5.

Table 5: 802.11e to 802.1p Priority Mapping

802.11e Priority

Access Category

802.1p Priority

1

Background

1

2

Background

2

0

Best Effort

0

3

Best Effort

3

4

Video

4

5

Video

5

6

Video

6

7

Video

7

Note that 802.1p priority 0 is given higher priority by the network than 802.1p priority 1 and 2.

If the incoming frame does not contain WMM markings, the access point checks whether the frame contains SpectraLink Voice Priority (SVP) protocol packets. Only IPv4 frames are checked for the SVP protocol packets. Any frame using the SVP protocol is assigned 802.1p priority 6.

If the frame does not contain SVP protocol packets, the access point examines the DSCP field. Only IPv4 frames are classified using the DSCP field. Table 6 maps DSCP values to the assigned 802.1p priorities.

Table 6: DSCP to 802.1p Priority Mapping for Wireless Medium

DSCP Value

Code Point Designation

802.1p Priority

56

CS7

7

48

CS6

6

46

EF

6

40

CS5

5

38, 36, 34

AF4x

4

32

CS4

4

30, 28, 26

AF3x

4

24

CS3

3

22, 20,18

AF2x

3

16

CS2

2

14, 12, 10

AF1x

3

8

CS1

1

0

CS0

0

Frames that do not fall into any of the categories in Table 6 are assigned 802.1p priority 0.

The access point has only one queue on the Ethernet port for packets to be transmitted to the wired side. This is based on the assumption that the Ethernet medium can handle more traffic than the access point can receive from the wireless side. Thus, an 802.11n access point must be connected to a Gigabit Ethernet port.

If the access point transmits the frame back into the wireless medium, then it uses the priority to select the appropriate egress queue in the same way as for traffic received from the wired network. The access point supports eight queues per radio for the packets to be transmitted to the wireless side.

Frames Received on Wired Medium

The access point can receive tagged and untagged frames on the wired medium. The access point prioritizes ingress traffic on the Ethernet port based on the 802.1p tag and the DSCP value. The Ethernet port prioritization is always enabled, even when WMM is disabled.

The frames destined to wireless clients are not tagged. The priority is only used for internal processing. If the frame uses the SVP protocol, then the 802.1p priority is set to 6. For other IPv4 frames the priority is assigned as shown in Table 7.

Table 7: DSCP to 802.1p Priority Mapping for Wired Medium

DSCP Value

Code Point Designation

802.1p Priority

56

CS7

7

48

CS6

6

46

EF

6

40

CS5

5

38, 36, 34

AF4x

4

32

CS4

4

30, 28, 26

AF3x

4

24

CS3

3

22, 20,18

AF2x

3

16

CS2

2

14, 12, 10

AF1x

3

8

CS1

1

0

CS0

0

Untagged IPv4 frames use Table 7 to assign 802.1p priority. Untagged non-IPv4 frames are prefixed with a tag containing 802.1p priority equal to 0. Tagged frames that are not using the SVP protocol use the priority in the tag to direct the packet to the correct wireless egress queue.

The next step is to map the 802.1p priority to the appropriate egress queue. The mapping works differently depending on whether WMM is enabled on the access point. If WMM is not enabled, then non-SVP traffic is mapped to the same hardware egress queue. SVP traffic is mapped to a high priority hardware queue, which is configured using the following egress attributes:

When WMM is disabled, the transmitted 802.11 frames do not contain WMM markers.

When WMM is enabled, the SVP traffic is queued to the “voice” hardware queue. The other traffic is mapped to hardware queues based on the 802.1p priorities as shown in Table 8.

Table 8: 802.11p to 802.1e Priority Mapping

802.11p Priority

Access Category

802.1e Priority

1

Background

1

2

Background

2

0

Best effort

0

3

Best effort

3

4

Video

4

5

Video

5

6

Video

6

7

Video

7

When WMM is supported by both the client and the access point, the frames contain WMM markers. If only the access point supports WMM then the frame is sent using the appropriate queue, but does not contain the WMM markers.

DiffServ Marking Effects on Frame Priority

The access point supports DiffServ as part of its client QoS feature, which allows for a frame to be marked as part of a configurable policy attribute action. A marking action can alter the 802.1p priority or the IP DSCP/precedence field of a frame to any of the values defined in the preceding tables.

Whenever DiffServ marks the 802.1p field of a frame, it also sets the internal frame priority to the same value. Whenever DiffServ marks the IP DSCP or IP Precedence field of a frame, it sets the internal frame priority to the same value as indicated in the 802.1p column in Table 7, although it does not actually change the contents of the 802.1p field in the frame itself. Note that an IP Precedence marking is interpreted according to its compatibility selector (CSx) code point value for purposes of referencing the DSCP mapping table. The updated internal frame priority is then used in the usual manner to determine the WMM queue mapping for frames traveling in the wired-to-wireless direction, or for frames received from the wireless medium that are forwarded to another wireless station within the same Basic Service Set (BSS).

Related Topics