LUSTATs

The DFC LUSTAT message is used within SNA to convey four bytes of sense data to the other session partner. It can also be used simply to send an RH to the other session partner (for example, to open a bracket; see the figures in Bracket Initiation). The message flows on the normal flow and so is subject to direction restrictions; however, it can be sent (without EB or CD) on a half-duplex flip-flop session that is in error recovery pending state (see Recovery).

The local node allows the application to send Status-Control(LUSTAT) Request messages at any time that data traffic is active, except while sending data in chain. If the application is in a receiving state (using half-duplex protocol), the LUSTAT is queued up and used to provide the sense codes, which are filled into the next outbound request, and the SDI flag is set. The application can therefore present the sense codes for an error state without waiting for the next outbound data if required.

The first byte of sense data must be 0x08 to generate a DATAFMI message with SDI (to be converted to a negative response). Other LUSTATs are left queued on the session until they can be sent.

If multiple Status-Control(LUSTAT) messages are sent by the application while in a receive state, the local node will queue them all. When outbound data has been delivered to the application with SDI set, as indicated above, and the application has converted it to a Status-Acknowledge(Ack), the local node will send the negative response and the remaining LUSTATs (which can now flow since the half-duplex flip-flop state is error recovery pending).

If the application intends to send multiple Status-Control(LUSTAT) messages to the host, it is possible that the host will attempt to initiate recovery before the last LUSTAT has been sent; in this case, the error recovery chain will be rejected by the next LUSTAT.

Note that the application can send Status-Control(LUSTAT) Request with or without ACKRQD; the local node will map these to RQD and RQE LUSTATs respectively.

The following three figures illustrate the use of Status-Control(LUSTAT) messages by an application using the half-duplex flip-flop mode.

In the first illustration, the application issues Status-Control(LUSTAT) when it has direction.

In the following illustration, the application sends Status-Control(LUSTAT) request when receiving data between chain. Next outbound data is delivered with SDI set which gets converted to negative RSP.

In the following illustration, the application sends several Status-Control(LUSTAT) requests when receiving data in chain. Next outbound data is delivered with SDI set which gets converted to negative response. Subsequent LUSTATs are sent to host.