The above and other objects and advantages of the invention will be apparent upon consideration of the following detailed description, taken in conjunction with the accompanying drawings, in which the reference numerals refer to like parts throughout and in which:
Hereinafter, embodiments of a BER monitoring circuit and method according to the present invention will be described referring to the attached figures.
The error cycle memory 3 stores a plurality of the error cycles Te from the error cycle detecting portion 2, and the maximum error cycle Temax thereof is detected by an error cycle maximum value retrieving portion 4 connected to the error cycle memory 3. The maximum error cycle Temax is transmitted to a Te-BER conversion table 5, converted to an estimated error rate BERmax corresponding thereto, and outputted to an SF/SD detecting portion 6.
The SF/SD detecting portion 6 is preliminarily provided with an alarm detecting threshold Thd and an alarm releasing threshold Thr (Thr<Thd), and generates and releases the SF/SD alarm ALM under given conditions.
The alarm ALM is also provided to an error-free detecting portion 7. The error-free detecting portion 7 further receives the error cycles Te from the error cycle detecting portion 2 and the cycle monitoring reference clock CLK, and commonly provides an error-free signal Ef to the error cycle memory 3 and the SF/SD detecting portion 6.
In operation of this BER monitoring circuit, when the input data is provided to the parity check portion 1, the parity check portion 1, in the same way as the prior art example shown in
In the error cycle detecting portion 2, the cycle monitoring reference clock CLK is used for counting the number of reference clocks from the last inputted error pulse to the present error pulse. The counted value is outputted to the error cycle memory 3 as the error cycle (number of frames) Te of a binary number. At the same time, the error cycle detecting portion 2 outputs a write request pulse Wreq indicated by a dotted line to the error cycle memory 3. It is to be noted that the cycle monitoring reference clock CLK is synchronized with a parity calculation cycle.
The error cycle memory 3 sequentially stores the error cycle Te upon receiving the write request Wreq from the error cycle detecting portion 2. In this case, the error cycle memory 3 has a storage capacity for e.g. 80 times in total.
The error cycle maximum value retrieving portion 4 provides a read request Rreq indicated by a dotted line to the error cycle memory 3 at a constant frequency, for example, to read all of the data within the memory 3, and then selects the maximum value from among all of the error cycles Te read. The maximum value read is transmitted to the conversion table 5 in the form of a binary number Temax.
The conversion table 5 outputs a BER estimated value BERmax based on and corresponding to the maximum value Temax of the error cycle provided from the error cycle maximum value retrieving portion 4.
A calculation example for having the BER from the error cycle will now be described as follows:
The probability that a parity error of “r” bits within a frame occurs is given by the following equation:
P(r)=NCr×((1−q)(N−r)×q(r)) Eq. (1)
where,
N: Number of bits to be calculated for 1 parity bit
q: Line error rate
When a probability including the event probability of a plurality of bits is obtained, a probability of detecting a parity error within 1 parity frame assumes ΣP(r). It is to be noted that the summation can be calculated by regarding that the simultaneous occurrence of the number of bits equal to or more than “r” is stochastically negligible.
Also, it is required that a probability of SF/SD detection therefrom is calculated to carefully obtain a probability of a false detection and false release at a rate differing by one digit.
From this calculation result, the number of collected frames that meets a detecting (releasing) condition is derived to prepare the table shown in
As described above, the SF/SD detecting portion 6 having received the estimated maximum error cycle BERmax obtained by the conversion table 5 compares the estimated maximum error cycle BERmax with the preset alarm detecting threshold Thd and the alarm releasing threshold Thr to determine the relationship therebetween. A comparison example in this case is shown in the following Table 1.
Namely, as shown in Table 1, when the output BERmax from the conversion table 5 gradually increases from a value lower than the threshold Thr, namely when the error state of the input data worsens, an alarm signal is not generated from the SF/SD detecting portion 6 in states (2) and (3) where BERmax<alarm detecting threshold Thd, but the SF/SD detecting portion 6 outputs the alarm ALM in a state (1) where BERmax≦alarm detecting threshold Thd.
Thereafter, when the error state of the input data is improved and the output BERmax of the conversion table 5 gradually decreases, the alarm detected state continues in the states (1) and (2) where the BERmax is equal to or less than the alarm releasing threshold Thr, but the SF/SD detecting portion 6 releases the alarm on the supposition that the BERmax enters the state (3) at the time when the BERmax becomes smaller than the alarm releasing threshold Thr.
Thus, without using the timer, the alarm signal is generated when the BER of the input data worsens, and the alarm is released when the BER returns to a favorable state.
On the other hand, the alarm release of the SF/SD detecting portion 6 is also performed by the error-free detecting portion 7. This is because in the alarm releasing operation, the error cycle measurement is disabled upon entering an error-free state, that is a state where an error does not occur in the input data. Therefore, the alarm is released when it becomes error-free in a predetermined time period.
Accordingly, the error-free detecting portion 7 is provided with an alarm ALM from the SF/SD detecting portion 6, so that the error-free detecting portion 7 is activated by the alarm signal ALM.
Also, while the cycle monitoring reference clock CLK is constantly provided, when the error cycle Te outputted from the error cycle detecting portion 2 stays flat for a time period of an error cycle threshold TeThr corresponding to the above-mentioned alarm releasing threshold Thr (namely when a parity error is not included in the input data and the error cycle Te is held due to an error pulse PE from the parity check portion 1 being not generated), the error-free detecting portion 7 releases the alarm state of the SF/SD detecting portion 6 by generating an error-free signal Ef by regarding that it is an error-free state where the alarm state should be released. Also, the error cycle memory 3 is initialized by the error-free signal Ef. It is to be noted that the error cycle threshold TeThr need not necessarily correspond to the alarm releasing threshold Thr.
While the maximum error cycle Temax is obtained by using the error cycle maximum value retrieving portion 4 in the above-mentioned embodiment [1], this embodiment [2] is different in that an error cycle average calculating portion 4a calculating an average Teave substituted for the maximum value Temax of the error cycles is used. Therefore, the output of the conversion table 5 assumes an estimated error rate BERave corresponding thereto.
Namely, while the above-mentioned embodiment [1] is premised on scattered errors, this embodiment [2] adopts an arithmetic average, thereby enabling the estimation of the BER by using smoothed error cycles where influence of distribution is reduced even when a burst error occurs.
This embodiment is different from the above-mentioned embodiment [1] in that an error cycle median calculating portion 4b for calculating a median Tecen of the error cycles is substituted for the error cycle maximum value retrieving portion 4. Therefore, the output of the conversion table 5 assumes an estimated error rate BERcen corresponding thereto.
Namely, while the above-mentioned embodiment [1] is premised on the scattered error, this embodiment enables an estimation of an error rate reducing the influence even in the case where a burst error occurs by calculating the median of the error cycle.
This embodiment is different from the above-mentioned embodiment [1] in that an error cycle deviation calculating portion 8 is added.
Namely, the error cycle deviation calculating portion 8 constantly obtains the deviation of the error cycles at the time of error detection with the read request Rreq from the error cycle maximum value retrieving portion 4 for the error cycle data stored in the error cycle memory 3. When the alarm is generated from the SF/SD detecting portion 6, the error cycle deviation calculating portion 8 determines whether or not the deviation value at this time exceeds a burst detecting threshold Thb and generates a burst flag when deviation value exceeds the burst detecting threshold Thb.
Thus, it is made possible to determine whether or not the current alarm detected state is due to a burst state.
It is to be noted that this is an operation performed only when a burst error is detected, so that this operation is not activated upon alarm release.
The present invention is not limited by the above-mentioned embodiments, and it is obvious that various modifications may be made by one skilled in the art based on the recitation of the claims.
Number | Date | Country | Kind |
---|---|---|---|
2006-082904 | Mar 2006 | JP | national |