Re: Guaranteed to annoy people further... What makes a packet x big?
- From: Sak Wathanasin <sw@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 20 Aug 2005 21:59:42 +0100
In article <BF2D318C.A883A%bingbong@xxxxxxxxxxx>,
Bonge Boo! <bingbong@xxxxxxxxxxx> wrote:
> TCP (I'm ignoring UDP) is responsible for breaking data down into packets
> and reassembling. Those packets can be as big as the MTU size allows.
> However when I look at most of them they have lots of "free space".
Well, actually, UDP is easier: TCP further breaks up the data it has to send
into "segments". The maximum segment size (MSS) is based on the MTU and is
negotiated when a TCP connection is opened. But ignoring that for the
moment...
> So what determines if you send a 10% full packet? Surely its more efficient
> to send nearly full boats down the river, rather than lots of 1/2 empty
Yeah, but when you gotta go, you gotta go. Do buses and trains in Bath not
leave until they are completely full?
There is a trade-off between better interactive response and bandwidth
utilization. In some situations, you may want to send as little as 1 byte in
a packet. Think of what happens when you're editing a file on a remote
host; when you press one of the arrow keys, for example, you want that to be
sent immediately so that the editor will update the cursor position and give
you feedback.
But, of course, this is horribly inefficient, and by default TCP
implementations try to combine small buffers together if possible using
something called the Nagle algorithm. Applications can turn this off by
setting the TCP_NODELAY option if they need good interactive response.
John Nagle used to be a frequent contributor to the comp.sys.mac.developer
newsgroups, though I have seen anything from him a long while. I think he's
given up on Macs (:-()
--
Sak Wathanasin
Network Analysis Limited
http://www.network-analysis.ltd.uk
.
- Prev by Date: Re: Blueyonder not in the UK for iTMS?
- Next by Date: Re: Blueyonder not in the UK for iTMS?
- Previous by thread: Re: Guaranteed to annoy people further... What makes a packet x big?
- Next by thread: Apple Cinema 30" Display - Who makes them?
- Index(es):
Relevant Pages
|