Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Nov 2014 21:30:49 -0700
From:      Brett Glass <brett@lariat.net>
To:        questions@freebsd.org
Subject:   Bandwidth control using Dummynet: 2A + B <= limit
Message-ID:  <201411110431.VAA05559@mail.lariat.net>

Next in thread | Raw E-Mail | Index | Archive | Help
Everyone:

I have an interesting problem. I've been asked to build a bandwidth 
limiting ruleset that fairly limits the bandwidth a user consumes 
on an asymmetrical half duplex link. The limiting should be such 
that packets going upstream are scored as consuming twice as many 
resources as those going downstream, so that 2x(upstream bandwidth) 
+ 1x(downstream bandwidth) <= limit. It's easy to make ipfw 
distinguish between packets flowing in the two directions and feed 
them into the same bandwidth-limiting pipe, but I can't figure out 
how to make the upstream packets count twice as much toward the 
limit as the downstream ones without patching Dummynet. Am I 
missing something? Is there a way to do this with FreeBSD's IPFW as 
it exists now?

--Brett Glass




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?201411110431.VAA05559>