Что является причиной прерывания связи DICOM? - PullRequest
0 голосов
/ 22 октября 2019

Я приложил ниже журналы отладки для двух ассоциаций DICOM на сервере, на котором запущена служба storescp. Две ассоциации отправляются с другого узла DICOM и завершаются неудачно из-за прерванной ассоциации.

Используемая мной команда storescp:

storescp --aetitle Foo \
    -d \
    --fork \
    --output-directory "/dicoms" \
    --filename-extension '.dcm' \
    --max-pdu 131072 \
    --accept-all \
    14500

Журнал:

D: $dcmtk: storescp v3.6.3+ DEV $
D: 
D: DcmDataDictionary: Loading file: /usr/local/share/dcmtk/dicom.dic
D: Association Received: 10
D: setting network send timeout to 60 seconds
D: setting network receive timeout to 60 seconds
D: PDU Type: Associate Request, PDU Length: 270 + 6 bytes PDU header
D:   01  00  00  00  01  0e  00  01  00  00  48  59  2d  55  50  4c
D:   4f  41  44  20  20  20  20  20  20  20  49  48  53  50  41  43
D:   53  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  38  01  00  00  00  30  00  00  19  31
D:   2e  32  2e  38  34  30  2e  31  30  30  30  38  2e  35  2e  31
D:   2e  34  2e  31  2e  31  2e  37  40  00  00  13  31  2e  32  2e
D:   38  34  30  2e  31  30  30  30  38  2e  31  2e  32  2e  31  20
D:   00  00  36  03  00  00  00  30  00  00  19  31  2e  32  2e  38
D:   34  30  2e  31  30  30  30  38  2e  35  2e  31  2e  34  2e  31
D:   2e  31  2e  37  40  00  00  11  31  2e  32  2e  38  34  30  2e
D:   31  30  30  30  38  2e  31  2e  32  50  00  00  37  51  00  00
D:   04  00  01  00  00  52  00  00  17  31  2e  32  2e  38  34  30
D:   2e  31  31  33  38  33  37  2e  37  2e  37  2e  32  30  30  30
D:   55  00  00  10  32  2e  35  57  49  4e  33  32  2d  32  32  53
D:   45  50  30  30
D: Parsing an A-ASSOCIATE PDU
I: Association Received in child process (pid: 21)
D: Parameters:
D: ====================== BEGIN A-ASSOCIATE-RQ =====================
D: Our Implementation Class UID:      1.2.826.0.1.3680043.9.7434.0.0.3.6.3
D: Our Implementation Version Name:   GW_363
D: Their Implementation Class UID:    1.2.840.113837.7.7.2000
D: Their Implementation Version Name: 2.5WIN32-22SEP00
D: Application Context Name:    1.2.840.10008.3.1.1.1
D: Calling Application Name:    PACS
D: Called Application Name:     Bar
D: Responding Application Name: 
D: Our Max PDU Receive Size:    131072
D: Their Max PDU Receive Size:  65536
D: Presentation Contexts:
D:   Context ID:        1 (Proposed)
D:     Abstract Syntax: =SecondaryCaptureImageStorage
D:     Proposed SCP/SCU Role: Default
D:     Proposed Transfer Syntax(es):
D:       =LittleEndianExplicit
D:   Context ID:        3 (Proposed)
D:     Abstract Syntax: =SecondaryCaptureImageStorage
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: 65524)
D: ====================== BEGIN A-ASSOCIATE-AC =====================
D: Our Implementation Class UID:      1.2.826.0.1.3680043.9.7434.0.0.3.6.3
D: Our Implementation Version Name:   GW_363
D: Their Implementation Class UID:    1.2.840.113837.7.7.2000
D: Their Implementation Version Name: 2.5WIN32-22SEP00
D: Application Context Name:    1.2.840.10008.3.1.1.1
D: Calling Application Name:    PACS
D: Called Application Name:     Bar
D: Responding Application Name: Bar
D: Our Max PDU Receive Size:    131072
D: Their Max PDU Receive Size:  65536
D: Presentation Contexts:
D:   Context ID:        1 (Accepted)
D:     Abstract Syntax: =SecondaryCaptureImageStorage
D:     Proposed SCP/SCU Role: Default
D:     Accepted SCP/SCU Role: Default
D:     Accepted Transfer Syntax: =LittleEndianExplicit
D:   Context ID:        3 (Accepted)
D:     Abstract Syntax: =SecondaryCaptureImageStorage
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 ======================
D: DcmDataset::read() TransferSyntax="Little Endian Implicit"
I: Received Store Request
D: ===================== INCOMING DIMSE MESSAGE ====================
D: Message Type                  : C-STORE RQ
D: Presentation Context ID       : 1
D: Message ID                    : 42876
D: Affected SOP Class UID        : SecondaryCaptureImageStorage
D: Affected SOP Instance UID     : 2.16.840.1.114430.242111403509583165660850370400612056395
D: Data Set                      : present
D: Priority                      : medium
D: ======================= END DIMSE MESSAGE =======================
D: DcmDataset::read() TransferSyntax="Little Endian Explicit"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   153    0     0  100   153      0   6375 --:--:-- --:--:-- --:--:--  6954
I: creating new subdirectory for study: /dicoms/034a54aa-e0b0-11e9-a1ce-0242ac110003
I: creating new subdirectory for study: /dicoms/034a54aa-e0b0-11e9-a1ce-0242ac110003/input
I: creating new subdirectory for study: /dicoms/034a54aa-e0b0-11e9-a1ce-0242ac110003/input/2.16.840.1.114430.237152521851021523701581764889766515524
I: storing DICOM file: /dicoms/034a54aa-e0b0-11e9-a1ce-0242ac110003/input/2.16.840.1.114430.237152521851021523701581764889766515524/SC.2.16.840.1.114430.242111403509583165660850370400612056395.dcm
D: DcmFileFormat::checkMetaHeaderValue() Version of MetaHeader is ok: 0x0001
D: DcmFileFormat::checkMetaHeaderValue() use SOPClassUID [1.2.840.10008.5.1.4.1.1.7] from Dataset
D: DcmFileFormat::checkMetaHeaderValue() use SOPInstanceUID [2.16.840.1.114430.242111403509583165660850370400612056395] from Dataset
D: DcmFileFormat::checkMetaHeaderValue() use new TransferSyntaxUID [Little Endian Explicit] on writing following Dataset
D: DcmFileFormat::validateMetaInfo() found 8 Elements in DcmMetaInfo 'metinf'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   305    0     0  100   305      0  16052 --:--:-- --:--:-- --:--:-- 21785
I: Association Aborted
D: Error while waiting for incoming network data: Interrupted system call
D: Association Received: 10
D: setting network send timeout to 60 seconds
D: setting network receive timeout to 60 seconds
D: PDU Type: Associate Request, PDU Length: 270 + 6 bytes PDU header
D:   01  00  00  00  01  0e  00  01  00  00  48  59  2d  55  50  4c
D:   4f  41  44  20  20  20  20  20  20  20  49  48  53  50  41  43
D:   53  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  38  01  00  00  00  30  00  00  19  31
D:   2e  32  2e  38  34  30  2e  31  30  30  30  38  2e  35  2e  31
D:   2e  34  2e  31  2e  31  2e  37  40  00  00  13  31  2e  32  2e
D:   38  34  30  2e  31  30  30  30  38  2e  31  2e  32  2e  31  20
D:   00  00  36  03  00  00  00  30  00  00  19  31  2e  32  2e  38
D:   34  30  2e  31  30  30  30  38  2e  35  2e  31  2e  34  2e  31
D:   2e  31  2e  37  40  00  00  11  31  2e  32  2e  38  34  30  2e
D:   31  30  30  30  38  2e  31  2e  32  50  00  00  37  51  00  00
D:   04  00  01  00  00  52  00  00  17  31  2e  32  2e  38  34  30
D:   2e  31  31  33  38  33  37  2e  37  2e  37  2e  32  30  30  30
D:   55  00  00  10  32  2e  35  57  49  4e  33  32  2d  32  32  53
D:   45  50  30  30
D: Parsing an A-ASSOCIATE PDU
I: Association Received in child process (pid: 26)
D: Parameters:
D: ====================== BEGIN A-ASSOCIATE-RQ =====================
D: Our Implementation Class UID:      1.2.826.0.1.3680043.9.7434.0.0.3.6.3
D: Our Implementation Version Name:   GW_363
D: Their Implementation Class UID:    1.2.840.113837.7.7.2000
D: Their Implementation Version Name: 2.5WIN32-22SEP00
D: Application Context Name:    1.2.840.10008.3.1.1.1
D: Calling Application Name:    PACS
D: Called Application Name:     Bar
D: Responding Application Name: 
D: Our Max PDU Receive Size:    131072
D: Their Max PDU Receive Size:  65536
D: Presentation Contexts:
D:   Context ID:        1 (Proposed)
D:     Abstract Syntax: =SecondaryCaptureImageStorage
D:     Proposed SCP/SCU Role: Default
D:     Proposed Transfer Syntax(es):
D:       =LittleEndianExplicit
D:   Context ID:        3 (Proposed)
D:     Abstract Syntax: =SecondaryCaptureImageStorage
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: 65524)
D: ====================== BEGIN A-ASSOCIATE-AC =====================
D: Our Implementation Class UID:      1.2.826.0.1.3680043.9.7434.0.0.3.6.3
D: Our Implementation Version Name:   GW_363
D: Their Implementation Class UID:    1.2.840.113837.7.7.2000
D: Their Implementation Version Name: 2.5WIN32-22SEP00
D: Application Context Name:    1.2.840.10008.3.1.1.1
D: Calling Application Name:    PACS
D: Called Application Name:     Bar
D: Responding Application Name: Bar
D: Our Max PDU Receive Size:    131072
D: Their Max PDU Receive Size:  65536
D: Presentation Contexts:
D:   Context ID:        1 (Accepted)
D:     Abstract Syntax: =SecondaryCaptureImageStorage
D:     Proposed SCP/SCU Role: Default
D:     Accepted SCP/SCU Role: Default
D:     Accepted Transfer Syntax: =LittleEndianExplicit
D:   Context ID:        3 (Accepted)
D:     Abstract Syntax: =SecondaryCaptureImageStorage
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 ======================
D: DcmDataset::read() TransferSyntax="Little Endian Implicit"
I: Received Store Request
D: ===================== INCOMING DIMSE MESSAGE ====================
D: Message Type                  : C-STORE RQ
D: Presentation Context ID       : 1
D: Message ID                    : 63183
D: Affected SOP Class UID        : SecondaryCaptureImageStorage
D: Affected SOP Instance UID     : 2.16.840.1.114430.339732303962722600468031065028436736493
D: Data Set                      : present
D: Priority                      : medium
D: ======================= END DIMSE MESSAGE =======================
D: DcmDataset::read() TransferSyntax="Little Endian Explicit"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   153    0     0  100   153      0   5464 --:--:-- --:--:-- --:--:--  5884
I: creating new subdirectory for study: /dicoms/2d5c6250-e0b6-11e9-81e4-0242ac110003
I: creating new subdirectory for study: /dicoms/2d5c6250-e0b6-11e9-81e4-0242ac110003/input
I: creating new subdirectory for study: /dicoms/2d5c6250-e0b6-11e9-81e4-0242ac110003/input/2.16.840.1.114430.121382536570588028666509104723532190183
I: storing DICOM file: /dicoms/2d5c6250-e0b6-11e9-81e4-0242ac110003/input/2.16.840.1.114430.121382536570588028666509104723532190183/SC.2.16.840.1.114430.339732303962722600468031065028436736493.dcm
D: DcmFileFormat::checkMetaHeaderValue() Version of MetaHeader is ok: 0x0001
D: DcmFileFormat::checkMetaHeaderValue() use SOPClassUID [1.2.840.10008.5.1.4.1.1.7] from Dataset
D: DcmFileFormat::checkMetaHeaderValue() use SOPInstanceUID [2.16.840.1.114430.339732303962722600468031065028436736493] from Dataset
D: DcmFileFormat::checkMetaHeaderValue() use new TransferSyntaxUID [Little Endian Explicit] on writing following Dataset
D: DcmFileFormat::validateMetaInfo() found 8 Elements in DcmMetaInfo 'metinf'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   305    0     0  100   305      0  17941 --:--:-- --:--:-- --:--:-- 21785
I: Association Aborted
D: Error while waiting for incoming network data: Interrupted system call

Я вижу журнал Error while waiting for incoming network data: Interrupted system call, но я не уверен, что это вызывает прерывание. Образы DICOM не записываются на диск, поэтому кажется, что происходит сбой до или после этого события. Есть мысли?

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...