Prioritizing ACK/SYN/FIN/RST packets
Posted: Fri Oct 09, 2015 9:03 am
Hi
most other routers have an option to prioritize ACK/SYN/FIN/RST packets.
Im trying to implemented this into my current setup.
I currently have the following classes both for upload and download:
Maximum 60% for ACK/SYN/FIN/RST packets
Express 25% HTTP, DNS, Games, Putty, IRC and so on
Standard 14% Default Class: HTTP over 1024 Connection bytes.
Bulk 1% Torrent
I came up with this rules:
Upload:
Download:
Is this the right way to do? And does it matter where the rules are inserted? For example should they go the top or bottom?
Before or after the bulk class? (Torrents can cause high ack traffic?)
Thanks!
most other routers have an option to prioritize ACK/SYN/FIN/RST packets.
Im trying to implemented this into my current setup.
I currently have the following classes both for upload and download:
Maximum 60% for ACK/SYN/FIN/RST packets
Express 25% HTTP, DNS, Games, Putty, IRC and so on
Standard 14% Default Class: HTTP over 1024 Connection bytes.
Bulk 1% Torrent
I came up with this rules:
Upload:
Code: Select all
i
ptables -t mangle -A qos_egress -p tcp -m tcp --tcp-flags ACK ACK -m length --length :64 -j MARK --set-mark 0x2
iptables -t mangle -A qos_egress -p tcp -m tcp --tcp-flags SYN SYN -m length --length :64 -j MARK --set-mark 0x2
iptables -t mangle -A qos_egress -p tcp -m tcp --tcp-flags RST RST -m length --length :64 -j MARK --set-mark 0x2
iptables -t mangle -A qos_egress -p tcp -m tcp --tcp-flags FIN FIN -m length --length :64 -j MARK --set-mark 0x2
Code: Select all
iptables -t mangle -A qos_ingress -p tcp -m tcp --tcp-flags ACK ACK -m length --length :64 -j MARK --set-mark 0x200
iptables -t mangle -A qos_ingress -p tcp -m tcp --tcp-flags SYN SYN -m length --length :64 -j MARK --set-mark 0x200
iptables -t mangle -A qos_ingress -p tcp -m tcp --tcp-flags RST RST -m length --length :64 -j MARK --set-mark 0x200
iptables -t mangle -A qos_ingress -p tcp -m tcp --tcp-flags FIN FIN -m length --length :64 -j MARK --set-mark 0x200
Before or after the bulk class? (Torrents can cause high ack traffic?)
Thanks!