pipe 10002 config bw 205Mbit/s type wf2q+ pipe 10003 config bw 40Mbit/s type wf2q+ pipe 10004 config bw 4Gbit/s type wf2q+ #======================================================================================# define dummynet queues#======================================================================================queue 10002 config pipe 10002 mask dst-ip 0xffffffff weight 100queue 10003 config pipe 10002 mask dst-ip 0xffffffff weight 1queue 10004 config pipe 10002 mask dst-ip 0xffffffff weight 15queue 10005 config pipe 10003 mask src-ip 0xffffffff weight 100queue 10006 config pipe 10003 mask src-ip 0xffffffff weight 3queue 10007 config pipe 10004 mask dst-ip 0xffffffff weight 100#======================================================================================# traffic shaping section, authorized traffic#======================================================================================add 60000 return via anyadd 60003 pipe 10004 ip from 185.65.134.82 to any src-port any dst-port any via pppoe1 // e782d702-cd1d-4548-a892-d87116f5a213 wan: Unboundadd 60005 pipe 10004 ip from any to 185.65.134.82 src-port any dst-port any via pppoe1 // 289ad008-0777-4e26-97f6-1a5f1f586c42 wan: Unboundadd 60008 queue 10006 ip from 192.168.66.0/24 to any src-port any dst-port any out via pppoe1 // 39e87e76-5f89-4341-8943-258e167c802b wan: DSLUpLowadd 60009 queue 10004 ip from any to 192.168.68.0/24 src-port any dst-port any in via pppoe1 // af4ed561-013f-4dea-8080-5e584b21cad6 wan: DSLDownMediumadd 60010 queue 10003 ip from any to 192.168.67.0/24 src-port any dst-port any in via pppoe1 // b1dc32bc-f4fd-4c97-9cbf-73bac71e4135 wan: DSLDownLowadd 60011 queue 10002 ip from any to any src-port any dst-port any in via pppoe1 // bbf06b0b-3667-41c6-b0d4-4463d6ac587f wan: DSLDownHighadd 60012 queue 10005 ip from any to any src-port any dst-port any out via pppoe1 // edd3e781-fa78-4e6f-8651-57cca5765a58 wan: DSLUpHighadd 60015 queue 10003 ip from any to 192.168.67.0/24 src-port any dst-port any in via wg2 // da64043b-fb74-4054-b89c-2920352f3f94 opt14: DSLDownLowadd 60016 queue 10006 ip from 192.168.67.0/24 to any src-port any dst-port any in via wg2 // 520f8d40-36c1-4d70-8ccf-0b627d53602a opt14: DSLUpLowadd 60017 queue 10006 ip from 192.168.67.0/24 to any src-port any dst-port any recv vlan012 xmit wg2 // 12dbadab-02ff-4bff-83f0-8da1d3c97a37 opt13 -> opt14: DSLUpLowadd 60018 queue 10003 ip from any to 192.168.67.0/24 src-port any dst-port any xmit vlan012 recv wg2 // 7f9ad30d-0260-449f-9acb-508b0134a594 opt14 -> opt13: DSLDownLow
pipe 10002 config bw 205Mbit/s type wf2q+queue 10002 config pipe 10002 mask dst-ip 0xffffffff weight 100queue 10003 config pipe 10002 mask dst-ip 0xffffffff weight 1add 60010 queue 10003 ip from any to 192.168.67.0/24 src-port any dst-port any in via pppoe1 // b1dc32bc-f4fd-4c97-9cbf-73bac71e4135 wan: DSLDownLowadd 60011 queue 10002 ip from any to any src-port any dst-port any in via pppoe1 // bbf06b0b-3667-41c6-b0d4-4463d6ac587f wan: DSLDownHigh
ipfw pipe showipfw queue showipfw sched show
strangely it seems that the weight value is simply ignored. Weight 100/Weight 1 share bandwith equally.
When you are saying 100/1 are shared equaly.You mean queue 10002 & 10003 on Pipe 10002?
root@OPNsense:~ # ipfw pipe show10004: 4.000 Gbit/s 0 ms burst 0 q141076 50 sl. 0 flows (1 buckets) sched 75540 weight 0 lmax 0 pri 0 droptail sched 75540 type FIFO flags 0x0 0 buckets 1 activeBKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp 0 ip 0.0.0.0/0 0.0.0.0/0 241 172124 0 0 010002: 205.000 Mbit/s 0 ms burst 0 q141074 50 sl. 0 flows (1 buckets) sched 75538 weight 0 lmax 0 pri 0 droptail sched 75538 type FIFO flags 0x0 0 buckets 0 active10003: 40.000 Mbit/s 0 ms burst 0 q141075 50 sl. 0 flows (1 buckets) sched 75539 weight 0 lmax 0 pri 0 droptail sched 75539 type FIFO flags 0x0 0 buckets 0 active
root@OPNsense:~ # ipfw queue showq10006 50 sl. 2 flows (256 buckets) sched 10003 weight 3 lmax 0 pri 0 droptail mask: 0x00 0xffffffff/0x0000 -> 0x00000000/0x0000BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp148 ip 192.168.67.30/0 0.0.0.0/0 16764 16642285 0 0 0162 ip 192.168.67.5/0 0.0.0.0/0 2 138 0 0 0q10007 50 sl. 0 flows (256 buckets) sched 10004 weight 100 lmax 0 pri 0 droptail mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000q10004 50 sl. 0 flows (256 buckets) sched 10002 weight 15 lmax 0 pri 0 droptail mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000q10005 50 sl. 13 flows (256 buckets) sched 10003 weight 100 lmax 0 pri 0 droptail mask: 0x00 0xffffffff/0x0000 -> 0x00000000/0x0000 0 ip 0 ::/0 ::/0 4484 579580 0 0 0 26 ip 84.138.167.72/0 0.0.0.0/0 1034 72419 0 0 0 98 ip 192.168.106.101/0 0.0.0.0/0 5 244 0 0 0 98 ip 192.168.108.101/0 0.0.0.0/0 6 430 0 0 0100 ip 192.168.85.102/0 0.0.0.0/0 9 632 0 0 0102 ip 192.168.106.103/0 0.0.0.0/0 15 1795 0 0 0120 ip 192.168.106.104/0 0.0.0.0/0 9 2237 0 0 0126 ip 192.168.106.107/0 0.0.0.0/0 2425 185719 0 0 0140 ip 192.168.85.146/0 0.0.0.0/0 154 72651 0 0 0162 ip 192.168.51.5/0 0.0.0.0/0 14 3380 0 0 0162 ip 192.168.67.5/0 0.0.0.0/0 235 17252 0 0 0174 ip 192.168.51.3/0 0.0.0.0/0 6281 693157 0 0 0176 ip 192.168.85.140/0 0.0.0.0/0 6 313 0 0 0q10002 50 sl. 12 flows (256 buckets) sched 10002 weight 100 lmax 0 pri 0 droptail mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000 0 ip 0 ::/0 ::/0 3876 705802 0 0 0 53 ip 0.0.0.0/0 192.168.106.101/0 1 128 0 0 0 53 ip 0.0.0.0/0 192.168.108.101/0 3 242 0 0 0 54 ip 0.0.0.0/0 192.168.85.102/0 9 816 0 0 0 55 ip 0.0.0.0/0 192.168.106.103/0 18 8423 0 0 0 56 ip 0.0.0.0/0 192.168.106.104/0 11 2640 0 0 0 59 ip 0.0.0.0/0 192.168.106.107/0 25839 38411395 0 0 0 83 ip 0.0.0.0/0 192.168.51.3/0 15585 1836052 0 0 0 85 ip 0.0.0.0/0 192.168.51.5/0 20 1912 0 0 0 90 ip 0.0.0.0/0 192.168.15.10/0 1 76 0 0 0 93 ip 0.0.0.0/0 84.138.167.72/0 617 158614 0 0 0194 ip 0.0.0.0/0 192.168.85.146/0 36 16302 0 0 0q10003 50 sl. 2 flows (256 buckets) sched 10002 weight 1 lmax 0 pri 0 droptail mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000 78 ip 0.0.0.0/0 192.168.67.30/0 31698 4017290 0 0 0 85 ip 0.0.0.0/0 192.168.67.5/0 741 935882 0 0 0
root@OPNsense:~ # ipfw sched show10004: 4.000 Gbit/s 0 ms burst 0 sched 10004 type WF2Q+ flags 0x0 0 buckets 0 active Children flowsets: 10007 10002: 205.000 Mbit/s 0 ms burst 0 sched 10002 type WF2Q+ flags 0x0 0 buckets 1 active Children flowsets: 10004 10003 10002 BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp 0 ip 0.0.0.0/0 0.0.0.0/0 936164466 649174740067 0 0 1193548510003: 40.000 Mbit/s 0 ms burst 0 sched 10003 type WF2Q+ flags 0x0 0 buckets 1 active Children flowsets: 10006 10005 0 ip 0.0.0.0/0 0.0.0.0/0 492630418 291119667996 0 0 2349799
ipfw show