Appendix A - IMP Monitoring (Trap and Status)
A.1 Message Type 1: IMP Trap
Description
When a trap occurs, it is buffered in the IMP and sent as soon as possible. Trap messages are unsolicited. If traps happen in close sequence, several traps may be sent in one message.
Through the use of sequence numbers, it will be possible to determine how many traps are being lost. If it is discovered that many are lost, a polling scheme might be implemented for traps.
A IMP trap message has the following form:
0 0 0 1
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+---------------+---------------+
0 | # of traps lost |
+---------------+---------------+
1 : first :
. : trap :
. : data :
. +---------------+---------------+
. : additional :
. : trap :
. : data :
+---------------+---------------+
HMP Fields
System Type
IMP = 2
Message Type
IMP Trap Message = 1
Port Number
Unused
Control Flag
Unused
Password
Unused
Sequence Number
A 16 bit number incremented each time a trap message is sent so that the HM can order the received trap messages and detect missed messages.
IMP TRAP FIELDS
# of traps lost
Under certain conditions, an IMP may overflow its internal trap buffers and be unable to save traps to send. This counter keeps track of such occurrences.
Trap Reports
There can be several blocks of trap data in each message. The format for each such block is below.
+---------------+---------------+
| Size |
+---------------+---------------+
| Time |
+---------------+---------------+
| Trap ID |
+---------------+---------------+
: Trap :
: Data :
+---------------+---------------+
Size
Size is the number of 16 bit words in the trap, not counting the size field.
Time
The time (in 640 ms. units) at which the trap occurred. This field is used to sequence the traps in a message and associate groups of traps.
Trap ID
This is usually the program counter at the trap. The ID identifies the trap, and does not have to be a program counter, provided it uniquely identifies the trap.
Trap Data
The IMP returns data giving more information about the trap. There are usually two entries: the values in the accumulator and the index register at the occurrence of the trap.
A.2 Message Type 2: IMP status
Description
The status message gives a quick summary of the state of the IMP. Status of the most important features of the IMP are reported as well as the current configuration of the machine.
The format of the status message is as follows:
0 0 0 1
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+---------------+---------------+
0 | Software Version Number |
+---------------+---------------+
| Last Trap Message |
+---------------+---------------+
| Max # Hosts | Max # Modems |
+---------------+---------------+
| Max # Channels| Max # IMPs |
+---------------+---------------+
| Package bits 0-15. |
+---------------+---------------+
5 | Package bits 16.-31. |
+---------------+---------------+
| |
+ Crash +
| |
+ Data +
| |
+---------------+---------------+
| Anomalies |
+---------------+---------------+
10 | Free Pool | S+F Pool |
+---------------+---------------+
|Reassembly Pool| Allocated Pool|
+---------------+---------------+
| HIHD0 | HIHD1 | HIHD2 | HIHD3 |
. +---------------+---------------+
. : HIHD4 | ............... :
. +---------------+---------------+
(cont.)
Imp Status (cont.)
. +---------------+---------------+
. | Modem |
. + State +
. | Data |
. +---------------+---------------+
. : Modem State :
. : Data...... :
+---------------+---------------+
HMP FIELDS
System Type
IMP = 2
Message Type
IMP status message = 2
Port Number
Unused
Control Flag
Unused
Sequence Number
A 16 bit number incremented each time a status message is sent.
Password
The password contains the sequence number of the polling message to which this message responds.
IMP STATUS FIELDS
Software Version Number
The IMP version number.
Last Trap Message
Contains the sequence number of the last trap message sent to the HM. This will allow the HM to detect how many trap messages are being lost.
Hosts
The number of configured hosts in this system.
Modems
The number of configured modems in this system.
Channels
The maximum possible number of IMP-IMP channels in this system.
IMPs
The maximum possible number of IMPs in this system.
Package Bits
This is a bit encoded word that reports the set of packages currently loaded in the system. The table below defines the bits.
Bit Package
(octal)
(1st Word)
1 VDH
2 Logical address tables
4 Mezmode
10 Cumulative Statistics
20 Trace
40 TTY
100 DDT
200 HDLC
400 HDH
1000 Cassette Writer
2000 Propagation Delay Measurement
4000 X25
10000 Profile Measurements
20000 Self Authenticating Password
40000 Host traffic Matrix
100000 Experimental/Special
(2nd Word)
1 End-to-end Statistics
2 Store and Forward statistics
Crash Data
Crash data reports the circumstances surrounding an unexpected crash. The first word reports the location of the crash and the following two are the contents of the accumulator and index registers.
Anomalies
Anomalies is a collection of bit flags that indicate the state of various switches or processes in the IMP. These are very machine dependent and only a representative sampling of bits is listed below.
Bit Meaning
(octal)
20 Override ON
200 Trace ON
1000 Statistics ON
2000 Message Generator ON
4000 Packet Trace ON
10000 Host Data Checksum is BAD
20000 Reload Location SET
Buffer Pool Counts
These are four bytes of counters indicating the current usage of buffers in the IMP. The four counters are: free buffers, store-and-forward buffers, reassembly buffers and allocated buffers.
HIHD0 - HIHDn
Each four bit HIHD field gives the state of the corresponding host.
Value Meaning
0 UP
1 ready line down
2 tardy
3 non-existent
Modem State Data
Modem state data contains six fields of data distributed over four words. The first field (4 bits) indicates the line speed; the second field (4 bits) is the number of the modem that is used by the neighboring IMP on this line; the third field (8 bits) is the number of line protocol ticks covered by this report; the fourth (1 bit) indicates line down(1) or up(0); the fifth (7 bits) is the IMP number of neighbor IMP on the line; and the sixth (8 bits) is a count of missed protocol packets over the interval specified in the third field.