WO2016074152A1 - Method and apparatus for processing differential clock recovery - Google Patents

Method and apparatus for processing differential clock recovery Download PDF

Info

Publication number
WO2016074152A1
WO2016074152A1 PCT/CN2014/090816 CN2014090816W WO2016074152A1 WO 2016074152 A1 WO2016074152 A1 WO 2016074152A1 CN 2014090816 W CN2014090816 W CN 2014090816W WO 2016074152 A1 WO2016074152 A1 WO 2016074152A1
Authority
WO
WIPO (PCT)
Prior art keywords
counter
value
packet
ethernet
frequency
Prior art date
Application number
PCT/CN2014/090816
Other languages
French (fr)
Chinese (zh)
Inventor
乔立忠
陈艳斌
陈松岩
孙广天
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201480080957.XA priority Critical patent/CN106664233B/en
Priority to PCT/CN2014/090816 priority patent/WO2016074152A1/en
Publication of WO2016074152A1 publication Critical patent/WO2016074152A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • H04L12/427Loop networks with decentralised control
    • H04L12/43Loop networks with decentralised control with synchronous transmission, e.g. time division multiplex [TDM], slotted rings

Definitions

  • the embodiments of the present invention relate to communication technologies, and in particular, to a method and an apparatus for processing differential clock recovery.
  • the Circuit Emulation Service (CES) technology can implement the Internet Protocol IP encapsulation of traditional Time Division Multiplexing (TDM) format information. Specifically, the transmitting side encapsulates different numbers of TDM timeslots into IP packets for transmission, and then removes the TDM time slots in the IP packets from the packets to the TDM time slots on the receiving side, thereby implementing TDM.
  • the service traverses the Internet Protocol (IP) network.
  • IP Internet Protocol
  • the CES service uses the CES technology to encapsulate the TDM service data with a special circuit emulation header, and then transmits the packet to the receiving side through a packet switching network (PSN) to decapsulate and reconstruct the TDM based on the clock information. business.
  • PSN packet switching network
  • the clock information of the TDM service (that is, the clock frequency of the TDM service) is different. Therefore, in the CES service, the clock information of the TDM service must be transmitted along with the CES service, and then recovered together on the receiving side as the TDM service clock. .
  • FIG. 1 is a schematic diagram of the application scenario of the DCR technology in the radio bearer network in the prior art.
  • the scenario mainly involves: a transmitting side device 1, a receiving side device 2, a TDM device 3, a TDM device 4, and a packet switching network 5.
  • the TDM device 3 provides the TDM service to the transmitting device 1 , and the transmitting device 1 and the receiving device 2 have the same local reference clock, and the two transmit the CES service through the Packet Switching Network (PSN).
  • PSN Packet Switching Network
  • the receiving device 2 provides the TDM service recovered from the CES service to the TDM device 4.
  • the main workflow of the DCR technology is: on the transmitting side, the transmitting device 1 extracts clock information of the TDM service from the TDM service provided by the TDM device 3, and then uses the local reference. Clock comparison, calculate the frequency offset value freq between the two, and then root
  • the data frame of the TDM service is encapsulated into the Ethernet packet according to the Packet Per Second (PPS) of the transmitting device, and the frequency offset value freq is written to the specified location of the Ethernet packet, and then the PSN is used to The Ethernet message is sent out.
  • PPS Packet Per Second
  • the receiving device 2 extracts freq from the specified position of the Ethernet message, and then adds freq to the local reference clock, and the calculated frequency information is The clock information of the TDM service, where the local reference clock of the receiving device 2 is the same as the local reference clock of the transmitting device 1, and then the Ethernet packet is restored to the TDM service according to the clock information of the TDM service, and is provided to the TDM.
  • the local reference clock of the receiving device 2 is the same as the local reference clock of the transmitting device 1
  • the Ethernet packet is restored to the TDM service according to the clock information of the TDM service, and is provided to the TDM.
  • the frequency offset value freq calculated in real time is not high, and is limited by hardware conditions.
  • the transmitting side device uses different hardware schemes to calculate the frequency offset value freq.
  • the same device on the receiving side cannot implement interworking between different hardware solutions, which limits the application range of DCR technology.
  • the embodiment of the invention provides a method and a device for processing a differential clock recovery.
  • the receiving device also obtains a frequency control word through software according to the value of the counter in the first Ethernet message, thereby implementing interworking between different hardware solutions.
  • a first aspect of the embodiments of the present invention provides a method for processing differential clock recovery, where the method includes:
  • the receiving side device acquires a frequency offset value according to the packet sending rate of the receiving device, the working clock frequency of the counter on the transmitting device, and the obtained value in the counter in the first Ethernet packet; wherein the receiving side The sending rate of the device is the same as the sending rate of the transmitting device, and the value in the counter is time stamp information recorded by the counter at the working clock frequency of the counter;
  • the receiving side device acquires an output frequency of the phase locked loop by using the frequency offset value
  • the receiving side device recovers the TDM service data frame from the first Ethernet packet according to an output frequency of the phase locked loop.
  • the receiving for the first Ethernet packet sent by each of the sending side devices, the receiving The side device obtains the frequency offset value according to the packet sending rate of the receiving device, the operating clock frequency of the counter on the transmitting device, and the obtained value in the counter in the first Ethernet packet, which specifically includes:
  • T is a packet sending period
  • T 1/K
  • t′ 1 is a value in a counter in the second Ethernet packet
  • the receiving side device acquires the frequency according to the packet sending rate of the receiving device, the working clock frequency of the counter on the transmitting device, and the obtained value in the counter in the first Ethernet message.
  • the bias value includes:
  • the operating clock frequency f 10 of the first counter on the transmitting device the operating clock frequency f 11 of the second counter on the transmitting device, and the first counter in the first Ethernet packet.
  • a value t 10 and a value t 11 in the second counter in the first Ethernet message using a formula
  • the receiving side device acquires the frequency control word according to the relative frequency control word.
  • the first Ethernet message sent by each of the sending side devices the receiving side The device obtains the frequency offset value according to the packet sending rate of the receiving device, the operating clock frequency of the counter on the transmitting device, and the obtained value in the counter in the first Ethernet packet, which specifically includes:
  • the receiving side device in the first packet sending period according to the packet sending rate K of the receiving device, the value t' 1n in the counter in the Ethernet packet received by the receiving device in the nth packet sending period, and the first packet sending period
  • the value t 1 in the counter in the received Ethernet message and the working clock frequency f 0 of the counter on the transmitting device are calculated by using a formula Obtaining the frequency control word freq_offset;
  • T the delivery period
  • T 1/K.
  • the method further includes:
  • the receiving side device acquires an output frequency of the phase locked loop by using the frequency control word, specifically:
  • the receiving side device acquires an output frequency of the phase locked loop by using the final frequency control word.
  • the method further includes:
  • the frequency control word is filtered.
  • a second aspect of the embodiments of the present invention provides a processing apparatus for differential clock recovery, where the apparatus includes:
  • the receiving module is configured to receive the first Ethernet packet sent by the sending device, where the first Ethernet packet is used by the sending device to convert the time division multiplexed TDM service data frame according to the sending rate of the sending device. Ether message obtained afterwards;
  • a frequency offset value obtaining module configured to obtain a frequency offset value according to an output rate of the receiving device, a working clock frequency of the counter on the transmitting device, and a value in the obtained counter in the first Ethernet message;
  • the sending rate of the receiving side device is the same as the sending rate of the sending side device, and the value in the counter is time stamp information recorded by the counter at the working clock frequency of the counter;
  • An output module configured to obtain an output frequency of the phase locked loop by using the frequency offset value
  • a recovery module configured to recover the TDM service data frame from the first Ethernet packet according to an output frequency of the phase locked loop.
  • the frequency offset value acquiring module is specifically configured to:
  • T is a packet sending period
  • T 1/K
  • t′ 1 is a value in a counter in the second Ethernet packet
  • the frequency offset value acquiring module Specifically used for:
  • the operating clock frequency f 10 of the first counter on the transmitting device the operating clock frequency f 11 of the second counter on the transmitting device, and the first counter in the first Ethernet packet.
  • the frequency offset value acquiring module is specifically configured to:
  • the receiving side device in the first packet sending period according to the packet sending rate K of the receiving device, the value t' 1n in the counter in the Ethernet packet received by the receiving device in the nth sending period, and the first packet sending period
  • the value t 1 in the counter in the received Ethernet message and the working clock frequency f 0 of the counter on the transmitting device are calculated by using a formula Obtaining the frequency control word freq_offset;
  • T the delivery period
  • T 1/K.
  • the frequency is The offset obtaining module is further configured to obtain a final frequency control word from the frequency control words corresponding to the first Ethernet message sent by all the sending side devices;
  • the output frequency acquisition module is further configured to acquire an output frequency of the phase locked loop by using the final frequency control word.
  • the device further includes:
  • a filtering module configured to filter the frequency control word.
  • the method for processing the differential clock recovery provided by the embodiment, the first Ethernet message sent by the sending device is received by the receiving device, according to the sending rate of the receiving device, the working clock frequency of the counter on the transmitting device, and the obtained first Obtain a frequency offset value in the counter in the Ethernet packet, input the frequency offset value into the phase-locked loop, obtain the output frequency of the phase-locked loop, and use the output frequency as the clock frequency of the TDM service from the first Ethernet packet. Recover TDM service data frames.
  • the frequency offset value is obtained by software according to the value of the counter in the first Ethernet message. Therefore, in the embodiment, the method for obtaining the frequency offset value by using hardware calculation in the transmitting device is used in this embodiment. Even if the transmitting device uses different hardware solutions, the receiving device can obtain the frequency offset value through software according to the value of the counter in the first Ethernet packet, and implement interworking between different hardware solutions.
  • FIG. 1 is a schematic diagram of an application scenario of a DCR technology in a radio bearer network in the prior art
  • FIG. 2 is a flowchart of a method for processing differential clock recovery according to Embodiment 1 of the present invention
  • FIG. 3 is a flowchart of a method for processing differential clock recovery according to Embodiment 2 of the present invention.
  • FIG. 5 is a flowchart of a method for processing differential clock recovery according to Embodiment 5 of the present invention.
  • FIG. 6 is a schematic structural diagram of a processing apparatus for differential clock recovery according to Embodiment 6 of the present invention.
  • FIG. 7 is a schematic structural diagram of a processing apparatus for differential clock recovery according to Embodiment 11 of the present invention.
  • FIG. 2 is a flowchart of a method for processing differential clock recovery according to Embodiment 1 of the present invention. As shown in FIG. 2, the method in this embodiment includes:
  • the receiving device receives the first Ethernet packet sent by the sending device.
  • the first Ethernet packet is an Ethernet packet obtained by converting the TDM service data frame according to the packet sending rate of the transmitting device.
  • a counter is set on the transmitting device, and the working clock of the counter is synchronized with the system clock.
  • the transmitting device converts the TDM service into an Ethernet packet according to the packet sending rate information of the transmitting device, and takes the value in the counter and writes the value in the counter to the designated location of the Ethernet packet to generate the first Ethernet packet, and then The first Ethernet message is sent to the receiving device.
  • the working clock frequency of the counter refers to the frequency at which the counter is counted.
  • the value in the counter refers to the value recorded by the counter in the preset period, which is equivalent to a time stamp information.
  • the same receiving side device may receive only the first Ethernet packet sent by the sending device, and may also receive the first Ethernet packet sent by the multiple sending device.
  • the first Ethernet message may include only one value in one counter, or may include a value in multiple counters, that is, multiple counters are set on the sending side device, for each The counters set an operating clock frequency, and the operating clock frequency of each counter is different, which is not limited in the present invention.
  • the receiving device obtains the frequency offset value according to the packet sending rate of the receiving device, the working clock frequency of the counter on the transmitting device, and the value in the counter in the obtained first Ethernet message.
  • the sending rate of the receiving device is the same as the sending rate of the transmitting device, and the value in the counter is The timestamp information recorded by the counter at the operating clock frequency of the counter.
  • the working clock frequency of the counter on the transmitting device is written into the receiving device in advance.
  • a counter is set on the transmitting device, only the operating clock frequency of the counter is written into the receiving device.
  • the receiving device After receiving the first Ethernet packet, the receiving device obtains the frequency offset value according to the packet sending rate of the receiving device, the working clock frequency of the counter, and the value of the counter in the obtained first Ethernet packet; When multiple counters are set, the working clock frequency of each counter needs to be written into the receiving device.
  • the receiving device receives the packet rate according to the receiving device and each counter.
  • the working clock frequency and the value of each counter in the first Ethernet message obtain the relative frequency offset value, and then obtain the frequency offset value according to the relative frequency offset value.
  • the frequency offset value in the receiving device, can be obtained by using software, and there are various methods for obtaining the frequency offset value, and those skilled in the art can select a suitable method to obtain the frequency offset value.
  • the invention is not limited thereto.
  • the receiving device acquires an output frequency of the phase locked loop by using a frequency offset value.
  • the frequency offset value is used as an input of the phase locked loop to obtain the output frequency of the phase locked loop.
  • the receiving device recovers the TDM service data frame from the first Ethernet packet according to the output frequency of the phase locked loop.
  • the output frequency of the phase-locked loop is used as the clock frequency of the TDM service, and the TDM service data frame is recovered from the first Ethernet packet according to the clock frequency.
  • the method for processing the differential clock recovery provided by the embodiment, the first Ethernet message sent by the sending device is received by the receiving device, according to the sending rate of the receiving device, the working clock frequency of the counter on the transmitting device, and the obtained first Obtain a frequency offset value in the counter in the Ethernet packet, input the frequency offset value into the phase-locked loop, obtain the output frequency of the phase-locked loop, and use the output frequency as the clock frequency of the TDM service from the first Ethernet packet. Recover TDM service data frames.
  • the frequency offset value is obtained by software according to the value of the counter in the first Ethernet message. Therefore, in the embodiment, the method for obtaining the frequency offset value by using hardware calculation in the transmitting device is used in this embodiment. Even if the transmitting device uses different hardware solutions, the receiving device can obtain the frequency offset value through software according to the value of the counter in the first Ethernet packet, and implement interworking between different hardware solutions.
  • FIG. 3 is a flowchart of a method for processing differential clock recovery according to Embodiment 2 of the present invention.
  • the technical solution of the embodiment is described in detail by taking the value of a counter included in the first Ethernet packet as an example.
  • the method in this embodiment includes:
  • the receiving device receives the first Ethernet packet sent by the sending device.
  • the first Ethernet packet is an Ethernet packet obtained by converting the TDM service data frame according to the packet sending rate of the transmitting device.
  • 201 is the same as the implementation principle of 101 in the first embodiment shown in FIG. 2, and details are not described herein again.
  • the frequency control word freq_offset is obtained by using formula (1).
  • T is the packet-issuing period
  • T 1/K
  • t′ 1 is the value in the counter in the second Ethernet message
  • the second Ethernet packet is the Ethernet that is received by the receiving device and adjacent to the first Ethernet packet.
  • the first Ethernet packet and the second Ethernet packet carry an identifier (ID), an ID in the first Ethernet packet, and an identifier in the second Ethernet packet.
  • ID is adjacent, and the ID in the second Ethernet packet is greater than the ID in the first Ethernet packet.
  • the ID in the first Ethernet packet is 3, and the ID in the second Ethernet packet is 4.
  • the Ethernet message is adjacent to the second Ethernet message.
  • the frequency control word may also be obtained by using formula (2).
  • the receiving device acquires an output frequency of the phase locked loop by using a frequency control word.
  • the local reference clock frequency is used as the input of the phase locked loop
  • the frequency control word is used as the input of the phase locked loop feedback circuit, and the output frequency is obtained at the output end of the phase locked loop.
  • the frequency control word is equivalent to a proportional value, that is, the phase-locked loop outputs the local reference clock frequency according to a certain ratio according to the frequency control word.
  • the receiving device recovers the TDM from the first Ethernet packet according to the output frequency of the phase locked loop. Business data frame.
  • 204 is the same as the implementation principle of 104 in the first embodiment shown in FIG. 2, and details are not described herein again.
  • the method for processing the differential clock recovery when the value of the counter is included in the first Ethernet packet, the first Ethernet message sent by the sending device is received by the receiving device, according to the packet sending rate of the receiving device. And obtaining a frequency control word by inputting a working clock frequency of the counter on the transmitting device and a value in the obtained counter in the first Ethernet message, inputting the frequency control word into the phase locked loop, and acquiring an output frequency of the phase locked loop, The output frequency is used as the clock frequency of the TDM service to recover the TDM service data frame from the first Ethernet packet.
  • the method for calculating the frequency offset value by using the hardware in the transmitting device is compared to the method in the prior art.
  • the transmitting device uses different hardware schemes.
  • the receiving device can obtain the frequency control word through software according to the value of the counter in the first Ethernet message, and obtain the output frequency of the phase locked loop through the frequency control word to implement different hardware. Interworking between the schemes, and only need to set a simple counter on the transmitting side, the value in the counter can be written into the Ethernet packet, and the calculation of the frequency offset value is not dependent on the complicated hardware, thereby reducing the hardware of the transmitting side. Implementation complexity and equipment costs.
  • FIG. 4 is a flowchart of a method for processing differential clock recovery according to Embodiment 3 of the present invention.
  • the first Ethernet message includes a value in the at least two first counters and a value in the at least two second counters, that is, an example in which the first Ethernet message includes a plurality of counters.
  • the method in this embodiment includes:
  • the receiving device receives the first Ethernet packet sent by the sending device.
  • the first Ethernet packet is an Ethernet packet obtained by converting the TDM service data frame according to the packet sending rate of the transmitting device.
  • the packet sending rate K of the receiving device the working clock frequency f 10 of the first counter on the transmitting device, the working clock frequency f 11 of the second counter on the transmitting device, and the first counter in the first Ethernet packet.
  • the value t 10 and the value t 11 in the second counter in the first Ethernet message using equation (3), obtain the relative frequency control word freq_offset1.
  • freq_offset1 is the relative frequency control word
  • T is the packet sending period
  • T 1/K
  • K is the packet sending rate of the receiving device
  • t′ 10 is the value in the first counter in the second Ethernet message
  • t′ 11 is The value of the second counter in the second Ethernet packet, where the second Ethernet packet is an Ethernet packet received by the receiving device and adjacent to the first Ethernet packet.
  • the first Ethernet packet and the second Ethernet packet carry an identifier (ID), an ID in the first Ethernet packet, and an identifier in the second Ethernet packet.
  • ID is adjacent, and the ID in the second Ethernet packet is greater than the ID in the first Ethernet packet.
  • the ID in the first Ethernet packet is 3, and the ID in the second Ethernet packet is 4.
  • the Ethernet message is adjacent to the second Ethernet message.
  • the receiving device acquires a frequency control word according to the relative frequency control word.
  • the receiving side device receives two adjacent first ethers. After the messages A and B, according to the method of step 302, the relative frequency control words freq_offset_a and freq_offset_b of the first ethereal messages A and B are respectively obtained, and then freq_offset_a and freq_offset_b are added or subtracted to obtain the final frequency control word. It is also possible to select other corresponding methods to obtain the final frequency control word according to different TDM services, which is not limited in the present invention.
  • the receiving device acquires an output frequency of the phase locked loop by using a frequency control word.
  • the local reference clock frequency is used as the input of the phase locked loop
  • the frequency control word is used as the input of the phase locked loop feedback circuit, and the output frequency is obtained at the output end of the phase locked loop.
  • the frequency control word is equivalent to a proportional value, that is, the phase-locked loop outputs the local reference clock frequency according to a certain ratio according to the frequency control word.
  • the receiving device recovers the TDM service data frame from the first Ethernet packet according to the output frequency of the phase locked loop.
  • the method for processing the differential clock recovery includes multiple When the value in the counter is received by the receiving device, the first Ethernet packet sent by the transmitting device is received, according to the packet sending rate of the receiving device, the working clock frequency of the counter on the transmitting device, and the obtained first Ethernet packet.
  • the value in the counter obtains the relative frequency control word between the two adjacent first Ethernet messages received by the receiving device, and obtains the corresponding frequency control word through the relative frequency control word, and inputs the frequency control word into the lock
  • the phase loop acquires the output frequency of the phase-locked loop, and uses the output frequency as the clock frequency of the TDM service to recover the TDM service data frame from the first Ethernet packet.
  • the receiving side device can still use the value of multiple counters in the first Ethernet packet sent by the sending device, as compared with the method for obtaining the frequency offset value by using the hardware calculation in the sending device.
  • the frequency control word is obtained by software, and the output frequency of the phase-locked loop is obtained through the frequency control word, thereby achieving interworking between different hardware solutions, and only on the transmitting side
  • a simple counter needs to be set, and the value in the counter can be written into the Ethernet packet.
  • the calculation of the frequency offset value is not dependent on the complicated hardware, which reduces the complexity and equipment cost of the hardware implementation on the transmitting side.
  • the frequency control word is calculated after a plurality of packet sending periods. Specifically, according to the packet sending rate K of the receiving device and the value of the counter in the Ethernet packet received by the receiving device in the nth sending period. t' 1n , the value t 1 in the counter in the Ethernet message received by the receiving device and the working clock frequency f 0 of the counter on the transmitting device in the first packet sending period, using the formula (4), the frequency control word is obtained.
  • T the delivery period
  • T 1/K.
  • the frequency control is calculated by using a plurality of packet sending periods.
  • the method for calculating the frequency control word is the same as that of the second embodiment, and the other method steps are the same as those in the second embodiment, and details are not described herein again.
  • the differential clock recovery processing method provided in this embodiment reduces the minimum granularity of the frequency control word by calculating the frequency control word by a plurality of cycles, that is, reduces the inherent precision deviation, and improves the calculation precision of the frequency control word.
  • the frequency control word may be obtained by using the method in the second embodiment, or the frequency control word may be obtained by using the method in the fourth embodiment. There are no restrictions in the invention.
  • FIG. 5 is a flowchart of a method for processing differential clock recovery according to Embodiment 5 of the present invention.
  • the receiving side device receives the first Ethernet packet sent by the at least two sending side devices as an example, that is, the value of the plurality of counters in the first Ethernet packet is an example, and the technology in this embodiment is introduced in detail.
  • Program. As shown in FIG. 5, the method includes:
  • the receiving device receives the first Ethernet packet sent by the sending device.
  • the receiving side device simultaneously receives the first Ethernet message sent by the multiple sending side devices, where each first Ethernet message is a corresponding sending side device, and the TDM service data is sent according to the sending rate of the sending side device.
  • the Ethernet message obtained after the frame is converted, each first Ethernet message may include only one value in a counter, or may include values in multiple counters, and each counter has a different working clock frequency.
  • the corresponding method is selected according to the actual situation, and the frequency control word corresponding to the first Ethernet packet sent by each sending device is obtained, for example, when the first Ethernet packet includes a value in a counter.
  • the frequency control word may be obtained by using the method provided in the second embodiment or the fourth embodiment.
  • the frequency control word may be obtained by using the method provided in the third embodiment.
  • a frequency control word suitable for the TDM service is selected as the final frequency control word among all the frequency control words, or another method is selected to obtain the frequency control word, which is not used in the present invention. Limited.
  • the local reference clock frequency is used as the input of the phase locked loop, and the final frequency control is performed.
  • the word gets the output frequency at the output of the phase-locked loop.
  • the final frequency control word is equivalent to a proportional value, that is, the phase-locked loop outputs the local reference clock frequency according to a certain ratio according to the final frequency control word.
  • the receiving device recovers the TDM service data frame from the first Ethernet packet according to the output frequency of the phase locked loop.
  • the method further includes:
  • the frequency control word is filtered.
  • the acquired frequency control word corresponding to the first Ethernet message sent by each sending side device may be filtered to filter out high frequency partial noise, thereby achieving stable frequency offset output and reducing randomness deviation.
  • the specific filtering method may adopt a mean value, a mean square error, a finite unit impulse response (FIR), or other filtering methods, and is not limited thereto.
  • the method for processing the differential clock recovery when the receiving side device simultaneously receives the first Ethernet packets sent by the multiple sending side devices, respectively, obtains the frequency control corresponding to the first Ethernet message sent by each transmitting device.
  • the word obtains the final frequency control word from the frequency control word corresponding to the first Ethernet message sent by all the transmitting side devices, and obtains the output frequency of the phase locked loop through the final frequency control word, and uses the output frequency as the clock of the TDM service. Frequency, recovering TDM service data frames from the first Ethernet message.
  • the receiving side device simultaneously receives the first Ethernet message sent by the multiple sending side devices, and uses the software to calculate the frequency control word corresponding to each Ethernet message to obtain the final frequency control word, and implements the cross-message. The calculation of the frequency control word enables interoperability between different hardware solutions.
  • FIG. 6 is a schematic structural diagram of a processing apparatus for differential clock recovery according to Embodiment 6 of the present invention.
  • the apparatus includes a receiving module 11, a frequency offset value acquiring module 12, an output frequency acquiring module 13, and a recovery module 14.
  • the receiving module 11 is configured to receive the first Ethernet packet sent by the sending device, where the first Ethernet packet is obtained by the transmitting device according to the sending rate of the transmitting device, and the time division multiplexed TDM service data frame is converted. Ether message.
  • the frequency offset value obtaining module 12 is configured to obtain a frequency offset value according to the packet sending rate of the receiving device, the working clock frequency of the counter on the transmitting device, and the value in the counter in the acquired first Ethernet packet; wherein, the receiving device Contract rate The same as the sending rate of the transmitting side device, the value in the counter is the time stamp information recorded by the counter at the working clock frequency of the counter.
  • the output frequency acquisition module 13 is configured to obtain the output frequency of the phase locked loop by using the frequency offset value.
  • the recovery module 14 is configured to recover the TDM service data frame from the first Ethernet packet according to the output frequency of the phase locked loop.
  • the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 2, and the implementation principle and technical effects are similar, and details are not described herein again.
  • the processing device for the differential clock recovery may be disposed in a receiving side device that receives the first Ethernet message.
  • the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 3, and the implementation principle and technical effects are similar, and details are not described herein again.
  • the processing device for the differential clock recovery may be disposed in a receiving side device that receives the first Ethernet message.
  • the processing apparatus for differential clock recovery provided by the eighth embodiment of the present invention, if the first Ethernet message includes a value of at least two first counters, at least two The value of the second counter is used by the frequency offset value obtaining module 12 according to the packet sending rate K of the receiving device, the working clock frequency f 10 of the first counter on the transmitting device, and the working clock frequency of the second counter on the transmitting device.
  • the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 4, and the implementation principle and technical effects are similar, and details are not described herein again.
  • the processing device for the differential clock recovery may be disposed in a receiving side device that receives the first Ethernet message.
  • the processing device for the differential clock recovery provided by the ninth embodiment of the present invention, if the first Ethernet message includes a value in a counter, the frequency offset value obtaining module 12 is specifically used.
  • the packet rate K of the receiving device the value t' 1n in the counter in the Ethernet packet received by the receiving device in the nth packet sending period, and the Ethernet packet received by the receiving device in the first packet sending period.
  • the device in this embodiment may be used to perform the technical solution of the method embodiment in the fourth embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • the processing device for the differential clock recovery may be disposed in a receiving side device that receives the first Ethernet message.
  • the processing apparatus for differential clock recovery provided by Embodiment 10 of the present invention, if the receiving side device receives the first Ethernet message sent by at least two transmitting side devices
  • the frequency offset value obtaining module 12 is further configured to obtain a final frequency control word from the frequency control words corresponding to the first Ethernet message sent by all the transmitting side devices.
  • the output frequency acquisition module 13 is further configured to obtain the output frequency of the phase locked loop through the final frequency control word.
  • the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 5, and the implementation principle and technical effects are similar, and details are not described herein again.
  • the processing device for the differential clock recovery may be disposed in a receiving side device that receives the first Ethernet message.
  • FIG. 7 is a schematic structural diagram of a processing apparatus for differential clock recovery according to Embodiment 11 of the present invention. Based on the sixth embodiment shown in FIG. 6, as shown in FIG. 7, the apparatus further includes a filtering module 15 for performing filtering processing on the frequency control word.
  • the filtering module 15 is added, and the frequency control word acquired by the frequency offset value obtaining module 12 can be filtered to filter out high-frequency partial noise, thereby achieving stable frequency offset output and reducing randomness deviation.
  • the processing device for the differential clock recovery may be disposed in a receiving side device that receives the first Ethernet message.
  • the aforementioned program can be stored in a computer readable storage medium.
  • the steps of the foregoing method embodiments are performed; and the foregoing storage medium includes: a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
  • ROM read-only memory
  • RAM random access memory
  • magnetic disk a magnetic disk
  • optical disk a variety of media that can store program code.

Abstract

The present invention provides a method and apparatus for processing differential clock recovery. The method comprises: a receiving side device receives a first Ethernet packet sent by a sending side device, wherein the first Ethernet packet is an Ethernet packet acquired by the sending side device after converting a time division multiplexing (TDM) service data frame according to a packet delivery rate of the sending side device; the receiving side device acquires a frequency deviation value according to the packet delivery rate of the receiving side device, the working clock frequency of a counter on the sending side device and the value of the counter in the acquired first Ethernet packet; the receiving side device acquires the output frequency of a phase-locked loop by means of the frequency deviation value; and the receiving side device recovers the TDM service data frame from the first Ethernet packet according to the output frequency of the phase-locked loop. In the present invention, a frequency deviation value is acquired by means of software according to the value of a counter in a first Ethernet packet, and therefore different hardware solutions are mutually compatible.

Description

差分时钟恢复的处理方法和装置Method and device for processing differential clock recovery 技术领域Technical field
本发明实施例涉及通信技术,尤其涉及一种差分时钟恢复的处理方法和装置。The embodiments of the present invention relate to communication technologies, and in particular, to a method and an apparatus for processing differential clock recovery.
背景技术Background technique
电路仿真业务(Circuit Emulation Service,简称CES)技术能够实现传统时分复用(Time Division Multiplexing,简称TDM)格式信息的互联网协议IP化封装。具体的,在发送侧将不同数量的TDM时隙封装到IP报文中传输,在接收侧再将IP报文中的TDM时隙从报文中取出重新恢复成TDM的时隙,从而实现TDM业务穿越互联网协议(Internet Protocol,简称IP)网络。CES业务即在发送侧采用CES技术将TDM业务数据用特殊的电路仿真报文头进行封装后,通过包交换网络(Packet switching network,简称PSN)传输接收侧,进行解封装,根据时钟信息重建TDM业务。由于各TDM业务携带的时钟信息(即TDM业务的时钟频率)均不相同,所以,在CES业务中,TDM业务的时钟信息必须随CES业务一起传输,然后在接收侧一起恢复,作为TDM业务时钟。The Circuit Emulation Service (CES) technology can implement the Internet Protocol IP encapsulation of traditional Time Division Multiplexing (TDM) format information. Specifically, the transmitting side encapsulates different numbers of TDM timeslots into IP packets for transmission, and then removes the TDM time slots in the IP packets from the packets to the TDM time slots on the receiving side, thereby implementing TDM. The service traverses the Internet Protocol (IP) network. The CES service uses the CES technology to encapsulate the TDM service data with a special circuit emulation header, and then transmits the packet to the receiving side through a packet switching network (PSN) to decapsulate and reconstruct the TDM based on the clock information. business. The clock information of the TDM service (that is, the clock frequency of the TDM service) is different. Therefore, in the CES service, the clock information of the TDM service must be transmitted along with the CES service, and then recovered together on the receiving side as the TDM service clock. .
另外,CES业务中,差分时钟恢复(Differential Clock Recovery,简称DCR)技术可以在无线承载网络中实现TDM业务时钟信息的可靠传输,图1为现有技术中无线承载网络中DCR技术的应用场景示意图。如图1所示,该场景中主要涉及有:发送侧设备1、接收侧设备2、TDM设备3、TDM设备4和包交换网络5。其中,TDM设备3向发送侧设备1提供TDM业务,发送侧设备1和接收侧设备2具有相同的本地参考时钟,且二者是通过包交换网络5(Packet switching network,简称PSN)传输CES业务,接收侧设备2将从CES业务中恢复得到的TDM业务提供给TDM设备4。In addition, in the CES service, the differential clock recovery (DCR) technology can implement the reliable transmission of the TDM service clock information in the radio bearer network. FIG. 1 is a schematic diagram of the application scenario of the DCR technology in the radio bearer network in the prior art. . As shown in FIG. 1 , the scenario mainly involves: a transmitting side device 1, a receiving side device 2, a TDM device 3, a TDM device 4, and a packet switching network 5. The TDM device 3 provides the TDM service to the transmitting device 1 , and the transmitting device 1 and the receiving device 2 have the same local reference clock, and the two transmit the CES service through the Packet Switching Network (PSN). The receiving device 2 provides the TDM service recovered from the CES service to the TDM device 4.
具体的,在如图1所示的应用场景中,DCR技术的主要工作流程为:在发送侧,发送侧设备1从TDM设备3提供的TDM业务中提取TDM业务的时钟信息,然后与本地参考时钟比较,计算出两者之间的频偏值freq,再根 据发送侧设备的发包率(Packet Per Second,简称PPS)将TDM业务的数据帧封装到以太报文中,并且将频偏值freq写入到该以太报文的指定位置,再通过PSN将该以太报文发送出去。在接收侧,接收侧设备2接收到发送侧设备1发送的该以太报文后,从该以太报文的指定位置中提取freq,然后将freq与本地参考时钟相加,计算出的频率信息就是TDM业务的时钟信息,其中,接收侧设备2的本地参考时钟和发送侧设备1的本地参考时钟相同,再根据该TDM业务的时钟信息将以太报文恢复成TDM业务,并将其提供给TDM设备4。Specifically, in the application scenario shown in FIG. 1 , the main workflow of the DCR technology is: on the transmitting side, the transmitting device 1 extracts clock information of the TDM service from the TDM service provided by the TDM device 3, and then uses the local reference. Clock comparison, calculate the frequency offset value freq between the two, and then root The data frame of the TDM service is encapsulated into the Ethernet packet according to the Packet Per Second (PPS) of the transmitting device, and the frequency offset value freq is written to the specified location of the Ethernet packet, and then the PSN is used to The Ethernet message is sent out. On the receiving side, after receiving the Ethernet message sent by the transmitting device 1, the receiving device 2 extracts freq from the specified position of the Ethernet message, and then adds freq to the local reference clock, and the calculated frequency information is The clock information of the TDM service, where the local reference clock of the receiving device 2 is the same as the local reference clock of the transmitting device 1, and then the Ethernet packet is restored to the TDM service according to the clock information of the TDM service, and is provided to the TDM. Device 4.
但是,由于在发送侧是采用硬件计算频偏值,因此实时计算出来的频偏值freq精度不高,且受硬件条件的限制,当发送侧设备采用不同的硬件方案来计算频偏值freq时,接收侧的同一个设备无法实现不同的硬件方案之间的互通,使得DCR技术的应用范围受到限制。However, since the frequency offset value is calculated by hardware on the transmitting side, the frequency offset value freq calculated in real time is not high, and is limited by hardware conditions. When the transmitting side device uses different hardware schemes to calculate the frequency offset value freq. The same device on the receiving side cannot implement interworking between different hardware solutions, which limits the application range of DCR technology.
发明内容Summary of the invention
本发明实施例提供一种差分时钟恢复的处理方法和装置,接收侧设备还是根据第一以太报文中的计数器的值,通过软件来获取频率控制字,实现了不同硬件方案之间的互通。The embodiment of the invention provides a method and a device for processing a differential clock recovery. The receiving device also obtains a frequency control word through software according to the value of the counter in the first Ethernet message, thereby implementing interworking between different hardware solutions.
本发明实施例第一方面提供一种差分时钟恢复的处理方法,该方法包括:A first aspect of the embodiments of the present invention provides a method for processing differential clock recovery, where the method includes:
接收侧设备接收发送侧设备发送的第一以太报文;其中,所述第一以太报文为所述发送侧设备根据发送侧设备的发包率,将时分复用TDM业务数据帧进行转换后获取的以太报文;Receiving, by the receiving device, the first Ethernet packet sent by the sending device, where the first Ethernet packet is obtained by converting, by the transmitting device, the time division multiplexing TDM service data frame according to the sending rate of the sending device. Ethernet message;
所述接收侧设备根据接收侧设备的发包率、发送侧设备上计数器的工作时钟频率以及获取的所述第一以太报文中的计数器中的值,获取频偏值;其中,所述接收侧设备的发包率和所述发送侧设备的发包率相同,所述计数器中的值为所述计数器在所述计数器的工作时钟频率下记录的时戳信息;The receiving side device acquires a frequency offset value according to the packet sending rate of the receiving device, the working clock frequency of the counter on the transmitting device, and the obtained value in the counter in the first Ethernet packet; wherein the receiving side The sending rate of the device is the same as the sending rate of the transmitting device, and the value in the counter is time stamp information recorded by the counter at the working clock frequency of the counter;
所述接收侧设备通过所述频偏值,获取锁相环的输出频率;The receiving side device acquires an output frequency of the phase locked loop by using the frequency offset value;
所述接收侧设备根据所述锁相环的输出频率,从所述第一以太报文中恢复所述TDM业务数据帧。The receiving side device recovers the TDM service data frame from the first Ethernet packet according to an output frequency of the phase locked loop.
在第一方面的第一种可能实现方式中,若所述第一以太报文中包括一个计数器中的值,则对于每个所述发送侧设备发送的第一以太报文,所述接收 侧设备根据接收侧设备的发包率、发送侧设备上计数器的工作时钟频率以及获取的所述第一以太报文中的计数器中的值,获取频偏值,具体包括:In a first possible implementation manner of the first aspect, if the first Ethernet packet includes a value in a counter, the receiving, for the first Ethernet packet sent by each of the sending side devices, the receiving The side device obtains the frequency offset value according to the packet sending rate of the receiving device, the operating clock frequency of the counter on the transmitting device, and the obtained value in the counter in the first Ethernet packet, which specifically includes:
根据所述接收侧设备的发包率K,所述发送侧设备上计数器的工作时钟频率f0以及所述第一以太报文中的计数器中的值t1,采用公式
Figure PCTCN2014090816-appb-000001
获取频率控制字freq_offset;
Determining, according to the packet sending rate K of the receiving device, the working clock frequency f 0 of the counter on the transmitting device and the value t 1 in the counter in the first Ethernet packet,
Figure PCTCN2014090816-appb-000001
Obtain the frequency control word freq_offset;
其中,T为发包周期,T=1/K,t′1为第二以太报文中计数器中的值,所述第二以太报文为所述接收侧设备接收到的与所述第一以太报文相邻的以太报文。Wherein, T is a packet sending period, T=1/K, and t′ 1 is a value in a counter in the second Ethernet packet, and the second Ethernet packet is received by the receiving device and the first ether. The Ethernet message adjacent to the packet.
在第一方面的第二种可能实现方式中,若所述第一以太报文包括至少两个第一计数器中的值、至少两个第二计数器中的值,则对于每个所述发送侧设备发送的第一以太报文,所述接收侧设备根据接收侧设备的发包率、发送侧设备上计数器的工作时钟频率以及获取的所述第一以太报文中的计数器中的值,获取频偏值,具体包括:In a second possible implementation manner of the first aspect, if the first Ethernet message includes a value in the at least two first counters, and a value in the at least two second counters, for each of the sending sides The first Ethernet packet sent by the device, the receiving side device acquires the frequency according to the packet sending rate of the receiving device, the working clock frequency of the counter on the transmitting device, and the obtained value in the counter in the first Ethernet message. The bias value includes:
根据接收侧设备的发包率K、发送侧设备上第一计数器的工作时钟频率f10、发送侧设备上第二计数器的工作时钟频率f11、所述第一以太报文中第一计数器中的值t10以及所述第一以太报文中第二计数器中的值t11,采用公式According to the packet rate K of the receiving device, the operating clock frequency f 10 of the first counter on the transmitting device, the operating clock frequency f 11 of the second counter on the transmitting device, and the first counter in the first Ethernet packet. a value t 10 and a value t 11 in the second counter in the first Ethernet message, using a formula
Figure PCTCN2014090816-appb-000002
收到的与所述第一以太报文相邻的以太报文;
Figure PCTCN2014090816-appb-000002
Receiving an Ethernet message adjacent to the first Ethernet message;
所述接收侧设备根据所述相对频率控制字,获取所述频率控制字。The receiving side device acquires the frequency control word according to the relative frequency control word.
在第一方面的第三种可能实现方式中,若所述第一以太报文中包括一个计数器中的值,则对于每个所述发送侧设备发送的第一以太报文,所述接收侧设备根据接收侧设备的发包率、发送侧设备上计数器的工作时钟频率以及获取的所述第一以太报文中的计数器中的值,获取频偏值,具体包括:In a third possible implementation manner of the first aspect, if the first Ethernet packet includes a value in a counter, the first Ethernet message sent by each of the sending side devices, the receiving side The device obtains the frequency offset value according to the packet sending rate of the receiving device, the operating clock frequency of the counter on the transmitting device, and the obtained value in the counter in the first Ethernet packet, which specifically includes:
根据所述接收侧设备的发包率K、第n个发包周期中所述接收侧设备接收到的以太报文中所述计数器中的值t′1n、第1个发包周期中所述接收侧设备接收到的以太报文中所述计数器中的值t1以及所述发送侧设备上计数器的工作 时钟频率f0,采用公式
Figure PCTCN2014090816-appb-000003
获取所述频率控制字freq_offset;
The receiving side device in the first packet sending period according to the packet sending rate K of the receiving device, the value t' 1n in the counter in the Ethernet packet received by the receiving device in the nth packet sending period, and the first packet sending period The value t 1 in the counter in the received Ethernet message and the working clock frequency f 0 of the counter on the transmitting device are calculated by using a formula
Figure PCTCN2014090816-appb-000003
Obtaining the frequency control word freq_offset;
其中,T为发包周期,T=1/K。Where T is the delivery period, T=1/K.
结合第一方面的第一种可能实现方式至第一方面的第三种可能实现方式中的任一可能实现方式,在第一方面的第四种可能实现方式中,若所述接收侧设备接收至少两个所述发送侧设备发送的所述第一以太报文,则所述方法还包括:With reference to the first possible implementation of the first aspect, to any possible implementation of the third possible implementation of the first aspect, in a fourth possible implementation manner of the first aspect, And the at least two the first Ethernet packets sent by the sending device, the method further includes:
从所有的所述发送侧设备发送的所述第一以太报文对应的频率控制字,获取最终频率控制字;Obtaining a final frequency control word from a frequency control word corresponding to the first Ethernet message sent by all the sending side devices;
则所述接收侧设备通过所述频率控制字,获取锁相环的输出频率,具体为:And the receiving side device acquires an output frequency of the phase locked loop by using the frequency control word, specifically:
所述接收侧设备通过所述最终频率控制字,获取锁相环的输出频率。The receiving side device acquires an output frequency of the phase locked loop by using the final frequency control word.
结合第一方面的第四种可能实现方式,在第一方面的第五种可能实现方式中,所述获取频率控制字之后,所述方法还包括:With the fourth possible implementation of the first aspect, in a fifth possible implementation manner of the first aspect, after the acquiring the frequency control word, the method further includes:
对所述频率控制字进行滤波处理。The frequency control word is filtered.
本发明实施例第二方面提供一种差分时钟恢复的处理装置,该装置包括:A second aspect of the embodiments of the present invention provides a processing apparatus for differential clock recovery, where the apparatus includes:
接收模块,用于接收发送侧设备发送的第一以太报文;其中,所述第一以太报文为所述发送侧设备根据发送侧设备的发包率,将时分复用TDM业务数据帧进行转换后获取的以太报文;The receiving module is configured to receive the first Ethernet packet sent by the sending device, where the first Ethernet packet is used by the sending device to convert the time division multiplexed TDM service data frame according to the sending rate of the sending device. Ether message obtained afterwards;
频偏值获取模块,用于根据接收侧设备的发包率、发送侧设备上计数器的工作时钟频率以及获取的所述第一以太报文中的计数器中的值,获取频偏值;其中,所述接收侧设备的发包率和所述发送侧设备的发包率相同,所述计数器中的值为所述计数器在所述计数器的工作时钟频率下记录的时戳信息;a frequency offset value obtaining module, configured to obtain a frequency offset value according to an output rate of the receiving device, a working clock frequency of the counter on the transmitting device, and a value in the obtained counter in the first Ethernet message; The sending rate of the receiving side device is the same as the sending rate of the sending side device, and the value in the counter is time stamp information recorded by the counter at the working clock frequency of the counter;
输出模块,用于通过所述频偏值,获取锁相环的输出频率;An output module, configured to obtain an output frequency of the phase locked loop by using the frequency offset value;
恢复模块,用于根据所述锁相环的输出频率,从所述第一以太报文中恢复所述TDM业务数据帧。And a recovery module, configured to recover the TDM service data frame from the first Ethernet packet according to an output frequency of the phase locked loop.
在第二发面的第一种可能实现方式中,若所述第一以太报文中包括一个计数器中的值,则所述频偏值获取模块具体用于: In a first possible implementation manner of the second aspect, if the first Ethernet packet includes a value in a counter, the frequency offset value acquiring module is specifically configured to:
根据所述接收侧设备的发包率K,所述发送侧设备上计数器的工作时钟频率f0以及所述第一以太报文中的计数器中的值t1,采用公式
Figure PCTCN2014090816-appb-000004
获取频率控制字freq_offset;
Determining, according to the packet sending rate K of the receiving device, the working clock frequency f 0 of the counter on the transmitting device and the value t 1 in the counter in the first Ethernet packet,
Figure PCTCN2014090816-appb-000004
Obtain the frequency control word freq_offset;
其中,T为发包周期,T=1/K,t′1为第二以太报文中计数器中的值,所述第二以太报文为所述接收侧设备接收到的与所述第一以太报文相邻的以太报文。Wherein, T is a packet sending period, T=1/K, and t′ 1 is a value in a counter in the second Ethernet packet, and the second Ethernet packet is received by the receiving device and the first ether. The Ethernet message adjacent to the packet.
在第二方面的第二种可能实现方式中,若所述第一以太报文包括至少两个第一计数器中的值、至少两个第二计数器中的值,则所述频偏值获取模块具体用于:In a second possible implementation manner of the second aspect, if the first Ethernet message includes a value in the at least two first counters and a value in the at least two second counters, the frequency offset value acquiring module Specifically used for:
根据接收侧设备的发包率K、发送侧设备上第一计数器的工作时钟频率f10、发送侧设备上第二计数器的工作时钟频率f11、所述第一以太报文中第一计数器中的值t10以及所述第一以太报文中第二计数器中的值t11,采用公式
Figure PCTCN2014090816-appb-000005
获取相对频率控制字freq_offset1,并根据所述相对频率控制字获取频率控制字;其中,T为发包周期,T=1/K,t′10为第二以太报文中所述第一计数器中的值,t′11为第二以太报文中所述第二计数器中的值,所述第二以太报文为所述接收侧设备接收到的与所述第一以太报文相邻的以太报文。
According to the packet rate K of the receiving device, the operating clock frequency f 10 of the first counter on the transmitting device, the operating clock frequency f 11 of the second counter on the transmitting device, and the first counter in the first Ethernet packet. a value t 10 and a value t 11 in the second counter in the first Ethernet message, using a formula
Figure PCTCN2014090816-appb-000005
Obtaining a relative frequency control word freq_offset1, and acquiring a frequency control word according to the relative frequency control word; wherein T is a packet sending period, T=1/K, and t′ 10 is the first counter in the second Ethernet message value, t '11 is an Ethernet packet a second value of the second counter, the second Ethernet packet to the reception-side device receives the first Ethernet packets in Ethernet frames adjacent Text.
在第二方面的第三种可能实现方式中,若所述第一以太报文中包括一个计数器中的值,则所述频偏值获取模块具体用于:In a third possible implementation manner of the second aspect, if the first Ethernet packet includes a value in a counter, the frequency offset value acquiring module is specifically configured to:
根据所述接收侧设备的发包率K、第n个发包周期中所述接收侧设备接收到的以太报文中所述计数器中的值t′1n、第一个发包周期中所述接收侧设备接收到的以太报文中所述计数器中的值t1以及所述发送侧设备上计数器的工作时钟频率f0,采用公式
Figure PCTCN2014090816-appb-000006
获取所述频率控制字freq_offset;
The receiving side device in the first packet sending period according to the packet sending rate K of the receiving device, the value t' 1n in the counter in the Ethernet packet received by the receiving device in the nth sending period, and the first packet sending period The value t 1 in the counter in the received Ethernet message and the working clock frequency f 0 of the counter on the transmitting device are calculated by using a formula
Figure PCTCN2014090816-appb-000006
Obtaining the frequency control word freq_offset;
其中,T为发包周期,T=1/K。Where T is the delivery period, T=1/K.
结合第二方面的第一种可能实现方式至第二方面的第三种可能实现方式 中的任一可能实现方式,在第二方面的第四种可能实现方式中,若所述接收侧设备接收至少两个所述发送侧设备发送的所述第一以太报文,则所述频偏值获取模块还用于从所有的所述发送侧设备发送的所述第一以太报文对应的频率控制字,获取最终频率控制字;Combining the first possible implementation of the second aspect with the third possible implementation of the second aspect In a fourth possible implementation manner of the second aspect, if the receiving side device receives the first Ethernet packet sent by the at least two sending side devices, the frequency is The offset obtaining module is further configured to obtain a final frequency control word from the frequency control words corresponding to the first Ethernet message sent by all the sending side devices;
所述输出频率获取模块还用于通过所述最终频率控制字,获取锁相环的输出频率。The output frequency acquisition module is further configured to acquire an output frequency of the phase locked loop by using the final frequency control word.
结合第二方面的第四种可能实现方式,在第二方面的第五种可能实现方式中,所述装置还包括:In conjunction with the fourth possible implementation of the second aspect, in a fifth possible implementation manner of the second aspect, the device further includes:
滤波模块,用于对所述频率控制字进行滤波处理。And a filtering module, configured to filter the frequency control word.
本实施例提供的差分时钟恢复的处理方法,通过接收侧设备接收发送侧设备发送的第一以太报文,根据接收侧设备的发包率、发送侧设备上计数器的工作时钟频率以及获取的第一以太报文中的计数器中的值,获取频偏值,将该频偏值输入锁相环,获取锁相环的输出频率,将该输出频率作为TDM业务的时钟频率,从第一以太报文中恢复TDM业务数据帧。由于是根据第一以太报文中的计数器的值,通过软件来获取频偏值,因此,相较于现有技术中在发送侧设备中采用硬件计算获取频偏值的方法,本实施例中即使发送侧设备采用不同的硬件方案,接收侧设备还是可以根据第一以太报文中的计数器的值,通过软件来获取频偏值,实现了不同硬件方案之间的互通。The method for processing the differential clock recovery provided by the embodiment, the first Ethernet message sent by the sending device is received by the receiving device, according to the sending rate of the receiving device, the working clock frequency of the counter on the transmitting device, and the obtained first Obtain a frequency offset value in the counter in the Ethernet packet, input the frequency offset value into the phase-locked loop, obtain the output frequency of the phase-locked loop, and use the output frequency as the clock frequency of the TDM service from the first Ethernet packet. Recover TDM service data frames. In the present embodiment, the frequency offset value is obtained by software according to the value of the counter in the first Ethernet message. Therefore, in the embodiment, the method for obtaining the frequency offset value by using hardware calculation in the transmitting device is used in this embodiment. Even if the transmitting device uses different hardware solutions, the receiving device can obtain the frequency offset value through software according to the value of the counter in the first Ethernet packet, and implement interworking between different hardware solutions.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图1为现有技术中无线承载网络中DCR技术的应用场景示意图;1 is a schematic diagram of an application scenario of a DCR technology in a radio bearer network in the prior art;
图2为本发明实施例一提供的差分时钟恢复的处理方法流程图;2 is a flowchart of a method for processing differential clock recovery according to Embodiment 1 of the present invention;
图3为本发明实施例二提供的差分时钟恢复的处理方法流程图;3 is a flowchart of a method for processing differential clock recovery according to Embodiment 2 of the present invention;
图4为本发明实施例三提供的差分时钟恢复的处理方法流程图;4 is a flowchart of a method for processing differential clock recovery according to Embodiment 3 of the present invention;
图5为本发明实施例五提供的差分时钟恢复的处理方法流程图;FIG. 5 is a flowchart of a method for processing differential clock recovery according to Embodiment 5 of the present invention; FIG.
图6为本发明实施例六提供的差分时钟恢复的处理装置结构示意图; FIG. 6 is a schematic structural diagram of a processing apparatus for differential clock recovery according to Embodiment 6 of the present invention; FIG.
图7为本发明实施例十一提供的差分时钟恢复的处理装置结构示意图。FIG. 7 is a schematic structural diagram of a processing apparatus for differential clock recovery according to Embodiment 11 of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
实施例一 Embodiment 1
图2为本发明实施例一提供的差分时钟恢复的处理方法流程图,如图2所示,本实施例的方法包括:FIG. 2 is a flowchart of a method for processing differential clock recovery according to Embodiment 1 of the present invention. As shown in FIG. 2, the method in this embodiment includes:
101、接收侧设备接收发送侧设备发送的第一以太报文。The receiving device receives the first Ethernet packet sent by the sending device.
其中,第一以太报文为发送侧设备根据发送侧设备的发包率,将TDM业务数据帧进行转换后获取的以太报文。The first Ethernet packet is an Ethernet packet obtained by converting the TDM service data frame according to the packet sending rate of the transmitting device.
本实施例中,发送侧设备上设置一个计数器,计数器的工作时钟同步于系统时钟。另外,发送侧设备根据发送侧设备的发包率信息,将TDM业务转换成以太报文,并且将计数器中的值取出,写入到以太报文的指定位置,生成第一以太报文,然后将该第一以太报文发送给接收侧设备。其中,计数器的工作时钟频率是指计数器以什么频率来记数,计数器中的值指的是计数器在预设周期内记录的数值,相当于一个时戳信息。In this embodiment, a counter is set on the transmitting device, and the working clock of the counter is synchronized with the system clock. In addition, the transmitting device converts the TDM service into an Ethernet packet according to the packet sending rate information of the transmitting device, and takes the value in the counter and writes the value in the counter to the designated location of the Ethernet packet to generate the first Ethernet packet, and then The first Ethernet message is sent to the receiving device. The working clock frequency of the counter refers to the frequency at which the counter is counted. The value in the counter refers to the value recorded by the counter in the preset period, which is equivalent to a time stamp information.
需要说明的是,本实施例中,同一个接收侧设备可以只接收一个发送侧设备发送的第一以太报文,也可以同时接收多个发送侧设备发送的第一以太报文。另外,对于每个第一以太报文,该第一以太报文中可以只包括一个计数器中的值,也可以包括多个计数器中的值,即在发送侧设备上设置多个计数器,为每个计数器设置一个工作时钟频率,并且,每个计数器的工作时钟频率均不相同,本发明中并不对此加以限定。It should be noted that, in this embodiment, the same receiving side device may receive only the first Ethernet packet sent by the sending device, and may also receive the first Ethernet packet sent by the multiple sending device. In addition, for each first Ethernet message, the first Ethernet message may include only one value in one counter, or may include a value in multiple counters, that is, multiple counters are set on the sending side device, for each The counters set an operating clock frequency, and the operating clock frequency of each counter is different, which is not limited in the present invention.
102、接收侧设备根据接收侧设备的发包率、发送侧设备上计数器的工作时钟频率以及获取的第一以太报文中的计数器中的值,获取频偏值。The receiving device obtains the frequency offset value according to the packet sending rate of the receiving device, the working clock frequency of the counter on the transmitting device, and the value in the counter in the obtained first Ethernet message.
其中,接收侧设备的发包率和发送侧设备的发包率相同,计数器中的值 为计数器在该计数器的工作时钟频率下记录的时戳信息。The sending rate of the receiving device is the same as the sending rate of the transmitting device, and the value in the counter is The timestamp information recorded by the counter at the operating clock frequency of the counter.
本实施例中,预先将发送侧设备上计数器的工作时钟频率写入接收侧设备中,当发送侧设备上设置一个计数器时,只需将该计数器的工作时钟频率写入接收侧设备中,当接收侧设备接收到第一以太报文后,根据接收侧设备的发包率、计数器的工作时钟频率以及获取的第一以太报文中的计数器中的值,获取频偏值;当发送侧设备上设置了多个计数器时,需要将每个计数器的工作时钟频率均写入接收侧设备中,当接收侧设备接收到第一以太报文后,分别根据接收侧设备的发包率、每个计数器的工作时钟频率以及第一以太报文中每个计数器的值,获取相对频偏值,再根据相对频偏值获取频偏值。In this embodiment, the working clock frequency of the counter on the transmitting device is written into the receiving device in advance. When a counter is set on the transmitting device, only the operating clock frequency of the counter is written into the receiving device. After receiving the first Ethernet packet, the receiving device obtains the frequency offset value according to the packet sending rate of the receiving device, the working clock frequency of the counter, and the value of the counter in the obtained first Ethernet packet; When multiple counters are set, the working clock frequency of each counter needs to be written into the receiving device. After receiving the first Ethernet packet, the receiving device receives the packet rate according to the receiving device and each counter. The working clock frequency and the value of each counter in the first Ethernet message obtain the relative frequency offset value, and then obtain the frequency offset value according to the relative frequency offset value.
需要说明的是,本实施例中,在接收侧设备中,可以通过软件来获取频偏值,获取频偏值的方法有多种,本领域技术人员可以选择适合的方法来获取频偏值,本发明中并不以此为限。It should be noted that, in this embodiment, in the receiving device, the frequency offset value can be obtained by using software, and there are various methods for obtaining the frequency offset value, and those skilled in the art can select a suitable method to obtain the frequency offset value. The invention is not limited thereto.
103、接收侧设备通过频偏值,获取锁相环的输出频率。103. The receiving device acquires an output frequency of the phase locked loop by using a frequency offset value.
本实施例中,将频偏值作为锁相环的输入,获取锁相环的输出频率。In this embodiment, the frequency offset value is used as an input of the phase locked loop to obtain the output frequency of the phase locked loop.
104、接收侧设备根据锁相环的输出频率,从第一以太报文中恢复TDM业务数据帧。104. The receiving device recovers the TDM service data frame from the first Ethernet packet according to the output frequency of the phase locked loop.
本实施例中,将锁相环的输出频率作为TDM业务的时钟频率,根据该时钟频率从第一以太报文中恢复TDM业务数据帧。In this embodiment, the output frequency of the phase-locked loop is used as the clock frequency of the TDM service, and the TDM service data frame is recovered from the first Ethernet packet according to the clock frequency.
本实施例提供的差分时钟恢复的处理方法,通过接收侧设备接收发送侧设备发送的第一以太报文,根据接收侧设备的发包率、发送侧设备上计数器的工作时钟频率以及获取的第一以太报文中的计数器中的值,获取频偏值,将该频偏值输入锁相环,获取锁相环的输出频率,将该输出频率作为TDM业务的时钟频率,从第一以太报文中恢复TDM业务数据帧。由于是根据第一以太报文中的计数器的值,通过软件来获取频偏值,因此,相较于现有技术中在发送侧设备中采用硬件计算获取频偏值的方法,本实施例中即使发送侧设备采用不同的硬件方案,接收侧设备还是可以根据第一以太报文中的计数器的值,通过软件来获取频偏值,实现了不同硬件方案之间的互通。The method for processing the differential clock recovery provided by the embodiment, the first Ethernet message sent by the sending device is received by the receiving device, according to the sending rate of the receiving device, the working clock frequency of the counter on the transmitting device, and the obtained first Obtain a frequency offset value in the counter in the Ethernet packet, input the frequency offset value into the phase-locked loop, obtain the output frequency of the phase-locked loop, and use the output frequency as the clock frequency of the TDM service from the first Ethernet packet. Recover TDM service data frames. In the present embodiment, the frequency offset value is obtained by software according to the value of the counter in the first Ethernet message. Therefore, in the embodiment, the method for obtaining the frequency offset value by using hardware calculation in the transmitting device is used in this embodiment. Even if the transmitting device uses different hardware solutions, the receiving device can obtain the frequency offset value through software according to the value of the counter in the first Ethernet packet, and implement interworking between different hardware solutions.
实施例二 Embodiment 2
图3为本发明实施例二提供的差分时钟恢复的处理方法流程图。在本实 施例中,以第一以太报文中包括一个计数器中的值为例,详细介绍本实施例的技术方案。如图3所示,本实施例的方法包括:FIG. 3 is a flowchart of a method for processing differential clock recovery according to Embodiment 2 of the present invention. In this reality In the embodiment, the technical solution of the embodiment is described in detail by taking the value of a counter included in the first Ethernet packet as an example. As shown in FIG. 3, the method in this embodiment includes:
201、接收侧设备接收发送侧设备发送的第一以太报文。201. The receiving device receives the first Ethernet packet sent by the sending device.
其中,第一以太报文为发送侧设备根据发送侧设备的发包率,将TDM业务数据帧进行转换后获取的以太报文。The first Ethernet packet is an Ethernet packet obtained by converting the TDM service data frame according to the packet sending rate of the transmitting device.
本实施例中,201和上述图2所示实施例一中的101的实现原理相同,此处不再赘述。In this embodiment, 201 is the same as the implementation principle of 101 in the first embodiment shown in FIG. 2, and details are not described herein again.
202、根据接收侧设备的发包率K,发送侧设备上计数器的工作时钟频率f0以及所述第一以太报文中的计数器中的值t1,采用公式(1),获取频率控制字freq_offset;202. According to the packet sending rate K of the receiving device, the working clock frequency f 0 of the counter on the transmitting device, and the value t 1 in the counter in the first Ethernet message, the frequency control word freq_offset is obtained by using formula (1). ;
Figure PCTCN2014090816-appb-000007
Figure PCTCN2014090816-appb-000007
其中,T为发包周期,T=1/K,t′1为第二以太报文中计数器中的值,第二以太报文为接收侧设备接收到的与第一以太报文相邻的以太报文。Where T is the packet-issuing period, T=1/K, t′ 1 is the value in the counter in the second Ethernet message, and the second Ethernet packet is the Ethernet that is received by the receiving device and adjacent to the first Ethernet packet. Message.
需要说明的是,本实施例中,第一以太报文和第二以太报文中都携带有序列号(Identity,简称ID),第一以太报文中的ID和第二以太报文中的ID相邻,且第二以太报文中的ID大于第一以太报文中的ID,例如,第一以太报文中的ID为3,第二以太报文中的ID为4,则第一以太报文和第二以太报文相邻。It should be noted that, in this embodiment, the first Ethernet packet and the second Ethernet packet carry an identifier (ID), an ID in the first Ethernet packet, and an identifier in the second Ethernet packet. The ID is adjacent, and the ID in the second Ethernet packet is greater than the ID in the first Ethernet packet. For example, the ID in the first Ethernet packet is 3, and the ID in the second Ethernet packet is 4. The Ethernet message is adjacent to the second Ethernet message.
可选地,本实施例中,若第一以太报文中包括发送侧设备对应的线路时钟与系统时钟在相同频率f下的计数差值Δcnt,则还可用公式(2)获取频率控制字。Optionally, in this embodiment, if the first Ethernet packet includes the count difference Δcnt of the line clock corresponding to the sending side device and the system clock at the same frequency f, the frequency control word may also be obtained by using formula (2).
Figure PCTCN2014090816-appb-000008
Figure PCTCN2014090816-appb-000008
203、接收侧设备通过频率控制字,获取锁相环的输出频率。203. The receiving device acquires an output frequency of the phase locked loop by using a frequency control word.
本实施例中,将本地参考时钟频率作为锁相环的输入,将频率控制字作为锁相环反馈电路的输入,则在锁相环输出端获取输出频率。频率控制字相当于一个比例值,即锁相环根据频率控制字,将本地参考时钟频率按照一定的比例输出。In this embodiment, the local reference clock frequency is used as the input of the phase locked loop, and the frequency control word is used as the input of the phase locked loop feedback circuit, and the output frequency is obtained at the output end of the phase locked loop. The frequency control word is equivalent to a proportional value, that is, the phase-locked loop outputs the local reference clock frequency according to a certain ratio according to the frequency control word.
204、接收侧设备根据锁相环的输出频率,从第一以太报文中恢复TDM 业务数据帧。204. The receiving device recovers the TDM from the first Ethernet packet according to the output frequency of the phase locked loop. Business data frame.
本实施例中,204与上述图2所示实施例一中的104的实现原理相同,此处不再赘述。In this embodiment, 204 is the same as the implementation principle of 104 in the first embodiment shown in FIG. 2, and details are not described herein again.
本实施例提供的差分时钟恢复的处理方法,在第一以太报文中包括一个计数器中的值时,通过接收侧设备接收发送侧设备发送的第一以太报文,根据接收侧设备的发包率、发送侧设备上计数器的工作时钟频率以及获取的第一以太报文中的计数器中的值,获取频率控制字,将该频率控制字输入锁相环,获取锁相环的输出频率,将该输出频率作为TDM业务的时钟频率,从第一以太报文中恢复TDM业务数据帧。由于是根据第一以太报文中的计数器的值,通过软件来获取频率控制字,因此,相较于现有技术中在发送侧设备中采用硬件计算频偏值的方法,本实施例中即使发送侧设备采用不同的硬件方案,接收侧设备还是可以根据第一以太报文中的计数器的值,通过软件来获取频率控制字,通过频率控制字获取锁相环的输出频率,实现了不同硬件方案之间的互通,而且,在发送侧只需要设置简单的计数器,将计数器中的值写入以太报文中即可,不依赖于复杂的硬件对频偏值进行计算,降低了发送侧硬件实现的复杂度和设备成本。The method for processing the differential clock recovery provided in this embodiment, when the value of the counter is included in the first Ethernet packet, the first Ethernet message sent by the sending device is received by the receiving device, according to the packet sending rate of the receiving device. And obtaining a frequency control word by inputting a working clock frequency of the counter on the transmitting device and a value in the obtained counter in the first Ethernet message, inputting the frequency control word into the phase locked loop, and acquiring an output frequency of the phase locked loop, The output frequency is used as the clock frequency of the TDM service to recover the TDM service data frame from the first Ethernet packet. Since the frequency control word is obtained by software according to the value of the counter in the first Ethernet message, the method for calculating the frequency offset value by using the hardware in the transmitting device is compared to the method in the prior art. The transmitting device uses different hardware schemes. The receiving device can obtain the frequency control word through software according to the value of the counter in the first Ethernet message, and obtain the output frequency of the phase locked loop through the frequency control word to implement different hardware. Interworking between the schemes, and only need to set a simple counter on the transmitting side, the value in the counter can be written into the Ethernet packet, and the calculation of the frequency offset value is not dependent on the complicated hardware, thereby reducing the hardware of the transmitting side. Implementation complexity and equipment costs.
实施例三 Embodiment 3
图4为本发明实施例三提供的差分时钟恢复的处理方法流程图。在本实施例中,以第一以太报文包括至少两个第一计数器中的值和至少两个第二计数器中的值,即第一以太报文中包括多个计数器中的值为例,详细介绍本实施例的技术方案。如图4所示,本实施例的方法包括:FIG. 4 is a flowchart of a method for processing differential clock recovery according to Embodiment 3 of the present invention. In this embodiment, the first Ethernet message includes a value in the at least two first counters and a value in the at least two second counters, that is, an example in which the first Ethernet message includes a plurality of counters. The technical solution of this embodiment will be described in detail. As shown in FIG. 4, the method in this embodiment includes:
301、接收侧设备接收发送侧设备发送的第一以太报文。301. The receiving device receives the first Ethernet packet sent by the sending device.
其中,第一以太报文为发送侧设备根据发送侧设备的发包率,将TDM业务数据帧进行转换后获取的以太报文。The first Ethernet packet is an Ethernet packet obtained by converting the TDM service data frame according to the packet sending rate of the transmitting device.
本实施例中,301和上述图2所示实施例一中的101的实现原理相同,此处不再赘述。In this embodiment, the implementation principle of 301 is the same as that of 101 in the first embodiment shown in FIG. 2, and details are not described herein again.
302、根据接收侧设备的发包率K、发送侧设备上第一计数器的工作时钟频率f10、发送侧设备上第二计数器的工作时钟频率f11、第一以太报文中第一计数器中的值t10以及第一以太报文中第二计数器中的值t11,采用公式(3), 获取相对频率控制字freq_offset1。302. According to the packet sending rate K of the receiving device, the working clock frequency f 10 of the first counter on the transmitting device, the working clock frequency f 11 of the second counter on the transmitting device, and the first counter in the first Ethernet packet. The value t 10 and the value t 11 in the second counter in the first Ethernet message, using equation (3), obtain the relative frequency control word freq_offset1.
Figure PCTCN2014090816-appb-000009
Figure PCTCN2014090816-appb-000009
其中,freq_offset1为相对频率控制字,T为发包周期,T=1/K,K为接收侧设备的发包率,t′10为第二以太报文中第一计数器中的值,t′11为第二以太报文中第二计数器中的值,第二以太报文为接收侧设备接收到的与第一以太报文相邻的以太报文。Where freq_offset1 is the relative frequency control word, T is the packet sending period, T=1/K, K is the packet sending rate of the receiving device, and t′ 10 is the value in the first counter in the second Ethernet message, t′ 11 is The value of the second counter in the second Ethernet packet, where the second Ethernet packet is an Ethernet packet received by the receiving device and adjacent to the first Ethernet packet.
需要说明的是,本实施例中,第一以太报文和第二以太报文中都携带有序列号(Identity,简称ID),第一以太报文中的ID和第二以太报文中的ID相邻,且第二以太报文中的ID大于第一以太报文中的ID,例如,第一以太报文中的ID为3,第二以太报文中的ID为4,则第一以太报文和第二以太报文相邻。It should be noted that, in this embodiment, the first Ethernet packet and the second Ethernet packet carry an identifier (ID), an ID in the first Ethernet packet, and an identifier in the second Ethernet packet. The ID is adjacent, and the ID in the second Ethernet packet is greater than the ID in the first Ethernet packet. For example, the ID in the first Ethernet packet is 3, and the ID in the second Ethernet packet is 4. The Ethernet message is adjacent to the second Ethernet message.
303、接收侧设备根据相对频率控制字,获取频率控制字。303. The receiving device acquires a frequency control word according to the relative frequency control word.
本实施例中,获取到第一以太报文的相对频率控制字之后,根据相对频率控制字获取最终频率控制字的方法有多种,例如,接收侧设备接收到两个相邻的第一以太报文A和B之后,根据步骤302的方法,分别获取到第一以太报文A和B的相对频率控制字freq_offset_a和freq_offset_b,再将freq_offset_a和freq_offset_b进行加法或者减法,获取最终的频率控制字,也可以根据不同的TDM业务,选择其它相应的方法来获取最终频率控制字,本发明中不以此为限。In this embodiment, after obtaining the relative frequency control word of the first Ethernet message, there are various methods for obtaining the final frequency control word according to the relative frequency control word. For example, the receiving side device receives two adjacent first ethers. After the messages A and B, according to the method of step 302, the relative frequency control words freq_offset_a and freq_offset_b of the first ethereal messages A and B are respectively obtained, and then freq_offset_a and freq_offset_b are added or subtracted to obtain the final frequency control word. It is also possible to select other corresponding methods to obtain the final frequency control word according to different TDM services, which is not limited in the present invention.
304、接收侧设备通过频率控制字,获取锁相环的输出频率。304. The receiving device acquires an output frequency of the phase locked loop by using a frequency control word.
本实施例中,将本地参考时钟频率作为锁相环的输入,将频率控制字作为锁相环反馈电路的输入,则在锁相环输出端获取输出频率。频率控制字相当于一个比例值,即锁相环根据频率控制字,将本地参考时钟频率按照一定的比例输出。In this embodiment, the local reference clock frequency is used as the input of the phase locked loop, and the frequency control word is used as the input of the phase locked loop feedback circuit, and the output frequency is obtained at the output end of the phase locked loop. The frequency control word is equivalent to a proportional value, that is, the phase-locked loop outputs the local reference clock frequency according to a certain ratio according to the frequency control word.
305、接收侧设备根据锁相环的输出频率,从第一以太报文中恢复TDM业务数据帧。305. The receiving device recovers the TDM service data frame from the first Ethernet packet according to the output frequency of the phase locked loop.
本实施例中,305与上述图2所示实施例一中的104的实现原理相同,此处不再赘述。In this embodiment, the implementation principle of 305 is the same as that of 104 in the first embodiment shown in FIG. 2, and details are not described herein again.
本实施例提供的差分时钟恢复的处理方法,在第一以太报文中包括多个 计数器中的值时,通过接收侧设备接收发送侧设备发送的第一以太报文,根据接收侧设备的发包率、发送侧设备上计数器的工作时钟频率以及获取的第一以太报文中的多个计数器中的值,获取接收侧设备接收到相邻两个第一以太报文之间的相对频率控制字,并通过该相对频率控制字获取相应的频率控制字,将该频率控制字输入锁相环,获取锁相环的输出频率,将该输出频率作为TDM业务的时钟频率,从第一以太报文中恢复TDM业务数据帧。相较于现有技术中在发送侧设备中采用硬件计算获取频偏值的方法,本实施例中即使发送侧设备发送的第一以太报文中包括多个计数器的值,接收侧设备还是可以根据第一以太报文中的多个计数器的值,通过软件来获取频率控制字,通过频率控制字获取锁相环的输出频率,实现了不同硬件方案之间的互通,而且,在发送侧只需要设置简单的计数器,将计数器中的值写入以太报文中即可,不依赖于复杂的硬件对频偏值进行计算,降低了发送侧硬件实现的复杂度和设备成本。The method for processing the differential clock recovery provided in this embodiment includes multiple When the value in the counter is received by the receiving device, the first Ethernet packet sent by the transmitting device is received, according to the packet sending rate of the receiving device, the working clock frequency of the counter on the transmitting device, and the obtained first Ethernet packet. The value in the counter obtains the relative frequency control word between the two adjacent first Ethernet messages received by the receiving device, and obtains the corresponding frequency control word through the relative frequency control word, and inputs the frequency control word into the lock The phase loop acquires the output frequency of the phase-locked loop, and uses the output frequency as the clock frequency of the TDM service to recover the TDM service data frame from the first Ethernet packet. In the embodiment, the receiving side device can still use the value of multiple counters in the first Ethernet packet sent by the sending device, as compared with the method for obtaining the frequency offset value by using the hardware calculation in the sending device. According to the values of the plurality of counters in the first Ethernet message, the frequency control word is obtained by software, and the output frequency of the phase-locked loop is obtained through the frequency control word, thereby achieving interworking between different hardware solutions, and only on the transmitting side A simple counter needs to be set, and the value in the counter can be written into the Ethernet packet. The calculation of the frequency offset value is not dependent on the complicated hardware, which reduces the complexity and equipment cost of the hardware implementation on the transmitting side.
实施例四 Embodiment 4
进一步地,在上述图2所示实施例一的基础上,在本发明实施例四提供的差分时钟恢复的处理方法中,以第一报文中包括一个计数器的值为例,详细介绍本实施例的技术方案。本实施例四中是经过多个发包周期才计算一次频率控制字,具体的,根据接收侧设备的发包率K、第n个发包周期中接收侧设备接收到的以太报文中计数器中的值t′1n、第一个发包周期中接收侧设备接收到的以太报文中计数器中的值t1以及发送侧设备上计数器的工作时钟频率f0,采用公式(4),获取频率控制字。Further, on the basis of the first embodiment shown in FIG. 2, in the differential clock recovery processing method provided in the fourth embodiment of the present invention, the implementation is described in detail by taking the value of a counter included in the first packet as an example. The technical solution of the example. In the fourth embodiment, the frequency control word is calculated after a plurality of packet sending periods. Specifically, according to the packet sending rate K of the receiving device and the value of the counter in the Ethernet packet received by the receiving device in the nth sending period. t' 1n , the value t 1 in the counter in the Ethernet message received by the receiving device and the working clock frequency f 0 of the counter on the transmitting device in the first packet sending period, using the formula (4), the frequency control word is obtained.
Figure PCTCN2014090816-appb-000010
Figure PCTCN2014090816-appb-000010
其中,T为发包周期,T=1/K。Where T is the delivery period, T=1/K.
本实施例中,是经过多个发包周期计算一次频率控制,除了计算频率控制字的方法与实施例二不同之外,其它的方法步骤原理均与实施例二相同,此处不再赘述。In this embodiment, the frequency control is calculated by using a plurality of packet sending periods. The method for calculating the frequency control word is the same as that of the second embodiment, and the other method steps are the same as those in the second embodiment, and details are not described herein again.
本实施例提供的差分时钟恢复的处理方法,通过多个周期计算一次频率控制字,减小了即频率控制字的最小粒度,即减小了固有精度偏差,提升了频率控制字的计算精度。 The differential clock recovery processing method provided in this embodiment reduces the minimum granularity of the frequency control word by calculating the frequency control word by a plurality of cycles, that is, reduces the inherent precision deviation, and improves the calculation precision of the frequency control word.
需要说明的是,当第一以太报文中包括一个计数器中的值时,既可以采用实施例二中的方法获取频率控制字,也可以采用本实施例四中的方法获取频率控制字,本发明中并不做限制。It should be noted that when the value of the counter is included in the first Ethernet packet, the frequency control word may be obtained by using the method in the second embodiment, or the frequency control word may be obtained by using the method in the fourth embodiment. There are no restrictions in the invention.
实施例五 Embodiment 5
图5为本发明实施例五提供的差分时钟恢复的处理方法流程图。在本实施例中,接收侧设备接收至少两个发送侧设备发送的第一以太报文为例,即第一以太报文中包括多个计数器中的值为例,详细介绍本实施例的技术方案。如图5所示,该方法包括:FIG. 5 is a flowchart of a method for processing differential clock recovery according to Embodiment 5 of the present invention. In this embodiment, the receiving side device receives the first Ethernet packet sent by the at least two sending side devices as an example, that is, the value of the plurality of counters in the first Ethernet packet is an example, and the technology in this embodiment is introduced in detail. Program. As shown in FIG. 5, the method includes:
401、接收侧设备接收发送侧设备发送的第一以太报文。401. The receiving device receives the first Ethernet packet sent by the sending device.
本实施例中,接收侧设备同时接收多个发送侧设备发送的第一以太报文,其中,每个第一以太报文为对应的发送侧设备根据发送侧设备的发包率,将TDM业务数据帧进行转换后获取的以太报文,每个第一以太报文中可以只包括一个计数器中的值,也可以同时包括多个计数器中的值,并且每个计数器的工作时钟频率均不相同。In this embodiment, the receiving side device simultaneously receives the first Ethernet message sent by the multiple sending side devices, where each first Ethernet message is a corresponding sending side device, and the TDM service data is sent according to the sending rate of the sending side device. The Ethernet message obtained after the frame is converted, each first Ethernet message may include only one value in a counter, or may include values in multiple counters, and each counter has a different working clock frequency.
402、分别获取每个发送侧设备发送的第一以太报文对应的频率控制字。402. Obtain a frequency control word corresponding to the first Ethernet packet sent by each sending device.
本实施例中,根据实际情况选择相应的方法,分别获取每个发送侧设备发送的第一以太报文对应的频率控制字,例如,当第一以太报文中包括一个计数器中的值时,可采用实施例二或者实施例四提供的方法获取频率控制字;当第一以太报文中包括多个计数器中的值时,可采用实施例三提供的方法获取频率控制字。In this embodiment, the corresponding method is selected according to the actual situation, and the frequency control word corresponding to the first Ethernet packet sent by each sending device is obtained, for example, when the first Ethernet packet includes a value in a counter. The frequency control word may be obtained by using the method provided in the second embodiment or the fourth embodiment. When the first Ethernet message includes the values in the plurality of counters, the frequency control word may be obtained by using the method provided in the third embodiment.
403、从所有的发送侧设备发送的第一以太报文对应的频率控制字,获取最终频率控制字。403. Obtain a final frequency control word by using a frequency control word corresponding to the first Ethernet message sent by all the sending side devices.
本实施例中,从所有的第一以太报文对应的频率控制字获取最终频率控制字的方法有多种,例如在各频率控制字之间再做一次加法或者减法运算,获取最终频率控制字,也可以根据TDM业务的不同,在所有的频率控制字中选择一个与TDM业务相适应的频率控制字作为最终频率控制字,或者选择其它的方法获取频率控制字,本发明中并不以此为限。In this embodiment, there are various methods for obtaining the final frequency control word from the frequency control words corresponding to all the first Ethernet messages, for example, performing an addition or subtraction operation between the frequency control words to obtain the final frequency control word. According to different TDM services, a frequency control word suitable for the TDM service is selected as the final frequency control word among all the frequency control words, or another method is selected to obtain the frequency control word, which is not used in the present invention. Limited.
404、通过最终频率控制字,获取锁相环的输出频率。404. Obtain an output frequency of the phase locked loop by using a final frequency control word.
本实施例中,将本地参考时钟频率作为锁相环的输入,将最终频率控制 字作为锁相环反馈电路的输入,则在锁相环输出端获取输出频率。最终频率控制字相当于一个比例值,即锁相环根据最终频率控制字,将本地参考时钟频率按照一定的比例输出。In this embodiment, the local reference clock frequency is used as the input of the phase locked loop, and the final frequency control is performed. As the input of the phase-locked loop feedback circuit, the word gets the output frequency at the output of the phase-locked loop. The final frequency control word is equivalent to a proportional value, that is, the phase-locked loop outputs the local reference clock frequency according to a certain ratio according to the final frequency control word.
405、接收侧设备根据锁相环的输出频率,从第一以太报文中恢复TDM业务数据帧。405. The receiving device recovers the TDM service data frame from the first Ethernet packet according to the output frequency of the phase locked loop.
可选地,在本实施例中,获取频率控制字之后,该方法还包括:Optionally, in this embodiment, after acquiring the frequency control word, the method further includes:
对频率控制字进行滤波处理。The frequency control word is filtered.
本实施例中,可以将获取的每个发送侧设备发送的第一以太报文对应的频率控制字进行滤波处理,滤除高频部分噪声,从而实现稳定的频偏输出,减少随机性偏差。具体滤波方法可以采用均值、均方差、有限单位冲激响应(Finite Impulse Response,简称FIR)等方式,也可采用其他滤波方式,本发明中并不以此为限。In this embodiment, the acquired frequency control word corresponding to the first Ethernet message sent by each sending side device may be filtered to filter out high frequency partial noise, thereby achieving stable frequency offset output and reducing randomness deviation. The specific filtering method may adopt a mean value, a mean square error, a finite unit impulse response (FIR), or other filtering methods, and is not limited thereto.
本实施例提供的差分时钟恢复的处理方法,在接收侧设备同时接收多个发送侧设备发送的第一以太报文时,分别获取每个发送侧设备发送的第一以太报文对应的频率控制字,从所有的发送侧设备发送的第一以太报文对应的频率控制字中获取最终频率控制字,通过最终频率控制字,获取锁相环的输出频率,将该输出频率作为TDM业务的时钟频率,从第一以太报文中恢复TDM业务数据帧。本实施例中,接收侧设备同时接收多个发送侧设备发送的第一以太报文,采用软件分别计算每个以太报文对应的频率控制字,获取最终频率控制字,实现了跨报文的频率控制字的计算,从而实现了不同的硬件方案之间的互通。The method for processing the differential clock recovery provided in this embodiment, when the receiving side device simultaneously receives the first Ethernet packets sent by the multiple sending side devices, respectively, obtains the frequency control corresponding to the first Ethernet message sent by each transmitting device. The word obtains the final frequency control word from the frequency control word corresponding to the first Ethernet message sent by all the transmitting side devices, and obtains the output frequency of the phase locked loop through the final frequency control word, and uses the output frequency as the clock of the TDM service. Frequency, recovering TDM service data frames from the first Ethernet message. In this embodiment, the receiving side device simultaneously receives the first Ethernet message sent by the multiple sending side devices, and uses the software to calculate the frequency control word corresponding to each Ethernet message to obtain the final frequency control word, and implements the cross-message. The calculation of the frequency control word enables interoperability between different hardware solutions.
实施例六Embodiment 6
图6为本发明实施例六提供的差分时钟恢复的处理装置结构示意图。如图6所示,该装置包括接收模块11、频偏值获取模块12、输出频率获取模块13和恢复模块14。其中,接收模块11用于接收发送侧设备发送的第一以太报文,其中,第一以太报文为发送侧设备根据发送侧设备的发包率,将时分复用TDM业务数据帧进行转换后获取的以太报文。频偏值获取模块12用于根据接收侧设备的发包率、发送侧设备上计数器的工作时钟频率以及获取的第一以太报文中的计数器中的值,获取频偏值;其中,接收侧设备的发包率 和发送侧设备的发包率相同,计数器中的值为计数器在计数器的工作时钟频率下记录的时戳信息。输出频率获取模块13用于通过频偏值,获取锁相环的输出频率。恢复模块14用于根据锁相环的输出频率,从第一以太报文中恢复TDM业务数据帧。FIG. 6 is a schematic structural diagram of a processing apparatus for differential clock recovery according to Embodiment 6 of the present invention. As shown in FIG. 6, the apparatus includes a receiving module 11, a frequency offset value acquiring module 12, an output frequency acquiring module 13, and a recovery module 14. The receiving module 11 is configured to receive the first Ethernet packet sent by the sending device, where the first Ethernet packet is obtained by the transmitting device according to the sending rate of the transmitting device, and the time division multiplexed TDM service data frame is converted. Ether message. The frequency offset value obtaining module 12 is configured to obtain a frequency offset value according to the packet sending rate of the receiving device, the working clock frequency of the counter on the transmitting device, and the value in the counter in the acquired first Ethernet packet; wherein, the receiving device Contract rate The same as the sending rate of the transmitting side device, the value in the counter is the time stamp information recorded by the counter at the working clock frequency of the counter. The output frequency acquisition module 13 is configured to obtain the output frequency of the phase locked loop by using the frequency offset value. The recovery module 14 is configured to recover the TDM service data frame from the first Ethernet packet according to the output frequency of the phase locked loop.
本实施例的装置,可以用于执行图2所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 2, and the implementation principle and technical effects are similar, and details are not described herein again.
可选地,该差分时钟恢复的处理装置可以设置在接收第一以太报文的接收侧设备中。Optionally, the processing device for the differential clock recovery may be disposed in a receiving side device that receives the first Ethernet message.
实施例七Example 7
进一步地,在上述实施例六的基础上,本发明实施例七提供的差分时钟恢复的处理装置,若所述第一以太报文中包括一个计数器中的值,则频偏值获取模块12具体用于:根据所述接收侧设备的发包率K,所述发送侧设备上计数器的工作时钟频率f0以及所述第一以太报文中的计数器中的值t1,采用公式
Figure PCTCN2014090816-appb-000011
获取所述频率控制字freq_offset;其中,T为发包周期,T=1/K,t′1为第二以太报文中计数器中的值,所述第二以太报文为所述接收侧设备接收到的与所述第一以太报文相邻的以太报文。
Further, on the basis of the foregoing sixth embodiment, the processing device for the differential clock recovery provided by the seventh embodiment of the present invention, if the first Ethernet message includes a value in a counter, the frequency offset value obtaining module 12 is specifically The method is: according to the sending rate K of the receiving device, the working clock frequency f 0 of the counter on the transmitting device, and the value t 1 in the counter in the first Ethernet packet, using a formula
Figure PCTCN2014090816-appb-000011
Obtaining the frequency control word freq_offset; wherein, T is a packet sending period, T=1/K, t′ 1 is a value in a counter in the second Ethernet message, and the second Ethernet message is received by the receiving device An Ethernet message adjacent to the first Ethernet message.
本实施例的装置,可以用于执行图3所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 3, and the implementation principle and technical effects are similar, and details are not described herein again.
可选地,该差分时钟恢复的处理装置可以设置在接收第一以太报文的接收侧设备中。Optionally, the processing device for the differential clock recovery may be disposed in a receiving side device that receives the first Ethernet message.
实施例八Example eight
更进一步地,在上述实施例六的基础上,本发明实施例八提供的差分时钟恢复的处理装置,若所述第一以太报文包括至少两个第一计数器中的值、至少两个第二计数器中的值,则频偏值获取模块12具体用于根据接收侧设备的发包率K、发送侧设备上第一计数器的工作时钟频率f10、发送侧设备上第 二计数器的工作时钟频率f11、第一以太报文中第一计数器中的值t10以及第一以太报文中第二计数器中的值t11,采用公式
Figure PCTCN2014090816-appb-000012
获取相对频率控制字freq_offset1,并根据相对频率控制字获取频率控制字;其中,T为发包周期,T=1/K,t′10为第二以太报文中所述第一计数器中的值,t′11为第二以太报文中所述第二计数器中的值,所述第二以太报文为所述接收侧设备接收到的与所述第一以太报文相邻的以太报文。
Further, on the basis of the foregoing sixth embodiment, the processing apparatus for differential clock recovery provided by the eighth embodiment of the present invention, if the first Ethernet message includes a value of at least two first counters, at least two The value of the second counter is used by the frequency offset value obtaining module 12 according to the packet sending rate K of the receiving device, the working clock frequency f 10 of the first counter on the transmitting device, and the working clock frequency of the second counter on the transmitting device. f 11 , the value t 10 in the first counter in the first Ethernet message and the value t 11 in the second counter in the first Ethernet message, using a formula
Figure PCTCN2014090816-appb-000012
Obtaining the relative frequency control word freq_offset1, control word acquisition frequency and the relative frequency control word; wherein, T is the contract period, T = 1 / K, t '10 is the value of the first counter in said second Ethernet packets, t '11 is an Ethernet packet a second value of the second counter, the second Ethernet packet to the receiving-side device and the adjacent first Ethernet packets received Ethernet packets.
本实施例的装置,可以用于执行图4所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 4, and the implementation principle and technical effects are similar, and details are not described herein again.
可选地,该差分时钟恢复的处理装置可以设置在接收第一以太报文的接收侧设备中。Optionally, the processing device for the differential clock recovery may be disposed in a receiving side device that receives the first Ethernet message.
实施例九Example nine
更进一步地,在上述实施例六的基础上,本发明实施例九提供的差分时钟恢复的处理装置,若第一以太报文中包括一个计数器中的值,则频偏值获取模块12具体用于,根据接收侧设备的发包率K、第n个发包周期中接收侧设备接收到的以太报文中计数器中的值t′1n、第一个发包周期中接收侧设备接收到的以太报文中计数器中的值t1以及发送侧设备上计数器的工作时钟频率f0,采用公式
Figure PCTCN2014090816-appb-000013
获取频率控制字freq_offset;其中,T为发包周期,T=1/K。
Further, on the basis of the foregoing embodiment 6, the processing device for the differential clock recovery provided by the ninth embodiment of the present invention, if the first Ethernet message includes a value in a counter, the frequency offset value obtaining module 12 is specifically used. According to the packet rate K of the receiving device, the value t' 1n in the counter in the Ethernet packet received by the receiving device in the nth packet sending period, and the Ethernet packet received by the receiving device in the first packet sending period. The value t 1 in the middle counter and the working clock frequency f 0 of the counter on the transmitting side device are calculated using the formula
Figure PCTCN2014090816-appb-000013
Obtain the frequency control word freq_offset; where T is the packet sending period, T=1/K.
本实施例的装置,可以用于执行实施例四所述方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device in this embodiment may be used to perform the technical solution of the method embodiment in the fourth embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.
可选地,该差分时钟恢复的处理装置可以设置在接收第一以太报文的接收侧设备中。Optionally, the processing device for the differential clock recovery may be disposed in a receiving side device that receives the first Ethernet message.
实施例十Example ten
再进一步地,在上述实施例六至九任一实施例的基础上,本发明实施例十提供的差分时钟恢复的处理装置,若接收侧设备接收至少两个发送侧设备发送的第一以太报文,则频偏值获取模块12还用于从所有的发送侧设备发送的第一以太报文对应的频率控制字,获取最终频率控制字。输出频率获取模块13还用于通过最终频率控制字,获取锁相环的输出频率。Further, on the basis of any one of Embodiments 6 to 9 above, the processing apparatus for differential clock recovery provided by Embodiment 10 of the present invention, if the receiving side device receives the first Ethernet message sent by at least two transmitting side devices The frequency offset value obtaining module 12 is further configured to obtain a final frequency control word from the frequency control words corresponding to the first Ethernet message sent by all the transmitting side devices. The output frequency acquisition module 13 is further configured to obtain the output frequency of the phase locked loop through the final frequency control word.
本实施例的装置,可以用于执行图5所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 5, and the implementation principle and technical effects are similar, and details are not described herein again.
可选地,该差分时钟恢复的处理装置可以设置在接收第一以太报文的接收侧设备中。Optionally, the processing device for the differential clock recovery may be disposed in a receiving side device that receives the first Ethernet message.
实施例十一 Embodiment 11
图7为本发明实施例十一提供的差分时钟恢复的处理装置结构示意图。在上述图6所示实施例六的基础上,如图7所示,该装置还包括滤波模块15用于对所述频率控制字进行滤波处理。FIG. 7 is a schematic structural diagram of a processing apparatus for differential clock recovery according to Embodiment 11 of the present invention. Based on the sixth embodiment shown in FIG. 6, as shown in FIG. 7, the apparatus further includes a filtering module 15 for performing filtering processing on the frequency control word.
本实施例中,加入滤波模块15,可以将频偏值获取模块12中获取的频率控制字进行滤波处理,滤除高频部分噪声,从而实现稳定的频偏输出,减少随机性偏差。In this embodiment, the filtering module 15 is added, and the frequency control word acquired by the frequency offset value obtaining module 12 can be filtered to filter out high-frequency partial noise, thereby achieving stable frequency offset output and reducing randomness deviation.
可选地,该差分时钟恢复的处理装置可以设置在接收第一以太报文的接收侧设备中。Optionally, the processing device for the differential clock recovery may be disposed in a receiving side device that receives the first Ethernet message.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:只读存储器(Read-Only Memory,ROM)、随机存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。One of ordinary skill in the art will appreciate that all or part of the steps to implement the various method embodiments described above may be accomplished by hardware associated with the program instructions. The aforementioned program can be stored in a computer readable storage medium. When the program is executed, the steps of the foregoing method embodiments are performed; and the foregoing storage medium includes: a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk. A variety of media that can store program code.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。 Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims (12)

  1. 一种差分时钟恢复的处理方法,其特征在于,包括:A method for processing differential clock recovery, comprising:
    接收侧设备接收发送侧设备发送的第一以太报文;其中,所述第一以太报文为所述发送侧设备根据发送侧设备的发包率,将时分复用TDM业务数据帧进行转换后获取的以太报文;Receiving, by the receiving device, the first Ethernet packet sent by the sending device, where the first Ethernet packet is obtained by converting, by the transmitting device, the time division multiplexing TDM service data frame according to the sending rate of the sending device. Ethernet message;
    所述接收侧设备根据接收侧设备的发包率、发送侧设备上计数器的工作时钟频率以及获取的所述第一以太报文中的计数器中的值,获取频偏值;其中,所述接收侧设备的发包率和所述发送侧设备的发包率相同,所述计数器中的值为所述计数器在所述计数器的工作时钟频率下记录的时戳信息;The receiving side device acquires a frequency offset value according to the packet sending rate of the receiving device, the working clock frequency of the counter on the transmitting device, and the obtained value in the counter in the first Ethernet packet; wherein the receiving side The sending rate of the device is the same as the sending rate of the transmitting device, and the value in the counter is time stamp information recorded by the counter at the working clock frequency of the counter;
    所述接收侧设备通过所述频偏值,获取锁相环的输出频率;The receiving side device acquires an output frequency of the phase locked loop by using the frequency offset value;
    所述接收侧设备根据所述锁相环的输出频率,从所述第一以太报文中恢复所述TDM业务数据帧。The receiving side device recovers the TDM service data frame from the first Ethernet packet according to an output frequency of the phase locked loop.
  2. 根据权利要求1所述的方法,其特征在于,若所述第一以太报文中包括一个计数器中的值,则对于每个所述发送侧设备发送的第一以太报文,所述接收侧设备根据接收侧设备的发包率、发送侧设备上计数器的工作时钟频率以及获取的所述第一以太报文中的计数器中的值,获取频偏值,具体包括:The method according to claim 1, wherein if the first Ethernet message includes a value in a counter, the first Ethernet message sent by each of the sending side devices, the receiving side The device obtains the frequency offset value according to the packet sending rate of the receiving device, the operating clock frequency of the counter on the transmitting device, and the obtained value in the counter in the first Ethernet packet, which specifically includes:
    根据所述接收侧设备的发包率K,所述发送侧设备上计数器的工作时钟频率f0以及所述第一以太报文中的计数器中的值t1,采用公式
    Figure PCTCN2014090816-appb-100001
    获取频率控制字freq_offset;其中,T为发包周期,T=1/K,t′1为第二以太报文中计数器中的值,所述第二以太报文为所述接收侧设备接收到的与所述第一以太报文相邻的以太报文。
    Determining, according to the packet sending rate K of the receiving device, the working clock frequency f 0 of the counter on the transmitting device and the value t 1 in the counter in the first Ethernet packet,
    Figure PCTCN2014090816-appb-100001
    Obtaining a frequency control word freq_offset; wherein, T is a packet sending period, T=1/K, t′ 1 is a value in a counter in the second Ethernet message, and the second Ethernet message is received by the receiving device An Ethernet message adjacent to the first Ethernet message.
  3. 根据权利要求1所述的方法,其特征在于,若所述第一以太报文包括至少两个第一计数器中的值、至少两个第二计数器中的值,则对于每个所述发送侧设备发送的第一以太报文,所述接收侧设备根据接收侧设备的发包率、发送侧设备上计数器的工作时钟频率以及获取的所述第一以太报文中的计数器中的值,获取频偏值,具体包括:The method according to claim 1, wherein if the first Ethernet message includes a value in at least two first counters and a value in at least two second counters, then for each of the transmitting sides The first Ethernet packet sent by the device, the receiving side device acquires the frequency according to the packet sending rate of the receiving device, the working clock frequency of the counter on the transmitting device, and the obtained value in the counter in the first Ethernet message. The bias value includes:
    根据所述接收侧设备的发包率K、发送侧设备上第一计数器的工作时钟频率f10、发送侧设备上第二计数器的工作时钟频率f11、所述第一以太报文中 第一计数器中的值t10以及所述第一以太报文中第二计数器中的值t11,采用公式
    Figure PCTCN2014090816-appb-100002
    获取相对频率控制字freq_offset1;
    According to the packet rate K of the receiving device, the operating clock frequency f 10 of the first counter on the transmitting device, the operating clock frequency f 11 of the second counter on the transmitting device, and the first counter in the first Ethernet packet. a value t 10 in the middle and a value t 11 in the second counter in the first Ethernet message, using a formula
    Figure PCTCN2014090816-appb-100002
    Obtaining the relative frequency control word freq_offset1;
    其中,T为发包周期,T=1/K,所述第二以太报文为所述接收侧设备接收到的与所述第一以太报文相邻的以太报文;Wherein, T is a packet sending period, T=1/K, and the second Ethernet packet is an Ethernet message received by the receiving device and adjacent to the first Ethernet packet;
    所述接收侧设备根据所述相对频率控制字,获取所述频率控制字。The receiving side device acquires the frequency control word according to the relative frequency control word.
  4. 根据权利要求1所述的方法,其特征在于,若所述第一以太报文中包括一个计数器中的值,则对于每个所述发送侧设备发送的第一以太报文,所述接收侧设备根据接收侧设备的发包率、发送侧设备上计数器的工作时钟频率以及获取的所述第一以太报文中的计数器中的值,获取频偏值,具体包括:The method according to claim 1, wherein if the first Ethernet message includes a value in a counter, the first Ethernet message sent by each of the sending side devices, the receiving side The device obtains the frequency offset value according to the packet sending rate of the receiving device, the operating clock frequency of the counter on the transmitting device, and the obtained value in the counter in the first Ethernet packet, which specifically includes:
    根据所述接收侧设备的发包率K、第n个发包周期中所述接收侧设备接收到的以太报文中所述计数器中的值t′1n、第1个发包周期中所述接收侧设备接收到的以太报文中所述计数器中的值t1以及所述发送侧设备上计数器的工作时钟频率f0,采用公式
    Figure PCTCN2014090816-appb-100003
    获取所述频率控制字freq_offset;
    The receiving side device in the first packet sending period according to the packet sending rate K of the receiving device, the value t' 1n in the counter in the Ethernet packet received by the receiving device in the nth packet sending period, and the first packet sending period The value t 1 in the counter in the received Ethernet message and the working clock frequency f 0 of the counter on the transmitting device are calculated by using a formula
    Figure PCTCN2014090816-appb-100003
    Obtaining the frequency control word freq_offset;
    其中,T为发包周期,T=1/K。Where T is the delivery period, T=1/K.
  5. 根据权利要求2-4任一项所述的方法,其特征在于,若所述接收侧设备接收至少两个所述发送侧设备发送的所述第一以太报文,则所述方法还包括:The method according to any one of claims 2-4, wherein, if the receiving side device receives the first Ethernet message sent by the at least two sending side devices, the method further includes:
    从所有的所述发送侧设备发送的所述第一以太报文对应的频率控制字,获取最终频率控制字;Obtaining a final frequency control word from a frequency control word corresponding to the first Ethernet message sent by all the sending side devices;
    则所述接收侧设备通过所述频率控制字,获取锁相环的输出频率,具体为:And the receiving side device acquires an output frequency of the phase locked loop by using the frequency control word, specifically:
    所述接收侧设备通过所述最终频率控制字,获取锁相环的输出频率。The receiving side device acquires an output frequency of the phase locked loop by using the final frequency control word.
  6. 根据权利要求5所述的方法,其特征在于,所述获取频率控制字之后,所述方法还包括:The method according to claim 5, wherein after the obtaining the frequency control word, the method further comprises:
    对所述频率控制字进行滤波处理。The frequency control word is filtered.
  7. 一种差分时钟恢复的处理装置,其特征在于,包括: A processing device for differential clock recovery, comprising:
    接收模块,用于接收发送侧设备发送的第一以太报文;其中,所述第一以太报文为所述发送侧设备根据发送侧设备的发包率,将时分复用TDM业务数据帧进行转换后获取的以太报文;The receiving module is configured to receive the first Ethernet packet sent by the sending device, where the first Ethernet packet is used by the sending device to convert the time division multiplexed TDM service data frame according to the sending rate of the sending device. Ether message obtained afterwards;
    频偏值获取模块,用于根据接收侧设备的发包率、发送侧设备上计数器的工作时钟频率以及获取的所述第一以太报文中的计数器中的值,获取频偏值;其中,所述接收侧设备的发包率和所述发送侧设备的发包率相同,所述计数器中的值为所述计数器在所述计数器的工作时钟频率下记录的时戳信息;a frequency offset value obtaining module, configured to obtain a frequency offset value according to an output rate of the receiving device, a working clock frequency of the counter on the transmitting device, and a value in the obtained counter in the first Ethernet message; The sending rate of the receiving side device is the same as the sending rate of the sending side device, and the value in the counter is time stamp information recorded by the counter at the working clock frequency of the counter;
    输出频率获取模块,用于通过所述频偏值,获取锁相环的输出频率;An output frequency acquisition module, configured to obtain an output frequency of the phase locked loop by using the frequency offset value;
    恢复模块,用于根据所述锁相环的输出频率,从所述第一以太报文中恢复所述TDM业务数据帧。And a recovery module, configured to recover the TDM service data frame from the first Ethernet packet according to an output frequency of the phase locked loop.
  8. 根据权利要求7所述的装置,其特征在于,若所述第一以太报文中包括一个计数器中的值,则所述频偏值获取模块具体用于:The apparatus according to claim 7, wherein if the first Ethernet message includes a value in a counter, the frequency offset value obtaining module is specifically configured to:
    根据所述接收侧设备的发包率K,所述发送侧设备上计数器的工作时钟频率f0以及所述第一以太报文中的计数器中的值t1,采用公式
    Figure PCTCN2014090816-appb-100004
    获取频率控制字freq_offset;
    Determining, according to the packet sending rate K of the receiving device, the working clock frequency f 0 of the counter on the transmitting device and the value t 1 in the counter in the first Ethernet packet,
    Figure PCTCN2014090816-appb-100004
    Obtain the frequency control word freq_offset;
    其中,T为发包周期,T=1/K,t′1为第二以太报文中计数器中的值,所述第二以太报文为所述接收侧设备接收到的与所述第一以太报文相邻的以太报文。Wherein, T is a packet sending period, T=1/K, and t′ 1 is a value in a counter in the second Ethernet packet, and the second Ethernet packet is received by the receiving device and the first ether. The Ethernet message adjacent to the packet.
  9. 根据权利要求7所述的装置,其特征在于,若所述第一以太报文包括至少两个第一计数器中的值、至少两个第二计数器中的值,则所述频偏值获取模块具体用于:The apparatus according to claim 7, wherein if the first Ethernet message includes a value in at least two first counters and a value in at least two second counters, the frequency offset value acquiring module Specifically used for:
    根据所述接收侧设备的发包率K、发送侧设备上第一计数器的工作时钟频率f10、发送侧设备上第二计数器的工作时钟频率f11、所述第一以太报文中第一计数器中的值t10以及所述第一以太报文中第二计数器中的值t11,采用公式
    Figure PCTCN2014090816-appb-100005
    获取相对频率控制字freq_offset1,并根据所述相对频率控制字获取频率控制字;其中,T为发包周期,T=1/K, t′10为第二以太报文中所述第一计数器中的值,t′11为第二以太报文中所述第二计数器中的值,所述第二以太报文为所述接收侧设备接收到的与所述第一以太报文相邻的以太报文。
    According to the packet rate K of the receiving device, the operating clock frequency f 10 of the first counter on the transmitting device, the operating clock frequency f 11 of the second counter on the transmitting device, and the first counter in the first Ethernet packet. a value t 10 in the middle and a value t 11 in the second counter in the first Ethernet message, using a formula
    Figure PCTCN2014090816-appb-100005
    Obtaining a relative frequency control word freq_offset1, and acquiring a frequency control word according to the relative frequency control word; wherein T is a packet sending period, T=1/K, and t′ 10 is the first counter in the second Ethernet message value, t '11 is an Ethernet packet a second value of the second counter, the second Ethernet packet to the reception-side device receives the first Ethernet packets in Ethernet frames adjacent Text.
  10. 根据权利要求7所述的装置,其特征在于,若所述第一以太报文中包括一个计数器中的值,则所述频偏值获取模块具体用于:The apparatus according to claim 7, wherein if the first Ethernet message includes a value in a counter, the frequency offset value obtaining module is specifically configured to:
    根据所述接收侧设备的发包率K、第n个发包周期中所述接收侧设备接收到的以太报文中所述计数器中的值t′1n、第一个发包周期中所述接收侧设备接收到的以太报文中所述计数器中的值t1以及所述发送侧设备上计数器的工作时钟频率f0,采用公式
    Figure PCTCN2014090816-appb-100006
    获取频率控制字freq_offset;
    The receiving side device in the first packet sending period according to the packet sending rate K of the receiving device, the value t' 1n in the counter in the Ethernet packet received by the receiving device in the nth sending period, and the first packet sending period The value t 1 in the counter in the received Ethernet message and the working clock frequency f 0 of the counter on the transmitting device are calculated by using a formula
    Figure PCTCN2014090816-appb-100006
    Obtain the frequency control word freq_offset;
    其中,T为发包周期,T=1/K。Where T is the delivery period, T=1/K.
  11. 根据权利要求8-10任一项所述的装置,其特征在于,若所述接收侧设备接收至少两个所述发送侧设备发送的所述第一以太报文,则所述频偏值获取模块还用于从所有的所述发送侧设备发送的所述第一以太报文对应的频率控制字,获取最终频率控制字;The apparatus according to any one of claims 8 to 10, wherein if the receiving side device receives the first Ethernet message sent by at least two of the transmitting side devices, the frequency offset value is obtained. The module is further configured to obtain a final frequency control word by using a frequency control word corresponding to the first Ethernet message sent by all the sending side devices;
    所述输出频率获取模块还用于通过所述最终频率控制字,获取锁相环的输出频率。The output frequency acquisition module is further configured to acquire an output frequency of the phase locked loop by using the final frequency control word.
  12. 根据权利要求11所述的装置,其特征在于,所述装置还包括:The device according to claim 11, wherein the device further comprises:
    滤波模块,用于对所述频率控制字进行滤波处理。 And a filtering module, configured to filter the frequency control word.
PCT/CN2014/090816 2014-11-11 2014-11-11 Method and apparatus for processing differential clock recovery WO2016074152A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201480080957.XA CN106664233B (en) 2014-11-11 2014-11-11 The treating method and apparatus that differential clocks restore
PCT/CN2014/090816 WO2016074152A1 (en) 2014-11-11 2014-11-11 Method and apparatus for processing differential clock recovery

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/090816 WO2016074152A1 (en) 2014-11-11 2014-11-11 Method and apparatus for processing differential clock recovery

Publications (1)

Publication Number Publication Date
WO2016074152A1 true WO2016074152A1 (en) 2016-05-19

Family

ID=55953558

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/090816 WO2016074152A1 (en) 2014-11-11 2014-11-11 Method and apparatus for processing differential clock recovery

Country Status (2)

Country Link
CN (1) CN106664233B (en)
WO (1) WO2016074152A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113556151B (en) * 2021-09-22 2021-12-17 佳源科技股份有限公司 Rapid networking method applied to high-speed carrier communication of power line

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6965224B1 (en) * 2003-05-16 2005-11-15 Cisco Technology, Inc. Method and apparatus for testing synchronization circuitry
CN1933367A (en) * 2006-10-09 2007-03-21 广州市高科通信技术股份有限公司 TDM business realizing method based on Ethernet passive light network
CN101174912A (en) * 2007-12-05 2008-05-07 武汉烽火网络有限责任公司 Self-adapting clock method based on time stamp facing Ethernet circuit simulation service
CN101547137A (en) * 2008-03-27 2009-09-30 华为技术有限公司 Method and device for sending data and communication equipment
CN102148728A (en) * 2011-04-29 2011-08-10 烽火通信科技股份有限公司 E1 emulation realization method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686185B (en) * 2008-09-23 2011-12-07 华为技术有限公司 Method, device and system for transmitting TDM services in packet network
CN101640578A (en) * 2009-08-25 2010-02-03 北京邮电大学 TDM service clock recovery method for packet transport network
CN102340365B (en) * 2010-07-27 2014-06-11 中兴通讯股份有限公司 Timestamp-based clock recovery method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6965224B1 (en) * 2003-05-16 2005-11-15 Cisco Technology, Inc. Method and apparatus for testing synchronization circuitry
CN1933367A (en) * 2006-10-09 2007-03-21 广州市高科通信技术股份有限公司 TDM business realizing method based on Ethernet passive light network
CN101174912A (en) * 2007-12-05 2008-05-07 武汉烽火网络有限责任公司 Self-adapting clock method based on time stamp facing Ethernet circuit simulation service
CN101547137A (en) * 2008-03-27 2009-09-30 华为技术有限公司 Method and device for sending data and communication equipment
CN102148728A (en) * 2011-04-29 2011-08-10 烽火通信科技股份有限公司 E1 emulation realization method

Also Published As

Publication number Publication date
CN106664233A (en) 2017-05-10
CN106664233B (en) 2019-11-29

Similar Documents

Publication Publication Date Title
US10594423B1 (en) Re-timing a packetized radio flow to clean noise induced by packet delay variation of a packet network
CN104270567B (en) High-precision synchronous multi-channel image acquisition system and time synchronization method thereof
EP2764644B1 (en) Egress clock domain synchronization to multiple ingress clocks
TW201921892A (en) Indirect packet classification timestamping system and method
WO2009071029A1 (en) Synchronization system and method of time information and related equipment
WO2017035724A1 (en) Method, device, and system for receiving cpri data stream and ethernet frame
WO2019071598A1 (en) Method and device for transmitting and receiving clock synchronization message
CN106921641B (en) Method and device for transmitting message
CN103299583A (en) Systems and methods for measuring available capacity and tight link capacity of IP paths from a single endpoint
CN105578491A (en) Method and device for associating 4G user information with application data
KR101969396B1 (en) Method, Apparatus and System for Remotely Configuring PTP Service of Optical Network Unit
WO2020063593A1 (en) Time delay symmetry measurement method, apparatus and system
JP7130159B2 (en) Software-based cloud computing modulator/demodulator modem
CN106877959B (en) A kind of method, apparatus and system that clock is synchronous
JP7026788B2 (en) Methods, related devices, and systems for obtaining target transmission routes
WO2016074152A1 (en) Method and apparatus for processing differential clock recovery
CN114826748B (en) Audio and video stream data encryption method and device based on RTP, UDP and IP protocols
CN106330955B (en) A kind of instant messaging extended method and system
WO2020248865A1 (en) Control word transmission method, apparatus, and computer readable storage medium
KR101958374B1 (en) Services, systems and methods for precisely estimating a delay within a network
CN102655469B (en) A kind of network equipment realizing differential clock equipment communication and system and method
CN106911545B (en) Method and device for transmitting ST _ BUS data through Ethernet
WO2018076672A1 (en) Method and apparatus for accessing optical transmission network service and computer storage medium
CN104601497B (en) 1588V2 message transmitting method and device based on wan interface
WO2015106504A1 (en) Method, device and system for adjusting differential clock frequency, source end device and interworking modifier

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14906133

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14906133

Country of ref document: EP

Kind code of ref document: A1