Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jul 2005 19:07:17 -0700
From:      Gilbert Tsang <gtsang@lnxw.com>
To:        Max Laier <max@love2party.net>, freebsd-net@freebsd.org
Subject:   Re: altq for vlans?
Message-ID:  <42E1A655.1080505@lynuxworks.com>
In-Reply-To: <200502140157.36085.max@love2party.net>
References:  <16911.51264.86063.604597@canoe.dclg.ca> <200502140157.36085.max@love2party.net>

next in thread | previous in thread | raw e-mail | index | archive | help

   I believe the solution is not patching ALTQ to the VLAN driver, but
   rather make ALTQ recognize rules that classify according to fields in
   Layer 2 header (fields such as VLANid and Priority, other than just
   src/dst addr/port and protocol in IP header). For example, build
   filter rules that specify priority tracking according to the 3-bit
   field in the VLAN tag as per 802.1p.
   For example in /etc/altq.conf:
   interface vx0 bandwidth 100M cbq
   class cbq vx0 root_class NULL pbandwidth 100
   class cbq vx0 vlan1_class root_class pbandwidth 80
       filter vx0 cs1_class vlan1_class vlanprio 6 # priority 6 takes
   more bandwidth
   class cbq vx0 vlan2_class root_class pbandwidth 15
       filter vx0 cs2_class vlan2_class vlanprio 4 # priority 4 takes
   less bandwidth
   The discussion (patch) back then is good for a FreeBSD configured as
   end-host, but not as a MAC bridge:
   [1]http://lists.freebsd.org/pipermail/freebsd-net/2005-January/006240.
   html
   Regards, Gilbert Tsang.
   Max Laier wrote:

On Sunday 13 February 2005 22:36, David Gilbert wrote:


Has anyone considered patching the vlan driver to support altq?  I
gather that since tun works, so should vlan.


This should be a FAQ.  Anyway,  here is the story:

While you can do ALTQ queueing on vlan interfaces the usefulness of this is
very little.  If the physical interface supports ALTQ it is *always* better
to do the queueing there.  If the physical interface does not support ALTQ it
must be patched.



   [snipped]

References

   1. http://lists.freebsd.org/pipermail/freebsd-net/2005-January/006240.html



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42E1A655.1080505>