Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Nov 1996 10:05:50 -0500 (EST)
From:      "Ron G. Minnich" <rminnich@Sarnoff.COM>
To:        hackers@freebsd.org
Subject:   Re: Limiting bandwidth on a socket? (SO_RCVBUF?)
Message-ID:  <Pine.SUN.3.91.961106095628.29356E@terra>
In-Reply-To: <199611061411.IAA08311@brasil.moneng.mei.com>

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


On Wed, 6 Nov 1996, Joe Greco wrote:
> (Other sender of this lost)
> > I'm trying to come up with some way to limit the amount of bandwidth on a
> > socket, so I can have my mail and large files retrieve without slowing
> > down a telnet session that much.
> 
> int s, rval;
> s = socket(...);
> while ((rval = read(..., 1024)) > 0) {
> 	sleep(1);

ooch, ouch. my brain now hurts :-)

Joe's method will work fine, but we may all agree we want a little more. 
Well, we're working on that here. So I would like to judge interest from 
this group. 

What we're looking at is putting ioctls in at the socket layer to
implement rsvp-style reservations. I.e. you would use rsvp as now for
reserving qualities related to flow of data, and our code would operate at
the socket layer for enforcing those reservations. We want it to be at the
socket layer so the user can have the controls work the same even though a
socket may at the lower level be unix-domain, tcp, and so on. We've found 
that this sort of control is very important for distributed computing. 

Any comments welcome. This work is part of a much-larger project 
sponsored by DARPA for metacomputing (read distributed computing).

ron



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.91.961106095628.29356E>