摘要 |
<p>The invention discloses a method and a system for clock recovery in a packet-switched network, which aim to solve the problem in the prior art that the clock cannot be recovered accurately after the TDM service data are transmitted through the packet-switched network. The method includes the following steps of: a transmitting terminal counting TDM service data packet transmitting periods using a sampling clock of the present terminal to obtain a first counting value a1, and inserting identification information between at least two continuous transmitting intervals, a receiving terminal receiving the first counting value a1, calculating a proportionality coefficient between the sampling clock periods of the two terminals according to the first counting value a1 and the identification information, recovering an interval between two pieces of adjacent identification information, comparing the interval between the two pieces of adjacent recovered identification information with an interval between two adjacent received identifiers to obtain an adjusting difference value, and adjusting the time for receiving each data packet based on the adjusting difference value so as to obtain a recovered clock. Just because of the mechanism of adding a frequency stamp respectively at the transmitting terminal and the receiving terminal simultaneously, the clock of the transmitting terminal can be accurately recovered.</p> |