Best settings for gaming QoS+DSCP

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

Moderator: Moderators

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

Re: Best settings for gaming QoS+DSCP

Post by -taz- »

Hi
Researching on IPTABLES
and Qos de Gargoyle, this is the best configuration I found, the only bad thing is that it does not give bufferbloat A +


make sure dns have a minimum TLL
and that MINRTT is active when the network is saturated
;)



Image

Image


confirm if the game class is active
Image



(WinSCP)
Image

iptables -t mangle -A FORWARD -p tcp --tcp-flags ALL SYN,ACK -j TCPMSS --set-mss 1452

commands to restart Qos or Firewall
service firewall restart
service qos_gargoyle restart

stop Bwon network statistics "Performance Improvement"
/etc/init.d/bwmon_gargoyle stop
/etc/init.d/bwmon_gargoyle disable


iptables -t mangle -vnL


:D :D :D :D

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

Re: Best settings for gaming QoS+DSCP

Post by VanCleef »

Thanks for sharing taz.

I have also been playing with iptables, and I am using this:

iptables -t mangle -N qos_plus

iptables -t mangle -A PREROUTING -j qos_plus
iptables -t mangle -A INPUT -j qos_plus
iptables -t mangle -A FORWARD -j qos_plus
iptables -t mangle -A OUTPUT -j qos_plus
iptables -t mangle -A POSTROUTING -j qos_plus

iptables -t mangle -I qos_plus -i eth0 -j DSCP --set-dscp-class CS0

iptables -t mangle -I qos_plus -p icmp -j DSCP --set-dscp-class CS6

iptables -t mangle -I qos_plus -d 192.168.1.142 -p udp -j DSCP --set-dscp-class CS4

iptables -t mangle -I qos_plus -s 192.168.1.142 -p udp -j DSCP --set-dscp-class CS4


It seems not to have a "correct" setting, but the best one for each person.

I think it's a good idea to include DSCP tags in the Qos Gargoyle interface, perhaps in place of the layer7 protocol.
TP-Link Archer C7 v2
Gargoyle: 1.10.0
Down: 38MB
Up: 6.5MB

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

Re: Best settings for gaming QoS+DSCP

Post by -taz- »

I tried its configuration and it works almost the same as mine, but in my case my configuration is better for me.
eth0 does not work, the interface does not exist

iptables -t mangle -vnL

Did you test my settings?

"betta"1.11.X (Built 20191030-1820 git@9998713a)
Archer C7 V4

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

Re: Best settings for gaming QoS+DSCP

Post by VanCleef »

You're right, it's just a different way of writing the rules.

eth0 is the wan interface.
Using the command ifconfig, the interface that displays your public ip (from internet) will be your wan interface. But maybe using the interface in the rule is not necessary.

I have tested your rules too, but for now the rules I use go well.
TP-Link Archer C7 v2
Gargoyle: 1.10.0
Down: 38MB
Up: 6.5MB

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

Re: Best settings for gaming QoS+DSCP

Post by -taz- »

where the Qos_plus command came from and what it does apart from the Qos gargoyle

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

Re: Best settings for gaming QoS+DSCP

Post by VanCleef »

qos_plus is a random name of your choice.

In this rule qos_plus means PRE / INP / FOR / OUT / POST at the same time.

Just an alternative to simplifying the rules.
TP-Link Archer C7 v2
Gargoyle: 1.10.0
Down: 38MB
Up: 6.5MB

User avatar
CBx86
Posts: 140
Joined: Sun Jan 05, 2014 5:43 pm
Location: Brazil

Re: Best settings for gaming QoS+DSCP

Post by CBx86 »

Hey guys, just now i have some time to read and contribute.

A bit late but instructive :

Code: Select all

    ------------------------------------------------------------------
   |   Service     |  DSCP   |    DSCP     |       Application        |
   |  Class Name   |  Name   |    Value    |        Examples          |
   |===============+=========+=============+==========================|
   |Network Control|  CS6    |   110000    | Network routing          |
   |---------------+---------+-------------+--------------------------|
   | Telephony     |   EF    |   101110    | IP Telephony bearer      |
   |---------------+---------+-------------+--------------------------|
   |  Signaling    |  CS5    |   101000    | IP Telephony signaling   |
   |---------------+---------+-------------+--------------------------|
   | Multimedia    |AF41,AF42|100010,100100|   H.323/V2 video         |
   | Conferencing  |  AF43   |   100110    |  conferencing (adaptive) |
   |---------------+---------+-------------+--------------------------|
   |  Real-Time    |  CS4    |   100000    | Video conferencing and   |
   |  Interactive  |         |             | Interactive gaming       |
   |---------------+---------+-------------+--------------------------|
   | Multimedia    |AF31,AF32|011010,011100| Streaming video and      |
   | Streaming     |  AF33   |   011110    |   audio on demand        |
   |---------------+---------+-------------+--------------------------|
   |Broadcast Video|  CS3    |   011000    |Broadcast TV & live events|
   |---------------+---------+-------------+--------------------------|
   | Low-Latency   |AF21,AF22|010010,010100|Client/server transactions|
   |   Data        |  AF23   |   010110    | Web-based ordering       |
   |---------------+---------+-------------+--------------------------|
   |     OAM       |  CS2    |   010000    |         OAM&P            |
   |---------------+---------+-------------+--------------------------|
   |High-Throughput|AF11,AF12|001010,001100|  Store and forward       |
   |    Data       |  AF13   |   001110    |     applications         |
   |---------------+---------+-------------+--------------------------|
   |    Standard   | DF (CS0)|   000000    | Undifferentiated         |
   |               |         |             | applications             |
   |---------------+---------+-------------+--------------------------|
   | Low-Priority  |  CS1    |   001000    | Any flow that has no BW  |
   |     Data      |         |             | assurance                |
    ------------------------------------------------------------------


https://tools.ietf.org/html/rfc4594

Real-Time Interactive | CS4 | 100000 | Video conferencing and Interactive gaming

EF should work nice in 'wired' game, radio dont know.
(Gaming for me is wired only :mrgreen: )
Last edited by CBx86 on Mon Dec 09, 2019 7:41 pm, 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

Based on the documentation, for wifi is also recommended CS4 for games.
https://tools.ietf.org/html/rfc8325
https://tools.ietf.org/id/draft-ietf-ts ... 11-05.html
I play over wifi and it's good.

But if the game flows better in voice class, like EF on cable, it will be CS6 on wifi.
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 also testing better MTU values, and it looks like xbox was right to have MTU 1480 as default.
Games are more responsive on my ps4.

The mtu in gargoyle interface i do not change.

If you play on PC and have trouble for open sites after the change, you can use these commands to set mtu:

iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --set-mss 1440

for a specific ip:
iptables -A FORWARD -s 192.168.1.142 -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --set-mss 1440

This site shows the current mtu:
http://www.speedguide.net:8080/
TP-Link Archer C7 v2
Gargoyle: 1.10.0
Down: 38MB
Up: 6.5MB

SirSWE
Posts: 73
Joined: Sat Jul 13, 2019 2:54 pm

Re: Best settings for gaming QoS+DSCP

Post by SirSWE »

CBx86 wrote:Hey guys, just now i have some time to read and contribute.

A bit late but instructive :

Code: Select all

    ------------------------------------------------------------------
   |   Service     |  DSCP   |    DSCP     |       Application        |
   |  Class Name   |  Name   |    Value    |        Examples          |
   |===============+=========+=============+==========================|
   |Network Control|  CS6    |   110000    | Network routing          |
   |---------------+---------+-------------+--------------------------|
   | Telephony     |   EF    |   101110    | IP Telephony bearer      |
   |---------------+---------+-------------+--------------------------|
   |  Signaling    |  CS5    |   101000    | IP Telephony signaling   |
   |---------------+---------+-------------+--------------------------|
   | Multimedia    |AF41,AF42|100010,100100|   H.323/V2 video         |
   | Conferencing  |  AF43   |   100110    |  conferencing (adaptive) |
   |---------------+---------+-------------+--------------------------|
   |  Real-Time    |  CS4    |   100000    | Video conferencing and   |
   |  Interactive  |         |             | Interactive gaming       |
   |---------------+---------+-------------+--------------------------|
   | Multimedia    |AF31,AF32|011010,011100| Streaming video and      |
   | Streaming     |  AF33   |   011110    |   audio on demand        |
   |---------------+---------+-------------+--------------------------|
   |Broadcast Video|  CS3    |   011000    |Broadcast TV & live events|
   |---------------+---------+-------------+--------------------------|
   | Low-Latency   |AF21,AF22|010010,010100|Client/server transactions|
   |   Data        |  AF23   |   010110    | Web-based ordering       |
   |---------------+---------+-------------+--------------------------|
   |     OAM       |  CS2    |   010000    |         OAM&P            |
   |---------------+---------+-------------+--------------------------|
   |High-Throughput|AF11,AF12|001010,001100|  Store and forward       |
   |    Data       |  AF13   |   001110    |     applications         |
   |---------------+---------+-------------+--------------------------|
   |    Standard   | DF (CS0)|   000000    | Undifferentiated         |
   |               |         |             | applications             |
   |---------------+---------+-------------+--------------------------|
   | Low-Priority  |  CS1    |   001000    | Any flow that has no BW  |
   |     Data      |         |             | assurance                |
    ------------------------------------------------------------------


https://tools.ietf.org/html/rfc4594

Real-Time Interactive | CS4 | 100000 | Video conferencing and Interactive gaming

EP should work nice in 'wired' game, radio dont know.
(Gaming for me is wired only :mrgreen: )


Do you mean EF? I don’t see any EP. I played wired. Im only intrested to use port 3074 as udp. (Cod ps4)

Post Reply