Abstract:
A threshold value is set in a decision circuit ( 9 ) receiving a transmitted stream of binary symbols from a network link. The decision circuit uses the threshold value for detecting whether a 1 or a 0 is received to produce an output stream having a low bit error rate. Bit errors in the output stream of the detector are detected ( 35 ). The number of errors is counted when a transmitted 0 is detected to give a 1 in the output stream. The number of errors is also counted when a transmitted 1 is detected to give a 0 in the output stream. The counted numbers of errors are compared to each other. The threshold value is then modified, if necessary, as given by the result of the comparing, to e.g. make the probabilities of the two kinds of errors equal to each other. Extra predetermined bits can be inserted ( 31 ) that are used in determining the bit errors. This method of setting the threshold value gives small bit error rates in the output signal.

Description:
FIELD OF THE INVENTION  
       [0001]     The present invention relates to a method of setting a decision threshold in a detector circuit receiving a binary signal from a transmission line, to a detector circuit and to a network in which the method is used.  
       BACKGROUND  
       [0002]     In high-speed optical communication systems digital information is usually encoded by intensity modulating an optical signal as illustrated in  FIG. 1  and described in the following. There is a continuous stream of bits at a rate B into the system. At the transmitter, a binary “1” digit corresponds to a high optical power, whereas a binary “0” digit corresponds to a relatively low optical power. The signal is then transmitted over an optical fiber and at the receiving end a detector converts the optical input signal to an electrical signal. The electrical signal is then fed to a decision circuit, which samples the signal at specific times and compares the sampled signal to a threshold value. If the sampled value is above or below the threshold the receiver outputs a digital “1” or “0” symbol respectively. Under ideal conditions, the output symbols exactly match the input symbols.  
         [0003]     Practically, a signal will for various reasons be degraded when it travels through the different components of a transmission system and then there is a problem of finding or setting an appropriate threshold in binary detection. An appropriate threshold value will give the best possible detection for a given input signal. Many documents deal with this problem of setting an appropriate threshold.  
         [0004]     Thus, in U.S. Pat. No. 4,823,260 a binary data regenerator is disclosed which uses three threshold levels, one level located between the other two, the first two levels produced by two control loops such that predetermined error rates occur on the ZERO and on the ONE, conveniently the same error rate for both. The BER is established separately for the ZERO and the ONE.  
         [0005]     In U.S. Pat. No. 5,806,641 a decision threshold setting circuit for e.g. an optical receiver is disclosed in which the average input current is used in order to achieve a variable threshold.  
         [0006]     In U.S. Pat. No. 4,456,992 enhancement of the probability of error-free reception of digital data is described, by means of a time-variable threshold value.  
         [0007]     In U.S. Pat. No. 5,896,422 a method for adaptively setting of the decision threshold in digital communication is disclosed, in which the average bit amplitude is used.  
         [0008]     In U.S. Pat. No. 5,923,219 an automatic threshold control circuit is disclosed, that detects the minimum level of an input signal, and a maximum level relative to the minimum level, and generates a threshold level from these values.  
         [0009]     In U.S. Pat. No. 4,847,865 an improved circuit for threshold adjustment in digital communication is disclosed.  
         [0010]     In U.S. Pat. No. 5,459,311 a fiber optic system including a threshold producing circuit is described, the decision threshold voltage preferably being half the peak voltage.  
         [0011]     In U.S. Pat. No. 4,318,128 reception of digital data in the presence of noise is disclosed. A threshold value is set at an average value of a voltage, in which the noise level is taken into account.  
         [0012]     In the published European patent application 0 240 157 an optical communication system is described that includes an automatic threshold value controlling circuit for setting the threshold at an average value of the input intensities.  
       SUMMARY OF THE INVENTION  
       [0013]     It is an object of the invention to provide a method of setting, in an optimum and efficient way, a decision threshold in a detection circuit receiving a binary signal, i.e. a signal having two levels, from a transmission line.  
         [0014]     Thus, generally in a system or network for communication, in particular high speed optical communication, digital data are transmitted over a transmission link. For an optical link, the digital data are encoded to produce an intensity or power modulated optical signal, with a binary “1” corresponding to high optical and a binary “0” to low optical instantaneous power. The transmitted signal is received and converted by a detector, sampled and fed to a decision circuit for comparing it to a threshold value. Due to noise and degradation data bit errors occur in the decision process, i.e. a 1 can be mistaken for a 0 or a 0 can be mistaken for a 1. By setting the threshold value appropriately the rate of bit errors (BER) in the communication link can be minimized.  
         [0015]     The minimization of the BER can be obtained by executing an algorithm for setting the threshold value such that the probability for making an error in a transmitted 1 becomes substantially the same as the probability for making an error in a transmitted 0. This is done by determining the bit error rate for transmitted 1&#39;s separately from determining the bit error rate for transmitted 0&#39;s. In particular, to determine if there is an error, different methods of coding the transmitted digital data can be used, providing it with inserted predetermined and thus known, extra information.  
         [0016]     Thus, a threshold value can be set in a decision circuit connected in a network and receiving from a link in the network a plurality of signal levels representing a transmitted input stream of symbols. Each signal level represents one separate or individual symbol. The decision circuit uses the threshold value for discriminating between two adjacent signal levels comprising a low signal level representing a first symbol and a high signal level representing a second symbol. The decision circuit thereby produces an output stream of symbols substantially agreeing with the input stream. Errors as to the first and second symbols are then determined in the output stream and the number of errors is counted when an input first symbol is detected to give an output second symbol and when an input second symbol is detected to give an output first symbol. The counted numbers of errors are compared to each other. The result of the comparing operation is used for modifying the threshold value if necessary. 
     
    
     BRIEF DESCRIPTION OF THE DRAWINGS  
       [0017]     The invention will now be described by way of non-limiting embodiments with reference to the accompanying drawings, in which:  
         [0018]      FIG. 1  is a schematic diagram of a simple optical transmission system in which signal shapes due to distortion are illustrated,  
         [0019]      FIG. 2  is a schematic diagram similar to that of  FIG. 1  in which signal shapes due to distortion and noise are illustrated,  
         [0020]      FIGS. 3   a  and  3   b  are diagrams of the distribution of sample values obtained in a sampling circuit in the system of  FIGS. 1 and 2  as a function of the voltage, the samples being obtained without considering noise and considering noise respectively,  
         [0021]      FIG. 4  is a flow chart illustrating steps executed in a receiver to set a threshold value in a decision circuit,  
         [0022]      FIG. 5  is a schematic diagram similar to that of  FIGS. 1 and 2  in which units have been entered to perform an accurate setting of a threshold value used by a decision circuit,  
         [0023]      FIG. 6  is a simple diagram of an insertion unit, and  
         [0024]      FIG. 7  is a simple diagram of a unit for accessing and removing bits. 
     
    
     DETAILED DESCRIPTION  
       [0025]     In  FIG. 1 a  high-speed optical communication system is schematically illustrated. An incoming electrical binary, digital signal formed by a continuous stream of bits at a rate B is used to encode an optical signal carrier by modulating the intensity thereof in a transmitter  1 . In the output signal of the transmitter, high optical power level corresponds to an input binary “1” whereas a relatively low optical power level corresponds to an input binary “0”. The optical signal obtained is then transmitted over an optical fiber length  3  and is at the receiving end of the fiber converted by a detector  5  to an electrical signal. This electrical signal is provided to a sampling circuit  7 , which samples the signal at regular occurring times. The sampled values output from the sampling circuit are fed to decision circuit  9  in which the sampled values are compared to a threshold value. If a sampled value is above or below the threshold value the decision circuit outputs a digital “1” or “0” symbol respectively.  
         [0026]     A signal traveling through the different components of such a transmission system will be degraded due to the physical nature of the components involved. The transmitter  1 , the optical fiber  3 , and the different parts  5 ,  7 ,  9  of the receiver side are not ideal and distort the signal for various reasons. Typical distorted signal shapes are illustrated in the figure at the output side of the detector  5 . A main cause of the degradation can be that the bit rate used for the signaling often is close to the maximum speed at which the components used can be operated. Also, various sources of noise exist in a real transmission system. When noise is added to the signal, as illustrated by the signal shapes seen in  FIG. 2 , the signal amplitude will be random. Therefore the value of the samples that are fed to the decision circuit  9  will also be random and when they are compared to the threshold value a “1” symbol can be mistaken for a “0” symbol, or a “0” symbol can be mistaken for a “1” symbol. This is called a bit error. The most important figure of merit for this kind of communication link is the rate of bit errors, called the bit-error rate (BER) and defined as the proportion of erroneous bits received in relation to the total number of received bits. The BER of typical systems of the kind illustrated in  FIGS. 1 and 2  is usually 10 −12  or better.  
         [0027]     In the diagrams of  FIGS. 3   a  and  3   b  is illustrated how noise changes the distribution of the sample values that are used to decide whether the input signal corresponds to a “1” or a “0”. The diagram of  FIG. 3   a  shows the distribution for a received signal for the case when there is no noise in the transmission. It can be seen that the distribution comprises two narrow peaks, a large interval existing between them within which the threshold value can be selected in order to obtain no errors at all in the decision. Thus, specifically all samples corresponding to 1&#39;s are above the threshold and all samples corresponding to 0&#39;s are below the threshold.  
         [0028]     When noise is added to the signal as illustrated by the distribution plotted in the diagram of  FIG. 3   b , there is a significant overlap between samples corresponding to 1&#39;s and 0&#39;s because the two narrow peaks of  FIG. 3   a  are broadened to become two wider peaks. Told in more exact words, the tails of the distributions for transmitted 0&#39;s and 1&#39;s overlap in the region between the peak values. In this region it is not possible to decide whether a sample value actually corresponds to a “1” or “0”, and therefore errors are obtained. Depending on the level at which the threshold value is selected, the probability of making an error will vary, resulting in different BERs.  
         [0029]     In many cases, the distributions of the sample values for “1” and “0” are symmetric. In such a case, setting the threshold value to the mean value of the 1 and 0 level, i.e. taking V th =(V 1 −V 0 )/2 where V th  is the selected threshold value, V 0  and V 1  are the voltages at which the peaks of the distribution are obtained, will minimize the BER. In a more general situation, the minimization is not trivial and a minimization problem can be stated as follows provided, as has also been assumed above, that the total numbers of 1&#39;s and 0&#39;s are equal: 
 
minimize { P   e [0−&gt;1]( V   th )+ P   e [1−&gt;0]( V   th )} when varying  V   th   (1) 
 
         [0030]     Here, P e [0−&gt;1] (V th ) is the probability that a 0 was sent and was erroneously detected as a 1. This probability will be a function of V th . For Gaussian noise, which is commonly used as an approximation of the existing noise, one can easily calculate the optimum value of V th  theoretically. Whereas the noise itself can be considered to be Gaussian for all practical purposes, the distortion from which the signal suffers will have to be taken into account in order to calculate the total sample distributions, giving a result that can be far from a Gaussian distribution. There are also other types of degradations, such as crosstalk, which can make the distributions have non-Gaussian shapes. If an algorithm based on the actual shapes of the sample distributions for 1&#39;s and 0&#39;s were to be implemented in an actual component the shapes of the two distributions have to be measured. This can be difficult in practice.  
         [0031]     If the minimization according to (1) is carried out, the probability of making an error for a “1” symbol is in most cases close to the probability of making an error for a “0” symbol. Now, assume that it is by some means possible to find out whether there is an error, and in which direction it goes. Then, the threshold can be optimized by making the probability to make a 0−&gt;1 error the same as to make a 1−&gt;0 error. Such an algorithm could look like the following: 
    1. If there is no error, go to 1 and check the next symbol.     2. If there is an error from 0−&gt;1, increase the threshold, i.e. set V th =V th +ΔV.     3. If there is an error from 1−&gt;0, decrease the threshold, i.e. set Vth=Vth−ΔV.     4. Go to 1 and check the next symbol.    
 
         [0036]     This algorithm is illustrated by the flow chart of  FIG. 4 . In a first block  21  a new symbol is accessed and analyzed. In the next block  23  is determined whether there is an error of type 0−&gt;1. If it is determined that such an error exists in the symbol, a block  25  is executed in which the threshold value is increased by A V. Then the block  21  is executed again. If it is determined in block  23  that there is no error type 0−&gt;1, a block  27  is executed in which it is determined whether there is an error of type 1−&gt;0. If it is determined that such an error exists in the symbol, a block  29  is executed in which the threshold value is decreased by Δ V. Then the block  21  is executed again.  
         [0037]     For this simple example algorithm, the increment/decrement Δv should have a sufficiently small value so that once the optimum point is reached, a reasonable number of bit errors in the same direction should not move the threshold value V th  substantially away from the optimum point. However, if Δv is too small, a very long time will elapse before the optimum is reached. Thus, it is desired to provide a better algorithm that makes the threshold value V th  reach its optimum point faster, while still being stable once the optimum is reached. One example of such an algorithm could be to use a larger Δv when the receiver is being connected to the transmitter and the link is set up. After some time when the decision threshold has been adjusted Δv can be lowered to ensure a more stable operating point. Another way to optimize the threshold could be to find the point where the BER for 0−&gt;1 errors is equal to 1*10 −9 , and to find the point where the BER for 1−&gt;0 errors is equal to 1*10 −9  and then take the average of these two points as an estimate of the optimum decision threshold.  
         [0038]     A method of determining whether there is an error and in what direction it goes comprises generally that additional information using digital special coding is entered in the information stream. If the additional information is properly selected, it is possible to deduce, by analyzing the extra information that is inserted, whether there is an error and in which direction it goes. A simple example includes using the following two codes: 
    “111” for “1”    “000” for “0”   
 
         [0041]     To transmit a digital “1” using this code, instead the code word “111” is transmitted. If “110”, “101”, or “011” is received, it is almost certain that a “111” should have been received because it is much more unlikely that there are two errors than one error. Thus there is a 1−&gt;0 error. To use this coding for each transmitted symbol would decrease the transmitted bit rate too much. Instead these symbols could be only used periodically, i.e. for every n:th bit.  
         [0042]     In an other type of coding, denoted by (64B/66B), see the document http://grouper.ieee.org/groups/802/3/ae/public/may00/walker — 1 — 0500.pdf, “64b/66b PCS”, which can also be used, two extra bits are inserted every 64th bit, in the general case every n:th bit. These two extra bits are either “01” or “10”. If “10” is transmitted and instead “11” is received we know that there was a 0−&gt;1 error. The same holds if “01” is transmitted and “11” is received. To summarize, if “11” is received, there is a 0−&gt;1 error and if “00” is received there is a 1−&gt;0 error. A similar principle can be applied using e.g. the 8B/10B code, see D. G. Cunningham &amp; W. G. Lane, “Gigabit Ethernet Networking”, Chapter 8.6, which also has a wide use.  
         [0043]     The basic optical transmission network illustrated in  FIGS. 1 and 2  then has to be provided with some more components as seen in the block diagram of  FIG. 5 . Thus, before reaching the transmitter  1 , the incoming bit stream passes through an insertion unit  31  for inserting the extra additional bits. Such a unit will generally comprise some fast buffer as a shift register and control circuits. Similarly, the corresponding output bit stream obtained from the decision circuit  9  passes through another unit  33  for accessing and removing the additional bits. This unit will also include some shift register and control circuits. The accessed additional bits are provided to an analyzing unit  35  that performs the analysis whether the bits indicate an error or not and the probable type of error. The result of the analysis is signaled to the decision circuit  9  which then can increase or decrease the threshold value used for detection whether a 0 or 1 is received.  
         [0044]     The insertion unit  31  can, as seen in  FIG. 6 , be designed as a serializer or multiplexer  35  for converting bits incoming on a plurality of incoming lines, e.g. 66 lines, to a single output bit stream. The signal data then arrive on some of these input lines, in the example shown on 64 lines, and the extra bits to be inserted on the remaining input lines, in the example on two lines.  
         [0045]     In the same way, the accessing and removing unit  33  can, as seen in  FIG. 7 , comprise a deserializer or demultiplexer  37  for converting the serial bits incoming on single line to data transmitted on a plurality of output lines, e.g. 66 lines in the example. The signal data appear on some of the output lines, in the example shown on 64 lines, and the extra, previously inserted bits on the remaining output lines, in the example on two lines, that are connected to a threshold control unit  39  in the decision circuit  9 .  
         [0046]     Also other types of codes exist allowing the separate detection of errors of the type 1−&gt;0 and of the type 0−&gt;1. Obviously, all such codes can be used in the method described herein. An example of such codes comprise forward error correction (FEC) codes that are presently often used in optical links having a transmission rate of 10 Gb/s or higher. References to such coding comprise “ITU-T Recommendation G.975” and the book by Simon Haykin, “Digital Communications”, chapter 8.  
         [0047]     As is obvious to one skilled in the art, the general concept of the method described herein can be practiced in multilevel systems, i.e. in transmission systems using more than two signal levels in transmitting data. Then, more than one threshold value has to be set to optimal values. Each threshold value then discriminates between two adjacent signal levels, allow level and a high level. The threshold value is set in the same way as described above substituting the low signal level for the 0-level and the high signal level for the 1-level.  
         [0048]     Also, the method can be used, in addition to fiber optical signaling systems, in all systems having a detector circuit for detecting received binary data from an incoming signal that e.g. can be an electrical signal. Other examples comprise wireless systems such as radio, microwave and IR transmission systems.  
         [0049]     Furthermore, as is also obvious to anybody skilled in the art, instead of the direct detection by a level detector  9  as described above using electrical signals, other decision methods can be used. They include but are not limited to all-optical decision circuits, homodyne and heterodyne techniques, and coherent signalling schemes.