[LARTC] how to bring down htb rate to 3kbit?
Hello Everybody, I am successful in throttling down the Bandwidth to 8kbit using HTB. Below that I get report to change r2q. I want to bring down the Leaf class Bandwidth to 3kbit. My script is as below: Tc Script to throttle down the Bandwidth to 8kbit based on MAC address and IP address tc qdisc del dev eth0 root tc qdisc add dev eth0 root handle 1:0 htb default 30 r2q 1 tc class add dev eth0 parent 1:0 classid 1:1 htb rate 24kbit ceil 24kbit quantum 1514 tc class add dev eth0 parent 1:1 classid 1:10 htb rate 8kbit ceil 8kbit tc qdisc add dev eth0 parent 1:10 handle 10:0 sfq tc class add dev eth0 parent 1:1 classid 1:20 htb rate 8kbit ceil 8kbit tc qdisc add dev eth0 parent 1:20 handle 20:0 sfq tc class add dev eth0 parent 1:1 classid 1:30 htb rate 8kbit ceil 8kbit tc qdisc add dev eth0 parent 1:30 handle 30:0 sfq tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip dst 192.168.10.163 flowid 1:10 tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match u32 0x11e6bd53 0x at -12 match u16 0x0011 0x at -14 flowid 1:20 If I am to Throttle down the Leaf class Bandwidth to 3kbit what should be the value of root qdisc r2q?? and what should be the value of root class quantum?? Plz Plz Help Regards Kartheek Yahoo! India Matrimony: Find your life partner online.___ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Re: [LARTC] TCP window based shaping
In my current implementation at home, I use TC/HTB rules to priortise outgoing acks. This definately helps esp when doing huge Linux ISO dl's through Bittorrent. Why delay Acks?? Just because you want to delay/make/simulate the normal TCP behaviour of making the window smaller?? ...because we don't want bittorrent to go faster The goal is to slow things down, not speed them up. Granted though that prioritising acks is useful up until the client is using the desired amount of bandwidth, after that we want to slow them down again Ed W ___ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
[LARTC] simple routing protocol for VPN redundancy?
Hello all, I need a very simple routing protocol for VPN redundancy. We have several sites and each site has a Linux router and two IPCops each with an ADSL connection to the internet using different ISP's. I have configured VPN's between all of the sites for each IPcop on ispA and the same for the IPCops on ispB. This way, if one of the ISP fails, I change the route on the router and my VPN's continue to function over the other ISP. This is a very simple saftey but it works well and its pretty cheep. But I'm getting sick of changing the routes by hand and wonder if there is any way of automating the failover. What I was thinking of is maybe a script/utility that I could configure to ping a host on a remote lan and if I started to loose to many packets or it got too slow or failed it would change the route automatically. Has any one ever written a script or know of a utility that can do that? Cheers Simon. ___ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc