Best settings for gaming QoS+DSCP

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

Moderator: Moderators

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

Re: Best settings for gaming QoS+DSCP

Post by SirSWE »

VanCleef wrote:
Mon Feb 03, 2020 5:28 pm
I put the dscp lines inside the script qos gargoyle, this prevents the rules from being duplicated after the reboot.

to edit: vi /etc/init.d/qos_gargoyle


Download:

# squash ingress
iptables -t mangle -A fwmark -j DSCP --set-dscp 0

#Go back and touch up the root qdisc to have the proper default class
tc qdisc change dev imq0 $overhead root handle 1:0 hfsc default $def_download_idx

# Create ingress chain
iptables -t mangle -N qos_ingress

# Mark ingress in FORWARD and INPUT chains to make sure any DNAT (virt. server) is taken into account
iptables -t mangle -A FORWARD -i $qos_interface -j qos_ingress
iptables -t mangle -A INPUT -i $qos_interface -j qos_ingress

# icmp ingress
iptables -t mangle -A qos_ingress -p icmp -j DSCP --set-dscp-class CS6

# tcp flags ingress
iptables -t mangle -A qos_ingress -p tcp -m length --length :64 -j DSCP --set-dscp-class CS6

# ps4 ingress
iptables -t mangle -A qos_ingress -d 192.168.1.142 -p udp -j DSCP --set-dscp-class CS6

#Now the rest of the user entered rules.



Upload:

#Go back and touch up the root qdisc to have the proper default class
tc qdisc change dev $qos_interface $overhead root handle 1:0 hfsc default $def_upload_idx

# Set up egress chain
iptables -t mangle -N qos_egress
iptables -t mangle -A POSTROUTING -o $qos_interface -j qos_egress

# icmp egress
iptables -t mangle -A qos_egress -p icmp -j DSCP --set-dscp-class EF

# tcp flags egress
iptables -t mangle -A qos_egress -p tcp -m length --length :64 -j DSCP --set-dscp-class EF

# ps4 egress
iptables -t mangle -A qos_egress -s 192.168.1.142 -p udp -j DSCP --set-dscp-class CS4

#Next the user entered rules.



QoS in gui, download:

Destination: 192.168.1.142, Transport Protocol: UDP/ Ps4
Maximum Packet Length: 64 bytes, Transport Protocol: TCP /Fast
Transport Protocol: ICMP /Fast

Normal 40% zero nolimit
Fast 10% zero nolimit
Ps4 50% zero nolimit minrtt



gui, upload:

Source: 192.168.1.142, Transport Protocol: UDP /Ps4
Maximum Packet Length: 64 bytes, Transport Protocol: TCP /Fast
Transport Protocol: ICMP /Fast

Normal 10% zero nolimit
Fast 40% zero nolimit
Ps4 50% zero nolimit


Best setup for me so far, playing Ps4 over wifi.
You still use these?

taz-kun
Posts: 19
Joined: Fri Mar 29, 2019 2:18 am

Re: Best settings for gaming QoS+DSCP

Post by taz-kun »

How much improvement in percentage compared to previous configurations?

sanamakita81
Posts: 1
Joined: Fri Dec 18, 2020 10:15 pm

Re: Best settings for gaming QoS+DSCP

Post by sanamakita81 »

How to apply my router?

taz-kun
Posts: 19
Joined: Fri Mar 29, 2019 2:18 am

Re: Best settings for gaming QoS+DSCP

Post by taz-kun »

use winscp and follow the path /etc/init.d/qos_gargoyle

What game are you optimizing for?

taz-kun
Posts: 19
Joined: Fri Mar 29, 2019 2:18 am

Re: Best settings for gaming QoS+DSCP

Post by taz-kun »

what is the default QOS recommended by the creator?

taz-kun
Posts: 19
Joined: Fri Mar 29, 2019 2:18 am

Re: Best settings for gaming QoS+DSCP

Post by taz-kun »

Any way to edit a rule to do a multiport match since the GUI doesn't give the option?

there would be several rules with the same purpose


https://ibb.co/TwFHKCY

Adding all the ports to a single rule and not to several since they will fulfill the same function, example BF4 would use it like this from the minimum port to the highest it would not be ideal because it uses ports that are not in the game

Lantis
Moderator
Posts: 6052
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Best settings for gaming QoS+DSCP

Post by Lantis »

No the backend code only supports what is available in the GUI.
If someone wanted to write support for the mulitport matching action in iptables and integrate it into the GUI that would be welcome.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

taz-kun
Posts: 19
Joined: Fri Mar 29, 2019 2:18 am

Re: Best settings for gaming QoS+DSCP

Post by taz-kun »

It would be nice if they added that option in the next version so it doesn't get cluttered with rules due to port prioritization

as this rule uses MInRTT, I don't have the knowledge to create it and use minrtt


Thanks for answering

Knomax
Posts: 24
Joined: Wed Mar 22, 2017 4:52 pm
Location: Greece

Re: Best settings for gaming QoS+DSCP

Post by Knomax »

Can someone post..one post with complete instructions..HOW TO?
Because i "lost" with so many posts..and changes.

And are you sure that is working???
Etc. classification to 1:11 class traffic.

Code: Select all

ipt64 -t mangle -A POSTROUTING -m dscp --dscp-class EF -j CLASSIFY --set-class 1:11


So from the above everything that has marked as EF will fall in class 1:11

And ports 19302:19309 which marked as EF will fall in above rule.

Code: Select all

ipt64dscp -p udp -m multiport --sports 19302:19309 -j DSCP --set-dscp-class EF

And etc. with this rule we mark as CS6 with no use

Code: Select all

# ps4 ingress
iptables -t mangle -A qos_ingress -d 192.168.1.142 -p udp -j DSCP --set-dscp-class CS6
We must know the CLASSIFY classes to create the rules.

taz-kun
Posts: 19
Joined: Fri Mar 29, 2019 2:18 am

Re: Best settings for gaming QoS+DSCP

Post by taz-kun »

when marking dscp with EF there is a high probability of loss, I only recommend marking CS4 which is especially for games


If you want I can upload my configuration although it is a bit understandable it has worked well for me in some games :|

Post Reply