Re: Bandwidth Throttling?

Kevin Hanser <[email protected]>
Newsgroups gmane.network.nocat
Message-ID <[email protected]>
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

I edited throttle.fw so I could run it manually (assigned InternalDevice 
and ExternalDevice varialbes in the script), and after I run it 
manually, I see something different:
[root@nocatgw bin]# tc -s qdisc
qdisc cbq 20: dev eth0 rate 10000Kbit (bounded,isolated) prio no-transmit
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
  borrowed 0 overactions 0 avgidle 819 undertime 0
qdisc sfq 8010: dev eth0 parent 20:100 limit 128p quantum 1514b perturb 
15sec
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
qdisc sfq 8011: dev eth0 parent 20:200 limit 128p quantum 1514b perturb 
15sec
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
qdisc sfq 8012: dev eth0 parent 20:300 limit 128p quantum 1514b perturb 
15sec
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
qdisc cbq 10: dev eth1 rate 10000Kbit (bounded,isolated) prio no-transmit
 Sent 2100 bytes 18 pkt (dropped 0, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
  borrowed 0 overactions 0 avgidle 819 undertime 0
qdisc sfq 800d: dev eth1 parent 10:100 limit 128p quantum 1514b perturb 
15sec
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
qdisc sfq 800e: dev eth1 parent 10:200 limit 128p quantum 1514b perturb 
15sec
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
qdisc sfq 800f: dev eth1 parent 10:300 limit 128p quantum 1514b perturb 
15sec
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0

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?

Here's the top of my throttle.fw: (I haven't changed anything below this 
part)

# throttle.fw: Set the bandwidth policy, based on FWMARK
#
# Set your limits in the defines at the top.  Someday this will be
# integrated into the nocat.conf...
#
##

# Note: your PATH is inherited from the gateway process
#

InternalDevice="eth1"
ExternalDevice="eth0"

TOTAL_DOWN=45mbit
TOTAL_UP=45mbit

OWNER_DOWN=45mbit       # fw mark 1
OWNER_UP=45mbit
OWNER_OPTIONS=""

COOP_DOWN=1536kbit              # fw mark 2
COOP_UP=1536kbit
COOP_OPTIONS=""

PUBLIC_DOWN=256kbit     # fw mark 3
PUBLIC_UP=256kbit
PUBLIC_OPTIONS="bounded"

OPTIONS="allot 1514 maxburst 20 avpkt 1000 prio 1"
METHOD="sfq quantum 1514b perturb 15"


Any ideas?  Thanx!

k



Kevin Hanser wrote:

> Hello,
>
> I have just started playing w/NoCat and so far it looks pretty neat :)
>
> I have a gateway and auth server set up for testing, and things seem to
> be working good now.  I can login, get authenticated, and then I'm
> granted access so that all looks to be working good.
>
> Now I'm wondering about the bandwidth throttling capabilities of NoCat. 
> The customer that I'm preparing this for wants to be able to limit the
> bandwidth consumption based on which user is logged in so that a single
> user can't steal all their bandwidth.  In the INSTALL file that comes
> with NoCat, bandwidth throttling is mentioned, but I haven't found much
> else that tells me how to configure it..
>
> I've got the "tc" tool installed as was specified in the INSTALL doc,
> now I just need to know how to set bandwidth throttling rules.  Where is
> that configured in NoCat...?
>
> thx!
>
> k
>
> _______________________________________________
> NoCat mailing list
> [email protected]
> http://lists.nocat.net/mailman/listinfo/nocat
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.