From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f6134,336303f591d15ebb X-Google-Attributes: gidf6134,public X-Google-Thread: 10669a,336303f591d15ebb X-Google-Attributes: gid10669a,public X-Google-Thread: fee84,336303f591d15ebb X-Google-Attributes: gidfee84,public X-Google-Thread: fc89c,336303f591d15ebb X-Google-Attributes: gidfc89c,public From: Ravi Cheema Subject: Re: Question: socket communication: Linux to OSF/1 or Ultrix Date: 1996/04/05 Message-ID: #1/1 X-Deja-AN: 145877555 distribution: world x-nntp-posting-host: ruthless.demon.co.uk references: <315C65A3.1679B542@mit.edu> <4jokr5$e71@nntp.atlanta.com> organization: Runsoft Corp. mime-version: 1.0 newsgroups: comp.os.linux.networking,comp.unix.osf.osf1,comp.unix.programmer,comp.org.decus In article <4jokr5$e71@nntp.atlanta.com>, Curt Smith writes > >: >: 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. This may not be the case since your using TCP/IP stream sockets. The TCP/IP stack in the kernel will wait for a short amount of time for a packet window to be full before sending the data out to the network device. This is how TCP/IP works, so there may not be much you can do about it. Since your only sending small data packets your not using utilising the TCP/IP protocol effectivly. You could try increasing the size of data you send out i.e. coalescing the packets in the program before you issue the write() or try padding the data into larger chunks - however the latter will nodoubt increase network traffic. >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. I'd stick to the stream sockets since they guarantee delivery of packets in the correct sequence. UDP doesn't guarantee delivery nor correct sequencing of packets. ____________________________________________________________________________ Ravi Cheema "We take a handful of sand from the endless landscape of awareness around us and call that handful of sand the world." ____________________________________________________________________________