Re: altq for vlans?

From: Gilbert Tsang (gtsang_at_lnxw.com)
Date: 07/23/05

  • Next message: Julian Elischer: "Re: interface cleanup"
    Date: Fri, 22 Jul 2005 19:07:17 -0700
    To: Max Laier <max@love2party.net>, freebsd-net@freebsd.org
    
    

       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
    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"


  • Next message: Julian Elischer: "Re: interface cleanup"

    Relevant Pages

    • Re: altq unfortunately queuing vlan traffic.
      ... dummynet definitely does work on vlan devices. ... > I just recently configured altq to run on my vge0 interface. ... > on that interface. ... > in vge0's queue because it is the parent interface. ...
      (freebsd-net)
    • Re: altq unfortunately queuing vlan traffic.
      ... I'm using pf for nat on vge0, and would like to also like to use altq ... on that interface. ... that the problem is that altq is queuing packets destined for the vlan ... in vge0's queue because it is the parent interface. ...
      (freebsd-net)
    • Re: altq unfortunately queuing vlan traffic.
      ... machine is running FreeBSD 6-STABLE (6.2-RELEASE doesn't have altq ... altq on that interface (no queuing is needed on the vlan2 ... is queuing packets destined for the vlan in vge0's queue because it ... on vlan interfaces and queue on the physical interface. ...
      (freebsd-net)
    • altq unfortunately queuing vlan traffic.
      ... I just recently configured altq to run on my vge0 interface. ... I also can't put the internet connection on a vlan for two ... Or something to do with the driver itself ...
      (freebsd-net)