Cannot get response from DCMTK's storescp

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
george2018
Posts: 3
Joined: Mon, 2019-01-21, 09:33

Cannot get response from DCMTK's storescp

#1 Post by george2018 »

hi,

There is a question about DCMTK that make me confused for two days.

my third party client (dcm4che-2.0.29) cannot connect to DCMTK's storescp.
but successfully if connect to ConQuest Dicom server 1.4.19.

Detail steps:

step1: start dcmtk storescp.exe as a server on win10,
step2: start dcm4che/bin/dcmecho as a client on linux(centOS7)

the output as below:

[ step1, run server on win10 ]

E:\dcmtk-3.6.0\bin>storescp.exe -d 11110
D: $dcmtk: storescp v3.6.0 2011-01-06 $
D:
D: setting network receive timeout to 60 seconds
D: PDU Type: Associate Request, PDU Length: 197 + 6 bytes PDU header
D: 01 00 00 00 00 c5 00 01 00 00 53 54 4f 52 45 53
D: 43 50 20 20 20 20 20 20 20 20 44 43 4d 45 43 48
D: 4f 20 20 20 20 20 20 20 20 20 00 00 00 00 00 00
D: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
D: 00 00 00 00 00 00 00 00 00 00 10 00 00 15 31 2e
D: 32 2e 38 34 30 2e 31 30 30 30 38 2e 33 2e 31 2e
D: 31 2e 31 20 00 00 2e 01 00 00 00 30 00 00 11 31
D: 2e 32 2e 38 34 30 2e 31 30 30 30 38 2e 31 2e 31
D: 40 00 00 11 31 2e 32 2e 38 34 30 2e 31 30 30 30
D: 38 2e 31 2e 32 50 00 00 32 51 00 00 04 00 00 40
D: 00 52 00 00 0f 31 2e 32 2e 34 30 2e 30 2e 31 33
D: 2e 31 2e 31 53 00 00 04 00 00 00 00 55 00 00 0b
D: 64 63 6d 34 63 68 65 2d 32 2e 30
D: Parsing an A-ASSOCIATE PDU
I: Association Received
D: Parameters:
D: ====================== BEGIN A-ASSOCIATE-RQ =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.0
D: Our Implementation Version Name: OFFIS_DCMTK_360
D: Their Implementation Class UID: 1.2.40.0.13.1.1
D: Their Implementation Version Name: dcm4che-2.0
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: DCMECHO
D: Called Application Name: STORESCP
D: Responding Application Name:
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 16384
D: Presentation Contexts:
D: Context ID: 1 (Proposed)
D: Abstract Syntax: =VerificationSOPClass
D: Proposed SCP/SCU Role: Default
D: Proposed Transfer Syntax(es):
D: =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-RQ ======================
D: Constructing Associate AC PDU
I: Association Acknowledged (Max Send PDV: 16372)
D: ====================== BEGIN A-ASSOCIATE-AC =====================
D: Our Implementation Class UID: 1.2.276.0.7230010.3.0.3.6.0
D: Our Implementation Version Name: OFFIS_DCMTK_360
D: Their Implementation Class UID: 1.2.40.0.13.1.1
D: Their Implementation Version Name: dcm4che-2.0
D: Application Context Name: 1.2.840.10008.3.1.1.1
D: Calling Application Name: DCMECHO
D: Called Application Name: STORESCP
D: Responding Application Name: STORESCP
D: Our Max PDU Receive Size: 16384
D: Their Max PDU Receive Size: 16384
D: Presentation Contexts:
D: Context ID: 1 (Accepted)
D: Abstract Syntax: =VerificationSOPClass
D: Proposed SCP/SCU Role: Default
D: Accepted SCP/SCU Role: Default
D: Accepted Transfer Syntax: =LittleEndianImplicit
D: Requested Extended Negotiation: none
D: Accepted Extended Negotiation: none
D: Requested User Identity Negotiation: none
D: User Identity Negotiation Response: none
D: ======================= END A-ASSOCIATE-AC ======================
I: Association Aborted




[ step2, run echo command on linux ]

[wf@promote toPACS]$ ./dcm4che2/bin/dcmecho STORESCP@192.168.1.179:11110
17:55:35,539 INFO - Association(1) initiated Socket[addr=/192.168.1.179,port=11110,localport=38321]
17:55:35,540 INFO - STORESCP(1): A-ASSOCIATE-RQ STORESCP << DCMECHO
17:55:40,547 WARN - ARTIM timer expired in State: Sta5
ERROR: Failed to establish association:Read timed out17:55:40,548 INFO - STORESCP(1): close Socket[addr=/192.168.1.179,port=11110,localport=38321]

[wf@promote toPACS]$


obviously, the echo command return error.
can i get any help ?

thanks in advance!

george2018
Posts: 3
Joined: Mon, 2019-01-21, 09:33

Re: Cannot get response from DCMTK's storescp

#2 Post by george2018 »

This is email replay from DCMTK.

> There is a question about DCMTK that make me confused for two days.
>
> my third party client (dcm4che-2.0.29) cannot connect to DCMTK's storescp.
> but successfully if connect to ConQuest Dicom server 1.4.19.

Questions related to DCMTK should be posted to the DCMTK discussion
forum at https://forum.dcmtk.org. If you do not yet have an account there,
please let us know your preferred login name, and we will be happy
to create an account for you.

> 17:55:35,539 INFO - Association(1) initiated Socket[addr=/192.168.1.179,port=11110,localport=38321]
> 17:55:35,540 INFO - STORESCP(1): A-ASSOCIATE-RQ STORESCP << DCMECHO
> 17:55:40,547 WARN - ARTIM timer expired in State: Sta5
> ERROR: Failed to establish association:Read timed out17:55:40,548 INFO - STORESCP(1): close Socket[addr=/192.168.1.179,port=11110,localport=38321]

The error is confusing indeed, and my first guess would be some kind of
firewall or packet filter interfering with the network communication,
or there is a very slow network between both systems.

It seems that DCMTK is receiving the incoming network association request
and confirms the request. ConQuest however, seems to never receive that
confirmation message (A-ASSOCIATE-RSP), experiences a timeout (this is what "ARTIM" means)
and closes the connection. The timeout configured in ConQuest seems to be
only 5 seconds (time elapsed from network initiation to timeout), which
might be a bit optimistic.

I would suggest that you execute the same test again with Wireshark running
in parallel and use the Wireshark network capture (which does understand
the DICOM network protocol) to check if the A-ASSOCIATE-RSP was really sent,
and whether the timeout was perhaps simply too short.


Best regards,
Dr. Marco Eichelberg

george2018
Posts: 3
Joined: Mon, 2019-01-21, 09:33

Re: Cannot get response from DCMTK's storescp

#3 Post by george2018 »

I closed my linux firewall service and stop win10 firewall also.

I cannot find anywhere to attach a file, so send a file 'echo.pcapng' (captured using wireshark) by email.

Post Reply

Who is online

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