Quality of Service in TCP networks using dummynet traffic shaping

Test conditions

Test #1

IPFW2 rules

enable one_pass
pipe 1 config bw 62Kbit/s queue 8kbits
queue 11 config pipe 1 weight 7
queue 12 config pipe 1 weight 1
add queue 11 tcp from any to any out via tun0 tcpflags ack iplen 40-52
add queue 12 out via tun0
add allow all from any to any

Graphs to illustrate the difference

traffic with dummynet turned off traffic with dummynet turned on

Test #2

IPFW2 rules

pipe 1 config bw 62Kbit/s queue 64kbits
queue 11 config weight 7 pipe 1
queue 12 config weight 1 pipe 1
add queue 11 tcp from any to any out via tun0 tcpflags ack iplen 40-52
add queue 12 ip from any to any out via tun0
add allow ip from any to any

Graphs to illustrate the difference

traffic with dummynet turned off traffic with dummynet turned on