JP4711345B2 - Clock regeneration method and apparatus - Google Patents

Clock regeneration method and apparatus Download PDF

Info

Publication number
JP4711345B2
JP4711345B2 JP2006225188A JP2006225188A JP4711345B2 JP 4711345 B2 JP4711345 B2 JP 4711345B2 JP 2006225188 A JP2006225188 A JP 2006225188A JP 2006225188 A JP2006225188 A JP 2006225188A JP 4711345 B2 JP4711345 B2 JP 4711345B2
Authority
JP
Japan
Prior art keywords
moving average
accumulated data
clock
data amount
average
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2006225188A
Other languages
Japanese (ja)
Other versions
JP2008053797A (en
Inventor
幸一 斉藤
清美 雲崎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2006225188A priority Critical patent/JP4711345B2/en
Publication of JP2008053797A publication Critical patent/JP2008053797A/en
Application granted granted Critical
Publication of JP4711345B2 publication Critical patent/JP4711345B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)
  • Communication Control (AREA)

Description

本発明は、データ送信装置とデータ受信装置とが非同期ネットワークを介して接続している等の理由により、データ送信装置が使用するクロック源をデータ受信装置が利用できない場合において、データ送信装置がパケット化して送信する固定ビットレートの信号の受信パケット数又は受信データ量に基づき、データ受信装置がデータ送信装置の使用クロック源と同一周波数のクロックを再生する適応クロック法に関する。より詳しくは、非同期ネットワークを介して受信するパケットの揺らぎが、適応クロック法に基づき再生するクロック周波数に与える影響を抑制する技術に関する。   In the present invention, when the data transmission device cannot use the clock source used by the data transmission device because the data transmission device and the data reception device are connected via an asynchronous network, the data transmission device The present invention relates to an adaptive clock method in which a data receiving apparatus regenerates a clock having the same frequency as a clock source used by a data transmitting apparatus based on the number of received packets or the amount of received data of a fixed bit rate signal to be transmitted. More specifically, the present invention relates to a technique for suppressing the influence of fluctuation of a packet received via an asynchronous network on a clock frequency to be reproduced based on an adaptive clock method.

データ受信装置とデータ送信装置がIP網といった非同期ネットワークを介して接続する通信システム等、データ受信装置がデータ送信装置の使用クロック源を利用できない場合に、データ受信装置がデータ送信装置の使用クロックを再生し、同期する方法として適応クロック法が広く知られている。適応クロック法については、例えば、非特許文献1にその原理が記載されている。   When the data receiving device cannot use the clock source of the data transmitting device, such as a communication system in which the data receiving device and the data transmitting device are connected via an asynchronous network such as an IP network, the data receiving device uses the clock of the data transmitting device. An adaptive clock method is widely known as a method of reproducing and synchronizing. The principle of the adaptive clock method is described in Non-Patent Document 1, for example.

非特許文献1によれば、適応クロック法は、データ送信装置が一定のビットレートでデータを送信する場合、データ受信装置とデータ送信装置が非同期ネットワークを介して接続されていても、データ受信装置側で観測される単位時間当たりの受信データ量の平均値が、データ送信装置での送信ビットレートに確率的に一致することをその原理としている。つまり、データ受信装置は、ある期問に受信したデータ量をその期間で除することによりデータ送信装置での送信ビットレートを推定可能である。なお、通常は、ある期問に受信したデータ量をその期間で除するのではなく、バッファ内の蓄積データ量の平衡状態を維持することでクロックの再生を行っている。つまり、データ受信装置は、受信データをバッファに蓄積し、再生したクロックに比例したビットレートで、バッファからデータを取り出すが、バッファ内の蓄積データ量を、ある目標値に一致するようにクロック周波数の制御を行う。理想的には、蓄積データ量が目標値に常に一致し、安定したクロック再生を行うことができる。   According to Non-Patent Document 1, in the adaptive clock method, when a data transmission device transmits data at a constant bit rate, even if the data reception device and the data transmission device are connected via an asynchronous network, the data reception device The principle is that the average value of the received data amount per unit time observed on the side of the data stochastically matches the transmission bit rate in the data transmission apparatus. That is, the data receiving apparatus can estimate the transmission bit rate in the data transmitting apparatus by dividing the amount of data received in a certain period by the period. Normally, the clock is regenerated by maintaining an equilibrium state of the amount of data stored in the buffer rather than dividing the amount of data received in a certain period by that period. In other words, the data receiving apparatus accumulates the received data in the buffer and extracts the data from the buffer at a bit rate proportional to the recovered clock, but the clock frequency is set so that the accumulated data amount in the buffer matches a certain target value. Control. Ideally, the amount of stored data always matches the target value, and stable clock recovery can be performed.

ここで、蓄積データ量と目標値との差分と、再生クロック周波数との関係について述べる。再生クロック周波数がデータ送信装置の使用クロックよりも速い場合、バッファからのデータ取り出し速度が、データ送信装置の送信ビットレートよりも速くなり、蓄積データ量は目標値より少なくなる。逆に、再生クロック周波数がデータ送信装置の使用クロックよりも遅い場合、蓄積データ量は目標値より多くなる。したがって、蓄積データ量に基づく再生クロック周波数の制御は、蓄積データ量が目標値よりも大きい場合には再生クロック周波数を増加させ、小さい場合には再生クロック周波数を減少させるというものになる。   Here, the relationship between the difference between the accumulated data amount and the target value and the reproduction clock frequency will be described. When the reproduction clock frequency is faster than the clock used by the data transmission device, the data extraction speed from the buffer is faster than the transmission bit rate of the data transmission device, and the amount of stored data is less than the target value. Conversely, when the recovered clock frequency is slower than the clock used by the data transmission device, the amount of stored data is greater than the target value. Therefore, the control of the reproduction clock frequency based on the accumulated data amount is to increase the reproduction clock frequency when the accumulated data amount is larger than the target value, and to decrease the reproduction clock frequency when it is small.

伝送対象が固定ビットレートの信号である場合、データ送信装置は、固定周期でパケットを生成するが、パケットの伝送遅延時間が総てのパケットにおいて一定であれば、データ受信装置は、その固定周期でパケットを受信する。よって、データ受信装置のバッファの蓄積データ量は、パケット受信の度に急激に増加し、再生クロック周波数に比例した速度で徐々に減少する。図1は、固定周期にてパケットを受信する場合の、蓄積データ量の変化を示す図である。   When the transmission target is a signal having a fixed bit rate, the data transmission device generates a packet at a fixed cycle. If the transmission delay time of the packet is constant in all the packets, the data reception device Receive the packet at. Therefore, the amount of data stored in the buffer of the data receiving device increases rapidly each time a packet is received, and gradually decreases at a rate proportional to the recovered clock frequency. FIG. 1 is a diagram illustrating changes in the amount of accumulated data when packets are received at a fixed period.

図1において、データ受信装置は、時刻t1、t2、t3、t4、t5の固定周期T毎にパケットを受信し、パケット受信毎に蓄積データ量が増加している。適応クロック法の原理に基づき、蓄積データ量の変化に合わせて再生クロック周波数を変化させると、パケット受信の都度、再生クロック周波数が急激に変動することになる。この変動を抑制するため、移動平均を適応クロック法に適用することが考えられる。図1には、パケット受信周期Tを移動平均の計算区間として求めた蓄積データ量の平均値を併せて示している。図1から、蓄積データ量の移動平均の値は全く変動していないことが分かる。したがって、蓄積データ量の移動平均に基づいて適応クロック法によりクロックを再生すれば、クロック周波数の変動を抑制することができる。   In FIG. 1, the data receiving apparatus receives a packet every fixed period T at times t1, t2, t3, t4, and t5, and the amount of stored data increases every time the packet is received. If the recovered clock frequency is changed in accordance with the change in the amount of stored data based on the principle of the adaptive clock method, the recovered clock frequency changes rapidly every time a packet is received. In order to suppress this fluctuation, it is conceivable to apply the moving average to the adaptive clock method. FIG. 1 also shows an average value of the accumulated data amount obtained by using the packet reception cycle T as a moving average calculation section. From FIG. 1, it can be seen that the moving average value of the accumulated data amount does not change at all. Therefore, if the clock is regenerated by the adaptive clock method based on the moving average of the accumulated data amount, fluctuations in the clock frequency can be suppressed.

しかしながら、実際の網においてパケットの伝送遅延時間は、総てのパケットにおいて一定ではなく、揺らぎが生じる。この様子を図2に、また、パケット伝送遅延に揺らぎがあり、パケット受信間隔が一定でない場合の蓄積データ量及び蓄積データ量の移動平均の変化を図3に示す。図3においては、時刻t3で受信すべきパケットの遅延が大きく、時刻t3´で実際に受信している。このため、蓄積データ量の移動平均値が変動して再生クロック周波数に影響を与える。   However, in an actual network, the packet transmission delay time is not constant for all packets, and fluctuations occur. FIG. 2 shows this state, and FIG. 3 shows the accumulated data amount and the moving average change of the accumulated data amount when the packet transmission delay fluctuates and the packet reception interval is not constant. In FIG. 3, the delay of the packet to be received at time t3 is large, and the packet is actually received at time t3 ′. For this reason, the moving average value of the accumulated data amount fluctuates and affects the reproduction clock frequency.

高精度のクロック同期を実現するためには、揺らぎに起因するクロック周波数の変動の排除が必須である。したがって、“蓄積データ量の移動平均”に基づいてクロック周波数制御を行うためには、図3に示す様な“蓄積データ量の移動平均”の値の変動の除去が課題となる。   In order to realize high-accuracy clock synchronization, it is essential to eliminate fluctuations in the clock frequency caused by fluctuations. Therefore, in order to perform the clock frequency control based on the “moving average of accumulated data amount”, removal of fluctuations in the value of “moving average of accumulated data amount” as shown in FIG. 3 becomes an issue.

特許文献1には、蓄積データ量の平均値を再生クロック周波数の制御に用いる方法が記載されている。しかしながら、特許文献1に記載の方法では、上述した様に、パケット伝送遅延の揺らぎにより蓄積データ量の平均値も変動し、よって、再生クロック周波数も変動する。   Patent Document 1 describes a method of using an average value of accumulated data amount for controlling a reproduction clock frequency. However, in the method described in Patent Document 1, as described above, the average value of the accumulated data amount also fluctuates due to fluctuations in packet transmission delay, and thus the recovered clock frequency also fluctuates.

特許文献2には、データ受信装置が独立したクロックを具備し、パケット伝送遅延をその独立したクロックを用いて予想する方法が記載されている。この方法のためには、データ受信装置が具備するクロックは、高精度かつ高安定であることが必要であり、コストを上昇させる。   Patent Document 2 describes a method in which a data receiving apparatus has an independent clock and a packet transmission delay is predicted using the independent clock. For this method, the clock included in the data receiving apparatus needs to be highly accurate and stable, which increases costs.

特許文献3には、クロック発振器への制御値を算出するための計算式における係数を、時間がある程度経過したら小さいものに変更する方法が記載されている。この方法によりパケット伝送遅延の揺らぎに対する耐性が高まるが、伝送遅延時間が平均値より極端に大きいパケットが時々発生するような網の場合、そのパケットによりある程度の変動は再生クロックに生じてしまう。   Patent Document 3 describes a method of changing a coefficient in a calculation formula for calculating a control value for a clock oscillator to a smaller one after a certain time has elapsed. This method increases resistance to fluctuations in packet transmission delay. However, in a network in which a packet whose transmission delay time is extremely larger than the average value is occasionally generated, a certain amount of fluctuation is caused in the recovered clock due to the packet.

特許第3169335号明細書Japanese Patent No. 3169335 特許第3555883号明細書Japanese Patent No. 3555833 特許第3660517号明細書Japanese Patent No. 3660517 ITU−T I.363.1、“B−ISDN ATM Adaptation Layer Specification :Type 1 AAL”ITU-T I.I. 363.1, “B-ISDN ATM Adaptation Layer Specification: Type 1 AAL”

したがって、本発明は、パケット伝送遅延の揺らぎが生じる場合においても、蓄積データ量の移動平均の変動を除去し、安定した周波数のクロックを再生するクロック再生方法及び装置を提供することを目的とする。   SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide a clock recovery method and apparatus for removing a moving average variation in stored data amount and recovering a stable frequency clock even when packet transmission delay fluctuations occur. .

本発明によるクロック再生装置によれば、
受信したパケットに含まれるデータをバッファに蓄積するデータ取出手段と、該パケットが送信される周期の整数倍の周期を計算区間として、バッファに蓄積されている蓄積データ量の移動平均を計算する移動平均計算手段と、蓄積データ量の移動平均の平均的な値を計算する手段と、平均的な値に基づきクロック発振器が出力するクロック周波数を制御するクロック周波数制御手段と、クロック発振器が出力するクロック周波数に比例した速度でバッファからデータを読み出すデータ読出手段と、移動平均計算手段が新たな蓄積データ量の移動平均を計算したとき、新たな蓄積データ量の移動平均の変動を示す値を計算し、新たな蓄積データ量の移動平均を平均的な値の計算に使用するか否かを、該変動を示す値に基づき判定する変動判定手段とを備えていることを特徴とする。
According to the clock recovery device of the present invention,
Data extraction means for accumulating data contained in the received packet in the buffer, and movement for calculating a moving average of the amount of accumulated data accumulated in the buffer using a period that is an integral multiple of the period in which the packet is transmitted as a calculation interval Average calculating means, means for calculating the average value of the moving average of the accumulated data amount, clock frequency control means for controlling the clock frequency output from the clock oscillator based on the average value, and clock output from the clock oscillator When the data reading means for reading data from the buffer at a speed proportional to the frequency and the moving average calculation means calculate the moving average of the new accumulated data amount, a value indicating the fluctuation of the moving average of the new accumulated data amount is calculated. Fluctuation determination that determines whether or not to use the moving average of the new accumulated data amount to calculate the average value based on the value indicating the fluctuation Characterized in that it comprises a stage.

本発明のクロック再生装置における他の実施形態によれば、
前記変動を示す値は、新たな蓄積データ量の移動平均と、平均的な値との差であり、変動判定手段は、該差が閾値以上又は閾値より大きい場合に、新たな蓄積データ量の移動平均を平均的な値の計算に使用しないと判定することも好ましい。
According to another embodiment of the clock recovery device of the present invention,
The value indicating the variation is a difference between the moving average of the new accumulated data amount and the average value, and the variation determining means determines the new accumulated data amount when the difference is equal to or larger than the threshold value or larger than the threshold value. It is also preferable to determine that the moving average is not used for calculating the average value.

また、本発明のクロック再生装置における他の実施形態によれば、
平均的な値の計算に使用する蓄積データ量の移動平均に基づき、蓄積データ量の移動平均の散らばり具合を示す値を計算する手段を有し、前記閾値は、散らばり具合を示す値から決定されることも好ましい。
According to another embodiment of the clock recovery device of the present invention,
Based on the moving average of the accumulated data amount used for the calculation of the average value, it has means for calculating a value indicating the degree of dispersion of the moving average of the accumulated data amount, and the threshold is determined from the value indicating the degree of dispersion. It is also preferable.

本発明によるクロック再生方法によれば、
受信したパケットに含まれるデータが蓄積され、クロック発振器が出力するクロック周波数に比例した速度でデータが読み出されるバッファの蓄積データ量に基づき、データ受信装置においてクロックを再生する方法であって、該パケットが送信される周期の整数倍の周期を計算区間として、バッファに蓄積されている蓄積データ量の移動平均を計算する第1のステップと、新たな蓄積データ量の移動平均の変動を示す値を計算する第2のステップと、前記変動を示す値に基づき、新たな蓄積データ量の移動平均を、蓄積データ量の移動平均の平均的な値の計算に使用するか否かを判定する第3のステップと、使用する場合には、新たな蓄積データ量の移動平均で、平均的な値を更新する第4のステップと、平均的な値に基づきクロック発振器が出力するクロック周波数を制御する第5のステップとを有することを特徴とする。
According to the clock recovery method of the present invention,
A method of regenerating a clock in a data receiving device based on a stored data amount of a buffer in which data included in a received packet is accumulated and data is read at a rate proportional to a clock frequency output from a clock oscillator, A first step of calculating a moving average of the amount of accumulated data stored in the buffer, with a period that is an integral multiple of the period at which is transmitted as a calculation interval, and a value indicating a variation in the moving average of the new accumulated data amount A second step of calculating and a third step of determining whether or not to use the moving average of the new accumulated data amount for calculating the average value of the moving average of the accumulated data amount based on the value indicating the fluctuation Step, and, if used, a fourth step of updating the average value with a moving average of the new accumulated data amount, and clock oscillation based on the average value. There and having a fifth step of controlling the output to the clock frequency.

“蓄積データ量の移動平均”の平均的な値を求め、これをクロック再生に使用することで、“蓄積データ量の移動平均”に細かな変動が生じたとしても変動を除去し、安定した周波数でのクロック再生を実現する。   By obtaining an average value of “moving average of stored data amount” and using it for clock recovery, even if a small fluctuation occurs in “moving average of stored data amount”, the fluctuation is eliminated and stable. Realize clock recovery at frequency.

しかしながら、新たな“蓄積データ量の移動平均”に大きな変動が生じた場合には、平均的な値も変動する。したがって、変動判定手段が、“蓄積データ量の移動平均”の変動量を示す指標に基づき、大きな変動であるか否かを判定する。大きな変動であると判定した場合には、その“蓄積データ量の移動平均”を、平均的な値の計算には使用しないように制御することで、更に、安定した周波数でのクロック再生が実現できる。変動量の指標としては、新たな“蓄積データ量の移動平均”と、平均的な値の差を使用し、閾値に基づき大きな変動であるか否かを判定する。また、この閾値は、標準偏差等の、“蓄積データ量の移動平均”の散らばり具合を示す値の所定数倍等、散らばり具合を示す値から決定する。   However, when a large change occurs in the new “moving average of accumulated data amount”, the average value also changes. Accordingly, the fluctuation determination means determines whether or not the fluctuation is a large fluctuation based on the index indicating the fluctuation amount of the “moving average of accumulated data amount”. If it is determined that the fluctuation is large, the "moving average of the accumulated data" is controlled so that it is not used for calculating the average value. it can. As a fluctuation amount index, a new “moving average of accumulated data amount” and a difference between average values are used, and it is determined whether or not there is a large fluctuation based on a threshold value. The threshold is determined from a value indicating the degree of dispersion, such as a standard deviation, or a predetermined number of times that indicates the degree of dispersion of the “moving average of accumulated data amount”.

本発明を実施するための最良の実施形態について、以下では図面を用いて詳細に説明する。図5は、本発明によるクロック再生装置のブロック図である。図5によると、クロック再生装置は、データ取出部1と、バッファ2と、移動平均計算部3と、変動除去部4と、クロック周波数制御部5と、クロック発振器6と、データ読出部7とを備えている。更に、変動除去部4は、標準偏差計算部41と、平均値計算部42と、変動判定部43とを備えている。   The best mode for carrying out the present invention will be described in detail below with reference to the drawings. FIG. 5 is a block diagram of a clock recovery apparatus according to the present invention. According to FIG. 5, the clock recovery device includes a data extraction unit 1, a buffer 2, a moving average calculation unit 3, a fluctuation removal unit 4, a clock frequency control unit 5, a clock oscillator 6, and a data reading unit 7. It has. Further, the fluctuation removal unit 4 includes a standard deviation calculation unit 41, an average value calculation unit 42, and a fluctuation determination unit 43.

データ取出部1は、受信したパケットに含まれるデータを取り出してバッファ2に蓄積し、データ読出部7は、クロック発振器6が出力する再生クロック周波数に比例した速度で、バッファ2に蓄積されたデータを読み出す。   The data extraction unit 1 extracts the data contained in the received packet and stores it in the buffer 2. The data reading unit 7 stores the data stored in the buffer 2 at a speed proportional to the reproduction clock frequency output from the clock oscillator 6. Is read.

移動平均計算部3は、パケットが送信される周期又はその整数倍の周期を計算区間として、各計算区間における、バッファ2に蓄積されている蓄積データ量の移動平均を求める。   The moving average calculation unit 3 obtains a moving average of the amount of accumulated data stored in the buffer 2 in each calculation section, with a period at which the packet is transmitted or a period that is an integral multiple of the period being transmitted.

平均値計算部42は、“蓄積データ量の移動平均”の平均値を計算し、標準偏差計算部41は、“蓄積データ量の移動平均”の標準偏差を計算する。但し、移動平均計算部3から新たな“蓄積データ量の移動平均”が入力されたときに、変動判定部43が、その新たな“蓄積データ量の移動平均”を“蓄積データ量の移動平均”の平均値及び標準偏差の計算に使用しないと判定した場合には、平均値計算部42及び標準偏差計算部41は、新たな“蓄積データ量の移動平均”を“蓄積データ量の移動平均”の平均値及び標準偏差の計算には使用しない。   The average value calculation unit 42 calculates the average value of “moving average of accumulated data amount”, and the standard deviation calculation unit 41 calculates the standard deviation of “moving average of accumulated data amount”. However, when a new “moving average of accumulated data amount” is input from the moving average calculation unit 3, the fluctuation determination unit 43 sets the new “moving average of accumulated data amount” to “moving average of accumulated data amount”. When the average value and the standard deviation are determined not to be used for calculating the average value and the standard deviation, the average value calculating unit 42 and the standard deviation calculating unit 41 replace the new “moving average of the accumulated data amount” with the “moving average of the accumulated data amount”. It is not used to calculate the average value and standard deviation of "".

変動判定部43による新たな“蓄積データ量の移動平均”を平均値及び標準偏差の計算に使用するか否かの判定は、その新たな“蓄積データ量の移動平均”の変動量に基づき行われ、具体的には、変動量が所定の閾値未満である場合には、新たな“蓄積データ量の移動平均”で、平均値及び標準偏差を更新すると判定し、閾値以上である場合には、新たな“蓄積データ量の移動平均”で、平均値及び標準偏差を更新しないと判定する。なお、閾値以下で更新し、閾値より大きい場合に更新しないと判定しても良い。   The determination of whether or not the new “moving average of accumulated data amount” is used for calculation of the average value and the standard deviation by the fluctuation determining unit 43 is performed based on the new fluctuation amount of “moving average of accumulated data amount”. Specifically, when the fluctuation amount is less than a predetermined threshold value, it is determined that the average value and the standard deviation are updated with a new “moving average of accumulated data amount”. The new “moving average of accumulated data amount” is determined not to update the average value and the standard deviation. In addition, you may determine not updating, when updating below a threshold value and larger than a threshold value.

ここで、変動判定部43は、“蓄積データ量の移動平均”の変動量として、移動平均計算部3からの新たな入力値と、新たな入力値が入力される前の時点において、平均値計算部42が出力している“蓄積データ量の移動平均”の平均値との差を使用し、閾値として、標準偏差計算部41が求める“蓄積データ量の移動平均”の標準偏差を基準として求められる値を使用する。より具体的には、閾値を標準偏差の所定数倍、例えば2倍といった、標準偏差から計算により決定される値とし、変動量が閾値以上であれば、“蓄積データ量の移動平均”の平均値及び標準偏差の更新を抑制させる。図4は、図3に示すパケット受信に対する変動除去部4の処理を説明する概略図である。   Here, the fluctuation determination unit 43 calculates the average value as the fluctuation amount of the “moving average of accumulated data amount” and the new input value from the moving average calculation unit 3 and the time point before the new input value is input. Using the difference from the average value of the “moving average of accumulated data amount” output from the calculation unit 42 as a threshold, the standard deviation of the “moving average of accumulated data amount” obtained by the standard deviation calculation unit 41 is used as a threshold. Use the required value. More specifically, the threshold is a value determined by calculation from the standard deviation, such as a predetermined number of times the standard deviation, for example, twice, and if the variation is equal to or greater than the threshold, the average of the “moving average of accumulated data” Suppresses updating of values and standard deviations. FIG. 4 is a schematic diagram for explaining processing of the fluctuation removing unit 4 for packet reception shown in FIG.

クロック発振器6は、例えば、電圧制御水晶発振器の様に外部制御信号に基づきクロック周波数を変化させる発振器であり、クロック周波数制御部5は、“蓄積データ量の移動平均”の平均値に基づきクロック発振器6が出力する再生クロック周波数を制御する制御信号を出力する。   The clock oscillator 6 is an oscillator that changes the clock frequency based on an external control signal, such as a voltage-controlled crystal oscillator, and the clock frequency control unit 5 is based on the average value of “moving average of accumulated data amount”. 6 outputs a control signal for controlling the reproduction clock frequency output from 6.

以上、本発明によるクロック再生装置においては、平均値計算部42が“蓄積データ量の移動平均”の平均値を求め、これをクロック再生に使用することで、“蓄積データ量の移動平均”に細かな変動が生じたとしても、変動を除去し、安定した周波数でのクロック再生を実現している。しかしながら、“蓄積データ量の移動平均”に大きな変動が生じた場合には、“蓄積データ量の移動平均”の平均値も変動するため、変動判定部43を設けて、“蓄積データ量の移動平均”が大きく変動した場合には、その値を、“蓄積データ量の移動平均”の平均値の更新には使用しないように制御する。これにより、更に、安定した周波数でのクロック再生が実現できる。この変動判定部43による判定の基準には、データの散らばり具合を示す“蓄積データ量の移動平均”の標準偏差を使用する。   As described above, in the clock recovery apparatus according to the present invention, the average value calculation unit 42 obtains the average value of “moving average of accumulated data amount” and uses it for clock recovery, thereby obtaining “moving average of accumulated data amount”. Even if fine fluctuations occur, the fluctuations are removed and clock reproduction at a stable frequency is realized. However, when a large fluctuation occurs in the “moving average of the accumulated data amount”, the average value of the “moving average of the accumulated data amount” also fluctuates. When the “average” fluctuates greatly, control is performed so that the value is not used for updating the average value of “moving average of accumulated data amount”. As a result, clock regeneration at a stable frequency can be realized. A standard deviation of “moving average of accumulated data amount” indicating the degree of data dispersion is used as a reference for determination by the variation determination unit 43.

図6は、本発明によるクロック再生方法における、蓄積データ量の移動平均の変動除去処理のフロー図である。
(S61、S62)平均値と標準偏差を過去の“蓄積データ量の移動平均”の値から計算しておく。
(S63)新しい“蓄積データ量の移動平均”の値と、現在の“蓄積データ量の移動平均”の平均値との差が、現在の標準偏差の所定数倍未満か否かを判定する。
(S64)標準偏差の所定数倍未満である場合には、新しい“蓄積データ量の移動平均”の値に基づき、“蓄積データ量の移動平均”の平均値及び標準偏差を更新する。
FIG. 6 is a flowchart of the moving average fluctuation removal processing of the accumulated data amount in the clock recovery method according to the present invention.
(S61, S62) The average value and the standard deviation are calculated from the past “moving average of accumulated data amount”.
(S63) It is determined whether or not the difference between the new “moving average of stored data amount” and the current “moving average of stored data amount” is less than a predetermined number of times the current standard deviation.
(S64) If the standard deviation is less than a predetermined number of times, the average value and standard deviation of the “moving average of accumulated data amount” are updated based on the new “moving average of accumulated data amount” value.

図7は、本発明によるクロック再生方法のシミュレーション結果である。シミュレーションモデルは、データ送信装置が8単位時間周期でパケットを送信し、パケット毎にランダムな値の伝送遅延時間を加えるものとし、約1%の割合で、他のパケットに比べて極端に大きな伝送遅延時間が発生するものとした。データ受信装置においては、パケット受信の度に蓄積データ量を1単位増加させ、1単位時間周期で0.125単位データを蓄積データ量から減じ、連続する8単位時間の蓄積データ量の平均を、“蓄積データ量の移動平均”とした。   FIG. 7 is a simulation result of the clock recovery method according to the present invention. In the simulation model, the data transmission device transmits a packet at a period of 8 unit time, and adds a random transmission delay time for each packet. The transmission is extremely large compared to other packets at a rate of about 1%. It was assumed that a delay time occurred. In the data receiving apparatus, each time a packet is received, the accumulated data amount is increased by one unit, and 0.125 unit data is subtracted from the accumulated data amount in one unit time period. “Moving average of accumulated data”.

新たなパケットを受信するまで蓄積データ量は減少し続けるので、伝送遅延の大きなパケットが発生する度に蓄積データ量が極端に小さな値となる。図7のグラフで、“蓄積データ量の移動平均”が数箇所で下に突き出ている部分がそれにあたる。本シミュレーションにおいては、64単位時間間隔で100個の“蓄積データ量の移動平均”の平均値及び標準偏差を計算し、標準偏差の2倍を閾値、つまり、平均値及び標準偏差の更新を行うか否かの判定に用いた。また、図7には、比較のために、“蓄積データ量の移動平均”の単純平均も示している。   Since the amount of accumulated data continues to decrease until a new packet is received, the amount of accumulated data becomes extremely small every time a packet with a large transmission delay occurs. In the graph of FIG. 7, “moving average of accumulated data amount” protrudes downward in several places. In this simulation, the average value and standard deviation of 100 “moving averages of accumulated data” are calculated at 64 unit time intervals, and the threshold value, that is, the average value and the standard deviation is updated twice the standard deviation. Used to determine whether or not. FIG. 7 also shows a simple average of “moving average of accumulated data amount” for comparison.

図7から明らかなように、“蓄積データ量の移動平均”は変動が激しく、これをそのままクロック周波数制御に使用すると再生クロック周波数も激しく変動し、安定した周波数のクロックを再生することができない。また、単純平均は、“蓄積データ量の移動平均”と比較するとその変動はかなり抑圧されているが、“蓄積データ量の移動平均”が大きく変動するところでは単純平均の値も変動し、よって、クロック周波数もその分だけ変動することになる。これに比べ、本発明によるクロック再生では、クロック周波数制御に使用する値はほとんど変化しておらず、極めて安定した周波数のクロック生成が可能であることが分かる。   As is apparent from FIG. 7, the “moving average of accumulated data amount” fluctuates greatly, and if this is used as it is for clock frequency control, the reproduction clock frequency also fluctuates drastically, and a clock having a stable frequency cannot be reproduced. In addition, the fluctuation of the simple average is considerably suppressed compared to the “moving average of accumulated data amount”, but the value of the simple average also fluctuates when the “moving average of accumulated data amount” fluctuates greatly. The clock frequency also varies accordingly. In contrast, in the clock recovery according to the present invention, the values used for the clock frequency control hardly change, and it can be seen that a clock with an extremely stable frequency can be generated.

なお、上述した説明において、“蓄積データ量の移動平均”の平均値及び標準偏差を用いたが、平均値に代えてモードや中央値等、データの平均的な値を示す量を、標準偏差に代えて分散や4分位点等、データの散らばり具合を示す量を用いることも可能である。   In the above description, the average value and standard deviation of the “moving average of accumulated data amount” are used. However, instead of the average value, the amount indicating the average value of the data such as the mode and the median value is represented by the standard deviation. Instead of this, it is also possible to use an amount indicating the degree of data dispersion such as variance or quartile.

パケット受信間隔が一定の場合の蓄積データ量及び蓄積データ量の移動平均の変化を示す図である。It is a figure which shows the change of the moving average of accumulation | storage data amount and accumulation | storage data amount when a packet reception interval is constant. パケットの揺らぎを示す図である。It is a figure which shows the fluctuation of a packet. パケット受信間隔が一定でない場合の蓄積データ量及び蓄積データ量の移動平均の変化を示す図である。It is a figure which shows the change of the moving average of accumulation | storage data amount and accumulation | storage data amount when a packet reception interval is not constant. 図3に示すパケット受信に対する変動除去部の処理を説明する図である。It is a figure explaining the process of the fluctuation | variation removal part with respect to the packet reception shown in FIG. 本発明によるクロック再生装置のブロック図である。1 is a block diagram of a clock recovery device according to the present invention. 本発明によるクロック再生方法における、蓄積データ量の移動平均の変動除去処理のフロー図である。It is a flowchart of the fluctuation removal process of the moving average of the amount of stored data in the clock recovery method according to the present invention. 本発明によるクロック再生方法のシミュレーション結果である。It is a simulation result of the clock reproduction | regeneration method by this invention.

符号の説明Explanation of symbols

1 データ取出部
2 バッファ
3 移動平均計算部
4 変動除去部
41 標準偏差計算部
42 平均値計算部
43 変動判定部
5 クロック周波数制御部
6 クロック発振器
7 データ読出部
DESCRIPTION OF SYMBOLS 1 Data extraction part 2 Buffer 3 Moving average calculation part 4 Fluctuation removal part 41 Standard deviation calculation part 42 Average value calculation part 43 Fluctuation judgment part 5 Clock frequency control part 6 Clock oscillator 7 Data reading part

Claims (4)

受信したパケットに含まれるデータをバッファに蓄積するデータ取出手段と、
該パケットが送信される周期の整数倍の周期を計算区間として、バッファに蓄積されている蓄積データ量の移動平均を計算する移動平均計算手段と、
蓄積データ量の移動平均の平均的な値を計算する手段と、
平均的な値に基づきクロック発振器が出力するクロック周波数を制御するクロック周波数制御手段と、
クロック発振器が出力するクロック周波数に比例した速度でバッファからデータを読み出すデータ読出手段と、
移動平均計算手段が新たな蓄積データ量の移動平均を計算したとき、新たな蓄積データ量の移動平均の変動を示す値を計算し、新たな蓄積データ量の移動平均を平均的な値の計算に使用するか否かを、該変動を示す値に基づき判定する変動判定手段と、
を備えていることを特徴とするクロック再生装置。
Data extraction means for storing data contained in the received packet in a buffer;
A moving average calculating means for calculating a moving average of the amount of accumulated data stored in the buffer, using a period that is an integral multiple of the period in which the packet is transmitted as a calculation interval;
Means for calculating an average value of the moving average of the accumulated data amount;
Clock frequency control means for controlling the clock frequency output from the clock oscillator based on the average value;
Data reading means for reading data from the buffer at a rate proportional to the clock frequency output by the clock oscillator;
When the moving average calculator calculates the moving average of the new accumulated data amount, it calculates a value indicating the fluctuation of the moving average of the new accumulated data amount, and calculates the average value of the moving average of the new accumulated data amount. Fluctuation determining means for determining whether or not to use based on a value indicating the fluctuation;
A clock recovery device comprising:
前記変動を示す値は、新たな蓄積データ量の移動平均と、平均的な値との差であり、
変動判定手段は、該差が閾値以上又は閾値より大きい場合に、新たな蓄積データ量の移動平均を平均的な値の計算に使用しないと判定することを特徴とする請求項1に記載のクロック再生装置。
The value indicating the fluctuation is a difference between the moving average of the new accumulated data amount and the average value,
2. The clock according to claim 1, wherein the variation determination unit determines that the moving average of the new accumulated data amount is not used for calculating an average value when the difference is equal to or larger than the threshold value or greater than the threshold value. Playback device.
平均的な値の計算に使用する蓄積データ量の移動平均に基づき、蓄積データ量の移動平均の散らばり具合を示す値を計算する手段を有し、
前記閾値は、散らばり具合を示す値から決定されることを特徴とする請求項2に記載のクロック再生装置。
A means for calculating a value indicating the degree of dispersion of the moving average of the accumulated data based on the moving average of the accumulated data used for calculating the average value;
The clock recovery device according to claim 2, wherein the threshold is determined from a value indicating the degree of dispersion.
受信したパケットに含まれるデータが蓄積され、クロック発振器が出力するクロック周波数に比例した速度でデータが読み出されるバッファの蓄積データ量に基づき、データ受信装置においてクロックを再生する方法であって、
該パケットが送信される周期の整数倍の周期を計算区間として、バッファに蓄積されている蓄積データ量の移動平均を計算する第1のステップと、
新たな蓄積データ量の移動平均の変動を示す値を計算する第2のステップと、
前記変動を示す値に基づき、新たな蓄積データ量の移動平均を、蓄積データ量の移動平均の平均的な値の計算に使用するか否かを判定する第3のステップと、
使用する場合には、新たな蓄積データ量の移動平均で、平均的な値を更新する第4のステップと、
平均的な値に基づきクロック発振器が出力するクロック周波数を制御する第5のステップと、
を有することを特徴とするクロック再生方法。
A method of regenerating a clock in a data receiving device based on an accumulated data amount of a buffer in which data included in a received packet is accumulated and data is read at a rate proportional to a clock frequency output from a clock oscillator,
A first step of calculating a moving average of the amount of accumulated data stored in the buffer, with a period that is an integral multiple of the period in which the packet is transmitted as a calculation interval;
A second step of calculating a value indicating a variation of the moving average of the new accumulated data amount;
A third step of determining whether or not to use the moving average of the new accumulated data amount for calculating the average value of the moving average of the accumulated data amount based on the value indicating the variation;
When using, a fourth step of updating the average value with a moving average of the new accumulated data amount;
A fifth step of controlling the clock frequency output by the clock oscillator based on the average value;
A clock recovery method comprising:
JP2006225188A 2006-08-22 2006-08-22 Clock regeneration method and apparatus Expired - Fee Related JP4711345B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006225188A JP4711345B2 (en) 2006-08-22 2006-08-22 Clock regeneration method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006225188A JP4711345B2 (en) 2006-08-22 2006-08-22 Clock regeneration method and apparatus

Publications (2)

Publication Number Publication Date
JP2008053797A JP2008053797A (en) 2008-03-06
JP4711345B2 true JP4711345B2 (en) 2011-06-29

Family

ID=39237457

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006225188A Expired - Fee Related JP4711345B2 (en) 2006-08-22 2006-08-22 Clock regeneration method and apparatus

Country Status (1)

Country Link
JP (1) JP4711345B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8675665B2 (en) 2007-09-14 2014-03-18 Nec Corporation Clock synchronization system, its method and program
JP2012129677A (en) * 2010-12-14 2012-07-05 Sony Corp Receiving device and method and program
JP6259227B2 (en) * 2013-08-29 2018-01-10 日本放送協会 Clock reproduction control device and video signal receiving device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3169335B2 (en) * 1996-03-06 2001-05-21 三菱電機株式会社 Line connection device
JP3516829B2 (en) * 1997-03-24 2004-04-05 三菱電機株式会社 Communication device
JPH1127337A (en) * 1997-07-04 1999-01-29 Fujitsu General Ltd Loopback preventing type digital phase demodulator
JP2000022678A (en) * 1998-06-30 2000-01-21 Victor Co Of Japan Ltd Data transmission terminal equipment
JP3660517B2 (en) * 1999-03-01 2005-06-15 三菱電機株式会社 DATA RECEIVING DEVICE, SOURCE CLOCK REPRODUCTION METHOD USED FOR THE SAME, AND COMPUTER-READABLE RECORDING MEDIUM RECORDING PROGRAM FOR CAUSING COMPUTER TO EXECUTE THE METHOD
JP2002344433A (en) * 2001-05-21 2002-11-29 Matsushita Electric Ind Co Ltd Clock recovery method and clock recovery device
JP4257743B2 (en) * 2004-08-24 2009-04-22 日本電信電話株式会社 Data receiving apparatus, bit rate estimating method, program, and recording medium for estimating bit rate

Also Published As

Publication number Publication date
JP2008053797A (en) 2008-03-06

Similar Documents

Publication Publication Date Title
JP5354474B2 (en) Clock synchronization system, method thereof and program thereof
US7711841B2 (en) Systems and methods for reducing the effects of variations on the playback of streaming media
JP4462996B2 (en) Packet receiving method and packet receiving apparatus
CN103888381A (en) Device and method used for controlling jitter buffer
JP2007221326A (en) Device and method for adjusting transmission rate
JP4711345B2 (en) Clock regeneration method and apparatus
CN110505494B (en) Method and device for removing network jitter
JP4577230B2 (en) Traffic control apparatus, method, and program using token bucket
JPH09247156A (en) Line connection device
JP2009200787A (en) Clock frequency stabilizing method and data receiver
JP4100144B2 (en) Clock regeneration apparatus and clock regeneration method
CN107087210B (en) Method and terminal for judging video playing state based on cache time
JP4188264B2 (en) Data receiving apparatus and clock recovery method used therefor
JP3478228B2 (en) Speed conversion circuit and control method thereof
JP4257743B2 (en) Data receiving apparatus, bit rate estimating method, program, and recording medium for estimating bit rate
JP4717763B2 (en) Clock regeneration method and apparatus
JP3881992B2 (en) Reception device, reception program, and recording medium on which reception program is recorded
JP2007295491A (en) Streaming data receiving apparatus and jitter elimination circuit
WO2022168306A1 (en) Transmission system, transmission method, and transmission program
WO2015182054A1 (en) Communication device and data processing method
JP5406148B2 (en) Clock reproduction apparatus, clock reproduction method, and control program
JP4476266B2 (en) Demapping method and circuit
JP4893363B2 (en) Stream data receiving / reproducing device
JP2004072217A (en) Data reproducing apparatus
JP4657978B2 (en) Method for estimating bit rate synchronized with transmission bit rate, method for generating synchronous clock, and data receiving apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080728

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20100831

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20100929

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110301

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110316

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110317

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140401

Year of fee payment: 3

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees