Date: Fri, 29 Feb 2008 14:28:04 -0800 (PST) From: Juri Mianovich <juri_mian@yahoo.com> To: freebsd-net@freebsd.org Subject: simple, adaptive bandwidth throttling with ipfw/dummynet ? Message-ID: <754299.92112.qm@web45601.mail.sp1.yahoo.com>
next in thread | raw e-mail | index | archive | help
I do simple limiting of bandwidth with dummynet. Very simple, in fact - one inbound rule and one outbound rule. Easy. Sometimes people hit the limit I have in place, but if they only hit it on a short transfer, I don't care - they can live with being throttled for 30 mins. BUT, sometimes people have a big massive transfer that maxes out the limit for a long time. Not only do they get throttled too hard, but then other users are throttled as well - very hard. So, I am wondering if anybody knows of a simple way to do something like: "after 30 minutes of maxed dummynet rule, add X mbps to the rule for every active TCP session, with a max ceiling of Y mbps" and: "after 30 minutes of less than max usage, subtract X mbps from the rule every Y minutes, with a minimum floor of Z" Make sense ? Is there an easy way to do this ? If I wanted to do this myself with a shell script, is there any way to test a particular dummynet rule for its current "fill rate" - OR - a simple way to test if a particular dummynet rule is currently in enforcement ? Thanks. ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?754299.92112.qm>