From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,336303f591d15ebb X-Google-Attributes: gidfc89c,public X-Google-Thread: 10669a,336303f591d15ebb X-Google-Attributes: gid10669a,public X-Google-Thread: fee84,336303f591d15ebb X-Google-Attributes: gidfee84,public X-Google-Thread: f6134,336303f591d15ebb X-Google-Attributes: gidf6134,public From: curts@compgen.com (Curt Smith) Subject: Re: Question: socket communication: Linux to OSF/1 or Ultrix Date: 1996/04/01 Message-ID: <4jokr5$e71@nntp.atlanta.com>#1/1 X-Deja-AN: 145226120 references: <315C65A3.1679B542@mit.edu> followup-to: comp.os.linux.networking,comp.unix.osf.osf1,comp.unix.programmer,comp.org.decus organization: Internet Atlanta newsgroups: comp.os.linux.networking,comp.unix.osf.osf1,comp.unix.programmer,comp.org.decus 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