PP_RXTOTALSTATS
code: 270
# get
<module-index>/<port-index> PP_RXTOTALSTATS ?
Description
Provides FEC Total counters.
Attention
After clearing the counters by PP_RXCLEAR
, the command may return an all-FF data. The intent of the all-FF data from chassis is to say “no data available”. This is the case either when the port doesn’t support FEC stats at all (capability canfecstats
), or data isn’t generated yet — as will be the case immediately after clearing the data.
Actions
get
Parameters
total_rx_bits
: long integer, total RX bit count.total_rx_codewords
: long integer, total RX FEC codewords.total_corrected_codewords
: long integer, total corrected FEC codewords.total_uncorrectable_codewords
: long integer, total uncorrectable FEC codewords.total_corrected_symbols
: long integer, total corrected FEC symbols.total_pre_fec_ber
: long integer, total estimated pre-FEC BER.If no errors have been corrected, that is
total_corrected_codewords==0 && total_uncorrectable_codewords==0
,total_pre_fec_ber = - total_rx_bits
simply outputs the number of error free bits divided by the BER confidence interval factor in a negative value to signal that this is an estimate. Then you can use-1/total_pre_fec_ber
as the indicator of the upper bound of the BER.If errors are corrected, pre-FEC BER estimate is based on the symbols errors, assuming one error per symbol (max would be 10),
total_pre_fec_ber = total_rx_bits / (total_corrected_symbols + total_uncorrectable_codewords * (max_fec_symbols+1))
. To get the real total pre-BER, calculate the inverse:1/total_pre_fec_ber
.total_post_fec_ber
: long integer, total estimated post-FEC BER on uncorrected errors.If number of uncorrected errors is zero that is
total_uncorrectable_codewords == 0
,total_post_fec_ber = - total_rx_bits
simply output the number of error free bits divided by the BER confidence interval factor in a negative value to signal that this is an estimate. Then you can use-1/total_post_fec_ber
as the indicator of the upper bound of the BER.If number of uncorrected errors is not zero,
total_post_fec_ber = received_bits / (total_uncorrectable_codewords * (max_fec_symbols+1))
. To get the real total post-BER, calculate the inverse:1/total_post_fec_ber
.
Example
# get
input: 0/1 PP_RXTOTALSTATS ?
output: 0/1 PP_RXTOTALSTATS 20723819061305600 3809525562740 2 54 23 23363944826725 23985901691325