DICOM PS3.8 2016c - Network Communication Support for Message Exchange

9 DICOM Upper Layer Protocol for TCP/IP
Prev |  | Next

# 9 DICOM Upper Layer Protocol for TCP/IP

The DICOM Upper Layer Protocol specified in this section shall be used in conjunction with the TCP/IP transport layers..

## 9.1 Use of the Transport Service Provided By TCP

### 9.1.1 General

There is a one-to-one relationship between a TCP Transport Connection and an Upper Layer Association. Therefore, the following rules apply:

1. Each Upper Layer Association shall be supported by one and only one TCP Transport Connection.

2. Each TCP Transport Connection shall support one and only one Upper Layer Association.

The Services provided by the TCP Transport Services are not formally documented. This section, therefore, makes use of "commonly" used terms in a number of TCP Programming Interface Implementations (e.g., Sockets). However, the following RFCs shall be required for TCP/IP support. They specify the support needed for IPv4.

1. RFC793, Transmission Control Program - DARPA Internet Protocol Specification

2. RFC791, Internet Protocol - DARPA Internet Protocol Specification

3. RFC792, Internet Control Message Protocol - DARPA Internet Program Protocol Specification

4. RFC950, Internet Subnetting

In addition, devices that support IPv6 shall comply with:

1. RFC1881, IPv6 Address Allocation Management

2. RFC2460, Internet Protocol, Version 6 (IPv6) Specification

### Note

There are many other RFC's that may also apply to a particular implementation depending upon specific selections of hardware and software features.

For the establishment of a TCP connection, a TCP port shall be used to serve as the transport selector. A DICOM UL entity is identified on a given system on the network by a port number unique within the scope of this system. Port numbers of remote DICOM UL entities (well known port number or other numbers) shall be configurable on DICOM UL entities.

### Note

It is strongly recommended that systems supporting a single DICOM UL entity use as their port the "well known port" registered for the DICOM Upper Layer Protocol: port number 104 (decimal), if the operating system permits access to privileged ports (in the range 0 to 1023), otherwise it is recommended that they use the "registered" port number 11112 (decimal). See "http://www.iana.org/assignments/port-numbers".

Application Entities may also choose to access the TCP Transport Services via a Secure Transport Connection. The nature of this Secure Transport Connection is specified through Security Profiles (see PS3.15). Security Profiles select minimum mechanisms needed to support that profile. Other mechanisms may also be used if agreed to during establishment of the Secure Transport Connection.

### Note

1. DICOM does not specify how a secure transport connection is established, or the significance of any certificates exchanged during peer entity authentication. These issues are left up to the application, which is assumed to be following some security policy. Once the application has established a secure Transport Connection, then an Upper Layer Association can use that secure channel.

2. There may be an interaction between PDU size and record size of the secure Transport Connection that impacts efficiency of transport.

3. Registered ports for Secure Transport Connections are defined in PS3.15.

### 9.1.2 Opening a TCP Transport Connection

When an Association is to be established by a DICOM Upper Layer Entity, a TRANSPORT CONNECT request primitive shall be issued to the TCP Transport Service (Active Open). Once the TCP Transport Connection Confirmation is received (Open Completed), an A-ASSOCIATE-RQ PDU shall be sent/written on the now established transport connection.

When a DICOM Upper Layer Entity becomes activated (Association Idle State), it shall wait for TCP Transport Connections in a passive mode by initiating a "listen." When an incoming TCP Transport Connection Indication is received from the network, it is accepted and a timer ARTIM (Association Request/Reject/Release Timer) shall be set. Any further exchange of PDUs (read/write) shall be performed as specified by the Upper Layer State Machine (including ARTIM Timer expiration before an A-ASSOCIATE-RQ PDU is received, see Section 9.2).

### 9.1.3 Transferring Data On a TCP Connection

Data exchange of PDUs (read/write) on an established TCP Connection shall follow the specifications of the DICOM Upper Layer Protocol State Machine (see Section 9.2) and the DICOM Upper Layer PDU structure (see Section 9.3).

### 9.1.4 Closing a TCP Transport Connection

TCP Transport Connections shall be closed using the "don't linger" option.

A TCP Transport Connection is closed under a number of situations. These are described in the DICOM Upper Layer Protocol State Machine. Some typical cases are discussed below:

1. After an A-RELEASE-RQ has been sent and the A-RELEASE-RP PDU is received

2. When a Transport Connection has been established by the DICOM remote UL Entity and no A-ASSOCIATE-RQ is received before the ARTIM Timer expires

3. When an A-ABORT PDU has been received

4. When an A-ABORT PDU has been sent and the ARTIM Timer expires before the Transport Connection is closed

5. When a TCP connection is being disconnected by the Transport Service Provider (e.g., network failure)

6. When a TCP connection is being disconnected by the remote DICOM UL Entity

### Note

1. Except following the normal completion of an association reject, release or abort and in specific situations such as temporary lack of resources, an Upper Layer State Machine should not disconnect a TCP connection or reject its establishment. The appropriate behavior is to use the Association Reject or Abort services.

2. The ARTIM Timer should not be used to oversee the Association Establishment or Release. Such a mechanism falls under the protocol definition of the layer above the DICOM Upper Layer (i.e., DICOM Application Entity, see PS3.7).

### 9.1.5 ARTIM Timer

The value of the ARTIM Timer used to manage the Request, Reject, and Release of associations on a DICOM UL entity shall be configurable to address a wide range of network configurations.

Prev |  | Next
8 DICOM OSI Upper Layer Profile | Home | 9.2 DICOM Upper Layer Protocol for TCP/IP State Machine

DICOM PS3.8 2016c - Network Communication Support for Message Exchange