23/11/2001 : This page is not valid. Plz go to docum.org
Used script (download)
#!/bin/sh RATE_MAX=$1`echo kbps` IP=kriek DEV="dev eth0" tc qdisc del $DEV root tc qdisc add $DEV root handle 10: tbf rate $RATE_MAX buffer 20Kb/8 limit 15Kb iptables -F iptables -X iptables -N acc_0 #iptables -A OUTPUT -t mangle -p tcp --dport 2000 -d $IP -j MARK --set-mark 1 iptables -A OUTPUT -t mangle -j MARK --set-mark 1 #iptables -A OUTPUT -p tcp --dport 2000 -d $IP -j acc_0 iptables -A OUTPUT -j acc_0 iptables -A OUTPUT -j ACCEPTAnd I used an other script that executes the tbf script with different parameters. Each time the monitor.pl script is executed and when the average speed didn't changed fot 10 times, the value is logged to a file.
Used script (download)
If have a non-duplex 10Mbit connection. When you want to transmit to much data, the link get congested. The maximum throughput is reached when I bound the traffic to 960 Kbyte/s. When you want to transmit more data, you loose bandwidth due to overhead and collisions.
You can download the logfile here.
TODO : try different options.