Page 2 of 15

Re: Best settings for gaming QoS+DSCP

Posted: Wed Oct 09, 2019 5:56 pm
by VanCleef
Use this line too:

##NORMAL
iptables -t mangle -A PREROUTING -j DSCP --set-dscp-class CS0

Re: Best settings for gaming QoS+DSCP

Posted: Sat Oct 12, 2019 4:47 pm
by VanCleef
I am currently using this:

iptables -t mangle -A PREROUTING -j DSCP --set-dscp-class CS0


iptables -t mangle -A PREROUTING -p icmp -j DSCP --set-dscp-class EF

iptables -t mangle -A POSTROUTING -p icmp -j DSCP --set-dscp-class EF

iptables -t mangle -A FORWARD -p icmp -j DSCP --set-dscp-class EF


iptables -t mangle -A PREROUTING -p udp --match multiport --sport 3658:3659,3074:3075,3478:3479,9305:9308,6672 -j DSCP --set-dscp-class EF

iptables -t mangle -A PREROUTING -p udp --match multiport --dport 3658:3659,3478:3480,3074:3075,9305:9308,6672 -j DSCP --set-dscp-class EF


iptables -t mangle -A POSTROUTING -p udp --match multiport --sport 3658:3659,3478:3480,3074:3075,9305:9308,6672 -j DSCP --set-dscp-class EF

iptables -t mangle -A POSTROUTING -p udp --match multiport --dport 3658:3659,3478:3480,3074:3075,9305:9308,6672 -j DSCP --set-dscp-class CS6


iptables -t mangle -A FORWARD -p udp --match multiport --sport 3658:3659,3478:3480,3074:3075,9305:9308,6672 -j DSCP --set-dscp-class EF

iptables -t mangle -A FORWARD -p udp --match multiport --dport 3658:3659,3478:3480,3074:3075,9305:9308,6672 -j DSCP --set-dscp-class EF

It seems to be the best.

If you play in wifi, in POSTROUTING dport, use CS6.
In cable use all with EF.

QoS Gargoyle:

Image
Image
Image
Image

I am satisfied now :roll:

One thing, Battlefield 1 for example, uses ports 14000-14016, but the only port actually being used is 3659, as are many EA games. And the torrent here, used port 14002. So attention.
You can use Wireshark to view DSCP tags.

Re: Best settings for gaming QoS+DSCP

Posted: Tue Oct 15, 2019 11:03 pm
by encro
Hi VanCleef,

I have been running various configurations over the last week and currently using the setup you put in the last post. Initially I had a ruleset that was covering pretty much every major First Person Shooter but it's cleaner running with the simplified ruleset. Using EF for all Pre, Post and Forwarding Rules on a FTTN (nbn Connection).

Last night I was consistently at the top in Battlefield 4 and I'm getting rapid notification of incoming fire as well as all bullets fired registering. It's extremely satisfying to have the games finally work as intended while being able to bandwidth share in an effective manner. Another Machine running Torrents seems to rapidly affect ping so I'll have to investigate how I can minimise its impact, the port is set to 49999 so it shouldn't be affected by the UDP Rules and is probably just uncontrolled bandwidth usage. I might add a DSCP rule to deprioritise the traffic for the IP.

It's really awesome to have it finally doing exactly what I expect of the connection.Taking the time to structure it all in detail with screenshots will help many trying to enhance the gaming side of Gargoyle. This is truly outstanding work. Thank you very much.

Re: Best settings for gaming QoS+DSCP

Posted: Wed Oct 16, 2019 10:32 am
by VanCleef
Good to know it works for you too!

Trying to simplify the rules, FORWARD doesn't seem to make much difference, and PREROUTING sometimes has some packet losses.
POSTROUTING seems to do well:


iptables -t mangle -A POSTROUTING -j DSCP --set-dscp-class CS0

iptables -t mangle -A POSTROUTING -p icmp -j DSCP --set-dscp-class EF

iptables -t mangle -A POSTROUTING -p udp --match multiport --sport 3658:3659,3074:3075,3478:3479,9305:9308,6672 -j DSCP --set-dscp-class EF

iptables -t mangle -A POSTROUTING -p udp --match multiport --dport 3658:3659,3478:3480,3074:3075,9305:9308,6672 -j DSCP --set-dscp-class EF

Re: Best settings for gaming QoS+DSCP

Posted: Wed Oct 16, 2019 10:55 am
by VanCleef
About the high ping
running torrents, this line:

iptables -t mangle -A POSTROUTING -j DSCP --set-dscp-class CS0

already marks all non-game or icmp packages as normal priority,
thus leaving QoS Gargoyle to manage the bandwith equally, and reducing ping in RTT mode.
This line is also important because many torrents arrive marked EF, which would give it higher priority, while CS0 is normal priority.
You can also try marking the torrent tcp / udp port as CS1, which is bulk priority.

Re: Best settings for gaming QoS+DSCP

Posted: Wed Oct 16, 2019 1:08 pm
by Forger38
Thanks for the information!

I was looking for info about gaming-centered network settings as well.. The thing is that now that I'm finally looking to get some property in Hungary for the holidays, I'll be able to work a little bit less and I've promised my sons I'd play with them... So, we'll need to be able to accomodate 3 people playing online at the same time!

Re: Best settings for gaming QoS+DSCP

Posted: Thu Oct 24, 2019 7:53 am
by VanCleef
Hello

I am currently using MTU 1454, on Gargoyle and my Ps4 too, I am having good results so far.

Edit:
I returned Gargoyle MTU to 1500 because some sites would not open. Ps4 MTU continues 1454 with good results.

Re: Best settings for gaming QoS+DSCP

Posted: Thu Oct 24, 2019 5:11 pm
by -taz-
best config for me

Image

Image

iptables -t mangle -A POSTROUTING -j DSCP --set-dscp-class CS0



iptables -t mangle -A POSTROUTING -p udp -s 192.168.1.190 --match multiport --sport 3659,14000:14016,22990:23006,25200:25300 -j DSCP --set-dscp 48

iptables -t mangle -A POSTROUTING -p udp -d 192.168.1.190 --match multiport --dport 3659,14000:14016,22990:23006,25200:25300 -j DSCP --set-dscp 48

iptables -t mangle -A POSTROUTING -p tcp -s 192.168.1.190 --match multiport --sport 80,443,9988,17502,20000:20100,22990,42127 -j DSCP --set-dscp 48

iptables -t mangle -A POSTROUTING -p tcp -d 192.168.1.190 --match multiport --dport 80,443,9988,17502,20000:20100,22990,42127 -j DSCP --set-dscp 48

Ports:(battlefield 4)TCP UDP

Re: Best settings for gaming QoS+DSCP

Posted: Thu Oct 24, 2019 9:11 pm
by ispyisail
@Forger38

What router are you using?

Re: Best settings for gaming QoS+DSCP

Posted: Thu Oct 24, 2019 9:58 pm
by VanCleef
Hello taz
Thanks for sharing!

It may not be a good idea to give ports 80 and 443 high priority because they are mostly used for browsing and video.

Do you play on the PC?