From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,336303f591d15ebb,start X-Google-Attributes: gidfc89c,public X-Google-Thread: fee84,336303f591d15ebb,start X-Google-Attributes: gidfee84,public X-Google-Thread: f6134,336303f591d15ebb,start X-Google-Attributes: gidf6134,public X-Google-Thread: 10669a,336303f591d15ebb,start X-Google-Attributes: gid10669a,public From: David Soleau Lum Subject: Question: socket communication: Linux to OSF/1 or Ultrix Date: 1996/03/29 Message-ID: <315C65A3.1679B542@mit.edu>#1/1 X-Deja-AN: 144918011 content-type: text/plain; charset=us-ascii organization: Massachusetts Institute of Technology mime-version: 1.0 newsgroups: comp.os.linux.networking,comp.unix.osf.osf1,comp.unix.programmer,comp.org.decus x-mailer: Mozilla 2.0 (X11; I; Linux 1.2.13 i586) 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. When I attempt the same procedure from one Linux machine to another, there is no problem (interarrival times are 0, 10, 9, 11, 10, 10, ...). Things are also OK when the *sender* is the alpha and the *receiver* is Linux. I tried sending to the alpha from an Ultrix machine, and things were also fine. Ditto sending from the alpha to the Ultrix machine. Sending from Linux to Ultrix is problematic in the same way I described above. The bottom line is that I am dying to fix this problem, because I *must* send data from a Linux machine to the alpha. Has anyone heard of situations like this? Personal email is welcomed, although I will be monitoring this news group. -- ======================================================================== David Lum || davknav@mit.edu 34 Harris Street Apt. #5 || 617-253-2538 (work) Brookline, MA 02146 || 617-566-1923 (home) ========================================================================