Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Nov 2014 21:30:49 -0700
From:      Brett Glass <>
Subject:   Bandwidth control using Dummynet: 2A + B <= limit
Message-ID:  <>

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

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: <>