Page 1 of 1

How to put priority to lol

Posted: Tue Jul 17, 2018 2:49 am
by fernando143
Hi, I'm new to this, I'm looking at tutorials on YouTube, reading forums, looking at guides.
However, I think something is not going well.
What I want to do is prioritize the traffic of a game (league of legends) and leave the rest of the traffic in low priority ie:
1_ league of legends traffic
2_ other traffic

My connection is 2M download speed and 384k upload speed.
eth1 is the WAN
eth2 eth3, eth4 and wlan are inside a bridge called bridge1

In mangrove I have configured the following:
----------------------------------------------
chain = prerouting protocol = udp source-port = 5000-5500 In.Interface = Wan action = mark connection new connection mark = lol_udp_wan passthrough = yes

chain = prerouting connection-mark = lol_udp_wan action = mark packet new packet mark = lol_udp_wan passthrough = no
----------------------------------------------
chain = forward connection mark = no-mark action = mark connection new connection mark = other_c passthrough = yes

chain = forward connection mark = other_c action = mark packet new packet mark = other_p passthrough = no
----------------------------------------------

I have the following configured in simple queues:

name = lol target = bridge1 max-upload-limit = 340k max-download-limit = 1900k packet-marks = lol_udp_wan priority-upload = 2 priority-download = 2 queue-type = pcq-upload-default pcq-download-default

name = other target = bridge1 max-upload-limit = 340k max-download-limit = 1900k packet-marks = other_p priority = 6 queue-type = pcq-upload-default pcq-download-default

When I'm playing league of legends and I open some web pages or watch videos on youtube, I feel like the in-game ping goes up around 200ms.

The question I have is whether it is normal that when someone opens a page or a video, the game's ping increases or it should always be the lowest ping

Regards

Re: How to put priority to lol

Posted: Tue Jul 17, 2018 1:54 pm
by p3rad0x
Hi,

I find marking specific packet sizes and src ports a issue with online gaming.

What I did is lookup the ASN number for Riot inc.

Then create a address list with their prefixes and mark all connections going to that prefixes.

Then create 3 simple queues, one must serve as the parent and the ohter 2 child queues.

Set your queues up in a way that the internet traffic can only reach about 90-95% of the bandwidth and allocate the other 5 to league.

Then your latency should stay stable when there is other downloads running.

BTW here in South Africa we play with 200ms because of the distance to the server

Re: How to put priority to lol

Posted: Wed Jul 18, 2018 12:42 am
by fernando143
200ms, it's sad.

I visited this page
https://bgp.he.net/AS6507

And I don't understand what is the ASN of Riot. Is it AS6507?