[bwm-tools-tech] configure bwmd (firewall.xml)
Brought to you by:
nkukard
From: Andriy T. Y. <wir...@wi...> - 2003-06-18 16:13:21
|
Hallo. I can't complete understand all options for traffic flows. Assume I what shape incomming and outgoing traffic for web (tcp port 80). I dont start bwm_firewall just do it by hand: iptables -t mangle -F iptables -t mangle -A INPUT -i eth0 -p tcp --sport 80 -j MARK --set-mark 1001 iptables -t mangle -A OUTPUT -o eth0 -p tcp --dport 80 -j MARK --set-mark 1002 iptables -t filter -F iptables -t filter -A INPUT -i eth0 -m mark --mark 1001 -j QUEUE iptables -t filter -A OUTPUT -o eth0 -m mark --mark 1002 -j QUEUE Look at part of firewall.xml that use bwmd: <traffic> <flow name="mainline" stats-len="10" queue-size="262144" queue-len="300" max-rate="65536" burst-rate="131072" counter-timeout="60"> <flow name="1_client_in" max-rate="8192" flow-id="1001"> c_traffic_in; </flow> <flow name="1_client_out" max-rate="8192" flow-id="1002"> c_traffic_out; </flow> </flow> </traffic> For example I what shape incomming traffic ( name="1_client_in" ) to 10240 bytes per sec (10KB/sec) and outgoing traffic ( name="1_client_out" ) to 1024 bytes per sec (1KB/sec). Which values for parameters stats-len queue-size queue-len max-rate burst-rate counter-timeout in this case? I tried to set some parameters but when downloading big file (~20 Mb) I got NOT fluent flow and not stable speed (with jumps). ( When I shape trafic with kernel QoS download flow approximally equal to rate that I set to qdisc and flow was fluent. ) What are relationships between parameters? And more : What is CONCEPTION of shaping? -- Andriy T. Yanko wir...@wi... * Avoid The Gates of Hell use Linux ** Wenn ich sterbe, legt mir eine Birne in mein Grab ... |