Network transfer speed in DCMTK 3.6.2

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
Tobias Rudolph
Posts: 2
Joined: Thu, 2017-09-07, 14:21

Network transfer speed in DCMTK 3.6.2

#1 Post by Tobias Rudolph »

Hi All,

we implement a Store SCP in out software and switched from DCMTK 3.6.0 to 3.6.2. Using the new release the network transfer takes considerably longer. This can also be seen using the DCMTK's command line tools.

Setup:
- 151 slices, 76.6 MB
- local network

Results:
\3.6.2_pre-compiled\storescp.exe -v --ignore --disable-host-lookup >>> 7.7s (using storescu v3.6.0)
.\3.6.0\storescp.exe 4000 -v --ignore --disable-host-lookup >>> 1.2s (using storescu v3.6.0)

Using storescu v3.6.2 produces very similar results. Does anybody have an idea on how to proceed from here?

cheers,
Tobias

Michael Onken
DCMTK Developer
Posts: 2048
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: Network transfer speed in DCMTK 3.6.2

#2 Post by Michael Onken »

Hi Tobias,

have you also tried to build from source? If so, and the problem remains, can you try setting the define DISABLE_NAGLE_ALGORITHM during build?

Best regards,
Michael

J. Riesmeier
DCMTK Developer
Posts: 2501
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: Network transfer speed in DCMTK 3.6.2

#3 Post by J. Riesmeier »

Alternatively, you could also set TCP_NODELAY to a non-zero value. See envvars.txt for details.

Tobias Rudolph
Posts: 2
Joined: Thu, 2017-09-07, 14:21

Re: Network transfer speed in DCMTK 3.6.2

#4 Post by Tobias Rudolph »

Thanks for the quick reply!

This does the trick. Both versions reach the same speed now (1.2s on the above mentioned test data).

As our server runs on Windows 7, we will set DISABLE_NAGLE_ALGORITHM for our DCMTK installation.

cheers,
Tobias

Michael Onken
DCMTK Developer
Posts: 2048
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: Network transfer speed in DCMTK 3.6.2

#5 Post by Michael Onken »

Hi Tobias,

thanks for the info and glad we could help.

Actually we think about changing the default behaviour in DCMTK in that regard, since a speed loss of 6 times or so is not acceptable, and someone else has reported the same issue to us.

Best,
Michael

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 1 guest