K1 and K2 Bytes

The APS protocol uses the K1 and K2 bytes of the SONET/SDH header to exchange commands and replies between the near end and far end.

The switch priority of a request is assigned by bits 1 through 4 of the K1 byte, as shown in Table: K1 Byte Switch Priorities .

Table: K1 Byte Switch Priorities

Bits

Condition

1111

Lockout of Protection

1110

Forced Switch

1101

SF - High Priority (not used in 1+1 APS)

1100

SF - Low Priority

1011

SD - High Priority (not used in 1+1 APS)

1010

SD - Low Priority

1001

Not used

1000

Manual Switch

0111

Not used

0110

Wait-to-Restore

0101

Not used

0100

Exercise

0011

Not used

0010

Reverse Request

0001

Do Not Revert

0000

No Request

In unidirectional mode, the K1 and K2 bytes are not used to coordinate switch action; however, the K1 byte is still used to inform the other end of the local action, and bit 5 of the K2 byte is set to 0 to indicate 1+1 APS mode (see Table: K2 Byte Functions ).

In bidirectional mode, the highest-priority local request is compared to the remote request (received from the far-end node using an APS command), and whichever request has the greater priority is selected. The requests can be automatically initiated (such as Signal Failure or Signal Degrade), external (such as Lockout, Forced Switch, Request Switch), or state requests (such as Revert-Time timers).

The channels requesting the switch action are assigned by bits 5 through 8. Only channel number codes 0 and 1 are supported on the 7705 SAR. If channel 0 is selected, the condition bits show the received protection channel status. If channel 1 is selected, the condition bits shows the received working channel status.

The K2 byte is used to indicate bridging actions performed at the line termination equipment (LTE), the provisioned architecture, and mode of operation, as shown in Table: K2 Byte Functions .

Table: K2 Byte Functions

Bits

Function

1 to 4

Channel number codes

5

0

Provisioned for 1+1 mode

1

Provisioned for 1:n mode

6 to 8

111

Line AIS

110

Line RDI

101

Provisioned for bidirectional switching

100

Provisioned for unidirectional switching

011

Reserved for future use

010

Reserved for future use

001

Reserved for future use

000

Reserved for future use