Date: Wed, 6 Apr 2005 14:15:05 +0400 From: Sergey Lapin <slapinid@gmail.com> To: freebsd-questions@freebsd.org Subject: Re: dummynet problems Message-ID: <48239d3905040603151d42553d@mail.gmail.com> In-Reply-To: <44u0ml8dd5.fsf@be-well.ilk.org> References: <48239d3905040404285e13067b@mail.gmail.com> <44u0ml8dd5.fsf@be-well.ilk.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> I don't use dummynet myself, but surely it would be easier to help you > if you described what the actual problem is? > Well, actual problem description: FreeBSD-5.3 router; rl0 - internal interface rl1 - external. rl1 is connected to ADSL modem from provider; The link bandwidth is 64kbps. ${fwcmd} -f flush ${fwcmd} -f pipe flush ${fwcmd} pipe 1 config bw 64Kbit/s queue 10KBytes ${fwcmd} queue 4 config pipe 1 weight 1 mask dst-ip 0xffffffff buckets 10 queue 9 gred 0.002/7/21/0.1 ${fwcmd} add 780 queue 4 log logamount 10 tcp from any to 192.168.0.30/32 out via rl0 ${fwcmd} queue 10 config pipe 1 weight 100 mask dst-ip 0xffffffff queue 9 gred 0.002/7/21/0.1 ${fwcmd} add 790 queue 10 log logamount 10 tcp from any to 192.168.0.99/32 out via rl0 ${fwcmd} queue 25 config pipe 1 weight 30 mask dst-ip 0xffffffff buckets 15 queue 10 gred 0.002/7/21/0.1 ${fwcmd} queue 20 config pipe 1 weight 100 mask dst-ip 0xffffffff buckets 100 queue 9 gred 0.002/7/21/0.1 ${fwcmd} queue 30 config pipe 1 weight 20 mask dst-ip 0xffffffff buckets 100 queue 9 gred 0.002/7/21/0.1 ${fwcmd} queue 40 config pipe 1 weight 10 mask dst-ip 0xffffffff buckets 100 queue 9 gred 0.002/7/21/0.1 ${fwcmd} add 891 queue 20 log logamount 10 tcp from any 5190 to 192.168.0.1/25 out via rl0 ${fwcmd} add 892 queue 25 log logamount 10 tcp from any to 192.168.0.6 out via rl0 ${fwcmd} add 893 queue 25 log logamount 10 tcp from any to 192.168.0.29 out via rl0 ${fwcmd} add 894 queue 25 log logamount 10 tcp from any to 192.168.0.62 out via rl0 ${fwcmd} add 895 queue 25 log logamount 10 tcp from any to 192.168.0.27 out via rl0 ${fwcmd} add 898 queue 30 log logamount 10 tcp from any 25,110,43,53,119,123,143,953 to 192.168.0.1/25{1-3,5,7-26,28,31-61,63-98,100} out via rl0 ${fwcmd} add 897 queue 40 log logamount 10 tcp from any 80,443,3128,21,20 to 192.168.0.1/25{1-3,5,7-26,28,31-61,63-98,100} out via rl0 ipfw pipe show: 00001: 99.000 Kbit/s 0 ms 10 KB 0 queues (1 buckets) droptail mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000 q00004: weight 1 pipe 1 9 sl. 1 queues (10 buckets) GRED w_q 0.001999 min_th 7 max_th 21 max_p 0.099991 mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000 BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp 2 ip 0.0.0.0/0 192.168.0.30/0 2198 1821083 0 0 43 q00010: weight 100 pipe 1 9 sl. 1 queues (64 buckets) GRED w_q 0.001999 min_th 7 max_th 21 max_p 0.099991 mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000 BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp 51 ip 0.0.0.0/0 192.168.0.99/0 9 813 0 0 0 q00020: weight 100 pipe 1 9 sl. 13 queues (100 buckets) GRED w_q 0.001999 min_th 7 max_th 21 max_p 0.099991 mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000 BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp 2 ip 0.0.0.0/0 192.168.0.30/0 42 6662 0 0 0 5 ip 0.0.0.0/0 192.168.0.1/0 36 6054 0 0 0 13 ip 0.0.0.0/0 192.168.0.9/0 37 5021 0 0 0 15 ip 0.0.0.0/0 192.168.0.11/0 61 16333 0 0 0 25 ip 0.0.0.0/0 192.168.0.53/0 23 3463 0 0 0 29 ip 0.0.0.0/0 192.168.0.85/0 201 23807 0 0 0 33 ip 0.0.0.0/0 192.168.0.61/0 65 6704 0 0 0 34 ip 0.0.0.0/0 192.168.0.62/0 166 39971 0 0 0 38 ip 0.0.0.0/0 192.168.0.94/0 36 7726 0 0 0 39 ip 0.0.0.0/0 192.168.0.35/0 151 62681 0 0 0 47 ip 0.0.0.0/0 192.168.0.71/0 207 17475 0 0 0 88 ip 0.0.0.0/0 192.168.0.16/0 25 4751 0 0 0 98 ip 0.0.0.0/0 192.168.0.26/0 44 8235 0 0 0 q00025: weight 30 pipe 1 10 sl. 2 queues (15 buckets) GRED w_q 0.001999 min_th 7 max_th 21 max_p 0.099991 mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000 BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp 5 ip 0.0.0.0/0 192.168.0.6/0 1093 518028 0 0 51 14 ip 0.0.0.0/0 192.168.0.62/0 3604 2254945 4 3098 50 q00030: weight 20 pipe 1 9 sl. 8 queues (100 buckets) GRED w_q 0.001999 min_th 7 max_th 21 max_p 0.099991 mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000 BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp 15 ip 0.0.0.0/0 192.168.0.11/0 20 1081 0 0 0 33 ip 0.0.0.0/0 192.168.0.61/0 142 24203 0 0 0 38 ip 0.0.0.0/0 192.168.0.94/0 21 1008 0 0 0 39 ip 0.0.0.0/0 192.168.0.35/0 21 3090 0 0 0 53 ip 0.0.0.0/0 192.168.0.77/0 848 38982 0 0 0 90 ip 0.0.0.0/0 192.168.0.18/0 233 149963 0 0 0 97 ip 0.0.0.0/0 192.168.0.25/0 262 40407 0 0 0 98 ip 0.0.0.0/0 192.168.0.26/0 15 4205 0 0 0 q00040: weight 10 pipe 1 9 sl. 14 queues (100 buckets) GRED w_q 0.001999 min_th 7 max_th 21 max_p 0.099991 mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000 BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp 15 ip 0.0.0.0/0 192.168.0.11/0 1395 1158072 0 0 17 18 ip 0.0.0.0/0 192.168.0.14/0 453 53758 0 0 9 26 ip 0.0.0.0/0 192.168.0.82/0 106 127901 0 0 0 29 ip 0.0.0.0/0 192.168.0.85/0 107 82636 0 0 0 33 ip 0.0.0.0/0 192.168.0.61/0 561 577903 0 0 0 35 ip 0.0.0.0/0 192.168.0.91/0 567 635678 0 0 0 38 ip 0.0.0.0/0 192.168.0.94/0 68 56742 0 0 1 39 ip 0.0.0.0/0 192.168.0.35/0 365 314405 0 0 28 43 ip 0.0.0.0/0 192.168.0.39/0 4951 2412776 0 0 122 45 ip 0.0.0.0/0 192.168.0.69/0 920 128301 0 0 0 47 ip 0.0.0.0/0 192.168.0.71/0 1034 334595 0 0 5 53 ip 0.0.0.0/0 192.168.0.77/0 352 288702 0 0 0 90 ip 0.0.0.0/0 192.168.0.18/0 5951 4674530 0 0 317 98 ip 0.0.0.0/0 192.168.0.26/0 766 676891 0 0 0 And with these settings flows that have higher weights get lower bandwidth sometimes... And become very angry... Could anyone please get simplest configuration appropriate for this environment? Thanks a lot!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48239d3905040603151d42553d>