Skip to main content

5. Header Formats

Host Monitor Protocol messages have the following format:

                    +----------------+
| Local Network |
| Header(s) |
+----------------+
| IP header |
+----------------+
| HMP |
| Header |
| |
+----------------+
| D |
| A |
| T |
| A |
+----------------+
| Padding |
+----------------+

5.1 IP Headers​

HMP messages are sent using the version 4 IP header as described in RFC-791 "Internet Protocol." The HMP protocol number is 20 (decimal). The time to live field should be set to a reasonable value for the hosts being monitored.

All other fields should be set as specified in RFC-791.

5.2 HMP Header​

The HMP header format is:

                  0             0 0             1
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+---------------+---------------+
0 | System Type | Message Type |
+---------------+---------------+
1 | Port Number | Control Flag |
+---------------+---------------+
2 | Sequence Number |
+---------------+---------------+
3 | Password or Returned Seq. # |
+---------------+---------------+
4 | One's Complement Checksum |
+---------------+---------------+

HMP FIELDS:

System Type

Message Type

The combination of system type and message type determines the format of the data in the monitoring message.

The system types which have been defined are:

               System Type  | Meaning
----------------+-----------------
1 | Monitoring Host
2 | IMP
3 | TAC
4 | Gateway
5 | SIMP
6 | BBN VAX/C70 TCP
7 | PAD
8 | Reserved
9 | TIU
10 | FEP
11 | Cronus Host
12 | Cronus MCS

Message types are defined and used for each system type according to the needs of that system. The message types currently defined are:

                Type   | Description
----------+--------------------------
|
1 | Trap
2 | Status
3 | Thruput
4 | HTM - Host Traffic Matrix
5 | Parameters
6 | Routing
7 | Call Accounting
|
100 | Poll
101 | Error
102 | Control Acknowledgment

Port Number

This field can be used to multiplex similar messages to/from different processes in one host. It is currently unused.

Control Flag

This field is used to pass control information. Currently Bit 15 is defined as the "More bit" which is used in a message in responce to a poll to indicate that there is more data to poll for.

Sequence Number

Every message contains a sequence number. The sequence number is incremented when each new message of that type is sent.

Password or Returned Sequence Number

The Password field of a polling message from an monitoring center contains a password to verify that the monitoring center is allowed to gather information. Responses to polling messages copy the Sequence Number from the polling message and return it in this field for identification and round-trip time calculations.

Checksum

The Checksum field is the one's complement of the one's complement sum of all the 16-bit words in the header and data area.