Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Aug 2005 00:50:41 +0300
From:      vladone <vladone@spaingsm.com>
To:        freebsd-ipfw@freebsd.org
Cc:        freebsd-questions@freebsd.org
Subject:   Re[2]: challenge  with dummynet+ipfw
Message-ID:  <118386989.20050829005041@spaingsm.com>
In-Reply-To: <6.2.3.4.2.20050828142736.0402bad0@cobalt.antimatter.net>
References:  <1752667837.20050829001929@spaingsm.com> <6.2.3.4.2.20050828142736.0402bad0@cobalt.antimatter.net>

next in thread | previous in thread | raw e-mail | index | archive | help
 I know about pf+altq. I can use even ipfw+altw. But i'm fun dummynet,
 and i want to use'it. :)

 My work at moment is:
#download total
$cmd pipe 1 config bw 1000kbits/s

#download agregate (low pri. 300kbits/s agregate)
$cmd pipe 2 config bw 300kbits/s
$cmd queue 2 config weight 1 pipe 1
$cmd queue 3 config weight 1 pipe 2 mask dst-ip 0xffffff

# down agregate games (hight priorized due flow reason)
$cmd pipe 4 config bw 512kbit/s
$cmd queue 4 config weight 100 pipe 1 mask dst-ip 0xffffff
$cmd queue 8 config weight 1 pipe 4 mask dst-ip 0xffffff

#download agregate net (low pri. 512kbit/s agregate)
$cmd pipe 6 config bw 512kbit/s
$cmd queue 5 config weight 1 pipe 1
$cmd queue 6 config weight 1 pipe 6 mask dst-ip 0xffffff

and ipfw rules:
#traffic hight priorized
$cmd add 700 queue 4 ip any $games_ports to $local_net in recv $pif
$cmd add 700 pipe 4 ip any $games_ports to $local_net in recv $pif
$cmd add 700 queue 8 ip any $games_ports to $local_net in recv $pif
$cmd add 700 skipto 65000 ip from any $games_ports to $local_net in recv $pif

#traffic from special ip (low pri. 300kbit/s agregate)
$cmd add 700 queue 2 ip from $ip_list to $local_net in recv $pif
$cmd add 700 pipe 2 ip from $ip_list to $local_net in recv $pif
$cmd add 700 queue 3 ip from $ip_list to $local_net in recv $pif
$cmd add 700 skipto 65000 ip from $ip_list to $local_net in recv $pif

#traffic from internet (low pri. 512kbit/s agregate)
$cmd add 700 queue 5 ip from any to $local_net in recv $pif
$cmd add 700 pipe 6 ip from any to $local_net in recv $pif
$cmd add 700 queue 6 ip from any to $local_net in recv $pif
$cmd add 700 skipto 65000 ip from any to $local_net in recv $pif

This set work but i dont know if is corect. If any have experience
plase help me!






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?118386989.20050829005041>