I need some help. I am trying to perform QOS using mangle+queue trees and Bandwidth limiting per user source address using Simple Queues. Below is a description and diagram of what I would like to achieve.
DESCRIPTION:
- I am planning to prioritize VoIP, HTTP, FTP, etc using mangling in prerouting. Then using Queue trees, I will create a main PCQ Queue with a 1M/1M upload/download limit (I need help in determining where to apply it).
- Next, I will create separate sub queues (Main PCQ is parent) for VoIP, HTTP, FTP, etc and assign specific bandwidth limits per category and set corresponding Priotities.
- I will then create a main a "Main Simple Q" of type PCQ and apply it to all interfaces.
- Next, I will create separate simple queues for each user with bandwidth limits with the parent being the "Main Simple Q"
DIAGRAM(underscore is spaces):
Local Interface ------Prioritize--------Limit---------------Shape-----------------Public interface
Pre Route Mangle __PCQ Tree____Simple Queues
VoIP------------- Priority 1|________10.0.0.10 --|
HTTP------------- Priority 2|--Main----10.0.0.11 --|
FTP -------------- Priority 3| PCQ ___10.0.0.12 --|--Main Simple Q -------
P2P ------------- Priority 4|________10.0.0.13 --| (public 1M/1M limit)
____________________________10.0.0.14 --| (Applied to All INTs)
Questions:
1. Will this work?
2. In the "Prioritize" phase, what should be the parent of the "Main PCQ"? Should it be the local Interface?
3. In the "Shape" phase, if I set the "Main Simple Q" type to PCQ,will it shape all traffic by users by IP? Meaning, will it split the bandwidth evenly amongst the active users if congestions is occuring?
4. Anything that I am doing incorrectly?