From: curts@compgen.com (Curt Smith)
Subject: Re: Question: socket communication: Linux to OSF/1 or Ultrix
Date: 1996/04/01 [thread overview]
Message-ID: <4jokr5$e71@nntp.atlanta.com> (raw)
In-Reply-To: 315C65A3.1679B542@mit.edu
David Soleau Lum (davknav@mit.edu) wrote:
: Hi.
:
: My goal is to send data (via a TCP stream socket) from a Pentium Linux
: machine to a DEC Alpha running Digital Unix ("formerly OSF/1", as they
: say).
:
: I'm sending a small amount of data (about 50 bytes) every 10
: milliseconds. It is crucial that the process on the alpha read()s the
: data as soon as it is written by the Linux box.
:
: The problem I am having is that the write()s to the Linux socket go out
: every 10 msec (as verified by gettimeofday), but the read()s on the
: alpha return with inter-arrival times like this (in msec):
:
: 0, 200, 0, 0, 0, 200, 0, 0, 0, 0, 200, 0, ...
:
: I *have* set the TCP_NODELAY socket option on the sender's side of the
: connection, and I used a packet sniffer to verify that the data are
: written across the network one at a time. The Linux box is definitely
: not coalescing packets into larger chunks.
A suggestion is to re-impliment your design using UDP. This will deliver
pkts faster, with no delay. But, you'll have to design for potential
dropped packets and the theoretical pkts out of order scenario.
Curt Smith
curts@compgen.com
next prev parent reply other threads:[~1996-04-01 5:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-03-29 5:00 Question: socket communication: Linux to OSF/1 or Ultrix David Soleau Lum
1996-04-01 5:00 ` Curt Smith [this message]
1996-04-05 5:00 ` Ravi Cheema
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox