Date: Wed, 10 Feb 1999 10:34:14 +0700 From: "Vladimir N. Kovalev" <smith@scn.ru> To: Luigi Rizzo <luigi@labinfo.iet.unipi.it> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Dummynet pipes truble Message-ID: <36C0FE36.9A2116D8@scn.ru> References: <199902092017.VAA16071@labinfo.iet.unipi.it>
next in thread | previous in thread | raw e-mail | index | archive | help
Luigi Rizzo wrote: > Hi, Hi ! > > > try "ipfw pipe show" to be sure that your entries are parsed correctly. /root/fire > ipfw pipe show 00001: unlimited 7000 ms 100 sl. plr 0.001000 -- 0 pkts (0 B) 126 drops 00002: 32.000 Kbit/s 0 ms 70 sl. -- 0 pkts (0 B) 0 drops 00003: 96.000 Kbit/s 0 ms 75 sl. -- 33 pkts (32429 B) 240695 drops 00004: 48.000 Kbit/s 0 ms 75 sl. -- 0 pkts (0 B) 0 drops 00005: 80.000 Kbit/s 0 ms 75 sl. -- 0 pkts (0 B) 0 drops 00006: 80.000 Kbit/s 0 ms 100 sl. -- 1 pkts (106 B) 46 drops > > 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. The value of HZ in my kernel equal to 1000. And then I set bw to 1KB, I get bandwidth value equal to 8 Kbit/s, like this : /root/fire > ipfw pipe 6 config bw 1KB /root/fire > ipfw pipe show 00001: unlimited 7000 ms 100 sl. plr 0.001000 -- 0 pkts (0 B) 126 drops 00002: 32.000 Kbit/s 0 ms 70 sl. -- 0 pkts (0 B) 0 drops 00003: 96.000 Kbit/s 0 ms 75 sl. -- 36 pkts (19756 B) 240827 drops 00004: 48.000 Kbit/s 0 ms 75 sl. -- 0 pkts (0 B) 0 drops 00005: 80.000 Kbit/s 0 ms 75 sl. -- 0 pkts (0 B) 0 drops 00006: 8.000 Kbit/s 0 ms 100 sl. -- 1 pkts (44 B) 46 drops How can I get the bandwidth value less then 8 Kbit/s ? The command "ipfw pipe 6 config bw 250B" have no effect. > > > 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. Many thanks ! Best regards Vladimir Kovalev > 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 92.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?36C0FE36.9A2116D8>