Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Mar 2005 08:49:04 -0800
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        jim song <jingmin.song@gmail.com>
Cc:        freebsd-ipfw@freebsd.org
Subject:   Re: why my dummynet queue not work?
Message-ID:  <20050311164904.GA29287@odin.ac.hmc.edu>
In-Reply-To: <d018391a050310213469df3025@mail.gmail.com>
References:  <d018391a050310200327a01c48@mail.gmail.com> <20050311043933.GA28686@odin.ac.hmc.edu> <d018391a050310213469df3025@mail.gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

--PEIAKu/WMn1b1Hv9
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

[Please don't top-post.]

On Fri, Mar 11, 2005 at 01:34:10PM +0800, jim song wrote:
> Brooks,
>=20
> Actually I use the freebsd box as an router. I set the tcp window in=20
> another two windows box running iperf (iperf -w 5M).

I'm pretty sure iperf only really sets the socket buffer size, not
the tcp window size.  In fact, that's what the help entry says:

  -w, --window    #[KM]    TCP window size (socket buffer size)
 =20
At least on FreeBSD the maximum window size is controlled by a global
variable.  You need to make sure you are setting both.  If you want to
use windows end-hosts, you'll need to ask a windows list what you need
to do there.

> Before I add in the pipes, the throughputs could reach 300M, but after
> I config in the two pipes(200M bandwidth, 25ms delay), the throughput
> degrade to about 5M.=20

That's expected.

> BTW, is there some limitations to tcp connections passing through a=20
> router?

No, dummynet doesn't know anything about TCP.

-- Brooks

> On Thu, 10 Mar 2005 20:39:33 -0800, Brooks Davis
> <brooks@one-eyed-alien.net> wrote:
> >=20
> > Why are you using the queue parameter at all?  If you just want to
> > emulate a pipe there is usually no need to do that.  Have you adjusted
> > your socket buffers in addition to your max TCP window size?
> >=20
> > -- Brooks
> >
--=20
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4

--PEIAKu/WMn1b1Hv9
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFCMcwAXY6L6fI4GtQRAvgbAKDQI1jGzYdfKVhJu2u5g5I1kbSJaACghhwu
e4oTZgw1nDE2PNev3tuGM/Q=
=0Zwd
-----END PGP SIGNATURE-----

--PEIAKu/WMn1b1Hv9--



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20050311164904.GA29287>