Re: Bandwidth Throttling?
Kevin Hanser <[email protected]>
| Newsgroups | gmane.network.nocat |
|---|---|
| Message-ID | <[email protected]> |
After more exploration/experimentation, I have figured out why the throttle.fw script wasn't being run. In intialize.fw, there's this line: [ -x throttle.fw] && throttle.fw which I changed to: [ -x /usr/local/nocat/bin/throttle.fw ] && /usr/local/nocat/bin/throttle.fw and now the throttle.fw script is being run... guess it needed the path :) However, throttling still doesn't appear to be happening. What group do I need to put users into to have their bandwidth throttled? I've tried both "Member" and "Co-op", and neither way seems to be throttling my bandwidth. I have the Co-op setting in throttle.fw set to 1536kbps to limit them to a single T1 speed. I'm currently testing on a DS3 so it's pretty obvious that I'm not getting throttled when I do a speed test :) Here's what the top of my throttle.fw looks like now: TOTAL_DOWN=3mbps TOTAL_UP=3mbps OWNER_DOWN=3mbps # fw mark 1 OWNER_UP=3mbps OWNER_OPTIONS="" COOP_DOWN=1536kbps # fw mark 2 COOP_UP=1536kbps COOP_OPTIONS="" PUBLIC_DOWN=256kbps # fw mark 3 PUBLIC_UP=256kbps PUBLIC_OPTIONS="bounded" OPTIONS="allot 1514 maxburst 20 avpkt 1000 prio 1" METHOD="sfq quantum 1514b perturb 15" And I haven't changed anything else below that... Anyone...? k Kevin Hanser wrote: > Ok, I found some info using google > (http://oob.freeshell.org/nzwireless/nocat1.html) about NoCat > throttling, and I've set up values in my throttle.fw, and made it > executable. But, as far as I can tell, bandwidth throttling isn't > happening. It doesn't seem to me that throttle.fw is even getting run > by NoCat. > > If I do # tc -s qdisc, this is all it shows: > [root@nocatgw bin]# tc -s qdisc > qdisc pfifo_fast 0: dev eth0 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 > 1 1 1 1 > Sent 104 bytes 1 pkt (dropped 0, overlimits 0 requeues 0) > rate 0bit 0pps backlog 0b 0p requeues 0 > qdisc pfifo_fast 0: dev eth1 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 > 1 1 1 1 > Sent 11856 bytes 96 pkt (dropped 0, overlimits 0 requeues 0) > rate 0bit 0pps backlog 0b 0p requeues 0 > <snip> > > However, I still don't see anything throttled on a logged in client. > I go and do a speed test, and I'm still getting full speed. > > So I guess I have two issues: NoCat doesn't seem to be executing the > throttle.fw script, and even when I execute it manually, it doesn't > seem to be doing anything. > > Anyone have any ideas? > <snip>