Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 May 2006 00:09:11 -0400
From:      "Michael W. Oliver" <michael@gargantuan.com>
To:        tpeixoto@widesoft.com.br
Cc:        freebsd-net@freebsd.org, ferdinand.goldmann@jku.at
Subject:   Re: Packet loss with traffic shaper and routing
Message-ID:  <20060502040911.GG11342@gargantuan.com>
In-Reply-To: <4456B1E0.9040408@widesoft.com.br>
References:  <49594.200.230.201.250.1146063341.squirrel@www.widemail.com.br> <444F8E89.2050905@wildcard.net.uk> <56286.200.230.201.250.1146067775.squirrel@www.widemail.com.br> <1146073590.1089.80.camel@sky.mediasat.ro> <59615.200.230.201.250.1146083577.squirrel@www.widemail.com.br> <44506D87.1020808@jku.at> <4456B1E0.9040408@widesoft.com.br>

next in thread | previous in thread | raw e-mail | index | archive | help

--w/VI3ydZO+RcZ3Ux
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2006-05-01T22:12:00-0300, tpeixoto@widesoft.com.br wrote:
> Please, take a look in my previous post.
> I guess the problem lies with IPFW and dummynet.
> How do you shape your clients?
>=20
> Here we have (for each client):
>=20
> ipfw pipe 1 config bw 512Kbit/s
> ipfw pipe 2 config bw 512Kbit/s
> ipfw add pipe 1 ip from any to any mac any 00:11:22:33:44:55 in
> ipfw add pipe 2 ip from any to any mac 00:11:22:33:44:55 any out

I am no ipfw or dummynet expert, but I read some of your other posts and
noticed that you are using 3200 rules and 3200 pipes, and are matching
the mac address.  Do you have to match the mac, or can you do this by IP
address?  According to the IPFW man page, if you specify a mask with
your pipe configuration, you can match on every bit which would
dynamically create the pipes based on the size of the parent pipe.  I
think it would be something like...

ipfw pipe 1 config bw 512kbit/s mask src-ip 0xffffffff
ipfw pipe 2 config bw 512kbit/s mask dst-ip 0xffffffff
ipfw add pipe 1 ip from any to any in
ipfw add pipe 2 ip from any to any out

Like I said, I am no expert, but figured I would spew this to the list
anyway.

--=20
Mike Oliver, KI4OFU
[see complete headers for contact information]

--w/VI3ydZO+RcZ3Ux
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)

iD8DBQFEVttnsWv7q8X6o8kRAjzlAJ0RH/wEB5jwoHgTvCFUivPhJ91tDQCgu9GJ
KkF0fwyrIC0mTEB4A1h+v5k=
=27jk
-----END PGP SIGNATURE-----

--w/VI3ydZO+RcZ3Ux--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060502040911.GG11342>