Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
21.1 Legacy Series
»
Traffic shaping
« previous
next »
Print
Pages: [
1
]
Author
Topic: Traffic shaping (Read 2455 times)
fox983
Newbie
Posts: 47
Karma: 1
Traffic shaping
«
on:
March 21, 2021, 07:35:15 pm »
It should be possible to share internet bandwidth among users evenly AND prioritize certain type of traffic?
If in
Queues
I have 2 queues, one for download ad one for upload with the same weight of 100, is it correct to create other 2 queues (dl/ul for example for https or VOIP) and 2 new rules that refer to those? Them should be placed before the current rules of shaping?
Thanks all
Logged
waxhead
Jr. Member
Posts: 55
Karma: 7
Re: Traffic shaping
«
Reply #1 on:
March 23, 2021, 12:58:30 am »
DISCLAIMER: I am no expert on this and may not know what I am taking about.
But as far as I can tell - yes - you just make two new queues with a higher weight and assign your traffic to them.
As far as I have understood it is more or less the same as going to a movie...
Pipe = The door. E.g. how many people (for example 10) that can enter at once. (bandwidth)
Queue = A bunch of people. If a more important queue exists (higher queue weight) then for every 9th that entered from the important queue, one will enter from the regular queue.
Rules = Determines what kind of people belongs to what queue - the fancy important one or the regular queue.
So if you want to share bandwidth evenly just look at this
https://docs.opnsense.org/manual/how-tos/shaper_share_evenly.html
and make a couple of high priority queues and set a high weight to them.
Logged
fox983
Newbie
Posts: 47
Karma: 1
Re: Traffic shaping
«
Reply #2 on:
March 25, 2021, 02:57:44 am »
Share evenly: 2 queues weight 100
Prioritize application: 1 queue weight 80 and 1 queue weight 20
How can we have queues with different weight (and rules associated) that belong from evenly shared queue?
Logged
waxhead
Jr. Member
Posts: 55
Karma: 7
Re: Traffic shaping
«
Reply #3 on:
March 25, 2021, 03:50:19 am »
DISCLAIMER: I still may not be know what I am talking about...
Pipe = fixed bandwidth 100mbps for example... This if this as the "master queue".
Queue1 = weight 100
Queue2 = weight 100
if both queue 1 and 2 have a data rate at 100mbps each then the data will be sent through the pipe from queue ordered something like this: 1,2,1,2,1,2,1,2,1,2,1,2...etc.
E.g. the pipe is fully utilized by taking half the data from each queue. So the queues will be emptied at a data rate of 50mbps.
If you now add Queue3 = weight 200 (higher weight, means higher datarate) and there is 100mbps datarate on that queue as well you will get something like this: 3,1,3,2,3,1,3,2,3,1,3,2,3,1,3,2,....etc This means that you will get 50mbps on queue 3 while queue 1 and 2 will share the remaining 50mbps and get 25mbps each.
If you add a single pipe with fixed bandwidth , you can prioritize by assigning queues to that pipe only. The weight of the queue determins how much of each queue will let through. That is a evenly shared queue (the pipe) and you can prioritize traffic easily.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
21.1 Legacy Series
»
Traffic shaping