Prioritizing interactive traffic does not work
Hello.
In short Linux Advanced Routing & Traffic Control HOWTO's chapter 15.4. Prioritizing interactive traffic does not help me at all.
I have an asymmetric ADSL connection nominal 64Kbit in / 16Kbit out, real (based on bulk transfers measures) 256Kbit/26Kbit. First thing I would like to improve is to keep interactive (ssh) connection fast even if uplink is full. The test I make for this measuring full ssh connection time (with command 'time ssh <remote host> </dev/null') while having a remote host downloading from me something at the highest rate.
For simpliest tc configurations I get the following results (if both up/down link are free ssh establishes connection in about 4s):
1. pfifo ~4m30s
2. pfifo_fast ~4m
3. sqf ~4m30s
4. prio ~4m30s
The configurations are:
pfifo:
tc qdisc add dev eth0 root pfifo
pfifo_fast:
no qdisc,
iptables -A POSTROUTING -t mangle -o eth0 -p tcp --dport ssh -j TOS --set-tos Minimize-Delay iptables -A POSTROUTING -t mangle -o eth0 -p tcp --sport ftp-data -j TOS --set-tos Maximize-Throughput
sqf:
tc qdisc add dev eth0 root sfq perturb 10
prio:
tc qdisc add dev eth0 root handle 1: prio
tc filter add dev eth0 protocol ip parent 1: prio 1 u32 match ip dport 22 0xffff flowid 1:1 tc filter add dev eth0 protocol ip parent 1: prio 1 u32 match ip sport 20 0xffff flowid 1:3 tc filter add dev eth0 protocol ip parent 1: prio 2 u32 match ip src <my ip address> flowid 1:2
BTW I have a couple of questions about prio qdisc:
1. What if I add it with
tc qdisc add dev eth0 root handle 1: prio
? how do I put filters on it's classes?
2. Is there a simple way to write a filter which matches all packets?
Thanks,
Signature · 5 lines
Alexander Kotelnikov Saint-Petersburg, Russia _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/