Disappointing bufferbloat

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

Moderator: Moderators

orangetek
Posts: 20
Joined: Wed Nov 28, 2012 9:45 am

Re: Disappointing bufferbloat

Post by orangetek »

Ok guy's, a better option was to change

Code: Select all

//This variable will be set in pr_pack() if we get a pong that matched
        //our ping, but in case we don't get we initialize to the period.
        rawfltime=period;
to

Code: Select all

//This variable will be set in pr_pack() if we get a pong that matched
        //our ping, but in case we don't get we initialize to the period.
        //rawfltime=period;
in other words, if a timeout occurs, do nothing! During my peak period last night, my max limit stayed on average 15mbits above what i would have normally seen with no ill effects on ping times. Off peak was perfect with max limits dropping only 1mbit below the fair limit probably due to the odd high ping and low usage not pushing it back up which is fine. I have an ar71xx folder full of images if anyone wants to try it out. Let me know :)

tapper
Moderator
Posts: 1076
Joined: Sun Oct 13, 2013 5:49 pm
Location: Stoke-on-trent UK

Re: Disappointing bufferbloat

Post by tapper »

Hi i am going to start using qos on my router but i cant see the screenshots as i am blind and using a screen reader can some one copy and paste there settings off there router as text so i can read it pleas thanks. i just want to lower ping times for my sun who plays a lot of dota2.

It will paste like this.

Gargoyle
Router
Management
Utility
Device Name: Tapper'sAP
QoS (Download) -- Classification Rules
Enable Quality of Service (Download Direction)
Quality of Service (QoS) provides a way to control how available bandwidth is allocated. Connections are classified into different “service classes,” each of which is allocated a share of the available bandwidth. QoS should be applied in cases where you want to divide available bandwidth between competing requirements. For example if you want your VoIP phone to work correctly while downloading videos. Another case would be if you want your bit torrents throttled back when you are web surfing.
Match Criteria
Classification
Source Port: 80, Connection bytes: 1024 kBytes
Normal
Edit
Remove


Source Port: 443, Connection bytes: 1024 kBytes
Normal
Edit
Remove


Source Port: 80
Fast
Edit
Remove


Source Port: 443
Fast
Edit
Remove


Source Port: 53
Fast
Edit
Remove


Default Service Class:
Slow
More Info
Add New Classification Rule:
Source IP:

Source Port(s):

Destination IP:

Destination Port(s):

Maximum Packet Length:
bytes
Minimum Packet Length:
bytes
Transport Protocol:
TCP
Connection bytes reach:
kBytes
Application (Layer7) Protocol:
AIM
Set Service Class To:
Slow
Add Rule
QoS (Download) -- Service Classes
Service Class Name
Percent BW
Min BW (kbps)
Max BW (kbps)
Min RTT
Load (kbps)
VoIP
1%
80
200
Yes
*
Edit
Remove
Fast
80%
zero
nolimit
*
Edit
Remove
Slow
1%
zero
nolimit
*
Edit
Remove
Normal
18%
zero
nolimit
*
Edit
Remove
Total Download Bandwidth:
kbits/s
More Info
Add New Service Class:
Service Class Name:

Percent Bandwidth At Capacity:
%
Bandwidth Minimum:
No Bandwidth Minimum
Bandwidth Minimum:
kbits/s
Bandwidth Maximum:
No Bandwidth Maximum
Bandwidth Maximum:
kbits/s
Minimize Round Trip Times (RTT):
Minimize RTT (ping times) when active
Optimize WAN utilization
Add Service Class
QoS (Download) -- Active Congestion Control
Enable active congestions control (Download Direction)
   Use non-standard ping target: 86.27.171.1
   Manually control target ping time: Auto
More Info
Congestion Control Status








More Info
Save Changes Reset
Status
Connection
Firewall
Port Forwarding
Connection Limits
Adblock
Restrictions
Quotas
QoS (Upload)
QoS (Download)
System
Logout
Linksys WRT3200ACM
NETGEAR Nighthawk R7800
NETGEAR R6260

Volaris
Posts: 177
Joined: Thu May 01, 2014 1:02 pm

Re: Disappointing bufferbloat

Post by Volaris »

Hi tapper. I'll paste the text below - I'm not sure if I did it the right way since it seems to copy and paste differently than yours. But it seems it varies by browser. I will explain the QoS in words first.

This applies to both upload and download QoS. It's the same. For Classification Rules, you'll want to delete everything you have and only have one rule. It'll be for Maximum Packet Length of 512 bytes, and classification will be Fast. I repeat, that is for 512 bytes, not kilobits or kilobytes. Below that where it asks for Default Service Class, set that to Normal.

Now we can move on to the Service Class section. As you can imagine from above, there will only be two service classes. One will be fast, and the other normal. Both will be set for 50 percent traffic, and minRTT will be off for both. You can leave both minimum and maximum bandwidth untouched. Below that you can set your connection's bandwidth. Active congestion control should be set for what's optimum for your connection.

As you can see, the setup is very simple but works wonderfully thanks to Gargoyle's per IP sharing. And since it treats all traffic equally regardless of ports, it should help your son's gaming experience. Currently it seems his gaming ports are most likely set for slow. Hopefully that helps, if not, below are the text copy and paste from my browser.

Download section:

QoS (Download) -- Classification Rules
Enable Quality of Service (Download Direction)
Quality of Service (QoS) provides a way to control how available bandwidth is allocated. Connections are classified into different “service classes,” each of which is allocated a share of the available bandwidth. QoS should be applied in cases where you want to divide available bandwidth between competing requirements. For example if you want your VoIP phone to work correctly while downloading videos. Another case would be if you want your bit torrents throttled back when you are web surfing.

Match Criteria Classification
Maximum Packet Length: 512 bytes Fast Edit Remove ↑ ↓
Default Service Class: Normal
More Info
Add New Classification Rule:
Source IP:
Source Port(s):
Destination IP:
Destination Port(s):
Maximum Packet Length:
bytes
Minimum Packet Length:
bytes
Transport Protocol:
Connection bytes reach:
kBytes
Application (Layer7) Protocol:
Set Service Class To:
Add Rule
QoS (Download) -- Service Classes
Service Class Name Percent BW Min BW (kbps) Max BW (kbps) Min RTT Load (kbps)
Fast 50% zero nolimit 0.0 Edit Remove
Normal 50% zero nolimit 0.0 Edit Remove
Total Download Bandwidth:
15000
kbits/s
More Info
Add New Service Class:
Service Class Name:
Percent Bandwidth At Capacity:
%
Bandwidth Minimum:
No Bandwidth Minimum
Bandwidth Minimum:
kbits/s
Bandwidth Maximum:
No Bandwidth Maximum
Bandwidth Maximum:
kbits/s
Minimize Round Trip Times (RTT):
Minimize RTT (ping times) when active
Optimize WAN utilization
Add Service Class
QoS (Download) -- Active Congestion Control
Enable active congestions control (Download Direction)
Use non-standard ping target:
8.8.8.8
Manually control target ping time:
Auto
More Info
Congestion Control Status
State: IDLE
Link limit: 13500 (kbps)
Fair Link limit: 13500 (kbps)
Link load: 0 (kbps)
Ping: off
Filtered ping: 19 (ms)
Ping time limit: 0 (ms) [36/56]
Classes Active: 0
More Info

Upload section:

QoS (Upload) -- Classification Rules
Enable Quality of Service (Upload Direction)
Quality of Service (QoS) provides a way to control how available bandwidth is allocated. Connections are classified into different “service classes,” each of which is allocated a share of the available bandwidth. QoS should be applied in cases where you want to divide available bandwidth between competing requirements. For example if you want your VoIP phone to work correctly while downloading videos. Another case would be if you want your bit torrents throttled back when you are web surfing.

Match Criteria Classification
Maximum Packet Length: 512 bytes Fast Edit Remove ↑ ↓
Default Service Class: Normal
More Info
Add New Classification Rule:
Source IP:
Source Port(s):
Destination IP:
Destination Port(s):
Maximum Packet Length:
bytes
Minimum Packet Length:
bytes
Transport Protocol:
Connection bytes reach:
kBytes
Application (Layer7) Protocol:
Set Service Class To:
Add Rule
QoS (Upload) -- Service Classes
Service Class Name Percent BW Min BW (kbps) Max BW (kbps) Load (kbps)
Fast 50% zero nolimit 0.0 Edit Remove
Normal 50% zero nolimit 0.3 Edit Remove
Total (Upload) Bandwidth:
1100
kbits/s
More Info
Add New Service Class:
Service Class Name:
Percent Bandwidth At Capacity:
%
Bandwidth Minimum:
No Bandwidth Minimum
Bandwidth Minimum:
kbits/s
Bandwidth Maximum:
No Bandwidth Maximum
Bandwidth Maximum:
kbits/s
Add Service Class
QoS Tip: Don't complicate your QoS settings. Gargoyle evenly splits available bandwidth between active devices as needed. Just delete all your classification rules and leave only one normal service class and you're done. No more arguing over bandwidth.

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

Re: Disappointing bufferbloat

Post by Lantis »

Glad your son is getting into dota 2. Fantastic game :P

I'll add my tip for easily finding his game traffic.

Get him to add a "launch option" to the game or create an autoexec.cfg (good instructions for both online).
Which ever method you choose, put the command "clientport 27005".
This will force the game to always select that port and then on the download side you can use "Destination Port 27005" and upload settings "Source Port 27005".

If he plays any other Steam games you can use the exact same method for almost all of them and only create one rule :)

Here's an article on setting launch options.
https://support.steampowered.com/kb_art ... -JWMT-2947
The one you would set is "+clientport 27005"
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

tapper
Moderator
Posts: 1076
Joined: Sun Oct 13, 2013 5:49 pm
Location: Stoke-on-trent UK

Re: Disappointing bufferbloat

Post by tapper »

Thanks for the info and tips i will tri both and let you no how i get on. :) :geek:
Linksys WRT3200ACM
NETGEAR Nighthawk R7800
NETGEAR R6260

tapper
Moderator
Posts: 1076
Joined: Sun Oct 13, 2013 5:49 pm
Location: Stoke-on-trent UK

Re: Disappointing bufferbloat

Post by tapper »

[quote="Volaris"]Hi tapper. I'll paste the text below - I'm not sure if I did it the right way since it seems to copy and paste differently than yours. But it seems it varies by browser. I will explain the QoS in words first.

This applies to both upload and download QoS. It's the same. For Classification Rules, you'll want to delete everything you have and only have one rule. It'll be for Maximum Packet Length of 512 bytes, and classification will be Fast. I repeat, that is for 512 bytes, not kilobits or kilobytes. Below that where it asks for Default Service Class, set that to Normal.

Now we can move on to the Service Class section. As you can imagine from above, there will only be two service classes. One will be fast, and the other normal. Both will be set for 50 percent traffic, and minRTT will be off for both. You can leave both minimum and maximum bandwidth untouched. Below that you can set your connection's bandwidth. Active congestion control should be set for what's optimum for your connection.

As you can see, the setup is very simple but works wonderfully thanks to Gargoyle's per IP sharing. And since it treats all traffic equally regardless of ports, it should help your son's gaming experience. Currently it seems his gaming ports are most likely set for slow. Hopefully that helps, if not, below are the text copy and paste from my browser.


Hi thanks for your help. I set it up just like you said but how do i no if i should use Active congestion control?
Linksys WRT3200ACM
NETGEAR Nighthawk R7800
NETGEAR R6260

tapper
Moderator
Posts: 1076
Joined: Sun Oct 13, 2013 5:49 pm
Location: Stoke-on-trent UK

Re: Disappointing bufferbloat

Post by tapper »

Lantis wrote:Glad your son is getting into dota 2. Fantastic game :P

I'll add my tip for easily finding his game traffic.

Get him to add a "launch option" to the game or create an autoexec.cfg (good instructions for both online).
Which ever method you choose, put the command "clientport 27005".
This will force the game to always select that port and then on the download side you can use "Destination Port 27005" and upload settings "Source Port 27005".

If he plays any other Steam games you can use the exact same method for almost all of them and only create one rule :)

Here's an article on setting launch options.
https://support.steampowered.com/kb_art ... -JWMT-2947
The one you would set is "+clientport 27005"
Hi i will show him your post and see how it gos with the qos settings thanks.
Linksys WRT3200ACM
NETGEAR Nighthawk R7800
NETGEAR R6260

tapper
Moderator
Posts: 1076
Joined: Sun Oct 13, 2013 5:49 pm
Location: Stoke-on-trent UK

Re: Disappointing bufferbloat

Post by tapper »

The kids are home and it's working nice thanks a lot.

Gargoyle
Router
Management
Utility
Device Name: Tapper'sAP
QoS (Download) -- Classification Rules
Enable Quality of Service (Download Direction)
Quality of Service (QoS) provides a way to control how available bandwidth is allocated. Connections are classified into different “service classes,” each of which is allocated a share of the available bandwidth. QoS should be applied in cases where you want to divide available bandwidth between competing requirements. For example if you want your VoIP phone to work correctly while downloading videos. Another case would be if you want your bit torrents throttled back when you are web surfing.
Match Criteria
Classification
Maximum Packet Length: 512 bytes
Fast
Edit
Remove


Default Service Class:
Normal
More Info
Add New Classification Rule:
Source IP:

Source Port(s):

Destination IP:

Destination Port(s):

Maximum Packet Length:
bytes
Minimum Packet Length:
bytes
Transport Protocol:
TCP
Connection bytes reach:
kBytes
Application (Layer7) Protocol:
AIM
Set Service Class To:
Normal
Add Rule
QoS (Download) -- Service Classes
Service Class Name
Percent BW
Min BW (kbps)
Max BW (kbps)
Min RTT
Load (kbps)
Fast
50%
zero
nolimit
20
Edit
Remove
Normal
50%
zero
nolimit
15019
Edit
Remove
Total Download Bandwidth:
50000 kbits/s
More Info
Add New Service Class:
Service Class Name:

Percent Bandwidth At Capacity:
%
Bandwidth Minimum:
No Bandwidth Minimum
Bandwidth Minimum:
kbits/s
Bandwidth Maximum:
No Bandwidth Maximum
Bandwidth Maximum:
kbits/s
Minimize Round Trip Times (RTT):
Minimize RTT (ping times) when active
Optimize WAN utilization
Add Service Class
QoS (Download) -- Active Congestion Control
Enable active congestions control (Download Direction)
   Use non-standard ping target: 208.67.220.220
   Manually control target ping time: Auto
More Info
Congestion Control Status
State: ACTIVE
Link limit: 30588 (kbps)
Fair Link limit: 30588 (kbps)
Link load: 15039 (kbps)
Ping: 21 (ms)
Filtered ping: 17 (ms)
Ping time limit: 31 (ms) [21/31]
Classes Active: 2
More Info
Save Changes Reset
Status
Connection
Firewall
Port Forwarding
Connection Limits
Adblock
Restrictions
Quotas
QoS (Upload)
QoS (Download)
System
Logout
Linksys WRT3200ACM
NETGEAR Nighthawk R7800
NETGEAR R6260

Volaris
Posts: 177
Joined: Thu May 01, 2014 1:02 pm

Re: Disappointing bufferbloat

Post by Volaris »

tapper wrote:
Volaris wrote:Hi thanks for your help. I set it up just like you said but how do i no if i should use Active congestion control?
...
The kids are home and it's working nice thanks a lot.
That's great to hear!

Congestion control is really helpful if your internet connection download bandwidth fluctuates throughout the day. It'll adjust the link limit automatically. I saw you're using OpenDNS servers and it's giving you low pings, so it should be working properly.

Given the amount of bandwidth you have available, this QoS setup should work great.
QoS Tip: Don't complicate your QoS settings. Gargoyle evenly splits available bandwidth between active devices as needed. Just delete all your classification rules and leave only one normal service class and you're done. No more arguing over bandwidth.

tapper
Moderator
Posts: 1076
Joined: Sun Oct 13, 2013 5:49 pm
Location: Stoke-on-trent UK

Re: Disappointing bufferbloat

Post by tapper »

Hi qos is being very aggressive with my bandwidth should i turn off active congestions control?

Downstream speed (multithread) (Mbps)
Min
Max
Samples
5th Dec, 2015
00:00
41.99
41.99
41.99
1
5th Dec, 2015
06:00
39.30
39.30
39.30
1
5th Dec, 2015
12:00
23.63
23.63
23.63
1
5th Dec, 2015
22:00
9.52
9.52
9.52
1
6th Dec, 2015
00:00
11.74
11.74
11.74
1
6th Dec, 2015
06:00
12.03
12.03
12.03
1

before qos changes:

30th Nov, 2015
06:00
50.60
50.60
50.60
1
1st Dec, 2015
00:00
52.79
52.79
52.79
1
1st Dec, 2015
06:00
53.98
53.98
53.98
1
1st Dec, 2015
12:00
52.55
52.55
52.55
1
1st Dec, 2015
20:00
46.09
46.09
46.09
1
2nd Dec, 2015
06:00
53.98
53.98
53.98
1
2nd Dec, 2015
12:00
53.66
53.66
53.66
1
2nd Dec, 2015
18:00
21.37
21.37
21.37
1
2nd Dec, 2015
22:00
53.34
53.34
53.34
1
3rd Dec, 2015
00:00
53.67
53.67
53.67
1
3rd Dec, 2015
06:00
52.05
52.05
52.05
1
3rd Dec, 2015
12:00
53.86
53.86
53.86
1
4th Dec, 2015
00:00
53.59
53.59
53.59
1
4th Dec, 2015
06:00
53.34
53.34
53.34
1


It is not as bad with my upload.


Upstream speed (multithread) (Mbps)
Min
Max
Samples
30th Nov, 2015
00:00
3.02
3.02
3.02
1
30th Nov, 2015
06:00
2.90
2.90
2.90
1
30th Nov, 2015
20:00
3.01
3.01
3.01
1
30th Nov, 2015
22:00
3.03
3.03
3.03
1
1st Dec, 2015
00:00
3.00
3.00
3.00
1
1st Dec, 2015
06:00
2.99
2.99
2.99
1
1st Dec, 2015
20:00
3.07
3.07
3.07
1
1st Dec, 2015
22:00
3.00
3.00
3.00
1
2nd Dec, 2015
06:00
3.04
3.04
3.04
1
2nd Dec, 2015
12:00
2.99
2.99
2.99
1
2nd Dec, 2015
18:00
0.84
0.84
0.84
1
2nd Dec, 2015
22:00
3.01
3.01
3.01
1
3rd Dec, 2015
00:00
3.01
3.01
3.01
1
3rd Dec, 2015
06:00
2.06
2.06
2.06
1
3rd Dec, 2015
12:00
3.01
3.01
3.01
1
3rd Dec, 2015
20:00
2.64
2.64
2.64
1
4th Dec, 2015
00:00
2.98
2.98
2.98
1
4th Dec, 2015
06:00
3.00
3.00
3.00
1
4th Dec, 2015
12:00
2.92
2.92
2.92
1
5th Dec, 2015
00:00
2.90
2.90
2.90
1
5th Dec, 2015
06:00
2.92
2.92
2.92
1
5th Dec, 2015
12:00
2.91
2.91
2.91
1
5th Dec, 2015
22:00
2.76
2.76
2.76
1
6th Dec, 2015
00:00
2.87
2.87
2.87
1
6th Dec, 2015
06:00
2.93
2.93
2.93
1
Linksys WRT3200ACM
NETGEAR Nighthawk R7800
NETGEAR R6260

Post Reply