All,
I have been playing with the Advanced Queue QOS for a few hours this weekend. I have a very slow internet connection and I’m trying to exercise a lot of control over it to help it seem faster. The basic idea I’m going for is 5 categories: Media, Games, Web, VOIP, and Bulk.
I want media (Upload: 101-109, Download: 201-209) to be guaranteed 864kb/2864kb with a ceiling of max rate. This category will include Streaming and the two Chromecasts. My wife needs her ‘Orange is the new Black.’ This stream is buffered and can be bursty.
I want Games(Upload: 110-119, Download: 210-219) to be guaranteed 150kb/500kb with a ceiling of max rate. I have to do something while she binges. This is a low latency low bandwidth (I set this to priority 1.) connection.
I want VOIP(Upload: 130-139, Download: 230-239) to be 128kb/128kb with a 750kb/750kb ceiling. This is voice and has the highest priority (0).
I want Web(Upload: 120-129, Download: 220-229) to be 80kb/220kb with a ceiling of max rate. This includes the business category, which I think would include ssh.
I want Bulk(Upload: 190-199, Download: 290-299) to be everything else and should soak up any extra bandwidth. This will be mainly be huge backups that run for a few days at a time. These backups are rsync over ssh.
These are my goals, currently my settings are not accomplishing this goal. I have copied and pasted my config below.
Q: How can I change these setting to accomplish the above?
Q: I’m not sure how to set filter priority, I want the ssh from 192.168.1.15 to be in the ‘backup’ filter not in the ‘Business’ filter. How do I do that?
advanced-queue {
branch {
queue 100 {
bandwidth 1230kbit
description Upload
parent 1
}
queue 200 {
bandwidth 3700kbit
description Download
parent 1
}
}
filters {
match 100 {
attach-to 1
description Upload
ip {
source {
address 192.168.1.0/24
}
}
target 100
}
match 101 {
attach-to 100
description Chromecast_Bedroom
ip {
source {
address 192.168.1.41/32
}
}
target 101
}
match 102 {
attach-to 100
description Chromecast_LivingRoom
ip {
source {
address 192.168.1.42/32
}
}
target 101
}
match 103 {
application {
category Streaming-Media
}
attach-to 100
description Media
target 101
}
match 110 {
application {
category Games
}
attach-to 100
description Games
target 110
}
match 120 {
application {
category Web
}
attach-to 100
description Browser
target 120
}
match 121 {
application {
category Business
}
attach-to 100
description Business
target 120
}
match 190 {
attach-to 100
description Bulk
target 190
}
match 191 {
attach-to 100
description Backup
ip {
source {
address 192.168.1.15/32
}
}
target 190
}
match 200 {
attach-to 1
description Download
ip {
destination {
address 192.168.1.0/24
}
}
target 200
}
match 201 {
attach-to 200
description Chromcast_Bedroom
ip {
destination {
address 192.168.1.41/32
}
}
target 201
}
match 202 {
attach-to 200
description ChromeCast_LivingRoom
ip {
destination {
address 192.168.1.42/32
}
}
target 201
}
match 203 {
application {
category Streaming-Media
}
attach-to 200
description Media
target 201
}
match 210 {
application {
category Games
}
attach-to 200
description Games
target 210
}
match 220 {
application {
category Web
}
attach-to 200
description Browser
target 220
}
match 221 {
application {
category Business
}
attach-to 200
description Business
target 220
}
match 290 {
attach-to 200
description Bulk
target 290
}
match 291 {
attach-to 200
description Backup
ip {
destination {
address 192.168.1.15/32
}
}
target 290
}
}
leaf {
queue 101 {
bandwidth 864kbit
ceiling 1230kbit
description Media
parent 100
priority 6
queue-type FQCODEL_UP
}
queue 110 {
bandwidth 150kbit
ceiling 1230kbit
description Games
parent 100
priority 1
queue-type FQCODEL_UP
}
queue 120 {
bandwidth 80kbit
ceiling 1230kbit
description Web
parent 100
queue-type FQCODEL_UP
}
queue 130 {
bandwidth 128kbit
burst {
burst-rate 1230kbit
burst-size 100kb
}
ceiling 750kbit
description VOIP
parent 100
priority 0
queue-type FQCODEL_UP
}
queue 190 {
bandwidth 8kbit
ceiling 1230kbit
description Bulk
parent 100
queue-type FQCODEL_UP
}
queue 201 {
bandwidth 2864kbit
ceiling 3700kbit
description Media
parent 200
priority 6
queue-type FQCODEL_DOWN
}
queue 210 {
bandwidth 500kbit
ceiling 3700kbit
description Games
parent 200
priority 1
queue-type FQCODEL_DOWN
}
queue 220 {
bandwidth 200kbit
ceiling 3700kbit
description Web
parent 200
queue-type FQCODEL_DOWN
}
queue 230 {
bandwidth 128kbit
burst {
burst-rate 1230mbit
burst-size 100kb
}
ceiling 750kbit
description VOIP
parent 200
priority 0
queue-type FQCODEL_DOWN
}
queue 290 {
bandwidth 8kbit
ceiling 3700kbit
description Bulk
parent 200
queue-type FQCODEL_DOWN
}
}
queue-type {
fq-codel FQCODEL_DOWN {
ecn enable
}
fq-codel FQCODEL_UP {
ecn enable
}
}
root {
queue 1 {
attach-to eth0
bandwidth 4930kbit
description Root
}
}
}
}