Skip to main content

IRTP Headers

2.1 Header Format​

Each IRTP packet is preceded by an eight byte header depicted below. The individual fields are described in the following sections.

   0      7 8     15 16             31
+--------+--------+--------+--------+
| packet | port | sequence |
| type | number | number |
+--------+--------+--------+--------+
| length | checksum |
| | |
+-----------------+-----------------+
| |
| optional data octets |
+ . . . . . . . . . . . . . . . . . |

Figure 2-1. IRTP Header Format

2.2 Packet Type​

Five packet types are defined by the IRTP. These are:

packet type   numeric code

SYNCH 0
SYNCH ACK 1
DATA 2
DATA ACK 3
PORT NAK 4

The use of individual packet types is discussed in MODEL OF OPERATION.

2.3 Port Number​

This field is used for the multiplexing and demultiplexing of packets from multiple user processes across a single IRTP connection. Processes which desire to use IRTP must claim port numbers. A port number represents a higher level protocol, and data to/from this port may be exchanged only with a process which has claimed the same port number at a remote host. A process can claim multiple port numbers, however, only one process may claim an individual port number. All port numbers are well-known.

2.4 Sequence Number​

For each communicating pair of hosts, there are two sequence numbers defined, which are the send sequence numbers for the two ends. Sequence numbers are treated as unsigned 16 bit integers. Each time a new transaction packet is sent, the sender increases the sequence number by one. Initial sequence numbers are established when the connection is resynchronized (see Section 4.3.)

2.5 Length​

The length is the number of octets in this transaction packet, including the header and the data. (This means that the minimum value of the length is 8.)

2.6 Checksum​

The checksum is the 16-bit one's complement of the one's complement sum of the IRTP header and the transaction packet data (padded with an octet of zero if necessary to make an even number of octets.)