Best settings for gaming QoS+DSCP

Report issues relating to bandwith monitoring, bandwidth quotas or QoS in this forum.

Moderator: Moderators

VanCleef
Posts: 51
Joined: Tue Jul 09, 2019 9:01 am

Re: Best settings for gaming QoS+DSCP

Post by VanCleef »

Use this line too:

##NORMAL
iptables -t mangle -A PREROUTING -j DSCP --set-dscp-class CS0
TP-Link Archer C7 v2
Gargoyle: 1.10.0
Down: 38MB
Up: 6.5MB

VanCleef
Posts: 51
Joined: Tue Jul 09, 2019 9:01 am

Re: Best settings for gaming QoS+DSCP

Post 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.
TP-Link Archer C7 v2
Gargoyle: 1.10.0
Down: 38MB
Up: 6.5MB

encro
Posts: 76
Joined: Fri Mar 13, 2015 10:52 am
Location: au.victoria

Re: Best settings for gaming QoS+DSCP

Post 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.
Netgear WNDR3700v4 (N600) - Gargoyle 1.14.x
D-Link DIR-835 - Gargoyle 1.7.1 (Deceased)
Manual set up for PIA's OpenVPN in (Private Internet Access): https://www.gargoyle-router.com/phpbb/viewtopic.php?f=11&t=9129&p=45410#p45410

VanCleef
Posts: 51
Joined: Tue Jul 09, 2019 9:01 am

Re: Best settings for gaming QoS+DSCP

Post 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
TP-Link Archer C7 v2
Gargoyle: 1.10.0
Down: 38MB
Up: 6.5MB

VanCleef
Posts: 51
Joined: Tue Jul 09, 2019 9:01 am

Re: Best settings for gaming QoS+DSCP

Post 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.
TP-Link Archer C7 v2
Gargoyle: 1.10.0
Down: 38MB
Up: 6.5MB

Forger38
Posts: 5
Joined: Fri Oct 11, 2019 11:53 am

Re: Best settings for gaming QoS+DSCP

Post 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!
Last edited by Forger38 on Sat Nov 16, 2019 8:04 am, edited 1 time in total.

VanCleef
Posts: 51
Joined: Tue Jul 09, 2019 9:01 am

Re: Best settings for gaming QoS+DSCP

Post 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.
TP-Link Archer C7 v2
Gargoyle: 1.10.0
Down: 38MB
Up: 6.5MB

-taz-
Posts: 44
Joined: Wed Oct 23, 2019 11:21 pm

Re: Best settings for gaming QoS+DSCP

Post 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

ispyisail
Moderator
Posts: 5180
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Best settings for gaming QoS+DSCP

Post by ispyisail »

@Forger38

What router are you using?

VanCleef
Posts: 51
Joined: Tue Jul 09, 2019 9:01 am

Re: Best settings for gaming QoS+DSCP

Post 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?
TP-Link Archer C7 v2
Gargoyle: 1.10.0
Down: 38MB
Up: 6.5MB

Post Reply