expanding my tc script to include prioritizing for TCP syn/ack/etc.
just looking for pointers or things i might be missing... i'm now trying to prioritize TCP traffic by header, mainly using prio & also some iptables classifying stuff. it actually seems to be working alright so far... to start off, i'm doing all of the shaping on the outbound interface of my router PC.
tc script relevant bits: Code:
tc qdisc add dev external root handle 1: htb default 11 Code:
*mangle one thing, i'm still working out how to retain those 1:12 and 1:13 classes; i was using it to set minimums for particular hosts/subnets. ever since adding this, i don't think these work anymore... thanks in advance |
With iptables you can use -j LOG rules before or after changing aspects to check for example which subnets hit a filter or what modifications will be done. I wonder however how much performance increase you'll actually getting from prioritizing SYN/ACKs as they're small packets anyway and you can't control behavior of remote end points anyway... (Wrt network performance you may also want to look at Ethernet driver module options, mii/ethtool buffer/offload settings and 'net -related sysctls.)
|
Quote:
|
Ah, OK. It's more about guaranteeing hosts (or not) their fair share of bandwidth then.
|
yep, pretty much. also preventing active streams from increasing the latency, particularly when a client is uploading. i've actually done a crude test w/ping (that's why i put icmp in the iptables stuff), saturating the upload from 1 client and pinging out from another, and i'm getting pretty expected results.
without these rules: Code:
64 bytes from 208.67.222.222: icmp_seq=1 ttl=54 time=123 ms Code:
64 bytes from 208.67.222.222: icmp_seq=1 ttl=54 time=39.0 ms |
Sure, but that's by sending ICMP messages to a service that's mostly used with UDP. See if you can test it by for example having a select remote host (family, friends, school, work, public terminal) initiate (concurrent?) FTP transfers and see how that stacks up?
|
yeah, i'm getting similar results....
|
All times are GMT -5. The time now is 07:56 AM. |