I want to apply it to each client alone .. and i dont think its possible with Qtree ..
I already using PCQ it works fine but it just dividing the band equally , not exactly what i need for this quality of service ..
I’ve done in linux with the wondershaper script http://lartc.org/wondershaper/, this script priorize intercative traffic over massive downloads.
In MT i’ve tried to replicate the idea with low success, I just mangled packets belonging to very large connections and i made a queue tree to give them less priority than packets belonging to smaller connections, of course syn, icmp and packets less than 64k had the first prio
I think there is a better solution but I could not find,
well , your idea seems good to me jose , i think its a good solution ..
can you write the code needed in mangle , and how can you recognize the BIG connection from the small one .. please ..
note : how come MT team don’t know how to solve such an important matter !!!
Dear sergejs , as far as I know , BURST will flip the speed between the max-limit and the burst-limit every n second .. so i dont think it will satisfy my needs ..
I already using mangle+Qtree to equalizing connection betwen clients with PCQ , but of course without burst enabled ..
i dont want to flip the speed every n second , all i want is to give the browser higher priority than the large files downloaders who’ll eat the bandwidth ..
and because both kinds of browsing and downloading traffics are HTTP so I cant recognize it by mangle , thats why i want to get a method to give the small HTTP traffic higher priority ..
as sergejs have said - burst time is what you need. and is best coise for you right now.
any other posibity will et very complicated - and more complicated it gets more cpu time is used to manage packets and more possible errors in configuration rendering your configuration useless.
one thought - per connection limiting (burst time works at the beginning, afterwards limit starts to work, but you have to additionally limit bandwidth per user so there is no such possibility that user with more connections get more bandwith)
I sent up a Master Queue with priority 7 as per sample
then each customer the parent = the master queue
so far works great as if one customer is buzy downloading
it limits them to about 400kbps as the queue goes red
and the others still carry on with their uploads and downloads
lags: X - disabled, I - invalid, D - dynamic
0 name=“Master queue” dst-address=0.0.0.0/0 interface=all parent=none
direction=both priority=7 queue=PCQ_upload/PCQ_download
limit-at=512000/1000000 max-limit=1000000/2000000 total-queue=PCQ_total
total-limit-at=1024000 total-max-limit=2048000
total-burst-limit=4096000 total-burst-threshold=1536
total-burst-time=4s
I think we have a common problem, and got the same treatment (uses burst) but i don’t like burst it will filp every “n seconds”, but i have an idea of how to distinguish a connection for browsing pages (.html,.asp,etc) and for download (zips,mp3s,etc) mark the connection with a code say “xx” and limit the connection to say 200kbytes so that the mark will be triggered when that connection already exceeded 200kbyte, the connection will be marked with the code and create a simple queue which catches the code and the ip address of the client. With this rule every new connection will have fast speed until they exceeded the 200kbyte mark.
So you got fast browsing (for pages < 200kbyte) and slow download (files > 200kbyte) at the same time.
Hope helps, and please tell me the command if you know how to implement that idea
it seems by hitting hard his head to keyboard and not reading manual or other technical documentation about burst. (sorry if offending someone)
maybe i could tr to explain burst, maybe, a bit easier way:
a tale of good burst time
once upon the time there where one user and admin.
when user starts new session of net surfing he opens web page that way he initiates all that fancy equipment to deliver him 1 and 0 but since he has not a “gazzillions” of money his network connection is speed limited. since he hasn’t sued net before (for some time) good admin allows him to exceed his allowed data rate and load web page faster and not use net infrastructure fr some time while reading contents of web page. if user continues to download then after some time his average data rate come to limit he had paid for his connection speed drops to preset limit and no more fast loading pages, until he stops downloading and lets admins routers to rest from him for some time, so next time after rest period - user is able to get burst again as average download speed has droped below burst threshold. so user is happy - fast opening web pages and admin is happy too - since his routers can rest for some time, if admin does not want to let his hardware to rest he connects more users as if he had set hard limits and users all the time opens new pages to read them later, becose networking is slow,
I know burst works as it should, but sometimes we need more tools to do the the job.
for instance a user is downloading a very large file, so the “heavy user” is capped to their max allowed bandwidth without disturbing other “light users” This behaviour is fair but is not so good for the heavy user because his/her big download interfere with his/her normal browsing.
Let´s suppose the computer of some user is running windows update in the background so that user suffers a degradation of the service because he is already taken all allowed bandwidth.
This problem is more evident when you are providing internet service to some cyber cafe or someone who is going to share their connection, someone inside begins to download something then the customer call to complain that nobody can surf, then you check and respond to the customer that he is using ALL asigned bandwith.
What about if the box sharing the internet would go reducing slowly the rate of any connection so EVEN the heavy user can surf without any problem.
I repeat, the wondershaper script do “exactly” this job, please read SOMETIMES the documentation script. I know the solution I made in mikrotik is not so straight but I will post If nobody has a better idea
janisk , it seems by wasting your time telling silly stories and not trying to understand the main point (sorry if offending someone)
I guess even the MT experts didnt catch the idea !!!
i know most of the sattellite internet providers done this .. we can see it every day when we connect to a sat terminal , download will begin high then after seconds it will stay on a specific value ..
so , its not impossible , but it cant be done with burst , because burst will FLIP between high value and low one , yes it will , check it for those who said : who said that ??
i think we need more advanced idea to solve this problem ..
jose , i cant get the code of wondershaper , can u post it here please ..