Skip to main content

Initialization

The Host Access Protocol uses a number of state variables that must be initialized in order to function properly. These variables are associated with the send and receive message numbers used by the acceptance/refusal mechanism and the statistics maintained to support link monitoring. Link initialization should be carried out when a machine is initially powered up, when it does a system restart, when the ON state (see below) times out, when a loopback condition times out (see Section 9), or whenever the link transitions from non-operational to operational status.

Initialization is accomplished by the exchange of Restart Request (RR) and Restart Complete (RC) messages between a host and a SIMP. The state diagram in Figure 26 shows the sequence of events during initialization. Both SIMP and host must implement this state diagram if deadlocks and oscillations are to be avoided. This particular initialization sequence requires both sides to send and receive the Restart Complete message. Because this message is a reply (to a Restart Request or Restart Complete), its receipt guarantees that the physical link is operating in both directions. Five states are identified in the state diagram:

  • OFF: Entered upon recognition of a requirement to restart. The device can recognize this requirement itself or be forced to restart by receipt of an RR message from the other end while in the ON state.
  • INIT: Local state variables have been initialized and local counters have been zeroed but no restart control messages have yet been sent or received.
  • RR-SNT: A request to reinitialize (RR) has been sent to the other end but no restart control messages have yet been received.
  • RC-SNT: A reply (RC) has been sent to the other end in response to a received reinitialization request (RR). The device is waiting for a reply (RC).
  • ON: Reply (RC) messages have been both sent and received. Data and control messages can now be exchanged between the SIMP and host.

All states have 10-second timeouts (not illustrated) which return the protocol to the OFF state. The occurrence of any events other than those indicated in the diagram are ignored.

The Restart Request control message illustrated in Figure 27 is sent by either a host or a SIMP when it wishes to restart a link. The Restart Request causes all the monitoring statistics to be reset to zero and stops all traffic on the link in both directions. The Restart Complete message illustrated in Figure 28 is sent in response to a received Restart Request or Restart Complete to complete link initialization. The Restart Complete carries a field used by the host to enable or disable the acceptance/refusal mechanism for the link being restarted (see Section 5). After the Restart Complete is processed, traffic may flow on the link.

                         -------
    Any Timeout or ----->| OFF |<-----------------------------
    Device Down          -------                             |
                            |                                |
                            |  Device Up                     |
                            |  Initialize Variables          |
                            |                                |
                            V                                |
                        ---------                            |
                        | INIT  |                            |
                        ---------                            |
                          |   |                              |
                 Rcv RR   |   |   Snd RR                     |
                 Snd RC   |   |                              |
                          |   |                              |
             --------------   --------------                 |
             |                             |                 |
             |                             |                 |
             V           Rcv RR            V                 |
        ----------       Snd RC        ----------            |
        | RC-SNT |<--------------------| RR-SNT |            |
        ----------                     ----------            |
             |                             |                 |
    Rcv RC   |                             |   Rcv RC        |
             |                             |   Snd RC        |
             V                             V                 |
             -------------------------------                 |
                            |                                |
                            |                                |
                            V                                |
                         -------                             |
     Rcv Any      ------>| ON  |------------------------------
     Other        |      -------    Rcv RR
                  ----------|

           Figure 26 . HAP LINK RESTART STATE DIAGRAM
         15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
0 | 1|LB| XXXXXXX | REASON | 3 |
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
1 | HEADER CHECKSUM |
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
2 | HOST ADDRESS / SITE NUMBER |
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
3 | LINK NUMBER |
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+

Figure 27 . RESTART REQUEST

0[15] Message Type = 1 (Control Message).

0[14] Loopback Bit.

0[8-13] Reserved.

0[4-7] Reason. This field is used by the SIMP or the host to indicate the reason for the restart as follows:

  • 0 = power up
  • 1 = system restart
  • 2 = link restart
  • 3 = link timeout
  • 4 = loopback timeout

0[0-3] Control Message Type = 3 (Restart Request).

1[0-15] Header Checksum. Covers words 0-3.

2[0-15] Host Address / Site Number. The host inserts its satellite network address in this field. The SIMP validates that the host address is correct for the port being used. When sent by the SIMP, this field will contain the SIMP site number.

3[0-15] Link Number. This field contains the sender's identification of the physical link being used. This information is used to identify the link when reporting errors to the Network Operations Center (NOC).

         15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
0 | 1|LB| XXXXXX |AR| 4 |
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
1 | HEADER CHECKSUM |
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
2 | HOST ADDRESS / SITE NUMBER |
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
3 | LINK NUMBER |
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+

Figure 28 . RESTART COMPLETE

0[15] Message Type = 1 (Control Message).

0[14] Loopback Bit.

0[5-13] Reserved.

0[4] Acceptance/Refusal Control. This bit is used by the host to enable or disable the acceptance/refusal mechanism for all traffic on the link.

  • 0 = Disable acceptance/refusal
  • 1 = Enable acceptance/refusal

0[0-3] Control Message Type = 4 (Restart Complete).

1[0-15] Header Checksum. Covers words 0-3.

2[0-15] Host Address / Site Number.

3[0-15] Link Number.