Поделиться через


WiFi QoS Support in Windows Vista: WMM Part 3

In my previous posts about WMM support in Vista, I described how Windows network applications can indicate which priority level they desire for traffic sent, and how Native WiFi (NWF) drivers can identify this traffic to provide appropriate prioritization over the shared wireless segment. It’s important; however, to realize that the NWF driver in Windows can only prioritize this traffic if the wireless access point (AP) supports WMM. I thought it would be worthwhile to discuss how to determine if an AP supports this capability. Note that your network application does not have to worry about this; the driver does it for you. But, if you were inclined to figure it out yourself, I’ll tell you how to go about it. As always, some background is necessary first:

 

Element ID 221 in the 802.11 beacon is vendor specific, and therefore can be used for additions and improvements to the protocol. The first three octets of this field represents the Organizationally Unique Identifier (OUI). IEEE assigns a unique OUI for each vendor (Microsoft happens to be 00:50:f2). Following the OUI is the vendor-specific data. You will see security improvements, such as WPA, making use of this element, as well as WMM. Each distinct improvement (such as WPA or WMM) has a specific OUI type, and in Windows, WMM happens to have OUI Type of 2. The following table highlights this for Native WiFi in Vista:

 

Field

Value

Element ID

221

Length

7

OUI

00 : 50 : F2 (hex)

OUI Type

2

OUI Subtype

0

Version

1

 

So, based on this information, how do you put it to practical use? For starters, you could use an 802.11 protocol sniffer (such as AiroPeek) to capture a beacon from the AP. This capture will allow you to see each Element, so you simply look for Element ID 221. Once you’ve found this Element, you can look for the OUI:OUI Type in the frame, which, from the above table, happens to be 00:50:F2:02 for WMM.

If you don’t have an 802.11 protocol sniffer at your disposal, you could use the WlanGetNetworkBssList() API available via NWF. The WLAN_BSS_LIST structure on output will contain an array of WLAN_BSS_ENTRY structures. After a little parsing on your side, you’ll turn up the OUI:OUI Type combination which identifies the AP as supporting WMM.

 

Next, I’ll write about WMM behavior, i.e. how you can expect your prioritized traffic to be handled on the wireless network. As always, let me know if you have any questions or comments.

 

- Gabe Frost (gfrost)

Comments

  • Anonymous
    July 22, 2006
    After writing this post, I realized (with a helping nudge from Mathias who also posts often on this blog) that I hadn't defined Native WiFi (NWF). NWF is a driver in Windows Vista that, as the name suggests, provides native WiFi capabilities for wireless miniport drivers. This driver takes over much of the complex 802.11 packet creation, etc. so that the miniport driver doesn't have to do all the heavy lifting. This driver integrates with the wireless config service, and a complete API is exposed to get access to all the gritty details. I mentioned a few of these APIs in the post. An 802.11 miniport driver in Vista, which talks to Native WiFi on it's upper boundary, is referred to as a NWF driver. Check out the following MSDN site for more details: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/nativewifi/nwifi/about_native_wifi.asp.

    - Gabe