Page 10 of 15

Re: Best settings for gaming QoS+DSCP

Posted: Tue Jan 07, 2020 2:19 pm
by -taz-
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

Posted: Wed Jan 08, 2020 8:58 am
by VanCleef
I really dont know
If we find what mark has the highest priority and combine with the ports and dscp, maybe work

Re: Best settings for gaming QoS+DSCP

Posted: Thu Jan 09, 2020 7:42 am
by VanCleef
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

Re: Best settings for gaming QoS+DSCP

Posted: Sun Jan 12, 2020 1:33 pm
by SirSWE
Have you guys tried freshtomato or merlin with freshjr? Works great in BF5.

Re: Best settings for gaming QoS+DSCP

Posted: Sun Jan 12, 2020 8:41 pm
by VanCleef
My router is not supported

what is your?

Re: Best settings for gaming QoS+DSCP

Posted: Mon Jan 13, 2020 6:19 am
by VanCleef
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%)

Re: Best settings for gaming QoS+DSCP

Posted: Tue Jan 14, 2020 8:10 am
by SirSWE
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

Posted: Wed Jan 15, 2020 10:57 am
by VanCleef
Already used ddwrt with qos + dscp, I help you configure if you want.

Re: Best settings for gaming QoS+DSCP

Posted: Thu Jan 16, 2020 4:36 pm
by SirSWE
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? :mrgreen:

Re: Best settings for gaming QoS+DSCP

Posted: Thu Jan 16, 2020 5:47 pm
by Lantis
If you guys are now talking ddwrt, please take it to the appropriate forum.