Date: Tue, 9 Feb 1999 21:17:33 +0100 (MET) From: Luigi Rizzo <luigi@labinfo.iet.unipi.it> To: smith@scn.ru Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Dummynet pipes truble Message-ID: <199902092017.VAA16071@labinfo.iet.unipi.it> In-Reply-To: <36BFBA8B.37A3EFF3@scn.ru> from "Vladimir N. Kovalev" at Feb 9, 99 11:32:57 am
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, try "ipfw pipe show" to be sure that your entries are parsed correctly. The bw values are rounded (or truncated ?) to some near integer depending on the value of HZ and it could be that setting too low a bandwidth results in 0 which means unlimited. Furthermore your pipe #1 is rather meaningless -- there is no queueing in a pipe without bw limitation. If you want to limit traffic you better add a bw limitation as well. cheers luigi > Hello ! > I'm use dummynet on FreeBSD 2.2.7-19981103-SNAP with the such configuration of pipes: > # Set pipes for icmp > ipfw pipe 1 config delay 7000ms queue 10 plr 0.001 > # Set pipes for admin > ipfw pipe 2 config bw 4000B queue 70 > # Set pipes for LAN channel > ipfw pipe 3 config bw 10KB queue 75 > # Set pipes for server ( mail, ftp, squid etc ) channel > ipfw pipe 4 config bw 6KB queue 75 > # Set pipes for class rooms channel > ipfw pipe 5 config bw 100B queue 75 > # Set pipes for test purposes only > ipfw pipe 6 config bw 1B queue 50 > > And rc.firewall have appropiate rules: > 01710 1044 533229 pipe 6 tcp from any to 192.168.0.1 > ... > 02210 12525 15043642 pipe 2 tcp from any to 192.168.2.2 in recv 192.168.1.1 established > 02310 0 0 pipe 5 tcp from any to 192.168.3.1 in recv 192.168.1.1 established > 02410 38345 16987766 pipe 4 tcp from any to 192.168.1.1 in recv 192.168.1.1 established > 02510 18798 5420744 pipe 4 tcp from any to 192.168.2.1 in recv 192.168.1.1 established > 02610 883364 658924977 pipe 3 tcp from any to any in recv 192.168.1.1 established > ... > 04410 18384 1348136 pipe 1 icmp from any to any in recv cx0 > > Pipes number 1, 3 and 4 works fine, but pipes number 2, 5 and 6 does not limit a bandwidth. > However, then I add delay to this pipes I can feel it. > > Why ? > > Thanks in advance. > > Best regards > Vladimir N. Kovalev > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902092017.VAA16071>