QOS allocation question

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
guyso
Posts: 47
Joined: Fri Jan 06, 2012 6:52 pm

QOS allocation question

Post by guyso »

Hi, I have been using Gargoyle for about two weeks and am super impressed. I am running it on a Buffalo WZR-HP-G300NH.

One of the reasons I started using Gargoyle was to share the kids bandwidth as my daughter is a you-tube junkie and this interferes with my sons on-line gaming. So I have set-up QOS Classes of fast 50%, normal 35% and slow 15%. I have then included my sons IP address as normal, fast for my wife and my IP address and the default which I assume covers any IP address not specifically assigned as slow, which should cover my daughter and you-tube.

The question is, if only my son and daughter are online and maxing out the connection is my daughter limited to 15% and my son gets the rest (85%) or the reverse, my son gets 35% and my daughter gets the rest (65%), or is it some other way. Is it in any way related to the order I have the Service Classes in. Currently the Service Classes table has Fast on top, slow in the middle and normal at the bottom, for no other reason than that was the order I defined them in.

Thanks for a great product.
Netgear WNDR3700 v1 and v2 and v4
Linksys WRT1900ACS

tals
Posts: 247
Joined: Fri Dec 09, 2011 7:27 am

Re: QOS allocation question

Post by tals »

I'm not quite sure of the answer, I know unlike other routers if a class is not being used then it doesn't lose the space and allocates it between the classes being used

However onto what you are trying to achieve, the actual proportions are probably out, for your son to game he actually needs very little bandwidth in proportion to your daughter and your wife's again probably doesn't need the space. You could test by just getting your son to game and watch the amount of bandwidth it takes up in the class.

Definitely use active congestion control this will ensure that the line does not get congested which would affect his ping, the way I did it was actually set classes representing my family ie mummy/daddy rather than normal/fast etc - also then allows me to see at a glance who in the family is using the network, then I've split it fairly evenly. I did allocate the gaming side a min of 100 but I don't think I needed todo this, also make sure qos upload s also set as this can also affect the lag for your son.

But likewise to yourself, finally I have a router that works really well for gamers and downloaders together, last night the whole family were on the web and I was able to game with a reasonable ping.
Netgear wndr3700 v2 Gargoyle 1.8.0
TP-Link Archer C7 v2 1.10.X (Built 20180122-0707)

pbix
Developer
Posts: 1373
Joined: Fri Aug 21, 2009 5:09 pm

Re: QOS allocation question

Post by pbix »

First, remember that percent bandwidth utilization numbers are only important when the link is saturated. If the link is not saturated they have not effect.

Now if the link is saturated then it is divided according to the percentages of the active classes. So in the case the OPs referenced then SLOW and FAST class split becomes 35/(35+15)= 70% (FAST)and 15/(15+35)=30% (SLOW)
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

guyso
Posts: 47
Joined: Fri Jan 06, 2012 6:52 pm

Re: QOS allocation question

Post by guyso »

pbix wrote:then SLOW and FAST class split becomes 35/(35+15)= 70% (FAST)and 15/(15+35)=30% (SLOW)
Thanks pbix, exactly the information I was after. When the link is maxed out it basically pro ratas the available bandwidth based on the classes which are active at the time.

One other question, is there a delay here, in other words how does the QOS function work out if there is anyone using, say in my example, the FAST class so that the system knows to allocate the required bandwidth to the various classes. Does it look at all IP addresses sending packets and as soon as it sees a packet from a specific class IP it then adjusts the allocation to all classes using the formulae you provided. If this is the case is there some sort of hysteresis in that it assumes that IP will be online for a period of time before it assumes no more packets from that class and reassigns the bandwidth.

Sorry for the detailed request for info, I just like to know the logic behind the function so that I can understand the graphs and changing allocations when I see them.

Thanks again for a great product, it continues to work perfectly and be rock solid on firmware 1.4.4
Netgear WNDR3700 v1 and v2 and v4
Linksys WRT1900ACS

pbix
Developer
Posts: 1373
Joined: Fri Aug 21, 2009 5:09 pm

Re: QOS allocation question

Post by pbix »

guyso wrote:Does it look at all IP addresses sending packets and as soon as it sees a packet from a specific class IP it then adjusts the allocation to all classes using the formulae you provided.
IP addresses do not work into it my friend so do not use terms like "class IP". In QoS we have rules and classes. The rules at the top of the page direct packets to the classes shown at the bottom. Packets queue in the classes waiting for a chance to transmit. If a class has packets waiting in its queue then it is "Active". Gargoyle QoS allocates bandwidth between active classes per the formula I showed. There is no delay or hysteresis on your router.

Now on the computer there is some delay because TCP will ramp up the speed of a connection slowly until it sees that packets are being lost at which time it stops trying to go faster.
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

guyso
Posts: 47
Joined: Fri Jan 06, 2012 6:52 pm

Re: QOS allocation question

Post by guyso »

Thanks pbix, again a description I can understand. Sorry for the mistake about 'class IPs', now I can see IPs have nothing to do with the allocation, it is just the queues.

You and others must have put a huge amount of work into this project. I wish to express my appreciation for providing such a great alternative to the poor manufactures efforts I have seen up to now. I am so impressed I have supported development in a more material way with a donation.

Thanks again
Netgear WNDR3700 v1 and v2 and v4
Linksys WRT1900ACS

Post Reply