On a standard Hotspot setup you cannot do that at all. Standard Hotspots use simple queues, and each login creates a new dynamic simple queue at the top of the list, each logout removes the simple queue for that user. Simple queues are very simple, and simply do not give you such control over different types of content.
If you’re willing to get significantly more complex, you can add packet marks in mangle pre-routing and use those marks to do queue trees that MUST be attached to global-in or global-out. If they are attached to anything else the simple queues will fire first.
At that point you can set up things as described in other posts.
Be aware, though, that it’s kind of hard to tell the difference between surfing and downloading. Both are HTTP transaction - but fetching a 3.8MB tarball from sourceforge is downloading, yet fetching a 4.2MB flash file for some flash game on a website is surfing. Things become muddy pretty quickly. I find it’s best to just give your customers whatever speed they paid for, and let them do whatever they want with it.
But, am I able to make the above scenario with Burst rate ?
I can give the burst rate under User profiles (and it will apply for the whole hotspot)?
Or i can give the burst rate under User Manger aswell.
But what should exactly input for the Burst rate?
I could input the Burst rate to be double time as the normal rate limit.
And to last 10 seconds.
But what do i input under burst threshold?
The wiki on queues covers all the concepts and terminology. With QoS it really is important that you don’t just copy and paste stuff you find but understand it and apply it to your situation.
Bursts do not let you distinguish between torrenting and downloading a large picture or flash file embedded in a website.
1)I would like to give the users full speed for surfing : 256k=rx/4M=tx for the first 10-20 seconds
2) after that limit the users at: 50k=rx/1M=tx (if downloading/uploading constantly)
3)And then again recharge the Burst rate in cca. 4 seconds: after 4 seconds of inactivity the user would get again the full speed
I guess this scenario would give full speed for surfing, and limit a user if he is making a huge upload or download (constantly).
I studied allot the burst rate, but still didn’t figure out how to make the following scenario.
I tried with following entries, but am not satisfied with results: