Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Dummynet bandwidth shaping - problem defining flows

0 views
Skip to first unread message

Siddhartha Jain

unread,
Aug 9, 2004, 8:46:30 AM8/9/04
to
Hello,

I want to do bandwidth shaping using dummynet. I want the box to act as
a bridge only and no layer-3 filtering. To that effect, I have the
following parameters in /etc/sysctl.conf:

net.link.ether.bridge_cfg=ed0,rl0
net.link.ether.bridge=1
net.link.ether.bridge_ipfw=1
net.link.ether.ipfw=1
net.inet.ip.fw.one_pass=1
net.inet.ip.fw.enable=0


My first question is that does this ensure that packets are processed at
the bridge level and not at layer-3? I am a bit confused between these
two parameters:
net.link.ether.bridge_ipfw, and
net.link.ether.ipfw

What is the effect of each specifically?

Two is that I am trying to allocate different bandwidth limits for:
1. Internet to home-network-A (in and out) - 128Kbps
2. Home-network-B to Home-Network-A (in and out) - 1Mbps

So I do:
ipfw -f flush
ipfw add pipe 1 ip from any to Network-A
ipfw add pipe 2 ip from Network-B to Network-A
ipfw pipe 1 config bw 128Kbit/s
ipfw pipe 2 config bw 1000Kbit/s

But I find that the effective limit is 128Kbps only for all transfers!!
Why isn't the traffic between Network-A and B put in pipe-2?

Also, if someone can point me to a document with lots of examples of
dummynet usage. I found Luigi Rizzo's page a bit lacking examples of
various scenarios.

Thanks,

Siddhartha

0 new messages