linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* WMM classification guideline for applications?
@ 2009-12-04 14:02 Kalle Valo
  2009-12-04 15:14 ` David Acker
  2009-12-06 10:57 ` Johannes Berg
  0 siblings, 2 replies; 15+ messages in thread
From: Kalle Valo @ 2009-12-04 14:02 UTC (permalink / raw)
  To: linux-wireless; +Cc: patrik.flykt

Hello,

me and Patrik have been pondering what's the proper way for user space
applications to do packet classification to get the benefits from WMM.
VoIP application is a good example here.

For the time being we have identified three different methods:

1. SO_PRIORITY with values 0-7 (we used this in nokia n810)
2. SO_PRIORITY with values 256-263 (used by mac80211)
3. IPv4 DSCP field with values 0-7 (used by mac80211)

Method 1 is easy, applications need to just use setsockopt() and be
done with it. I don't know how widely supported values 0-7 are, but at
least they make sense. The problem is that priority is used only in
the first link, rest of the route is not able to benefit from the
classification.

Method 2 (priorities 256-263) doesn't sound very portable. I doubt if
any other stack or driver (even non-wifi ones) use these values.
Otherwise this is similar with Method 1.

Method 3 (IPv4 DSCP field) feels most portable to us, at least most,
if not all, wifi drivers should use it. And, in theory, the receiver
should also benefit from the classification, unless ISPs modify it of
course. But the standardisation for IPv4 QoS bits is a mess and I
don't really understand where the use of DSCP bits (as used in WMM
implementations) is specified. Also I was told that root privileges
are needed to set this and that's somewhat cumbersome from application
developer's point of view.

So what's the proper long term solution for this? All ideas are more
than welcome.

-- 
Kalle Valo

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

end of thread, other threads:[~2009-12-07 15:50 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-04 14:02 WMM classification guideline for applications? Kalle Valo
2009-12-04 15:14 ` David Acker
2009-12-04 15:24   ` Kalle Valo
2009-12-04 16:08     ` David Acker
2009-12-04 16:56       ` Greg Oliver
2009-12-04 19:15         ` Dan Williams
2009-12-04 20:01           ` David Acker
2009-12-07 15:11             ` Kalle Valo
2009-12-04 21:01           ` Kalle Valo
2009-12-06 10:46       ` Johannes Berg
2009-12-06 18:10         ` David Acker
2009-12-06 18:32           ` Johannes Berg
2009-12-07  1:34             ` David Acker
2009-12-06 10:57 ` Johannes Berg
2009-12-07 15:50   ` Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).