Send a Switch request initiating the switch from backup to primary session status
About this task
CONTROL=SWITCH,STYPE=REQ
The
application program sends a Switch request that causes the backup
XRF session to become the primary XRF session. The former primary
XRF session, if still active
, is terminated with an UNBIND(CLEANUP).
Either end of a session has the ability to check its inbound and outbound sequence numbers and, if necessary, to suspend traffic flow and ask that correct numbers be reestablished. When the primary logical unit requests to reestablish correct sequence numbers, it issues a Clear (if allowed in the TS profile for the session) followed by an STSN request. If the logical unit acting as the secondary end of the session requests to reestablish correct sequence numbers, it issues an RQR request. The PLU application program then issues the Clear and STSN requests.
| PLU STSN request | Meaning | SLU STSN response(s) | Meaning |
|---|---|---|---|
| Set (01) (set) | CPMGR sequence number at PLU and SLU is to be set to value in IBSQVAL or OBSQVAL field. | TESTPOS (01) (ignore) | Secondary logical unit accepts value. No value is returned. |
| TESTSET (11) (set and test) | CPMGR sequence number at PLU and SLU is to be set to value in IBSQVAL or OBSQVAL field. The SLU NAU sequence number is to be tested against the value in the IBSQVAL or OBSQVAL field; the SLU NAU sequence number is returned in the response. | TESTPOS (01) | Secondary logical unit agrees with value. Value (=SLU NAU sequence number) is returned in IBSQVAL or OBSQVAL field. |
| TESTNEG (11) | Secondary logical unit disagrees with value. SLU NAU sequence number is returned in IBSQVAL or OBSQVAL field. | ||
| INVALID (10) | Secondary logical unit does not maintain or has lost its NAU sequence number. No value returned. | ||
| RESET (00) | Meaning depends on LU type. | ||
| INVALID (10) (sense) | Primary logical unit is not setting or testing the sequence number for the associated flow. The CPMGR sequence number is not changed. The SLU sequence number is to be returned in the response. | TESTNEG (11) | Secondary logical unit returns NAU sequence number in IBSQVAL or OBSQVAL field. |
| INVALID (10) | Secondary logical unit does not maintain or has lost its NAU sequence number. No value returned. | ||
| RESET (00) | Meaning depends on LU type. | ||
| IGNORE (00) | Primary logical unit is not setting or testing the sequence number for the associated flow. The CPMGR sequence number is not changed. | TESTPOS (01) | Secondary logical unit ignores this part of the STSN request. No value is returned. |
| Notes:
|
|||
When an STSN, SDT, or Clear request is sent to the logical unit, a response type 1 is returned as part of the SESSIONC operation. That is, the request is sent as though POST=RESP and RESPOND=(NEX,FME,NRRN) had been specified on a SEND macroinstruction. If a negative response is returned, the SSENSEI, SSENSMI, and USENSEI fields are set as they would be for SEND POST=RESP.