Re: altq for vlans?

From: David Gilbert (dgilbert_at_dclg.ca)
Date: 02/14/05

  • Next message: Ruslan Ermilov: "Re: xl(4) & polling"
    Date: Sun, 13 Feb 2005 23:47:25 -0500
    To: Max Laier <max@love2party.net>
    
    

    >>>>> "Max" == Max Laier <max@love2party.net> writes:

    Max> 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.

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

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

    [...]

    Max> If that does not help you, please try to explain what exactly you
    Max> try to achieve and why it is not possible with this method.
    Max> Thanks.

    Well... the issue is several fold. Firstly, the router in question is
    talking in trunk mode to a switch which in turn hands out ports to end
    user boxes. So the "real" interface could be queue limited, but in
    general, it can be assumed that the GigE interface is faster than the
    sum of the traffic coming into it.

    Now... you seem to be saying that if the queue is attached to (in this
    case) em0, and vlan10 goes through em0, that traffic will be subject
    to the queue ... even though it's been tagged ... and from the
    perspective of em0 is no longer IP traffic.

    This is certainly not obvious, if it is the case.

    But from a vlan-as-virtual-circuit-replacement standpoint, it makes
    sense to note a vlan as a queue entity.

    Anyways, the _real_ problem is that traditionally, I'd used firewall
    rules for accounting as well as security. To that end, labels are
    very cool. However, they have one rather large defect:

    If you're dealing with keep state rules, there seems to be no obvious
    way to account for incoming vs. outgoing traffic. The label only
    reports total traffic for the state matching the rule... which is both
    in and out.

    So... I was only messing with queues right now in hopes that the queue
    would give better reporting. Maybe not.

    Dave.

    -- 
    ============================================================================
    |David Gilbert, Independent Contractor.       | Two things can only be     |
    |Mail:       dave@daveg.ca                    |  equal if and only if they |
    |http://daveg.ca                              |   are precisely opposite.  |
    =========================================================GLO================
    _______________________________________________
    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: Ruslan Ermilov: "Re: xl(4) & polling"

    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 for vlans?
      ... > gather that since tun works, so should vlan. ... If the physical interface supports ALTQ it is *always* better ... If the physical interface does not support ALTQ it ... queue default bandwidth 75% cbq ...
      (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)
    • Re: altq on vlan
      ... physical interface, ... queue vlan0_foo ... But the patch simplify the cases where you need one queue per vlan. ...
      (freebsd-net)