FAQ #48: Slow transfer when sending many small DICOM images

Frequently Asked Questions regarding DCMTK

Moderator: FAQ Team

Post Reply
Message
Author
J. Riesmeier
DCMTK Developer
Posts: 2008
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

FAQ #48: Slow transfer when sending many small DICOM images

#1 Post by J. Riesmeier » Fri, 2017-09-29, 11:12

:?: Why is the network transfer so slow when sending many small DICOM images?

:!: The reason might be the so-called Nagle algorithm, which allows for improving the efficiency of TCP/IP networks by reducing the number of packets that need to be sent over the network. As a drawback, this algorithm might also decrease the speed of the network transfer on some systems, e.g. when sending many small DICOM images. Therefore, this algorithm can be switched on and off.

Starting with DCMTK 3.6.2, the Nagle algorithm is not disabled by default since this does not seem to be appropriate (anymore) for most modern operating systems. In order to change this default, the environment variable NO_TCPDELAY can be set to "1" (see envvars.txt for details). Alternatively, the macro DISABLE_NAGLE_ALGORITHM can be defined to change this setting at compilation time (see macros.txt for details).

Earlier versions of the DCMTK disabled the Nagle algorithm by default, and the macro DONT_DISABLE_NAGLE_ALGORITHM could be used to change this setting at compilation time.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest