QUOTE(cosmiqeddie @ Dec 17 2009, 01:39 PM)
i have 6 persons sharing a 4mbps streamyx here, with half of them xunlei user and another half online gamers (gg ga.re.na, i dunno why i type this word it auto-change "garen.a" to "flying spaghetti monster", and also dota). should i go for MAC or QoS in this case? even though 4mbps, the average speed im getting from streamyx after speed test was 3.5mbps, so i would like to set the rules this way, when everyone is heavily downloading, all will be getting a maximum of 3.5/6, which is around 500kbps, and while no 1 is downloading, the person using will get the maximum speed. the priority should go this way:
1. online gaming (low latency)
2. http/ VoIP
3. xunlei
is it possible to do it with polar cloud's tomato v1.27? is yes, how can i do it, can anyone enthusiast guide me with the step by step setup? thanks in advance
hi there,
i'll try my very best and hopefully will be able to help you as i actually have the same scenario as yours but the only difference is that i'm running on 1Mbps streamyx instead of 4Mbps so lets begin

what i did was to make use of both IP/MAC bw limiter + QoS. and in order for QoS to perform properly, you have to limit your bandwidth to AT LEAST 85% of your usable bandwidth. This is where most ppl make mistake and try to set a higher limit. put it this way, if your link is overloaded, QoS goes out the window so you might as well not configure QoS. if your speed test shows that you have a maximum of 3.5Mbps, you need to set your download limit to 3Mbps. what's important is also your upload limit as it will indirectly affect your download speed. so go do a speed test for your upload as well and find out what is the 85% value of it. so make sure you have this 2 figures. if you want to read up more on why the 85% limit on your usable bandwidth is so important when configuring QoS, you can read it
hereSo for the configuration examples, we assume that your 85% for download=3000kbps, upload=435kbps. (please do a speed test and calculate your real 85%. the figure that i use here is just an estimation)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
IP/MAC bw limiter configuration:
1. configure static ip for each pc as well as arp binding so that the users won't be able to try to sneak pass your policy's by changing to a different ip.
2. configure the download and upload bandwidth with the 85% value.
3. configure each ip at the ip/mac limiter with each ip having a dl rate of (3000/6=500kbps), dl ceiling of 3000kbps, upload rate of (435/6=72kbps), upload ceiling of 435. priority is up to you whether you want to set it or not. tcp and udp connection limit i leave it alone as well, never set any for it.
So what you have achieved here is exactly like what you mentioned. when all 6 users are using the link at full bandwidth, automatically the router will give everyone the guaranteed bandwidth which is download=(3000kbps/6) and upload=(435/6). if less users are using it and more bandwidth is available, then users will get the extra bandwidth and the maximum bandwidth a user can get will be 3000kbps. in another words, a users bandwidth is guaranteed to be AT LEAST 500kbps till a maximum of 3000kbps. what you have eliminated here is that a single user hogs all the bandwidth till other users can't do shit.
Secondly, we're going to configure QoS as not only we want to make sure the bandwidth allocation is good. we also would like to prioritize traffic right? for example, games will always be infront of the que, and torrent/xunlei or any p2p downloads will have the lowest priority and should therefore give way. so this is what QoS can help to accomplish.
QoS configuration:
1. configure the 85% download and upload limit in your QoS basic configuration. uncheck ACK priority. set the default class to lowest.
2. configure the appropriate bandwidth percentage for each class in upload and download section.
3. configure the classification so that your important traffic has the highest priority. don't worry about your p2p downloads as they will automatically fall under the default class which is lowest, because they won't match any of your important traffic class. please don't try to catch p2p traffic using the classification because you'll have a higher chance to strike jackpot in genting than trying to catch all p2p traffic. hence it's easier to configure only the important ones and leave the rest to default lowest class.
4. i usually use ports to match my classification as it's easier since most important applications have known ports. so for example if you play dota, we know its port 6110-6119. so configure dst port 6110-6119, for both TCP/UDP. and set it to highest priority.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
So there you go, you have your QoS and bandwidth allocation configured. play around and tweak your QoS classification and percentage settings for each class to suit your needs. double check and make sure that all your important ports are configured and you're good to go
This post has been edited by red-queen: Dec 17 2009, 11:00 PM