Subject: Re: TCP send buffer free space
To: Wolfgang Rupprecht <wolfgang@wsrcc.com>
From: Ignatios Souvatzis <ignatios@theory.cs.uni-bonn.de>
List: tech-net
Date: 07/11/2001 11:37:55
--0IvGJv3f9h+YhkrH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Tue, Jul 10, 2001 at 01:10:32PM -0700, Wolfgang Rupprecht wrote:
>=20
> Dave Gantose writes:
> > This is beyond my experience so far, but I will keep it in mind. What a=
ll
> > might be included in "set everything up" though?
>=20
> In the program: =20
>=20
> int tos;
> =09
> ...
>=20
> /* set IP_TOS to request bulk-type packet queuing */
> tos =3D IPTOS_THROUGHPUT;
> if (setsockopt(fd, IPPROTO_IP, IP_TOS, (char *) &tos, sizeof(tos)) < 0)
> {
> syslog(LOG_ERR, "setsockopt IPTOS_THROUGHPUT on fails: %m");
> }
>=20
> If NetBSD is acting as the router/gateway to the low bandwidth link
> then set up altq to put packets with IPTOS_THROUGHPUT in a
> low-priority queue. See altq.conf(5).
Only... DG needs to use a TCP connection, right? So his receiving applicati=
on
won't see the high priority data unless the low priority, but sent earlier
data have arrived, too.
Regards,
-is
--0IvGJv3f9h+YhkrH
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: 2.6.i
iQEVAgUBO0webzCn4om+4LhpAQHYTQf8CUdpgVjSXnCAnVPRse4I1Iaj43rg+Xpf
sOG9uZPMQrxlBXSCJw6oZDiltTphIq0NxMvj7JE2iw2Lako7AJvVy7PMO/u1IKtf
9aBpPuwZ0dp20puyJ/vbUJuDCEMU3QAe2cAQIIwdJ/yIoUolnYG3O1gEoY2yapXy
E9qoTrEBcomv1XA8JzPmd5lcmXaJf9aiwdAXrLMhRYx1LIoX4S3LfglZfx+wsiWT
wgGVD1/aG1eajhuPRGPaBfbmwQqYJH5U1OEbrqkntoizc03iFORL6MzXLlOFz/Vb
/jZJfccp2yiGhb66q0sDl55RQQMyeBNVF/L/as1//Niy1xsCwwM03w==
=iCv4
-----END PGP SIGNATURE-----
--0IvGJv3f9h+YhkrH--