Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 QoS/Bandwidth Control, <cleanup> Wanna shape your traffic ?

views
     
WhitE LighteR
post May 15 2014, 05:45 PM

WhitE LighteR Is Black~
********
All Stars
10,340 posts

Joined: Jan 2003


The TP-Link router firmware is quite confusing on bandwidth control. And I couldn't find any explanation on the web or manuals.

It say choose Line Type either ADSL or Others. Then it continues to say that the specify the bandwidth that will go thru the WAN port.

I notice since the ADSL port n WAN port has been bridge, it should be count as the same thing. So what does Others mean??

I tested with ADSL line type and my local LAN speed was affected by the bandwidth control. When i disable it, its ok again. So funny.
WhitE LighteR
post Jul 30 2015, 03:45 PM

WhitE LighteR Is Black~
********
All Stars
10,340 posts

Joined: Jan 2003


A little sharing for my own record as well as others to read. Correct me if I made any mistakes in the explanation.

I will try to explain what is QOS and how it works. QOS is not a magic spell. There is a limit to what it can do. You may refer the longer explanation here

http://www.linksysinfo.org/index.php?threa...scussion.28349/

Lets assume the following scenario.

- Multiple PC in your local network.
- Over at your ISP, they have the same as well. Instead of PC, it is servers.

Without long explanation, most QOS can only control upload and cannot control download. So forget about controlling this things :

- Download speed
- Fair share among multiple users

At its most basic, QOS only controls upload. It has two task :

1. Prioritize upload packet
2. Limit upload speed for that particular priority

Why you want to limit upload speed?

If I sent 1 request for a website. That request will enter the upload queue. Let say that request is 5Kb. The server will return me the website(example: 100Kb worth of data). That is a ratio of 1:20. But this ratio may go up or down depending on what type of request it is. Assuming again in a 1:20 ratio, example if there is 1000 request in upload queue = 5000Kb, the return data is 100,000Kb. Upload speed determine how much request is allowed to go thru at once. If I say I limit my upload to only 100(500Kb) request, I will only get back 10,000Kb. So can you now see the relationship between upload n download. And how it influence the download speed. (* File upload works differently)

Why you need to prioritize packet?

Without prioritizing packet, QOS assumes all data is the same type. There is no different between say a http request or an ftp request. So if someone is downloading a file from an ftp server, your website request will be have to wait in queue just like the ftp request. First in first out. From user perspective, he will notice a delay in loading the website. So what you want, is for your website request to jump the queue and go all the way to the front of the queue. So that your request will be process first. Sorting the correct packet priority is important and must be done with much trial and error. New router might have a preset that you can used for most commonly used ports to make configuration easier.

Why people say I need to set my upload speed limit to 85% of my actual upload speed?

user posted image

Look the illustration above. Imagine the LAN upload queue like a deck of cards. The upload limit you set is how fast you remove the card from the top of the deck. New request is inserted at the bottom of the deck. If the deck did not clear fast enough from the top, your queue will be full and no more new card can be inserted from the bottom. New request will be thrown away. For example, if the queue is fully occupied by ftp request. And you try to open a http website. The http request tries to jump the queue to the front but there is no room in the queue any more because it is occupied by all the ftp requests. You have effectively killed the QOS function. So your goal is to NEVER let the queue become full.

So the max speed your internet can clear the deck, is your max internet upload speed. Due to the some other stuff, you might not always get the max speed all the time. So 85% is a pretty good value. This effectively tells the router, this is the max speed I can clear my queue. With this speed my queue will never be full. When you are greedy, and still insist to put the speed to max. Your router will try to sent the data towards your ISP at that speed, but your ISP says, nope. Your ISP then starts to throw away your request and you will have to re-transmit those packet again, thus making things worst.

When the upload to download ratio is very high, regardless of how low I set my upload speed, my internet is still slow.

This will happen to things like torrent. Best to control on client side. Normal QOS can't really handle this very well. Advance routing command needed. For consumer router, only some with DDWRT or OPENWRT firmware only able to do this as far as I know.

Bandwidth sharing?

For consumer router, only some with DDWRT or OPENWRT firmware only able to do this efficiently as I know. I currently use QOS HTB with DDWRT on my wireless AP. Generally of the shelf type of consumer router, from my test the bandwidth split is not stable and varies a lot on each repeated test.

This post has been edited by WhitE LighteR: Jul 30 2015, 04:48 PM
WhitE LighteR
post Jul 30 2015, 05:05 PM

WhitE LighteR Is Black~
********
All Stars
10,340 posts

Joined: Jan 2003


- Part 2 -

Configuration


* This section might be different base on users requirement. I only share my own setting.

QOS in case of multiple users.

Best control is done on user side. When this is not possible, by default, I give everyone only 50% upload speed max, so that the queue will never be saturated.

So what does it all mean?


I set my upload to 85%. Put "Highest" priority to important packet like port 80 and 443, as well as any other packet you would like to have quick response. Port 80/443 with accumulated packet size of larger then 512 goes to "Low" priority. In my case my IPTV packet is set to "High" priority. Other important packet like DNS, NTP, SMTP, and all messengers is set to "Medium". Each of this classes is allowed to go maximum but have a reduced reserved bandwidth.

Everything else will go to the default class priority. Different router might have a slightly diff way to set QOS. For Asus the default class is "Low Priority". I usually allow max 50% of the max upload speed. This is useful when you have multiple concurrent users.

On this router I uses the AP only for IPTV. I connect another AP with DDWRT to serve other clients. I feel that the bandwidth sharing function is better here using HTB QOS.

This post has been edited by WhitE LighteR: Jul 30 2015, 05:06 PM

 

Change to:
| Lo-Fi Version
0.0165sec    0.17    7 queries    GZIP Disabled
Time is now: 8th December 2025 - 04:26 AM