From: Ravi Cheema <ravi@ruthless.demon.co.uk>
Subject: Re: Question: socket communication: Linux to OSF/1 or Ultrix
Date: 1996/04/05 [thread overview]
Message-ID: <H+UeNLAErHZxEwn0@ruthless.demon.co.uk> (raw)
In-Reply-To: 4jokr5$e71@nntp.atlanta.com
In article <4jokr5$e71@nntp.atlanta.com>, Curt Smith <curts@compgen.com>
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
<ravi@ruthless.demon.co.uk> endless landscape of awareness around us
<ravi@osm.co.uk> and call that handful of sand the world."
____________________________________________________________________________
prev parent reply other threads:[~1996-04-05 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
1996-04-05 5:00 ` Ravi Cheema [this message]
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