Best settings for gaming QoS+DSCP
Moderator: Moderators
Re: Best settings for gaming QoS+DSCP
The truth is that these commands are made by gargoyle, I edited the part of tcp (flags) do I use the configuration? Did they work?
Re: Best settings for gaming QoS+DSCP
I really dont know
If we find what mark has the highest priority and combine with the ports and dscp, maybe work
If we find what mark has the highest priority and combine with the ports and dscp, maybe work
TP-Link Archer C7 v2
Gargoyle: 1.10.0
Down: 38MB
Up: 6.5MB
Gargoyle: 1.10.0
Down: 38MB
Up: 6.5MB
Re: Best settings for gaming QoS+DSCP
Since these settings are all experimental and for people coming from outside not be confuse,
I initially recommend these settings:
QoS Gargoyle:
Download Normal class 100% /ACC
(total bandwidth: 100%)
ACC manual control target ping time : Wan gateway ip or some dns with low ping
Upload Normal class 100%
(total bandwidth: 95%)
DSCP:
UDP high ports only (1024-65535)
this site is good for finding out which ports games use:
https://portforward.com/
Use all the settings below, not just ## GAMING
##NORMAL
iptables -t mangle -A PREROUTING -j DSCP --set-dscp 0
##QOS ACC PING
iptables -t mangle -A INPUT -p icmp --icmp-type 0 -j DSCP --set-dscp-class EF
iptables -t mangle -A OUTPUT -p icmp --icmp-type 8 -j DSCP --set-dscp-class EF
iptables -t mangle -A INPUT -p icmp --icmp-type 8 -j DSCP --set-dscp-class EF
iptables -t mangle -A OUTPUT -p icmp --icmp-type 0 -j DSCP --set-dscp-class EF
##GAMING
iptables -t mangle -A FORWARD -p udp --match multiport --sport 3658:3659,3478:3479,3074:3075,9305:9308,6672 -j DSCP --set-dscp-class EF
iptables -t mangle -A FORWARD -p udp --match multiport --dport 3658:3659,3478:3479,3074:3075,9305:9308,6672 -j DSCP --set-dscp-class EF
I initially recommend these settings:
QoS Gargoyle:
Download Normal class 100% /ACC
(total bandwidth: 100%)
ACC manual control target ping time : Wan gateway ip or some dns with low ping
Upload Normal class 100%
(total bandwidth: 95%)
DSCP:
UDP high ports only (1024-65535)
this site is good for finding out which ports games use:
https://portforward.com/
Use all the settings below, not just ## GAMING
##NORMAL
iptables -t mangle -A PREROUTING -j DSCP --set-dscp 0
##QOS ACC PING
iptables -t mangle -A INPUT -p icmp --icmp-type 0 -j DSCP --set-dscp-class EF
iptables -t mangle -A OUTPUT -p icmp --icmp-type 8 -j DSCP --set-dscp-class EF
iptables -t mangle -A INPUT -p icmp --icmp-type 8 -j DSCP --set-dscp-class EF
iptables -t mangle -A OUTPUT -p icmp --icmp-type 0 -j DSCP --set-dscp-class EF
##GAMING
iptables -t mangle -A FORWARD -p udp --match multiport --sport 3658:3659,3478:3479,3074:3075,9305:9308,6672 -j DSCP --set-dscp-class EF
iptables -t mangle -A FORWARD -p udp --match multiport --dport 3658:3659,3478:3479,3074:3075,9305:9308,6672 -j DSCP --set-dscp-class EF
TP-Link Archer C7 v2
Gargoyle: 1.10.0
Down: 38MB
Up: 6.5MB
Gargoyle: 1.10.0
Down: 38MB
Up: 6.5MB
Re: Best settings for gaming QoS+DSCP
Have you guys tried freshtomato or merlin with freshjr? Works great in BF5.
Re: Best settings for gaming QoS+DSCP
My router is not supported
what is your?
what is your?
TP-Link Archer C7 v2
Gargoyle: 1.10.0
Down: 38MB
Up: 6.5MB
Gargoyle: 1.10.0
Down: 38MB
Up: 6.5MB
Re: Best settings for gaming QoS+DSCP
I am using this:
##NORMAL
iptables -t mangle -A PREROUTING -i eth0.2 -j DSCP --set-dscp 0
##ACC PING
iptables -t mangle -A INPUT -i eth0.2 -p icmp --icmp-type 0 -j DSCP --set-dscp-class EF
iptables -t mangle -A POSTROUTING -o eth0.2 -p icmp --icmp-type 8 -j DSCP --set-dscp-class EF
iptables -t mangle -A INPUT -i eth0.2 -p icmp --icmp-type 8 -j DSCP --set-dscp-class EF
iptables -t mangle -A POSTROUTING -o eth0.2 -p icmp --icmp-type 0 -j DSCP --set-dscp-class EF
##GAMING
iptables -t mangle -A FORWARD -o br-lan -d 192.168.1.142 -p udp -j DSCP --set-dscp-class CS7
iptables -t mangle -A FORWARD -i br-lan -s 192.168.1.142 -p udp -j DSCP --set-dscp-class EF
##MTU
iptables -A FORWARD -s 192.168.1.142 -p tcp --tcp-flags SYN,RST SYN -o eth0.2 -j TCPMSS --set-mss 1360
(use everything, not only ##gaming)
for those who play in ps4, xbox ... defining all udp ports seems acceptable.
already on PC, better to set individually:
##GAMING
iptables -t mangle -A FORWARD -o br-lan -d 192.168.1.142 -p udp --match multiport --port 3658:3659,3478:3479,3074:3075,9305:9308,6672 -j DSCP --set-dscp-class EF
iptables -t mangle -A FORWARD -i br-lan -s 192.168.1.142 -p udp --match multiport --port 3658:3659,3478:3479,3074:3075,9305:9308,6672 -j DSCP --set-dscp-class EF
I play on wifi, so I use CS7 on the download side(-o br-lan -d 192.168.1.142)
CS7 / CS6 falls into voice class on wifi, which has the lowest latency, while on cable it is EF
can also be used CS4 in place of other
References:
https://tools.ietf.org/html/rfc8325
eth0.2 is my wan interface
To find out which one is yours, use the "ifconfig" command, the interface that has the ip address of your isp will be your Wan. (look in line "inet addr")
The br-lan, I believe to be the same for everyone.
I think it works better now because br-lan controls both wan and lan.
I found that using the br-lan interface in the rule is essential, at least for me games now have a faster response.
I also use the rule that sets mtu to 1400, only on output, I also felt an improvement.
I had no problem opening any website using this mtu value.
the mtu on my ps4 and gargoyle kept standard.
QoS Gargoyle:
Download Normal class 100% /ACC
(total bandwidth: 100%)
ACC manual control target ping time : Wan gateway ip or some dns with low ping
Upload Normal class 100%
(total bandwidth: 95%)
##NORMAL
iptables -t mangle -A PREROUTING -i eth0.2 -j DSCP --set-dscp 0
##ACC PING
iptables -t mangle -A INPUT -i eth0.2 -p icmp --icmp-type 0 -j DSCP --set-dscp-class EF
iptables -t mangle -A POSTROUTING -o eth0.2 -p icmp --icmp-type 8 -j DSCP --set-dscp-class EF
iptables -t mangle -A INPUT -i eth0.2 -p icmp --icmp-type 8 -j DSCP --set-dscp-class EF
iptables -t mangle -A POSTROUTING -o eth0.2 -p icmp --icmp-type 0 -j DSCP --set-dscp-class EF
##GAMING
iptables -t mangle -A FORWARD -o br-lan -d 192.168.1.142 -p udp -j DSCP --set-dscp-class CS7
iptables -t mangle -A FORWARD -i br-lan -s 192.168.1.142 -p udp -j DSCP --set-dscp-class EF
##MTU
iptables -A FORWARD -s 192.168.1.142 -p tcp --tcp-flags SYN,RST SYN -o eth0.2 -j TCPMSS --set-mss 1360
(use everything, not only ##gaming)
for those who play in ps4, xbox ... defining all udp ports seems acceptable.
already on PC, better to set individually:
##GAMING
iptables -t mangle -A FORWARD -o br-lan -d 192.168.1.142 -p udp --match multiport --port 3658:3659,3478:3479,3074:3075,9305:9308,6672 -j DSCP --set-dscp-class EF
iptables -t mangle -A FORWARD -i br-lan -s 192.168.1.142 -p udp --match multiport --port 3658:3659,3478:3479,3074:3075,9305:9308,6672 -j DSCP --set-dscp-class EF
I play on wifi, so I use CS7 on the download side(-o br-lan -d 192.168.1.142)
CS7 / CS6 falls into voice class on wifi, which has the lowest latency, while on cable it is EF
can also be used CS4 in place of other
References:
https://tools.ietf.org/html/rfc8325
eth0.2 is my wan interface
To find out which one is yours, use the "ifconfig" command, the interface that has the ip address of your isp will be your Wan. (look in line "inet addr")
The br-lan, I believe to be the same for everyone.
I think it works better now because br-lan controls both wan and lan.
I found that using the br-lan interface in the rule is essential, at least for me games now have a faster response.
I also use the rule that sets mtu to 1400, only on output, I also felt an improvement.
I had no problem opening any website using this mtu value.
the mtu on my ps4 and gargoyle kept standard.
QoS Gargoyle:
Download Normal class 100% /ACC
(total bandwidth: 100%)
ACC manual control target ping time : Wan gateway ip or some dns with low ping
Upload Normal class 100%
(total bandwidth: 95%)
TP-Link Archer C7 v2
Gargoyle: 1.10.0
Down: 38MB
Up: 6.5MB
Gargoyle: 1.10.0
Down: 38MB
Up: 6.5MB
Re: Best settings for gaming QoS+DSCP
Im using asus rt-ac68u, switched to dd-wrt and games works great with fq_codel + hfsc. You can even priotize gaming ports to get the extra boost for your game if you want.
Re: Best settings for gaming QoS+DSCP
Already used ddwrt with qos + dscp, I help you configure if you want.
TP-Link Archer C7 v2
Gargoyle: 1.10.0
Down: 38MB
Up: 6.5MB
Gargoyle: 1.10.0
Down: 38MB
Up: 6.5MB
Re: Best settings for gaming QoS+DSCP
Yeah that would be lovely. I need to priotize port 3074-3075. (Xbox Live and Call Of Duty). Call Of Duty also using DST port somewhere between 30000-45000. You have a dscp for that? 

Re: Best settings for gaming QoS+DSCP
If you guys are now talking ddwrt, please take it to the appropriate forum.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.
Please be respectful when posting. I do this in my free time on a volunteer basis.