
XRT86SH221
PRELIMINARY
45
SDH-TO-PDH FRAMER/MAPPER WITH INTEGRATED 21-CHANNEL E1 SH LIU
REV. P1.0.5
LOS DETECTION
The rxstoh_proc block monitors the incoming scrambled data for the absence of 1's. The SDH standard has
the following two rules for handling LOS defects which are observed by the rxstoh_proc block.
An SDH NE shall monitor all incoming SDH signals (before de-scrambling) for an "all-zeros pattern," where
an all-zeros pattern corresponds to no light pulses for OC-N optical interfaces and no voltage transitions for
STM-0 and STM-1 electrical interfaces. A LOS defect shall be detected when an all-zeros pattern on the
incoming SDH signal lasts 100
μ
s or longer. If an all-zeros pattern lasts 2.3
μ
s or less, a LOS defect shall not
be detected.
An SDH NE shall terminate a LOS defect when the incoming signal has two consecutive valid framing
alignment patterns and during the intervening time (one frame), no all-zeros pattern qualifying as a LOS
defect exists.
The rxstoh_proc block allows the software to specify the number of all zero bytes before a LOS defect is
declared and clears the LOS defect when the conditions stated are satisfied.
The rxstoh_proc block also monitors the LOPC (loss of optical carrier) input which when asserted, causes the
rxstoh_proc block to automatically assert AIS downstream (this feature is programmable by software). This
feature is useful when the off-chip optical instrument has detected a loss of carrier but the amplifier data output
to the chip still contains random transitions.
FRAME ALIGNMENT
The rxstoh_proc block monitors the incoming stream for A1 and A2 patterns to determine frame alignment. The
following SDH standard rules concerning finding frame alignment are observed by the rxstoh_proc block.
I
The A1 byte shall be set to '11110110' (Hex F6) and the A2 byte shall be se to '00101000' (Hex 28) in all
STM-0s within an STM-N.
I
The framing pattern observed by an SDH NE shall include a subset of the A1 and A2 bytes contained in
the incoming STM-N electrical or OC-N signal.
I
An SEF defect shall be detected when the incoming signal has a minimum of 4 consecutive erred
framing patterns. The maximum SEF detection time shall be 625
μ
s for a random signal.
I
The framing algorithm used to check the alignment shall be such that an SEF defect is not detected
more than an average of once every 6 minutes while the BER of the STM-N electrical or OC-N signal is
10
-3
.
I
Once an SEF defect has been detected, the SDH NE shall terminate the SEF defect upon detecting two
successive error-free framing patterns.
I
All incoming SDH signals shall be monitored for LOF. A SDH NE shall detect an LOF defect when an
SEF defect on the incoming SDH signal persists for 3ms.
I
The SDH NE shall terminate an LOF defect 1ms to 3ms after terminating the SEF defect on the
incoming SDH signal, if the SEF defect is not (re)detected before the LOF defect is terminated.
The rxstoh_proc block implements the optional 3ms integration timer to deal with SEF and LOF defects. The
integration timer consists of an SEF timer and an in-frame timer that operates as follows:
The in-frame timer is activated (accumulates) when an SEF defect is absent. It stops accumulating and is reset
to zero when an SEF defect is detected. The SEF timer is activated (accumulates) when an SEF is present. It
stops accumulating when the SEF defect is terminated. It is reset to zero when the SEF defect is absent
continuously for 3ms (i.e., the in-frame timer reaches 3ms). An LOF defect is detected when the accumulated
SEF timer reaches the 3ms threshold. Once detected, the LOF defect is terminated when the in-frame timer
reaches 3ms (24 frames).
When SEF is low (i.e., the framer currently has frame alignment), the rxstoh_proc block allows the software to
specify the number of correct A1 fields that must be followed by the same number of correct A2 fields for the
framing pattern to be considered correct. When the rxstoh_proc is searching for frame (i.e., the SEF defect has
been declared), all bits of all the A1 and A2 bytes must be correct in order for the A1 or A2 byte to be
considered valid.