Re: TCP/IP Speed

Richard B. Johnson (root@chaos.analogic.com)
Wed, 30 Jan 2002 11:35:41 -0500 (EST)


On Wed, 30 Jan 2002, Zwane Mwaikambo wrote:

> On Wed, 30 Jan 2002, Richard B. Johnson wrote:
>
> >
> > When I ping two linux machines on a private link, I get 0.1 ms delay.
> > When I send large TCP/IP stream data between them, I get almost
> > 10 megabytes per second on a 100-base link. Wonderful.
> >
> > However, if I send 64 bytes from one machine and send it back, simple
> > TCP/IP strean connection, it takes 1 millisecond to get it back? There
> > seems to be some artifical delay somewhere. How do I turn this OFF?
>
> I would say its all in the TCP connection initiation (socket(), create()
> etc...)

But it's already connected.

host:
for (;;) {
gettimeofday(...);
write(s, buf, 64);
read(s, buf, sizeof(buffer));
gettimeofday(...);
/* delay is 1.0 ms */
}
server is IPPORT_ECHO

Cheers,
Dick Johnson

Penguin : Linux version 2.4.1 on an i686 machine (797.90 BogoMips).

I was going to compile a list of innovations that could be
attributed to Microsoft. Once I realized that Ctrl-Alt-Del
was handled in the BIOS, I found that there aren't any.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/