[go: up one dir, main page]

WO2018006686A1 - Method, apparatus and device for optimizing time synchronization between communication network devices - Google Patents

Method, apparatus and device for optimizing time synchronization between communication network devices Download PDF

Info

Publication number
WO2018006686A1
WO2018006686A1 PCT/CN2017/087862 CN2017087862W WO2018006686A1 WO 2018006686 A1 WO2018006686 A1 WO 2018006686A1 CN 2017087862 W CN2017087862 W CN 2017087862W WO 2018006686 A1 WO2018006686 A1 WO 2018006686A1
Authority
WO
WIPO (PCT)
Prior art keywords
line card
packet
time
message
processing chip
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2017/087862
Other languages
French (fr)
Chinese (zh)
Inventor
蒋海辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Publication of WO2018006686A1 publication Critical patent/WO2018006686A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements

Definitions

  • the present disclosure relates to the field of network communication technologies, and in particular, to a method, an apparatus, and a device for optimizing time synchronization between communication network devices.
  • PTP Precision Time Protocol
  • PTP Precision Time Protocol
  • the master clock periodically issues the PTP time synchronization protocol and time information, and receives the timestamp information sent by the master clock port from the clock port, and the system calculates the time delay of the master-slave line and the master-slave time difference, and The time difference is used to adjust the local time so that the slave time is kept at the same frequency and phase as the master time.
  • the delay may occur due to the transmission of the signal on the line, and the device may not be able to measure the delay of the line, and the delay compensation needs to be manually performed.
  • the device needs to support the delay compensation function of various interfaces.
  • the device needs to support the automatic tracking of the standby time source when the primary time source fails.
  • the device needs to support tracking the time source from different line directions, and can automatically switch to other directions when the current tracking direction fails. For example, 16 device switching requires a phase jitter requirement of less than +/- 200 ns.
  • the technical problem to be solved by the present disclosure is to provide a method, a device and a device for optimizing time synchronization between communication network devices, which are used to solve the problem that the device cannot meet the delay jitter requirement of time synchronization switching in a complex networking environment in the related art. .
  • an embodiment of the present disclosure provides a method for optimizing time synchronization between communication network devices, which is applied to a first device, including:
  • the second time difference compensation value is a time difference compensation value that is transmitted from the line card port of the second device to the line card processing chip, where the second message added in the second message is sent;
  • the third time difference compensation value is the line card processing chip added from the second device in the response message fed back after the second control device obtains the second message by the second device.
  • the time difference offset value transmitted to the line card port is the line card processing chip added from the second device in the response message fed back after the second control device obtains the second message by the second device.
  • the first time information includes: a first timestamp of the main control board and a first physical clock frequency when the first packet for frequency synchronization is created on the main control board of the first device;
  • the third physical clock of the line card processing chip is recorded a second timestamp and a fourth physical clock frequency of the main control board when the second message is transmitted from the line card processing chip of the second device to the main control board of the second device;
  • the third message is also recorded in the third time of the main control board when the main control board of the second device creates the response message generated by the second message on the main control board.
  • a fifth physical clock frequency when the response message is transmitted from the main control board of the second device to the line card processing chip of the second device, the line card processes the sixth physical clock frequency of the chip;
  • the fourth message is further recorded when the third message is transmitted from the line card port of the first device to the line card processing chip of the first device, and the seventh physical clock of the line card processing chip a frequency; a fourth timestamp of the main control board and an eighth physical clock frequency when the fourth message is transmitted from the line card processing chip to the main control board of the first device.
  • the step of calculating a delay time of packet transmission between the first device and the second device according to the fourth packet includes:
  • the two-time difference compensation value, the third time difference compensation value, and the fourth time difference compensation value are calculated by a preset algorithm to obtain a delay time of message transmission between the first device and the second device.
  • the step of calculating the delay time of the message transmission between the first device and the second device by using a preset algorithm includes: a compensation value, a second time difference compensation value, a third time difference compensation value, and a fourth time difference compensation value; :
  • Delay [((T 4 -N 4 -t 4 )-(T 1 +N 1 +t 1 ))+((T 3 +N 3 +t 3 )-(T 2 -N 2 -t 2 ))] ⁇ 2, calculating a delay time of message transmission between the first device and the second device;
  • Delay represents a delay time for the message to be transmitted between the first device and the second device; T 1 is represented as the first timestamp; and T 2 is represented as the second timestamp ; T 3 is represented as a third time stamp; T 4 represents said fourth time stamp; N 1 is expressed as the first transmission time; N 2 of the second transmission time is represented; N 3 is represented by a third transmission time; N 4 is represented as the fourth transmission time; t 1 is represented as the first time difference compensation value; t 2 is represented as the second time difference compensation value; t 3 is represented as the third time difference The compensation value; t 4 is expressed as the fourth time difference compensation value.
  • the embodiment of the present disclosure further provides an apparatus for optimizing time synchronization between communication network devices, including:
  • a first acquiring module configured to acquire a first packet that is transmitted by the main control board of the first device to the second device, where the first packet is recorded with the first time information when the first packet is created;
  • the first processing module is configured to add, in the first packet, a first time difference compensation value that is sent from the line card processing chip of the first device to the line card port, to obtain a second message;
  • a sending module configured to send the second packet to the second device
  • a second acquiring module configured to obtain a third packet that is returned after the second device receives the second packet, where the second packet records that the second device receives the second packet a second time difference compensation value and a third time difference compensation value transmitted between the line card processing chip of the second device and the line card port;
  • a second processing module configured to add, in the third packet, a fourth time difference compensation value that is sent from the line card port of the first device to the line card processing chip, to obtain a fourth message;
  • the calculating module is configured to calculate, according to the fourth packet, a delay time for packet transmission between the first device and the second device.
  • the embodiment of the present disclosure further provides a first device, including: an apparatus for optimizing time synchronization between communication network devices as described in the foregoing embodiments.
  • the embodiment of the present disclosure further provides an optimization method for time synchronization between communication network devices, which is applied to a second device, and the method includes:
  • the first packet of the first device After the first packet of the first device is recorded in the second packet, the first packet is added to the line of the first device in the first packet.
  • the embodiment of the present disclosure further provides an apparatus for optimizing time synchronization between communication network devices, including:
  • the first receiving module is configured to receive the second packet sent by the first device
  • a third processing module configured to add, in the second packet, a second time difference compensation value that is sent from the line card port of the second device to the line card processing chip, and the second report is Transmitting to the main control board of the second device;
  • a second receiving module configured to receive a response message that is received by the main control board after obtaining the second packet
  • the fourth processing module is configured to add a third time difference compensation value that is sent from the line card processing chip of the second device to the line card port in the response message, to obtain a third message;
  • a transmission module configured to transmit the third packet to the first device by using a line card port of the second device.
  • the embodiment of the present disclosure further provides a second device, including: an apparatus for optimizing time synchronization between communication network devices as described in the foregoing embodiments.
  • the embodiment of the present disclosure further provides a storage medium, configured to store program code, where the program code is used to perform an optimization method for time synchronization between communication network devices provided by any of the above embodiments.
  • the time difference compensation value is added in the message, and the message is reduced.
  • the delay error during transmission between communication network devices can realize accurate time synchronization between communication network devices and meet the delay jitter requirements of time synchronization switching of devices in complex networking environments.
  • FIG. 1 is a flow chart showing the basic steps of a method for optimizing time synchronization between communication network devices according to an embodiment of the present disclosure
  • FIG. 2 is a schematic structural diagram of a device for optimizing time synchronization between communication network devices according to an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of a packet sending and receiving path of a single device
  • 4 is a schematic diagram of a packet transmission delay between devices
  • FIG. 5 is a flowchart of basic steps of a method for optimizing time synchronization between communication network devices according to an embodiment of the present disclosure
  • FIG. 6 is a schematic structural diagram of another apparatus for optimizing time synchronization between communication network devices according to an embodiment of the present disclosure
  • FIG. 7 is a timing diagram of packet time delay optimization according to an embodiment of the present disclosure.
  • the present disclosure is directed to the problem that the device in the related art cannot meet the delay jitter requirement of time synchronization switching in a complex networking environment, and provides an optimization method for time synchronization between communication network devices, which reduces the transmission of packets between communication network devices.
  • the delay error enables accurate time synchronization between communication network devices and meets the delay jitter requirements of time synchronization switching of devices in complex networking environments.
  • an embodiment of the present disclosure provides a method for optimizing time synchronization between communication network devices, including:
  • Step 11 Acquire a first packet that is sent by the main control board of the first device to the second device, where the first packet is recorded with the first time information when the first packet is created.
  • the central processing unit CPU on the main control board of the first device is responsible for maintaining the 1588 state machine, running the 1588 protocol and the 1588 loop algorithm, and reading the side-mounted FPGA (Field-Programmable Gate Array). ) The timestamp of the collection.
  • the timestamp is usually a sequence of characters that uniquely identifies the time of a certain moment.
  • the counter is not time-stamped, and there is no requirement for the start time. That is, when the device is powered on, the default time issued by the timestamp counter can be uniformly used. When the frequency is restored, the clock provided by the timestamp counter is counted.
  • the 1588 protocol is an accurate time synchronization protocol.
  • Two types of packets, event packets and general messages are defined in the 1588 protocol.
  • the event packet time concept packet is marked with an accurate timestamp when it enters and exits the device port.
  • the PTP calculates the link delay based on the timestamp carried in the event packet.
  • the event message contains the following four types: Sync, Delay_Req, Pdelay_Req, and Pdelay_Resp.
  • the first packet is an event packet.
  • the 1588 loop algorithm enables high-precision time synchronization calculations.
  • Step 12 Add a first time difference compensation value that is transmitted from the line card processing chip of the first device to the line card port in the first packet, to obtain a second packet.
  • the time difference compensation value described in the embodiment of the present disclosure can be obtained by manual compensation, and the time difference compensation value is added to the corresponding field of the message.
  • the manual compensation obtains the time difference compensation value, that is, the oscilloscope measures the transmission time of the message from the line card processing chip of the device to the line card port or from the line card port of the device to the line card processing chip, and the measured time is measured. A large amount of time data is averaged to obtain a time difference compensation value.
  • time difference compensation value can also be obtained in real time through the PTP system.
  • Step 13 the second packet is sent to the second device
  • the second message includes time information recorded in the first message.
  • the second message is sent from the line card port of the first device to the line card port of the second device.
  • Step 14 Obtain a third packet returned by the second device after receiving the second packet, where the third packet records that the second device receives the second packet, where Line card processing chip and line card end of the second device a second time difference compensation value and a third time difference compensation value transmitted between the ports;
  • the third packet includes time information recorded in the first packet and the second packet.
  • Step 15 Add a fourth time difference compensation value that is transmitted from the line card port of the first device to the line card processing chip in the third message, to obtain a fourth message;
  • the line card processing chip may be a PHY (Physical Layer) chip
  • the PHY chip generally refers to a chip that interfaces with an external signal.
  • Step 16 Calculate, according to the fourth packet, a delay time for packet transmission between the first device and the second device.
  • the fourth packet includes time information in the first packet, the second packet, and the third packet.
  • the second time difference compensation value is a time difference compensation value that is sent from the line card port of the second device to the line card processing chip, where the second message added in the second message is sent;
  • the third time difference compensation value is the line card processing chip added from the second device in the response message fed back after the second control device obtains the second message by the second device.
  • the time difference offset value transmitted to the line card port is the line card processing chip added from the second device in the response message fed back after the second control device obtains the second message by the second device.
  • the first time information includes: a first timestamp of the main control board and a first physical clock when the first message for frequency synchronization is created on the main control board of the first device frequency.
  • the third physical clock of the line card processing chip is recorded a second timestamp and a fourth physical clock frequency of the main control board when the second message is transmitted from the line card processing chip of the second device to the main control board of the second device;
  • the third message is also recorded in the third time of the main control board when the main control board of the second device creates the response message generated by the second message on the main control board.
  • a fifth physical clock frequency when the response message is transmitted from the main control board of the second device to the line card processing chip of the second device, the line card processes the sixth physical clock frequency of the chip;
  • the fourth message is further recorded when the third message is transmitted from the line card port of the first device to the line card processing chip of the first device, and the seventh physical clock of the line card processing chip a frequency; a fourth timestamp of the main control board and an eighth physical clock frequency when the fourth message is transmitted from the line card processing chip to the main control board of the first device.
  • timestamps on different devices are different because the default time of the device's timestamp counter is different. Therefore, the timestamps on different devices cannot be calculated. The time stamp of the same device can be calculated.
  • the time information of the packet passing through the internal components of the device is filled in the corresponding field of the packet. That is, the message in the embodiment of the present disclosure may have a fixed format.
  • the step 16 described in the embodiment of the present disclosure may further include:
  • Step 161 Obtain the first report according to the first physical clock frequency and the second physical clock frequency. Transmitting from the main control board of the first device to the first transfer time of the line card processing chip of the first device;
  • the second physical clock frequency of the line card processing chip of the first device is subtracted from the first physical clock frequency of the main control board of the first device, and the first packet is transmitted from the main control board of the first device to The physical clock frequency difference of the line card processing chip of the first device.
  • the jitter time of each clock frequency offset is 1/125 ms, that is, the time interval of 8 ns
  • the transmission time difference from the main control board to the line card processing chip is a CF domain difference, that is, the first message is from the first
  • the first transmission time of the main control board of the device transmitted to the line card processing chip of the first device is that the first message is transmitted from the main control board of the first device to the line card processing chip of the first device
  • the physical clock frequency difference is multiplied by the beat time of each clock offset.
  • Step 162 According to the third physical clock frequency and the fourth physical clock frequency, the second packet is transmitted from the line card processing chip of the second device to the main control board of the second device. Second transfer time;
  • the second transmission time is the difference between the fourth physical clock frequency of the line card processing chip of the second device minus the third physical clock frequency of the main control board of the second device multiplied by the frequency offset of each clock. The result of the beating time.
  • Step 163 According to the fifth physical clock frequency and the sixth physical clock frequency, obtain a third transmission of the response message from the main control board of the second device to the line card processing chip of the second device. time;
  • the third transmission time is the sixth physical clock frequency of the main control board of the second device minus the difference of the fifth physical clock frequency of the line card processing chip of the second device multiplied by the frequency offset of each clock. The result of the beating time.
  • Step 164 According to the seven physical clock frequencies and the eighth physical clock frequency, obtain the fourth packet from the line card processing chip of the first device to the fourth control panel of the first device. Transfer time
  • the fourth transmission time is the eighth physical clock frequency of the line card processing chip of the first device minus the difference of the seven physical clock frequencies of the main control board of the first device multiplied by the jitter of each clock frequency offset. The result of time.
  • Step 165 According to the first timestamp, the second timestamp, the third timestamp, the fourth timestamp, the first transmission time, the second transmission time, the third transmission time, the fourth transmission time, and the first time difference compensation
  • the value, the second time difference compensation value, the third time difference compensation value, and the fourth time difference compensation value are calculated by a preset algorithm to obtain a delay time of message transmission between the first device and the second device.
  • the step 165 may further include:
  • Delay [((T 4 -N 4 -t 4 )-(T 1 +N 1 +t 1 ))+((T 3 +N 3 +t 3 )-(T 2 -N 2 -t 2 ))] ⁇ 2, calculating a delay time of message transmission between the first device and the second device;
  • Delay represents a delay time for the message to be transmitted between the first device and the second device; T 1 is represented as the first timestamp; and T 2 is represented as the second timestamp ; T 3 is represented as the third time stamp; T 4 is represented as the fourth time stamp; N 1 is represented as the first transmission time; N 2 is represented as the second transmission time; N 3 is represented as a third transmission time; N 4 is represented as the fourth transmission time; t 1 is represented as the first time difference compensation value; t 2 is represented as the second time difference compensation value; t 3 is represented as the third time difference The compensation value; t 4 is expressed as the fourth time difference compensation value.
  • the method for optimizing time synchronization between communication network devices is used in a message when a message is transmitted from a line card processing chip of the device to a line card port or from a line card port of the device to a line card processing chip.
  • the time difference compensation value is added to reduce the delay error when the message is transmitted between the communication network devices, so that accurate time synchronization between the communication network devices can be realized, and the delay jitter requirement of the time synchronization switching of the device in the complex networking environment can be met.
  • an embodiment of the present disclosure further provides an apparatus for optimizing time synchronization between communication network devices, including:
  • the first obtaining module 21 is configured to acquire a first packet that is sent by the main control board of the first device to the second device, where the first packet is recorded with the first time information when the first packet is created. ;
  • FIG. 3 it is a schematic diagram of a packet transmission and reception path of a single device.
  • the central processing unit CPU on the main control board of the first device is responsible for maintaining the 1588 state machine, running the 1588 protocol and the 1588 loop algorithm, and reading the time stamp collected by the Field-Programmable Gate Array (Field-Programmable Gate Array). .
  • the timestamp is usually a sequence of characters that uniquely identifies the time of a certain moment.
  • the counter is not time-stamped, and there is no requirement for the start time. That is, when the device is powered on, the default time issued by the timestamp counter can be uniformly used. When the frequency is restored, the clock provided by the timestamp counter is counted.
  • the 1588 protocol is an accurate time synchronization protocol.
  • Two types of packets, event packets and general messages are defined in the 1588 protocol.
  • the event packet time concept packet is marked with an accurate timestamp when it enters and exits the device port.
  • the PTP calculates the link delay based on the timestamp carried in the event packet.
  • the event message contains the following four types: Sync, Delay_Req, Pdelay_Req, and Pdelay_Resp.
  • the first packet is an event packet.
  • the 1588 loop algorithm enables high-precision time synchronization calculations.
  • the first processing module 22 is configured to add, in the first packet, a first time difference compensation value that is sent from the line card processing chip of the first device to the line card port, to obtain a second message;
  • the time difference compensation value described in the embodiment of the present disclosure can be obtained by manual compensation, and the time difference compensation value is added to the corresponding field of the message.
  • the manual compensation obtains the time difference compensation value, that is, the oscilloscope measures the transmission time of the message from the line card processing chip of the device to the line card port or from the line card port of the device to the line card processing chip, and the measured time is measured. A large amount of time data is averaged to obtain a time difference compensation value.
  • time difference compensation value can also be obtained in real time through the PTP system.
  • the sending module 23 is configured to send the second packet to the second device
  • the second message includes time information recorded in the first message.
  • the second message is sent from the line card port of the first device to the line card port of the second device.
  • the second obtaining module 24 is configured to obtain a third packet that is returned after the second device receives the second packet, where the second packet records that the second device receives the second packet a second time difference compensation value and a third time difference compensation value transmitted between the line card processing chip of the second device and the line card port;
  • the third packet includes time information recorded in the first packet and the second packet.
  • the second processing module 25 is configured to add, in the third packet, a fourth time difference compensation value that is sent from the line card port of the first device to the line card processing chip, to obtain a fourth message;
  • the line card processing chip may be a PHY (Physical Layer) chip
  • the PHY chip generally refers to a chip that interfaces with an external signal.
  • the calculating module 26 is configured to calculate, according to the fourth packet, a delay time of message transmission between the first device and the second device.
  • the fourth packet includes time information in the first packet, the second packet, and the third packet.
  • the calculation module 26 calculates the single link delay time of the line card port of the first device to the line card port of the second device.
  • the second time difference compensation value is a time difference compensation value that is sent from the line card port of the second device to the line card processing chip, where the second message added in the second message is sent;
  • the third time difference compensation value is the line card processing chip added from the second device in the response message fed back after the second control device obtains the second message by the second device.
  • the time difference offset value transmitted to the line card port is the line card processing chip added from the second device in the response message fed back after the second control device obtains the second message by the second device.
  • the first time information includes: a first timestamp of the main control board and a first physical clock when the first message for frequency synchronization is created on the main control board of the first device frequency.
  • the third physical clock of the line card processing chip is recorded a second timestamp and a fourth physical clock frequency of the main control board when the second message is transmitted from the line card processing chip of the second device to the main control board of the second device;
  • the third message is also recorded in the third time of the main control board when the main control board of the second device creates the response message generated by the second message on the main control board.
  • a fifth physical clock frequency when the response message is transmitted from the main control board of the second device to the line card processing chip of the second device, the line card processes the sixth physical clock frequency of the chip;
  • the fourth message is further recorded when the third message is transmitted from the line card port of the first device to the line card processing chip of the first device, and the seventh physical clock of the line card processing chip a frequency; a fourth timestamp of the main control board and an eighth physical clock frequency when the fourth message is transmitted from the line card processing chip to the main control board of the first device.
  • timestamps on different devices are different because the default time of the device's timestamp counter is different. Therefore, the timestamps on different devices cannot be calculated. The time stamp of the same device can be calculated.
  • the time information of the packet passing through the internal components of the device is filled in the corresponding field of the packet. That is, the message in the embodiment of the present disclosure may have a fixed format.
  • calculation module 26 in the embodiment of the present disclosure may further include:
  • a first calculating unit configured to obtain according to the first physical clock frequency and the second physical clock frequency Transmitting, by the first control device of the first device, a first transmission time of the line card processing chip of the first device;
  • the second physical clock frequency of the line card processing chip of the first device is subtracted from the first physical clock frequency of the main control board of the first device, and the first packet is transmitted from the main control board of the first device to The physical clock frequency difference of the line card processing chip of the first device.
  • the jitter time of each clock frequency offset is 1/125 ms, that is, the time interval of 8 ns
  • the transmission time difference from the main control board to the line card processing chip is a CF domain difference, that is, the first message is from the first
  • the first transmission time of the main control board of the device transmitted to the line card processing chip of the first device is that the first message is transmitted from the main control board of the first device to the line card processing chip of the first device
  • the physical clock frequency difference is multiplied by the beat time of each clock offset.
  • a second calculating unit configured to transmit, according to the third physical clock frequency and the fourth physical clock frequency, the second packet from the line card processing chip of the second device to the second device The second transmission time of the main control board;
  • the second transmission time is the difference between the fourth physical clock frequency of the line card processing chip of the second device minus the third physical clock frequency of the main control board of the second device multiplied by the frequency offset of each clock. The result of the beating time.
  • a third calculating unit configured to: according to the fifth physical clock frequency and the sixth physical clock frequency, obtain the line card processing chip that is sent from the main control board of the second device to the second device Third transmission time;
  • the third transmission time is the sixth physical clock frequency of the main control board of the second device minus the difference of the fifth physical clock frequency of the line card processing chip of the second device multiplied by the frequency offset of each clock. The result of the beating time.
  • a fourth calculating unit configured to obtain, according to the seven physical clock frequencies and the eighth physical clock frequency, the fourth packet from the line card processing chip of the first device to the master of the first device The fourth transfer time of the board;
  • the fourth transmission time is the eighth physical clock frequency of the line card processing chip of the first device minus the difference of the seven physical clock frequencies of the main control board of the first device multiplied by the jitter of each clock frequency offset. The result of time.
  • a fifth calculating unit configured to be according to the first timestamp, the second timestamp, the third timestamp, the fourth timestamp, the first transmission time, the second transmission time, the third transmission time, the fourth transmission time, a first time difference compensation value, a second time difference compensation value, a third time difference compensation value, and a fourth time difference compensation value, and calculating, by using a preset algorithm, a delay time of message transmission between the first device and the second device .
  • Delay represents a delay time for the message to be transmitted between the first device and the second device; T 1 is represented as the first timestamp; and T 2 is represented as the second timestamp ; T 3 is represented as the third time stamp; T 4 is represented as the fourth time stamp; N 1 is represented as the first transmission time; N 2 is represented as the second transmission time; N 3 is represented as a third transmission time; N 4 is represented as the fourth transmission time; t 1 is represented as the first time difference compensation value; t 2 is represented as the second time difference compensation value; t 3 is represented as the third time difference The compensation value; t 4 is expressed as the fourth time difference compensation value.
  • the embodiment of the present disclosure further provides a first device, which is a communication network device, and includes: an apparatus for optimizing time synchronization between communication network devices as described in the foregoing embodiments.
  • the device for optimizing time synchronization between communication network devices is used in a message when a message is transmitted from a line card processing chip of the device to a line card port or from a line card port of the device to a line card processing chip.
  • the time difference compensation value is added to reduce the delay error when the message is transmitted between the communication network devices, so that accurate time synchronization between the communication network devices can be realized, and the delay jitter requirement of the time synchronization switching of the device in the complex networking environment can be met.
  • an embodiment of the present disclosure further provides an optimization method for time synchronization between communication network devices, which is applied to a second device, including:
  • Step 31 Receive a second packet sent by the first device.
  • the second message records the time information of the message when it is transmitted internally by the first device.
  • the first message created by the main control board of the first device is transmitted at a first time difference offset value from the line card processing chip of the first device to the line card port.
  • Step 32 Add, in the second packet, a second time difference compensation value that is sent from the line card port of the second device to the line card processing chip, and transmit the second message. To the main control board of the second device;
  • the time difference compensation value described in the embodiment of the present disclosure can be obtained by manual compensation, and the time difference compensation value is added to the corresponding field of the message.
  • the manual compensation obtains the time difference compensation value, that is, the oscilloscope measures the transmission time of the message from the line card processing chip of the device to the line card port or from the line card port of the device to the line card processing chip, and the measured time is measured. A large amount of time data is averaged to obtain a time difference compensation value.
  • time difference compensation value can also be obtained in real time through the PTP system.
  • Step 33 Receive a response message that is sent back by the main control board after obtaining the second packet.
  • response message is generated by the main control board according to the second message, and the response message includes the time information recorded in the second message.
  • Step 34 Add a third time difference compensation value that is sent from the line card processing chip of the second device to the line card port in the response message, to obtain a third message.
  • the third packet includes a third time difference compensation value that is sent from the line card processing chip of the second device to the line card port, and includes a response message. Other time information recorded in .
  • Step 35 The third packet is transmitted to the first device by using a line card port of the second device.
  • the first packet of the first device is configured to create the first packet
  • the first packet is added to the first packet from the first device.
  • the line card handles the first time difference offset value transmitted by the chip to the line card port.
  • the method for optimizing time synchronization between communication network devices is used in a message when a message is transmitted from a line card processing chip of the device to a line card port or from a line card port of the device to a line card processing chip.
  • the time difference compensation value is added to provide a calculation parameter, so that the delay error rate of the message transmitted between the communication network devices is reduced, thereby achieving accurate time synchronization between the communication network devices, and meeting the time synchronization switching of the device in a complex networking environment. Delay Jitter requirements.
  • the embodiment of the present disclosure further provides an apparatus for optimizing time synchronization between communication network devices, including:
  • the first receiving module 41 is configured to receive the second packet sent by the first device
  • the second message records the time information of the message when it is transmitted internally by the first device.
  • the first message created by the main control board of the first device is transmitted at a first time difference offset value from the line card processing chip of the first device to the line card port.
  • the third processing module 42 is configured to add, in the second packet, a second time difference compensation value that is sent from the line card port of the second device to the line card processing chip, and the second Transmitting the message to the main control board of the second device;
  • the time difference compensation value described in the embodiment of the present disclosure can be obtained by manual compensation, and the time difference compensation value is added to the corresponding field of the message.
  • the manual compensation obtains the time difference compensation value, that is, the oscilloscope measures the transmission time of the message from the line card processing chip of the device to the line card port or from the line card port of the device to the line card processing chip, and the measured time is measured. A large amount of time data is averaged to obtain a time difference compensation value.
  • time difference compensation value can also be obtained in real time through the PTP system.
  • the second receiving module 43 is configured to receive a response message that is sent back by the main control board after obtaining the second packet;
  • response message is generated by the main control board according to the second message, and the response message includes the time information recorded in the second message.
  • the fourth processing module 44 is configured to add a third time difference compensation value that is sent from the line card processing chip of the second device to the line card port in the response message, to obtain a third message;
  • the third packet includes a third time difference compensation value that is sent from the line card processing chip of the second device to the line card port, and includes a response message. Other time information recorded in .
  • the transmitting module 45 is configured to transmit the third packet to the first device by using a line card port of the second device.
  • the first packet of the first device is configured to create the first packet
  • the first packet is added to the first packet from the first device.
  • the line card handles the first time difference offset value transmitted by the chip to the line card port.
  • the embodiment of the present disclosure further provides a second device, which is a communication network device, and includes: an apparatus for optimizing time synchronization between communication network devices as described in the foregoing embodiment.
  • the device for optimizing time synchronization between communication network devices is used in a message when a message is transmitted from a line card processing chip of the device to a line card port or from a line card port of the device to a line card processing chip.
  • the time difference compensation value is added to provide a calculation parameter, so that the delay error rate of the message transmitted between the communication network devices is reduced, thereby achieving accurate time synchronization between the communication network devices, and meeting the time synchronization switching of the device in a complex networking environment. Delay jitter requirements.
  • the message time delay optimization map of the embodiment of the present disclosure illustrates the flow of messages as they travel between communication network devices.
  • Step 101 Perform frequency synchronization on the main control board and the line card of the same device.
  • the embodiment of the present disclosure takes the first device and the second device as an example.
  • the first device sends the request as a delay
  • the second device acts as the delay responder.
  • Step 102 The first packet of the first device is configured to form a first packet on the main control board, and the timestamp T1 and the first physical clock frequency of the moment are recorded in the first packet.
  • the first packet is also a PTP packet, that is, an event packet.
  • the first packet is configured on the 1588 related module of the main control board.
  • Step 103 After forwarding the first packet from the main control board to the line card processing chip, record the second physical clock frequency of the line card processing chip at the moment in the first message.
  • the first packet is forwarded from the main control board to the line card processing chip, the line card processing chip is a line card FPGA module; and the second physical clock frequency of the line card processing chip is acquired, the line card
  • the processing chip is a PHY chip.
  • Step 104 Add a first time difference compensation value t1 to the line card port after processing the first message by the line card processing chip, to obtain a second message.
  • Step 105 Send the second message to the second device.
  • the second packet includes time information of the first packet.
  • Step 106 Add a second time difference compensation value t2 that the line card processing chip receives the second message after receiving the second packet by the line card port of the second device.
  • Step 107 Record the third physical clock frequency of the line card processing chip at the time when the line card processing chip of the second device receives the second message.
  • Step 108 When the second packet is transmitted to the main control board by the line card processing chip of the second device, the second device acquires the second timestamp T2 and the fourth physical clock frequency of the main control board at the moment, and records the In the second message.
  • the second message passes through the line card FPGA module of the second device to the 1588 related module of the main control board.
  • Step 109 The main control board of the second device forms a response packet, and records the timestamp T3 and the fifth physical clock frequency of the main control board at the moment in the response message.
  • the 1588 related module of the main control board of the second device forms a response message according to the second message.
  • response message includes time information recorded in the second message.
  • Step 110 After the response packet is forwarded from the main control board to the line card processing chip, the sixth physical clock frequency of the line card processing chip acquired at the moment is recorded in the response message.
  • the response message is forwarded from the main control board to the line card FPGA module, and the sixth physical clock frequency of the line card processing chip is obtained, and the line card processing chip is a PHY chip.
  • Step 111 Add a third time difference compensation to the line card port after the line card processing chip of the second device processes the response message.
  • the value t3 gives a third message.
  • Step 112 Return the third message to the first device.
  • the third message includes time information recorded in the response message.
  • Step 113 Add a fourth packet to the line card processing chip of the first device to receive a fourth time difference compensation value t4 of the third packet, to obtain a fourth packet.
  • Step 114 Record the seventh physical clock frequency of the line card processing chip at the time when the line card processing chip of the first device receives the third message.
  • Step 115 When the fourth packet passes the line card processing chip of the first device to the main control board, the first device acquires the fourth timestamp T4 and the eighth physical clock frequency of the main control board at the moment, and records the Four messages.
  • the exemplary fourth message passes through the line card FPGA module of the first device to the 1588 related module of the main control board.
  • the fourth message includes the first message, the second message, and the time information recorded in the third message.
  • Step 116 Calculate the delay correction value.
  • the delay correction value is the CF domain difference between the main control board and the line card processing chip plus the time difference compensation of the line card processing chip to the line card port, that is, N+t.
  • CF domain difference between the main control board and the line card processing chip can be calculated by using the physical clock frequency recorded in the above steps. The calculation process is shown in the first embodiment, and is not described here.
  • the calculated delay time is a single link delay time.
  • Delay represents a delay time for the message to be transmitted between the first device and the second device; T 1 is represented as the first timestamp; and T 2 is represented as the second timestamp ; T 3 is represented as the third time stamp; T 4 is represented as the fourth time stamp; N 1 is represented as the first transmission time; N 2 is represented as the second transmission time; N 3 is represented as said third transmission time; N 4 is represented by said fourth transfer time; t 1 represents a compensation value for said first time difference; t 2 represents a compensation value for said second time difference; t 3 represents said third time difference The compensation value; t 4 is expressed as the fourth time difference compensation value.
  • the method and device for optimizing time synchronization between communication network devices are reported when the message is transmitted from the line card processing chip of the device to the line card port or from the line card port of the device to the line card processing chip.
  • the time difference compensation value is added to reduce the delay error when the message is transmitted between communication network devices, so that accurate time synchronization between communication network devices can be realized, and the delay jitter requirement of time synchronization switching of the device in a complex networking environment can be met. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The disclosure relates to a method, apparatus and device for optimizing time synchronization between communication network devices. The method comprises: acquiring a first message transmitted to a second device by a main control board of a first device; adding, in the first message, a first time difference compensation value for the first message to be transmitted from a line card processing chip of the first device to a line card port so as to obtain a second message; sending the second message to the second device; obtaining a third message returned by the second device after receiving the second message, wherein the third message records a time difference compensation value for the second message to be transmitted between a line card processing chip of the second device to a line card port after the second device receives the second message; adding, in the third message, a fourth time difference compensation value for the third message to be transmitted from the line card port of the first device to the line card processing chip so as to obtain a fourth message; and according to the fourth message, calculating a delay time of message transmission between the first device and the second device. The disclosure realizes precise time synchronization between communication network devices, and satisfies delay jitter requirements of the devices for time synchronization switching in a complex network environment.

Description

一种通信网络设备间时间同步的优化方法、装置及设备Method, device and device for optimizing time synchronization between communication network devices 技术领域Technical field

本公开涉及网络通信技术领域,特别是涉及一种通信网络设备间时间同步的优化方法、装置及设备。The present disclosure relates to the field of network communication technologies, and in particular, to a method, an apparatus, and a device for optimizing time synchronization between communication network devices.

背景技术Background technique

PTP(Precision Time Protocol,精确时钟同步协议)是一种主从同步系统,采用主从时钟方式,对时间信息进行编码,利用网络的对称性和延时测量技术,实现主从时间的同步。在系统的同步过程中,主时钟周期性发布PTP时间同步协议及时间信息,从时钟端口接收主时钟端口发来的时间戳信息,系统据此计算出主从线路时间延迟及主从时间差,并利用该时间差调整本地时间,使从设备时间保持与主设备时间一致的频率与相位。PTP (Precision Time Protocol) is a master-slave synchronization system that uses the master-slave clock to encode time information and utilizes network symmetry and delay measurement techniques to synchronize master-slave time. During the synchronization process of the system, the master clock periodically issues the PTP time synchronization protocol and time information, and receives the timestamp information sent by the master clock port from the clock port, and the system calculates the time delay of the master-slave line and the master-slave time difference, and The time difference is used to adjust the local time so that the slave time is kept at the same frequency and phase as the master time.

实际在实现时间同步功能时,由于信号在线路上传递会出现延时,设备可能无法测量出线路的延时,需要手工进行时延补偿。此时,设备需要支持各种接口的时延补偿功能。而且在网络中可能有主备两个时间源时,设备需要支持主时间源出现故障时自动跟踪备用时间源。另外,在环网或无线网状网络Mesh网结构下,设备需要支持从不同线路方向跟踪时间源,并且在当前跟踪方向出现故障时,能自动倒换到其他方向。例如,16个设备倒换产生的相位抖动要求小于+/-200ns。Actually, when the time synchronization function is implemented, the delay may occur due to the transmission of the signal on the line, and the device may not be able to measure the delay of the line, and the delay compensation needs to be manually performed. At this point, the device needs to support the delay compensation function of various interfaces. Moreover, when there may be two time sources in the network, the device needs to support the automatic tracking of the standby time source when the primary time source fails. In addition, in the ring network or wireless mesh network Mesh network structure, the device needs to support tracking the time source from different line directions, and can automatically switch to other directions when the current tracking direction fails. For example, 16 device switching requires a phase jitter requirement of less than +/- 200 ns.

相关技术中对不同设备,在不同线卡上组成的环型网络,处理通过不同类型单板,不同芯片单板PTP协议报文时,由于对时间信息报文的时延补偿处理精度的偏差,将导致从不同线路方向跟踪同一时间源的延时抖动变化非常的大,故无法满足从不同线路方向跟踪同一时间源的延时抖动要求。In the related art, when a PTP protocol packet of a different type of card and a different chip is processed by a different type of card, the delay of the delay compensation processing of the time information packet is affected. The delay jitter that causes the same time source to track from different line directions is very large, so the delay jitter requirement of tracking the same time source from different line directions cannot be met.

发明内容Summary of the invention

本公开要解决的技术问题在于提供一种通信网络设备间时间同步的优化方法、装置及设备,用以解决相关技术中设备无法满足在复杂组网环境下时间同步倒换的延时抖动要求的问题。The technical problem to be solved by the present disclosure is to provide a method, a device and a device for optimizing time synchronization between communication network devices, which are used to solve the problem that the device cannot meet the delay jitter requirement of time synchronization switching in a complex networking environment in the related art. .

为了解决上述技术问题,本公开实施例提供一种通信网络设备间时间同步的优化方法,应用于第一设备,包括:In order to solve the above technical problem, an embodiment of the present disclosure provides a method for optimizing time synchronization between communication network devices, which is applied to a first device, including:

获取所述第一设备的主控板传输至第二设备的第一报文,其中所述第一报文中记录有所述第一报文创建时的第一时间信息;And acquiring, by the first control board of the first device, a first packet that is sent to the second device, where the first packet is recorded with the first time information when the first packet is created;

在所述第一报文中增加所述第一报文从第一设备的线卡处理芯片传输到线卡端口的第一时差补偿值,获得第二报文;Adding, in the first packet, a first time difference compensation value that is sent from the line card processing chip of the first device to the line card port, to obtain a second packet;

将所述第二报文发送至第二设备;Sending the second packet to the second device;

获得所述第二设备接收所述第二报文后返回的第三报文,其中所述第三报文中记录有 所述第二设备接收所述第二报文后,在所述第二设备的线卡处理芯片与线卡端口之间传输的第二时差补偿值和第三时差补偿值;Obtaining, by the second device, a third packet returned after receiving the second packet, where the third packet is recorded a second time difference compensation value and a third time difference compensation value transmitted between the line card processing chip of the second device and the line card port after the second device receives the second message;

在所述第三报文中增加所述第三报文从第一设备的线卡端口传输至线卡处理芯片的第四时差补偿值,获得第四报文;Adding, in the third packet, a fourth time difference compensation value that is transmitted from the line card port of the first device to the line card processing chip, to obtain a fourth message;

根据所述第四报文,计算所述第一设备与所述第二设备之间报文传输的延时时间。And calculating, according to the fourth packet, a delay time for packet transmission between the first device and the second device.

其中,所述第二时差补偿值为在所述第二报文中增加的所述第二报文从所述第二设备的线卡端口传输至线卡处理芯片的时差补偿值;The second time difference compensation value is a time difference compensation value that is transmitted from the line card port of the second device to the line card processing chip, where the second message added in the second message is sent;

所述第三时差补偿值为在所述第二设备的主控板获得所述第二报文后反馈的回应报文中增加的所述回应报文从所述第二设备的线卡处理芯片传输至线卡端口的时差补偿值。The third time difference compensation value is the line card processing chip added from the second device in the response message fed back after the second control device obtains the second message by the second device. The time difference offset value transmitted to the line card port.

其中,所述第一时间信息包括:用于频率同步的第一报文在所述第一设备的主控板上创建时,所述主控板的第一时间戳以及第一物理时钟频率;The first time information includes: a first timestamp of the main control board and a first physical clock frequency when the first packet for frequency synchronization is created on the main control board of the first device;

所述第一报文中还记录有所述第一报文从所述主控板传输至所述第一设备的线卡处理芯片时,所述线卡处理芯片的第二物理时钟频率;Recording, in the first packet, the second physical clock frequency of the line card processing chip when the first packet is transmitted from the main control board to the line card processing chip of the first device;

所述第二报文中记录有所述第二报文从所述第二设备的线卡端口传输至所述第二设备的线卡处理芯片时,所述线卡处理芯片的第三物理时钟频率;所述第二报文从所述第二设备的线卡处理芯片传输至所述第二设备的主控板时所述主控板的第二时间戳以及第四物理时钟频率;When the second packet is recorded from the line card port of the second device to the line card processing chip of the second device, the third physical clock of the line card processing chip is recorded a second timestamp and a fourth physical clock frequency of the main control board when the second message is transmitted from the line card processing chip of the second device to the main control board of the second device;

所述第三报文中还记录有所述第二设备的主控板根据所述第二报文生成的回应报文在所述主控板上创建时,所述主控板的第三时间戳以及第五物理时钟频率;所述回应报文从所述第二设备的主控板传输至所述第二设备的线卡处理芯片时,所述线卡处理芯片的第六物理时钟频率;The third message is also recorded in the third time of the main control board when the main control board of the second device creates the response message generated by the second message on the main control board. And a fifth physical clock frequency; when the response message is transmitted from the main control board of the second device to the line card processing chip of the second device, the line card processes the sixth physical clock frequency of the chip;

所述第四报文还记录有所述第三报文从所述第一设备的线卡端口传输至所述第一设备的线卡处理芯片时,所述线卡处理芯片的第七物理时钟频率;所述第四报文从所述线卡处理芯片传输至所述第一设备的主控板时,所述主控板的第四时间戳以及第八物理时钟频率。The fourth message is further recorded when the third message is transmitted from the line card port of the first device to the line card processing chip of the first device, and the seventh physical clock of the line card processing chip a frequency; a fourth timestamp of the main control board and an eighth physical clock frequency when the fourth message is transmitted from the line card processing chip to the main control board of the first device.

其中,所述根据所述第四报文,计算所述第一设备与所述第二设备之间报文传输的延时时间的步骤包括:The step of calculating a delay time of packet transmission between the first device and the second device according to the fourth packet includes:

根据所述第一物理时钟频率以及所述第二物理时钟频率,得到所述第一报文从所述第一设备的主控板传输至所述第一设备的线卡处理芯片的第一传送时间;Obtaining, according to the first physical clock frequency and the second physical clock frequency, the first transmission of the first packet from the main control board of the first device to the line card processing chip of the first device time;

根据所述第三物理时钟频率以及所述第四物理时钟频率,得到所述第二报文从所述第二设备的线卡处理芯片传输至所述第二设备的主控板的第二传送时间;Obtaining, according to the third physical clock frequency and the fourth physical clock frequency, the second transmission of the second packet from the line card processing chip of the second device to the main control board of the second device time;

根据第五物理时钟频率以及所述第六物理时钟频率,得到所述回应报文从所述第二设备的主控板传输至所述第二设备的线卡处理芯片的第三传送时间;Obtaining, according to the fifth physical clock frequency and the sixth physical clock frequency, a third transmission time of the response message transmitted from the main control board of the second device to the line card processing chip of the second device;

根据所述七物理时钟频率以及所述第八物理时钟频率,得到所述第四报文从所述第一设备的线卡处理芯片到所述第一设备的主控板的第四传送时间; And obtaining, according to the seven physical clock frequencies and the eighth physical clock frequency, a fourth transmission time of the fourth packet from the line card processing chip of the first device to the main control board of the first device;

根据所述第一时间戳、第二时间戳、第三时间戳、第四时间戳、第一传送时间、第二传送时间、第三传送时间、第四传送时间、第一时差补偿值、第二时差补偿值、第三时差补偿值、第四时差补偿值,通过预设算法计算得到所述第一设备与所述第二设备之间报文传输的延时时间。Determining, according to the first timestamp, the second timestamp, the third timestamp, the fourth timestamp, the first transmission time, the second transmission time, the third transmission time, the fourth transmission time, the first time difference compensation value, The two-time difference compensation value, the third time difference compensation value, and the fourth time difference compensation value are calculated by a preset algorithm to obtain a delay time of message transmission between the first device and the second device.

其中,所述根据所述第一时间戳、第二时间戳、第三时间戳、第四时间戳、第一传送时间、第二传送时间、第三传送时间、第四传送时间、第一时差补偿值、第二时差补偿值、第三时差补偿值、第四时差补偿值,通过预设算法计算得到所述第一设备与所述第二设备之间报文传输的延时时间的步骤包括:The first timestamp, the second timestamp, the third timestamp, the fourth timestamp, the first transmission time, the second transmission time, the third transmission time, the fourth transmission time, and the first time difference The step of calculating the delay time of the message transmission between the first device and the second device by using a preset algorithm includes: a compensation value, a second time difference compensation value, a third time difference compensation value, and a fourth time difference compensation value; :

根据公式Delay=[((T4-N4-t4)-(T1+N1+t1))+((T3+N3+t3)-(T2-N2-t2))]÷2,计算得到所述第一设备与所述第二设备之间报文传输的延时时间;According to the formula Delay=[((T 4 -N 4 -t 4 )-(T 1 +N 1 +t 1 ))+((T 3 +N 3 +t 3 )-(T 2 -N 2 -t 2 ))] ÷ 2, calculating a delay time of message transmission between the first device and the second device;

其中,Delay表示为所述报文在所述第一设备与所述第二设备之间传送的延时时间;T1表示为所述第一时间戳;T2表示为所述第二时间戳;T3表示为所述第三时间戳;T4表示为所述第四时间戳;N1表示为所述第一传送时间;N2表示为所述第二传送时间;N3表示为所述第三传送时间;N4表示为所述第四传送时间;t1表示为所述第一时差补偿值;t2表示为所述第二时差补偿值;t3表示为所述第三时差补偿值;t4表示为所述第四时差补偿值。Delay represents a delay time for the message to be transmitted between the first device and the second device; T 1 is represented as the first timestamp; and T 2 is represented as the second timestamp ; T 3 is represented as a third time stamp; T 4 represents said fourth time stamp; N 1 is expressed as the first transmission time; N 2 of the second transmission time is represented; N 3 is represented by a third transmission time; N 4 is represented as the fourth transmission time; t 1 is represented as the first time difference compensation value; t 2 is represented as the second time difference compensation value; t 3 is represented as the third time difference The compensation value; t 4 is expressed as the fourth time difference compensation value.

本公开实施例还提供一种通信网络设备间时间同步的优化装置,包括:The embodiment of the present disclosure further provides an apparatus for optimizing time synchronization between communication network devices, including:

第一获取模块,设置为获取第一设备的主控板传输至第二设备的第一报文,其中所述第一报文中记录有所述第一报文创建时的第一时间信息;a first acquiring module, configured to acquire a first packet that is transmitted by the main control board of the first device to the second device, where the first packet is recorded with the first time information when the first packet is created;

第一处理模块,设置为在所述第一报文中增加所述第一报文从第一设备的线卡处理芯片传输到线卡端口的第一时差补偿值,获得第二报文;The first processing module is configured to add, in the first packet, a first time difference compensation value that is sent from the line card processing chip of the first device to the line card port, to obtain a second message;

发送模块,设置为将所述第二报文发送至第二设备;a sending module, configured to send the second packet to the second device;

第二获取模块,设置为获得所述第二设备接收所述第二报文后返回的第三报文,其中所述第三报文中记录有所述第二设备接收所述第二报文后,在所述第二设备的线卡处理芯片与线卡端口之间传输的第二时差补偿值和第三时差补偿值;a second acquiring module, configured to obtain a third packet that is returned after the second device receives the second packet, where the second packet records that the second device receives the second packet a second time difference compensation value and a third time difference compensation value transmitted between the line card processing chip of the second device and the line card port;

第二处理模块,设置为在所述第三报文中增加所述第三报文从第一设备的线卡端口传输至线卡处理芯片的第四时差补偿值,获得第四报文;a second processing module, configured to add, in the third packet, a fourth time difference compensation value that is sent from the line card port of the first device to the line card processing chip, to obtain a fourth message;

计算模块,设置为根据所述第四报文,计算所述第一设备与所述第二设备之间报文传输的延时时间。The calculating module is configured to calculate, according to the fourth packet, a delay time for packet transmission between the first device and the second device.

本公开实施例还提供一种第一设备,包括:如上述实施例所述的通信网络设备间时间同步的优化装置。The embodiment of the present disclosure further provides a first device, including: an apparatus for optimizing time synchronization between communication network devices as described in the foregoing embodiments.

本公开实施例还提供一种通信网络设备间时间同步的优化方法,应用于第二设备,所述方法包括:The embodiment of the present disclosure further provides an optimization method for time synchronization between communication network devices, which is applied to a second device, and the method includes:

接收第一设备发送的第二报文;Receiving a second packet sent by the first device;

在所述第二报文中增加所述第二报文从所述第二设备的线卡端口传输至线卡处理芯 片的第二时差补偿值,并将所述第二报文传输至所述第二设备的主控板;Adding, in the second packet, the second packet from the line card port of the second device to the line card processing core a second time difference compensation value of the slice, and transmitting the second message to the main control board of the second device;

接收所述主控板获得所述第二报文后反馈的回应报文;Receiving, by the main control board, a response message that is fed back after the second packet;

在所述回应报文中增加所述回应报文从所述第二设备的线卡处理芯片传输至线卡端口的第三时差补偿值,获得第三报文;And adding, in the response packet, a third time difference compensation value that is sent from the line card processing chip of the second device to the line card port, to obtain a third message;

将所述第三报文通过所述第二设备的线卡端口传输至所述第一设备。Transmitting the third packet to the first device by using a line card port of the second device.

其中,所述第二报文中记录有所述第一设备的主控板创建第一报文后,在所述第一报文中增加所述第一报文从所述第一设备的线卡处理芯片传输到线卡端口的第一时差补偿值。After the first packet of the first device is recorded in the second packet, the first packet is added to the line of the first device in the first packet. The first time difference compensation value that the card processing chip transmits to the line card port.

本公开实施例还提供一种通信网络设备间时间同步的优化装置,包括:The embodiment of the present disclosure further provides an apparatus for optimizing time synchronization between communication network devices, including:

第一接收模块,设置为接收第一设备发送的第二报文;The first receiving module is configured to receive the second packet sent by the first device;

第三处理模块,设置为在所述第二报文中增加所述第二报文从第二设备的线卡端口传输至线卡处理芯片的第二时差补偿值,并将所述第二报文传输至所述第二设备的主控板;a third processing module, configured to add, in the second packet, a second time difference compensation value that is sent from the line card port of the second device to the line card processing chip, and the second report is Transmitting to the main control board of the second device;

第二接收模块,设置为接收所述主控板获得所述第二报文后反馈的回应报文;a second receiving module, configured to receive a response message that is received by the main control board after obtaining the second packet;

第四处理模块,设置为在所述回应报文中增加所述回应报文从所述第二设备的线卡处理芯片传输至线卡端口的第三时差补偿值,获得第三报文;The fourth processing module is configured to add a third time difference compensation value that is sent from the line card processing chip of the second device to the line card port in the response message, to obtain a third message;

传输模块,设置为将所述第三报文通过所述第二设备的线卡端口传输至所述第一设备。And a transmission module, configured to transmit the third packet to the first device by using a line card port of the second device.

本公开实施例还提供一种第二设备,包括:如上述实施例所述的通信网络设备间时间同步的优化装置。The embodiment of the present disclosure further provides a second device, including: an apparatus for optimizing time synchronization between communication network devices as described in the foregoing embodiments.

本公开实施例还提供一种存储介质,设置为存储程序代码,所述程序代码用于执行如上任一实施例提供的通信网络设备间时间同步的优化方法。The embodiment of the present disclosure further provides a storage medium, configured to store program code, where the program code is used to perform an optimization method for time synchronization between communication network devices provided by any of the above embodiments.

本公开的上述技术方案的有益效果如下:The beneficial effects of the above technical solutions of the present disclosure are as follows:

本公开的上述方案中,通过当报文从设备的线卡处理芯片传输到线卡端口或从设备的线卡端口传输到线卡处理芯片时在报文中增加时差补偿值,减少报文在通信网络设备间传输时的延时误差,从而可实现通信网络设备间精确的时间同步,满足设备在复杂组网环境下时间同步倒换的延时抖动要求。In the above solution of the present disclosure, when the message is transmitted from the line card processing chip of the device to the line card port or from the line card port of the device to the line card processing chip, the time difference compensation value is added in the message, and the message is reduced. The delay error during transmission between communication network devices can realize accurate time synchronization between communication network devices and meet the delay jitter requirements of time synchronization switching of devices in complex networking environments.

附图说明DRAWINGS

图1为本公开实施例的通信网络设备间时间同步的优化方法的基本步骤流程图;1 is a flow chart showing the basic steps of a method for optimizing time synchronization between communication network devices according to an embodiment of the present disclosure;

图2为本公开实施例的通信网络设备间时间同步的优化装置的组成结构示意图;2 is a schematic structural diagram of a device for optimizing time synchronization between communication network devices according to an embodiment of the present disclosure;

图3为单个设备的报文收发路径示意图;FIG. 3 is a schematic diagram of a packet sending and receiving path of a single device;

图4为设备间报文传输时延示意图;4 is a schematic diagram of a packet transmission delay between devices;

图5为本公开实施例的又一通信网络设备间时间同步的优化方法的基本步骤流程图;FIG. 5 is a flowchart of basic steps of a method for optimizing time synchronization between communication network devices according to an embodiment of the present disclosure;

图6为本公开实施例的又一通信网络设备间时间同步的优化装置的组成结构示意图;FIG. 6 is a schematic structural diagram of another apparatus for optimizing time synchronization between communication network devices according to an embodiment of the present disclosure;

图7为本公开实施例的报文时间延时优化图。 FIG. 7 is a timing diagram of packet time delay optimization according to an embodiment of the present disclosure.

具体实施方式detailed description

为使本公开要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。The technical problems, the technical solutions, and the advantages of the present invention will be more clearly described in conjunction with the accompanying drawings and specific embodiments.

本公开针对相关技术中设备无法满足在复杂组网环境下时间同步倒换的延时抖动要求的问题,提供一种通信网络设备间时间同步的优化方法,减少报文在通信网络设备间传输时的延时误差,实现通信网络设备间精确的时间同步,满足设备在复杂组网环境下时间同步倒换的延时抖动要求。The present disclosure is directed to the problem that the device in the related art cannot meet the delay jitter requirement of time synchronization switching in a complex networking environment, and provides an optimization method for time synchronization between communication network devices, which reduces the transmission of packets between communication network devices. The delay error enables accurate time synchronization between communication network devices and meets the delay jitter requirements of time synchronization switching of devices in complex networking environments.

第一实施例First embodiment

如图1所示,本公开实施例提供一种通信网络设备间时间同步的优化方法,包括:As shown in FIG. 1 , an embodiment of the present disclosure provides a method for optimizing time synchronization between communication network devices, including:

步骤11,获取所述第一设备的主控板传输至第二设备的第一报文,其中所述第一报文中记录有所述第一报文创建时的第一时间信息;Step 11: Acquire a first packet that is sent by the main control board of the first device to the second device, where the first packet is recorded with the first time information when the first packet is created.

需要说明的是,第一设备的主控板上的中央处理器CPU负责维护1588状态机,运行1588协议和1588环路算法,读取侧挂FPGA(Field-Programmable Gate Array,现场可编程门阵列)搜集的时间戳。It should be noted that the central processing unit CPU on the main control board of the first device is responsible for maintaining the 1588 state machine, running the 1588 protocol and the 1588 loop algorithm, and reading the side-mounted FPGA (Field-Programmable Gate Array). ) The timestamp of the collection.

需说明的是,时间戳通常是一个字符序列,唯一地标识某一刻的时间。It should be noted that the timestamp is usually a sequence of characters that uniquely identifies the time of a certain moment.

这里,侧挂FPGA为频率恢复提供时间戳时,不对计数器进行时间戳调整,对起始时间无要求。也就是,设备刚上电时,可以统一使用时间戳计数器发布的默认时间,用于频率恢复时,时间戳计数器提供的时钟进行计数。Here, when the side-mounted FPGA provides a time stamp for frequency recovery, the counter is not time-stamped, and there is no requirement for the start time. That is, when the device is powered on, the default time issued by the timestamp counter can be uniformly used. When the frequency is restored, the clock provided by the timestamp counter is counted.

这里,1588协议为精准时间同步协议。在1588协议中定义了两种报文,事件报文和通用报文。其中,事件报文时间概念报文,进出设备端口时打上精确的时间戳,PTP根据事件报文携带的时间戳,计算链路延迟。事件报文包含以下4种:Sync、Delay_Req、Pdelay_Req和Pdelay_Resp。这里,所述第一报文即为事件报文。Here, the 1588 protocol is an accurate time synchronization protocol. Two types of packets, event packets and general messages are defined in the 1588 protocol. The event packet time concept packet is marked with an accurate timestamp when it enters and exits the device port. The PTP calculates the link delay based on the timestamp carried in the event packet. The event message contains the following four types: Sync, Delay_Req, Pdelay_Req, and Pdelay_Resp. Here, the first packet is an event packet.

1588环路算法可实现高精度时间同步的计算。The 1588 loop algorithm enables high-precision time synchronization calculations.

步骤12,在所述第一报文中增加所述第一报文从第一设备的线卡处理芯片传输到线卡端口的第一时差补偿值,获得第二报文;Step 12: Add a first time difference compensation value that is transmitted from the line card processing chip of the first device to the line card port in the first packet, to obtain a second packet.

需要说明的是,本公开实施例中所述的时差补偿值可通过手动补偿的方式来获取,并将时差补偿值增加至报文的相应字段中。这里的手动补偿获取时差补偿值也就是通过示波器来测出报文从设备的线卡处理芯片到线卡端口或从设备的线卡端口到线卡处理芯片间的传送时间,通过对测得的大量的时间数据求取平均值,最终得到时差补偿值。It should be noted that the time difference compensation value described in the embodiment of the present disclosure can be obtained by manual compensation, and the time difference compensation value is added to the corresponding field of the message. Here, the manual compensation obtains the time difference compensation value, that is, the oscilloscope measures the transmission time of the message from the line card processing chip of the device to the line card port or from the line card port of the device to the line card processing chip, and the measured time is measured. A large amount of time data is averaged to obtain a time difference compensation value.

当然,也可通过PTP系统来实时获取时差补偿值。Of course, the time difference compensation value can also be obtained in real time through the PTP system.

步骤13,将所述第二报文发送至第二设备;Step 13, the second packet is sent to the second device;

这里需要说明的是,该第二报文中包括有第一报文中记录的时间信息。第二报文从第一设备的线卡端口发送至第二设备的线卡端口。It should be noted that the second message includes time information recorded in the first message. The second message is sent from the line card port of the first device to the line card port of the second device.

步骤14,获得所述第二设备接收所述第二报文后返回的第三报文,其中所述第三报文中记录有所述第二设备接收所述第二报文后,在所述第二设备的线卡处理芯片与线卡端 口之间传输的第二时差补偿值和第三时差补偿值;Step 14: Obtain a third packet returned by the second device after receiving the second packet, where the third packet records that the second device receives the second packet, where Line card processing chip and line card end of the second device a second time difference compensation value and a third time difference compensation value transmitted between the ports;

需要说明的是,第三报文中包括有第一报文和第二报文中记录的时间信息。It should be noted that the third packet includes time information recorded in the first packet and the second packet.

步骤15,在所述第三报文中增加所述第三报文从第一设备的线卡端口传输至线卡处理芯片的第四时差补偿值,获得第四报文;Step 15: Add a fourth time difference compensation value that is transmitted from the line card port of the first device to the line card processing chip in the third message, to obtain a fourth message;

这里,线卡处理芯片可以是PHY(Physical Layer,物理层)芯片,该PHY芯片一般指与外部信号接口的芯片。Here, the line card processing chip may be a PHY (Physical Layer) chip, and the PHY chip generally refers to a chip that interfaces with an external signal.

步骤16,根据所述第四报文,计算所述第一设备与所述第二设备之间报文传输的延时时间。Step 16: Calculate, according to the fourth packet, a delay time for packet transmission between the first device and the second device.

需要说明的是,第四报文中包括有第一报文、第二报文和第三报文中的时间信息。It should be noted that the fourth packet includes time information in the first packet, the second packet, and the third packet.

示例性的,所述第二时差补偿值为在所述第二报文中增加的所述第二报文从所述第二设备的线卡端口传输至线卡处理芯片的时差补偿值;Exemplarily, the second time difference compensation value is a time difference compensation value that is sent from the line card port of the second device to the line card processing chip, where the second message added in the second message is sent;

所述第三时差补偿值为在所述第二设备的主控板获得所述第二报文后反馈的回应报文中增加的所述回应报文从所述第二设备的线卡处理芯片传输至线卡端口的时差补偿值。The third time difference compensation value is the line card processing chip added from the second device in the response message fed back after the second control device obtains the second message by the second device. The time difference offset value transmitted to the line card port.

示例性的,所述第一时间信息包括:用于频率同步的第一报文在所述第一设备的主控板上创建时,所述主控板的第一时间戳以及第一物理时钟频率。Exemplarily, the first time information includes: a first timestamp of the main control board and a first physical clock when the first message for frequency synchronization is created on the main control board of the first device frequency.

所述第一报文中还记录有所述第一报文从所述主控板传输至所述第一设备的线卡处理芯片时,所述线卡处理芯片的第二物理时钟频率;Recording, in the first packet, the second physical clock frequency of the line card processing chip when the first packet is transmitted from the main control board to the line card processing chip of the first device;

所述第二报文中记录有所述第二报文从所述第二设备的线卡端口传输至所述第二设备的线卡处理芯片时,所述线卡处理芯片的第三物理时钟频率;所述第二报文从所述第二设备的线卡处理芯片传输至所述第二设备的主控板时所述主控板的第二时间戳以及第四物理时钟频率;When the second packet is recorded from the line card port of the second device to the line card processing chip of the second device, the third physical clock of the line card processing chip is recorded a second timestamp and a fourth physical clock frequency of the main control board when the second message is transmitted from the line card processing chip of the second device to the main control board of the second device;

所述第三报文中还记录有所述第二设备的主控板根据所述第二报文生成的回应报文在所述主控板上创建时,所述主控板的第三时间戳以及第五物理时钟频率;所述回应报文从所述第二设备的主控板传输至所述第二设备的线卡处理芯片时,所述线卡处理芯片的第六物理时钟频率;The third message is also recorded in the third time of the main control board when the main control board of the second device creates the response message generated by the second message on the main control board. And a fifth physical clock frequency; when the response message is transmitted from the main control board of the second device to the line card processing chip of the second device, the line card processes the sixth physical clock frequency of the chip;

所述第四报文还记录有所述第三报文从所述第一设备的线卡端口传输至所述第一设备的线卡处理芯片时,所述线卡处理芯片的第七物理时钟频率;所述第四报文从所述线卡处理芯片传输至所述第一设备的主控板时,所述主控板的第四时间戳以及第八物理时钟频率。The fourth message is further recorded when the third message is transmitted from the line card port of the first device to the line card processing chip of the first device, and the seventh physical clock of the line card processing chip a frequency; a fourth timestamp of the main control board and an eighth physical clock frequency when the fourth message is transmitted from the line card processing chip to the main control board of the first device.

需要说明的是,不同设备上的时间戳由于设备的时间戳计数器发布的默认时间不同,故不可以将不同设备上的时间戳不可做计算。同一设备的时间戳可以做计算。It should be noted that the timestamps on different devices are different because the default time of the device's timestamp counter is different. Therefore, the timestamps on different devices cannot be calculated. The time stamp of the same device can be calculated.

需说明的是,在报文的传输过程中会将报文经过设备内部的部件时的时间信息填写至报文的相应字段中。也就是说,本公开实施例中的报文可具有固定的格式。It should be noted that, during the transmission of the packet, the time information of the packet passing through the internal components of the device is filled in the corresponding field of the packet. That is, the message in the embodiment of the present disclosure may have a fixed format.

优选地,本公开实施例中所述步骤16还可包括:Preferably, the step 16 described in the embodiment of the present disclosure may further include:

步骤161,根据所述第一物理时钟频率以及所述第二物理时钟频率,得到所述第一报 文从所述第一设备的主控板传输至所述第一设备的线卡处理芯片的第一传送时间;Step 161: Obtain the first report according to the first physical clock frequency and the second physical clock frequency. Transmitting from the main control board of the first device to the first transfer time of the line card processing chip of the first device;

这里,第一设备的线卡处理芯片的的第二物理时钟频率减去第一设备的主控板的第一物理时钟频率,得到第一报文从所述第一设备的主控板传输至所述第一设备的线卡处理芯片的物理时钟频率差值。这里,每次时钟频偏的跳动时间为1/125ms,即8ns的时间间隔,从主控板到线卡处理芯片的传送时间差为CF域差,也就是,第一报文从所述第一设备的主控板传输至所述第一设备的线卡处理芯片的第一传送时间为第一报文从所述第一设备的主控板传输至所述第一设备的线卡处理芯片的物理时钟频率差值乘以每次时钟频偏的跳动时间所得到的结果。Here, the second physical clock frequency of the line card processing chip of the first device is subtracted from the first physical clock frequency of the main control board of the first device, and the first packet is transmitted from the main control board of the first device to The physical clock frequency difference of the line card processing chip of the first device. Here, the jitter time of each clock frequency offset is 1/125 ms, that is, the time interval of 8 ns, and the transmission time difference from the main control board to the line card processing chip is a CF domain difference, that is, the first message is from the first The first transmission time of the main control board of the device transmitted to the line card processing chip of the first device is that the first message is transmitted from the main control board of the first device to the line card processing chip of the first device The physical clock frequency difference is multiplied by the beat time of each clock offset.

步骤162,根据所述第三物理时钟频率以及所述第四物理时钟频率,得到所述第二报文从所述第二设备的线卡处理芯片传输至所述第二设备的主控板的第二传送时间;Step 162: According to the third physical clock frequency and the fourth physical clock frequency, the second packet is transmitted from the line card processing chip of the second device to the main control board of the second device. Second transfer time;

需要说明的是,第二传送时间为第二设备的线卡处理芯片的第四物理时钟频率减去第二设备的主控板的第三物理时钟频率的差值乘以每次时钟频偏的跳动时间所得到的结果。It should be noted that the second transmission time is the difference between the fourth physical clock frequency of the line card processing chip of the second device minus the third physical clock frequency of the main control board of the second device multiplied by the frequency offset of each clock. The result of the beating time.

步骤163,根据第五物理时钟频率以及所述第六物理时钟频率,得到所述回应报文从所述第二设备的主控板传输至所述第二设备的线卡处理芯片的第三传送时间;Step 163: According to the fifth physical clock frequency and the sixth physical clock frequency, obtain a third transmission of the response message from the main control board of the second device to the line card processing chip of the second device. time;

需要说明的是,第三传送时间为第二设备的主控板的第六物理时钟频率减去第二设备的线卡处理芯片的第五物理时钟频率的差值乘以每次时钟频偏的跳动时间所得到的结果。It should be noted that the third transmission time is the sixth physical clock frequency of the main control board of the second device minus the difference of the fifth physical clock frequency of the line card processing chip of the second device multiplied by the frequency offset of each clock. The result of the beating time.

步骤164,根据所述七物理时钟频率以及所述第八物理时钟频率,得到所述第四报文从所述第一设备的线卡处理芯片到所述第一设备的主控板的第四传送时间;Step 164: According to the seven physical clock frequencies and the eighth physical clock frequency, obtain the fourth packet from the line card processing chip of the first device to the fourth control panel of the first device. Transfer time

需要说明的是,第四传送时间为第一设备的线卡处理芯片的第八物理时钟频率减去第一设备的主控板的七物理时钟频率的差值乘以每次时钟频偏的跳动时间所得到的结果。It should be noted that the fourth transmission time is the eighth physical clock frequency of the line card processing chip of the first device minus the difference of the seven physical clock frequencies of the main control board of the first device multiplied by the jitter of each clock frequency offset. The result of time.

步骤165,根据所述第一时间戳、第二时间戳、第三时间戳、第四时间戳、第一传送时间、第二传送时间、第三传送时间、第四传送时间、第一时差补偿值、第二时差补偿值、第三时差补偿值、第四时差补偿值,通过预设算法计算得到所述第一设备与所述第二设备之间报文传输的延时时间。Step 165: According to the first timestamp, the second timestamp, the third timestamp, the fourth timestamp, the first transmission time, the second transmission time, the third transmission time, the fourth transmission time, and the first time difference compensation The value, the second time difference compensation value, the third time difference compensation value, and the fourth time difference compensation value are calculated by a preset algorithm to obtain a delay time of message transmission between the first device and the second device.

这里,优选的,所述步骤165还可包括:Here, preferably, the step 165 may further include:

步骤1651,Step 1651,

根据公式Delay=[((T4-N4-t4)-(T1+N1+t1))+((T3+N3+t3)-(T2-N2-t2))]÷2,计算得到所述第一设备与所述第二设备之间报文传输的延时时间;According to the formula Delay=[((T 4 -N 4 -t 4 )-(T 1 +N 1 +t 1 ))+((T 3 +N 3 +t 3 )-(T 2 -N 2 -t 2 ))] ÷ 2, calculating a delay time of message transmission between the first device and the second device;

其中,Delay表示为所述报文在所述第一设备与所述第二设备之间传送的延时时间;T1表示为所述第一时间戳;T2表示为所述第二时间戳;T3表示为所述第三时间戳;T4表示为所述第四时间戳;N1表示为所述第一传送时间;N2表示为所述第二传送时间;N3表示为所述第三传送时间;N4表示为所述第四传送时间;t1表示为所述第一时差补偿值;t2表示为所述第二时差补偿值;t3表示为所述第三时差补偿值;t4表示为所述第四时差补偿值。Delay represents a delay time for the message to be transmitted between the first device and the second device; T 1 is represented as the first timestamp; and T 2 is represented as the second timestamp ; T 3 is represented as the third time stamp; T 4 is represented as the fourth time stamp; N 1 is represented as the first transmission time; N 2 is represented as the second transmission time; N 3 is represented as a third transmission time; N 4 is represented as the fourth transmission time; t 1 is represented as the first time difference compensation value; t 2 is represented as the second time difference compensation value; t 3 is represented as the third time difference The compensation value; t 4 is expressed as the fourth time difference compensation value.

需要说明的,对于多台设备的延时时间,可采用上述方法,分别求得两两设备间的延 时时间,最后再做求和计算即可。It should be noted that for the delay time of multiple devices, the above method can be used to obtain the delay between the two devices. Time, and finally do summation calculation.

本公开实施例提供的通信网络设备间时间同步的优化方法,通过当报文从设备的线卡处理芯片传输到线卡端口或从设备的线卡端口传输到线卡处理芯片时在报文中增加时差补偿值,减少报文在通信网络设备间传输时的延时误差,从而可实现通信网络设备间精确的时间同步,满足设备在复杂组网环境下时间同步倒换的延时抖动要求。The method for optimizing time synchronization between communication network devices provided by the embodiments of the present disclosure is used in a message when a message is transmitted from a line card processing chip of the device to a line card port or from a line card port of the device to a line card processing chip. The time difference compensation value is added to reduce the delay error when the message is transmitted between the communication network devices, so that accurate time synchronization between the communication network devices can be realized, and the delay jitter requirement of the time synchronization switching of the device in the complex networking environment can be met.

第二实施例Second embodiment

如图2所示,本公开实施例还提供一种通信网络设备间时间同步的优化装置,包括:As shown in FIG. 2, an embodiment of the present disclosure further provides an apparatus for optimizing time synchronization between communication network devices, including:

第一获取模块21,设置为获取第一设备的主控板传输至第二设备的第一报文,其中所述第一报文中记录有所述第一报文创建时的第一时间信息;The first obtaining module 21 is configured to acquire a first packet that is sent by the main control board of the first device to the second device, where the first packet is recorded with the first time information when the first packet is created. ;

需要说明的是,如图3所示,为单个设备的报文收发路径示意图。第一设备的主控板上的中央处理器CPU负责维护1588状态机,运行1588协议和1588环路算法,读取侧挂FPGA(Field-Programmable Gate Array,现场可编程门阵列)搜集的时间戳。It should be noted that, as shown in FIG. 3, it is a schematic diagram of a packet transmission and reception path of a single device. The central processing unit CPU on the main control board of the first device is responsible for maintaining the 1588 state machine, running the 1588 protocol and the 1588 loop algorithm, and reading the time stamp collected by the Field-Programmable Gate Array (Field-Programmable Gate Array). .

需说明的是,时间戳通常是一个字符序列,唯一地标识某一刻的时间。It should be noted that the timestamp is usually a sequence of characters that uniquely identifies the time of a certain moment.

这里,侧挂FPGA为频率恢复提供时间戳时,不对计数器进行时间戳调整,对起始时间无要求。也就是,设备刚上电时,可以统一使用时间戳计数器发布的默认时间,用于频率恢复时,时间戳计数器提供的时钟进行计数。Here, when the side-mounted FPGA provides a time stamp for frequency recovery, the counter is not time-stamped, and there is no requirement for the start time. That is, when the device is powered on, the default time issued by the timestamp counter can be uniformly used. When the frequency is restored, the clock provided by the timestamp counter is counted.

这里,1588协议为精准时间同步协议。在1588协议中定义了两种报文,事件报文和通用报文。其中,事件报文时间概念报文,进出设备端口时打上精确的时间戳,PTP根据事件报文携带的时间戳,计算链路延迟。事件报文包含以下4种:Sync、Delay_Req、Pdelay_Req和Pdelay_Resp。这里,所述第一报文即为事件报文。Here, the 1588 protocol is an accurate time synchronization protocol. Two types of packets, event packets and general messages are defined in the 1588 protocol. The event packet time concept packet is marked with an accurate timestamp when it enters and exits the device port. The PTP calculates the link delay based on the timestamp carried in the event packet. The event message contains the following four types: Sync, Delay_Req, Pdelay_Req, and Pdelay_Resp. Here, the first packet is an event packet.

1588环路算法可实现高精度时间同步的计算。The 1588 loop algorithm enables high-precision time synchronization calculations.

第一处理模块22,设置为在所述第一报文中增加所述第一报文从第一设备的线卡处理芯片传输到线卡端口的第一时差补偿值,获得第二报文;The first processing module 22 is configured to add, in the first packet, a first time difference compensation value that is sent from the line card processing chip of the first device to the line card port, to obtain a second message;

需要说明的是,本公开实施例中所述的时差补偿值可通过手动补偿的方式来获取,并将时差补偿值增加至报文的相应字段中。这里的手动补偿获取时差补偿值也就是通过示波器来测出报文从设备的线卡处理芯片到线卡端口或从设备的线卡端口到线卡处理芯片间的传送时间,通过对测得的大量的时间数据求取平均值,最终得到时差补偿值。It should be noted that the time difference compensation value described in the embodiment of the present disclosure can be obtained by manual compensation, and the time difference compensation value is added to the corresponding field of the message. Here, the manual compensation obtains the time difference compensation value, that is, the oscilloscope measures the transmission time of the message from the line card processing chip of the device to the line card port or from the line card port of the device to the line card processing chip, and the measured time is measured. A large amount of time data is averaged to obtain a time difference compensation value.

当然,也可通过PTP系统来实时获取时差补偿值。Of course, the time difference compensation value can also be obtained in real time through the PTP system.

发送模块23,设置为将所述第二报文发送至第二设备;The sending module 23 is configured to send the second packet to the second device;

这里需要说明的是,该第二报文中包括有第一报文中记录的时间信息。第二报文从第一设备的线卡端口发送至第二设备的线卡端口。It should be noted that the second message includes time information recorded in the first message. The second message is sent from the line card port of the first device to the line card port of the second device.

第二获取模块24,设置为获得所述第二设备接收所述第二报文后返回的第三报文,其中所述第三报文中记录有所述第二设备接收所述第二报文后,在所述第二设备的线卡处理芯片与线卡端口之间传输的第二时差补偿值和第三时差补偿值;The second obtaining module 24 is configured to obtain a third packet that is returned after the second device receives the second packet, where the second packet records that the second device receives the second packet a second time difference compensation value and a third time difference compensation value transmitted between the line card processing chip of the second device and the line card port;

需要说明的是,第三报文中包括有第一报文和第二报文中记录的时间信息。 It should be noted that the third packet includes time information recorded in the first packet and the second packet.

第二处理模块25,设置为在所述第三报文中增加所述第三报文从第一设备的线卡端口传输至线卡处理芯片的第四时差补偿值,获得第四报文;The second processing module 25 is configured to add, in the third packet, a fourth time difference compensation value that is sent from the line card port of the first device to the line card processing chip, to obtain a fourth message;

这里,线卡处理芯片可以是PHY(Physical Layer,物理层)芯片,该PHY芯片一般指与外部信号接口的芯片。Here, the line card processing chip may be a PHY (Physical Layer) chip, and the PHY chip generally refers to a chip that interfaces with an external signal.

计算模块26,设置为根据所述第四报文,计算所述第一设备与所述第二设备之间报文传输的延时时间。The calculating module 26 is configured to calculate, according to the fourth packet, a delay time of message transmission between the first device and the second device.

需要说明的是,第四报文中包括有第一报文、第二报文和第三报文中的时间信息。It should be noted that the fourth packet includes time information in the first packet, the second packet, and the third packet.

这里,如图4所示,为设备间报文传输时延示意图。也就是说,计算模块26计算得到的是第一设备的线卡端口到第二设备的线卡端口的单链路延时时间。Here, as shown in FIG. 4, it is a schematic diagram of packet transmission delay between devices. That is to say, the calculation module 26 calculates the single link delay time of the line card port of the first device to the line card port of the second device.

示例性的,所述第二时差补偿值为在所述第二报文中增加的所述第二报文从所述第二设备的线卡端口传输至线卡处理芯片的时差补偿值;Exemplarily, the second time difference compensation value is a time difference compensation value that is sent from the line card port of the second device to the line card processing chip, where the second message added in the second message is sent;

所述第三时差补偿值为在所述第二设备的主控板获得所述第二报文后反馈的回应报文中增加的所述回应报文从所述第二设备的线卡处理芯片传输至线卡端口的时差补偿值。The third time difference compensation value is the line card processing chip added from the second device in the response message fed back after the second control device obtains the second message by the second device. The time difference offset value transmitted to the line card port.

示例性的,所述第一时间信息包括:用于频率同步的第一报文在所述第一设备的主控板上创建时,所述主控板的第一时间戳以及第一物理时钟频率。Exemplarily, the first time information includes: a first timestamp of the main control board and a first physical clock when the first message for frequency synchronization is created on the main control board of the first device frequency.

所述第一报文中还记录有所述第一报文从所述主控板传输至所述第一设备的线卡处理芯片时,所述线卡处理芯片的第二物理时钟频率;Recording, in the first packet, the second physical clock frequency of the line card processing chip when the first packet is transmitted from the main control board to the line card processing chip of the first device;

所述第二报文中记录有所述第二报文从所述第二设备的线卡端口传输至所述第二设备的线卡处理芯片时,所述线卡处理芯片的第三物理时钟频率;所述第二报文从所述第二设备的线卡处理芯片传输至所述第二设备的主控板时所述主控板的第二时间戳以及第四物理时钟频率;When the second packet is recorded from the line card port of the second device to the line card processing chip of the second device, the third physical clock of the line card processing chip is recorded a second timestamp and a fourth physical clock frequency of the main control board when the second message is transmitted from the line card processing chip of the second device to the main control board of the second device;

所述第三报文中还记录有所述第二设备的主控板根据所述第二报文生成的回应报文在所述主控板上创建时,所述主控板的第三时间戳以及第五物理时钟频率;所述回应报文从所述第二设备的主控板传输至所述第二设备的线卡处理芯片时,所述线卡处理芯片的第六物理时钟频率;The third message is also recorded in the third time of the main control board when the main control board of the second device creates the response message generated by the second message on the main control board. And a fifth physical clock frequency; when the response message is transmitted from the main control board of the second device to the line card processing chip of the second device, the line card processes the sixth physical clock frequency of the chip;

所述第四报文还记录有所述第三报文从所述第一设备的线卡端口传输至所述第一设备的线卡处理芯片时,所述线卡处理芯片的第七物理时钟频率;所述第四报文从所述线卡处理芯片传输至所述第一设备的主控板时,所述主控板的第四时间戳以及第八物理时钟频率。The fourth message is further recorded when the third message is transmitted from the line card port of the first device to the line card processing chip of the first device, and the seventh physical clock of the line card processing chip a frequency; a fourth timestamp of the main control board and an eighth physical clock frequency when the fourth message is transmitted from the line card processing chip to the main control board of the first device.

需要说明的是,不同设备上的时间戳由于设备的时间戳计数器发布的默认时间不同,故不可以将不同设备上的时间戳不可做计算。同一设备的时间戳可以做计算。It should be noted that the timestamps on different devices are different because the default time of the device's timestamp counter is different. Therefore, the timestamps on different devices cannot be calculated. The time stamp of the same device can be calculated.

需说明的是,在报文的传输过程中会将报文经过设备内部的部件时的时间信息填写至报文的相应字段中。也就是说,本公开实施例中的报文可具有固定的格式。It should be noted that, during the transmission of the packet, the time information of the packet passing through the internal components of the device is filled in the corresponding field of the packet. That is, the message in the embodiment of the present disclosure may have a fixed format.

示例性的,本公开实施例中所述计算模块26还可包括:For example, the calculation module 26 in the embodiment of the present disclosure may further include:

第一计算单元,设置为根据所述第一物理时钟频率以及所述第二物理时钟频率,得到 所述第一报文从所述第一设备的主控板传输至所述第一设备的线卡处理芯片的第一传送时间;a first calculating unit, configured to obtain according to the first physical clock frequency and the second physical clock frequency Transmitting, by the first control device of the first device, a first transmission time of the line card processing chip of the first device;

这里,第一设备的线卡处理芯片的的第二物理时钟频率减去第一设备的主控板的第一物理时钟频率,得到第一报文从所述第一设备的主控板传输至所述第一设备的线卡处理芯片的物理时钟频率差值。这里,每次时钟频偏的跳动时间为1/125ms,即8ns的时间间隔,从主控板到线卡处理芯片的传送时间差为CF域差,也就是,第一报文从所述第一设备的主控板传输至所述第一设备的线卡处理芯片的第一传送时间为第一报文从所述第一设备的主控板传输至所述第一设备的线卡处理芯片的物理时钟频率差值乘以每次时钟频偏的跳动时间所得到的结果。Here, the second physical clock frequency of the line card processing chip of the first device is subtracted from the first physical clock frequency of the main control board of the first device, and the first packet is transmitted from the main control board of the first device to The physical clock frequency difference of the line card processing chip of the first device. Here, the jitter time of each clock frequency offset is 1/125 ms, that is, the time interval of 8 ns, and the transmission time difference from the main control board to the line card processing chip is a CF domain difference, that is, the first message is from the first The first transmission time of the main control board of the device transmitted to the line card processing chip of the first device is that the first message is transmitted from the main control board of the first device to the line card processing chip of the first device The physical clock frequency difference is multiplied by the beat time of each clock offset.

第二计算单元,设置为根据所述第三物理时钟频率以及所述第四物理时钟频率,得到所述第二报文从所述第二设备的线卡处理芯片传输至所述第二设备的主控板的第二传送时间;a second calculating unit, configured to transmit, according to the third physical clock frequency and the fourth physical clock frequency, the second packet from the line card processing chip of the second device to the second device The second transmission time of the main control board;

需要说明的是,第二传送时间为第二设备的线卡处理芯片的第四物理时钟频率减去第二设备的主控板的第三物理时钟频率的差值乘以每次时钟频偏的跳动时间所得到的结果。It should be noted that the second transmission time is the difference between the fourth physical clock frequency of the line card processing chip of the second device minus the third physical clock frequency of the main control board of the second device multiplied by the frequency offset of each clock. The result of the beating time.

第三计算单元,设置为根据第五物理时钟频率以及所述第六物理时钟频率,得到所述回应报文从所述第二设备的主控板传输至所述第二设备的线卡处理芯片的第三传送时间;a third calculating unit, configured to: according to the fifth physical clock frequency and the sixth physical clock frequency, obtain the line card processing chip that is sent from the main control board of the second device to the second device Third transmission time;

需要说明的是,第三传送时间为第二设备的主控板的第六物理时钟频率减去第二设备的线卡处理芯片的第五物理时钟频率的差值乘以每次时钟频偏的跳动时间所得到的结果。It should be noted that the third transmission time is the sixth physical clock frequency of the main control board of the second device minus the difference of the fifth physical clock frequency of the line card processing chip of the second device multiplied by the frequency offset of each clock. The result of the beating time.

第四计算单元,设置为根据所述七物理时钟频率以及所述第八物理时钟频率,得到所述第四报文从所述第一设备的线卡处理芯片到所述第一设备的主控板的第四传送时间;a fourth calculating unit, configured to obtain, according to the seven physical clock frequencies and the eighth physical clock frequency, the fourth packet from the line card processing chip of the first device to the master of the first device The fourth transfer time of the board;

需要说明的是,第四传送时间为第一设备的线卡处理芯片的第八物理时钟频率减去第一设备的主控板的七物理时钟频率的差值乘以每次时钟频偏的跳动时间所得到的结果。It should be noted that the fourth transmission time is the eighth physical clock frequency of the line card processing chip of the first device minus the difference of the seven physical clock frequencies of the main control board of the first device multiplied by the jitter of each clock frequency offset. The result of time.

第五计算单元,设置为根据所述第一时间戳、第二时间戳、第三时间戳、第四时间戳、第一传送时间、第二传送时间、第三传送时间、第四传送时间、第一时差补偿值、第二时差补偿值、第三时差补偿值、第四时差补偿值,通过预设算法计算得到所述第一设备与所述第二设备之间报文传输的延时时间。a fifth calculating unit, configured to be according to the first timestamp, the second timestamp, the third timestamp, the fourth timestamp, the first transmission time, the second transmission time, the third transmission time, the fourth transmission time, a first time difference compensation value, a second time difference compensation value, a third time difference compensation value, and a fourth time difference compensation value, and calculating, by using a preset algorithm, a delay time of message transmission between the first device and the second device .

这里,所述计算单元可用于根据公式Delay=[((T4-N4-t4)-(T1+N1+t1))+((T3+N3+t3)-(T2-N2-t2))]÷2,计算得到所述第一设备与所述第二设备之间报文传输的延时时间;Here, the calculation unit can be used according to the formula Delay=[((T 4 -N 4 -t 4 )-(T 1 +N 1 +t 1 ))+((T 3 +N 3 +t 3 )-((T 3 +N 3 +t 3 )-( T 2 -N 2 -t 2 ))]÷2, calculating a delay time for message transmission between the first device and the second device;

其中,Delay表示为所述报文在所述第一设备与所述第二设备之间传送的延时时间;T1表示为所述第一时间戳;T2表示为所述第二时间戳;T3表示为所述第三时间戳;T4表示为所述第四时间戳;N1表示为所述第一传送时间;N2表示为所述第二传送时间;N3表示为所述第三传送时间;N4表示为所述第四传送时间;t1表示为所述第一时差补偿值;t2表示为所述第二时差补偿值;t3表示为所述第三时差补偿值;t4表示为所述第四时差补偿值。 Delay represents a delay time for the message to be transmitted between the first device and the second device; T 1 is represented as the first timestamp; and T 2 is represented as the second timestamp ; T 3 is represented as the third time stamp; T 4 is represented as the fourth time stamp; N 1 is represented as the first transmission time; N 2 is represented as the second transmission time; N 3 is represented as a third transmission time; N 4 is represented as the fourth transmission time; t 1 is represented as the first time difference compensation value; t 2 is represented as the second time difference compensation value; t 3 is represented as the third time difference The compensation value; t 4 is expressed as the fourth time difference compensation value.

本公开实施例还提供一种第一设备,该第一设备为通信网络设备,包括:如上述实施例中所述的通信网络设备间时间同步的优化装置。The embodiment of the present disclosure further provides a first device, which is a communication network device, and includes: an apparatus for optimizing time synchronization between communication network devices as described in the foregoing embodiments.

本公开实施例提供的通信网络设备间时间同步的优化装置,通过当报文从设备的线卡处理芯片传输到线卡端口或从设备的线卡端口传输到线卡处理芯片时在报文中增加时差补偿值,减少报文在通信网络设备间传输时的延时误差,从而可实现通信网络设备间精确的时间同步,满足设备在复杂组网环境下时间同步倒换的延时抖动要求。The device for optimizing time synchronization between communication network devices provided by the embodiments of the present disclosure is used in a message when a message is transmitted from a line card processing chip of the device to a line card port or from a line card port of the device to a line card processing chip. The time difference compensation value is added to reduce the delay error when the message is transmitted between the communication network devices, so that accurate time synchronization between the communication network devices can be realized, and the delay jitter requirement of the time synchronization switching of the device in the complex networking environment can be met.

第三实施例Third embodiment

如图5所示,本公开实施例还提供一种通信网络设备间时间同步的优化方法,应用于第二设备,包括:As shown in FIG. 5, an embodiment of the present disclosure further provides an optimization method for time synchronization between communication network devices, which is applied to a second device, including:

步骤31,接收第一设备发送的第二报文;Step 31: Receive a second packet sent by the first device.

这里需要说明的是,第二报文中记录有报文在第一设备的内部传输时的时间信息。例如,第一设备的主控板创建的第一报文在从第一设备的线卡处理芯片传输至线卡端口的第一时差补偿值。It should be noted here that the second message records the time information of the message when it is transmitted internally by the first device. For example, the first message created by the main control board of the first device is transmitted at a first time difference offset value from the line card processing chip of the first device to the line card port.

步骤32,在所述第二报文中增加所述第二报文从所述第二设备的线卡端口传输至线卡处理芯片的第二时差补偿值,并将所述第二报文传输至所述第二设备的主控板;Step 32: Add, in the second packet, a second time difference compensation value that is sent from the line card port of the second device to the line card processing chip, and transmit the second message. To the main control board of the second device;

需要说明的是,本公开实施例中所述的时差补偿值可通过手动补偿的方式来获取,并将时差补偿值增加至报文的相应字段中。这里的手动补偿获取时差补偿值也就是通过示波器来测出报文从设备的线卡处理芯片到线卡端口或从设备的线卡端口到线卡处理芯片间的传送时间,通过对测得的大量的时间数据求取平均值,最终得到时差补偿值。It should be noted that the time difference compensation value described in the embodiment of the present disclosure can be obtained by manual compensation, and the time difference compensation value is added to the corresponding field of the message. Here, the manual compensation obtains the time difference compensation value, that is, the oscilloscope measures the transmission time of the message from the line card processing chip of the device to the line card port or from the line card port of the device to the line card processing chip, and the measured time is measured. A large amount of time data is averaged to obtain a time difference compensation value.

当然,也可通过PTP系统来实时获取时差补偿值。Of course, the time difference compensation value can also be obtained in real time through the PTP system.

步骤33,接收所述主控板获得所述第二报文后反馈的回应报文;Step 33: Receive a response message that is sent back by the main control board after obtaining the second packet.

需要说明的是,回应报文是主控板根据第二报文生成的,回应报文包括有第二报文中记录的时间信息。It should be noted that the response message is generated by the main control board according to the second message, and the response message includes the time information recorded in the second message.

步骤34,在所述回应报文中增加所述回应报文从所述第二设备的线卡处理芯片传输至线卡端口的第三时差补偿值,获得第三报文;Step 34: Add a third time difference compensation value that is sent from the line card processing chip of the second device to the line card port in the response message, to obtain a third message.

需要说明的是,第三报文中出来包括回应报文中增加的回应报文从所述第二设备的线卡处理芯片传输至线卡端口的第三时差补偿值,还包括有回应报文中记录的其他时间信息。It should be noted that the third packet includes a third time difference compensation value that is sent from the line card processing chip of the second device to the line card port, and includes a response message. Other time information recorded in .

步骤35,将所述第三报文通过所述第二设备的线卡端口传输至所述第一设备。Step 35: The third packet is transmitted to the first device by using a line card port of the second device.

示例性的,所述第二报文中记录有所述第一设备的主控板创建第一报文后,在所述第一报文中增加所述第一报文从所述第一设备的线卡处理芯片传输到线卡端口的第一时差补偿值。Illustratively, after the first packet of the first device is configured to create the first packet, the first packet is added to the first packet from the first device. The line card handles the first time difference offset value transmitted by the chip to the line card port.

本公开实施例提供的通信网络设备间时间同步的优化方法,通过当报文从设备的线卡处理芯片传输到线卡端口或从设备的线卡端口传输到线卡处理芯片时在报文中增加时差补偿值,从而提供计算参数,使得报文在通信网络设备间传输时的延时误差率降低,从而可实现通信网络设备间精确的时间同步,满足设备在复杂组网环境下时间同步倒换的延时 抖动要求。The method for optimizing time synchronization between communication network devices provided by the embodiments of the present disclosure is used in a message when a message is transmitted from a line card processing chip of the device to a line card port or from a line card port of the device to a line card processing chip. The time difference compensation value is added to provide a calculation parameter, so that the delay error rate of the message transmitted between the communication network devices is reduced, thereby achieving accurate time synchronization between the communication network devices, and meeting the time synchronization switching of the device in a complex networking environment. Delay Jitter requirements.

第四实施例Fourth embodiment

如图6所示,本公开实施例还提供一种通信网络设备间时间同步的优化装置,包括:As shown in FIG. 6, the embodiment of the present disclosure further provides an apparatus for optimizing time synchronization between communication network devices, including:

第一接收模块41,设置为接收第一设备发送的第二报文;The first receiving module 41 is configured to receive the second packet sent by the first device;

这里需要说明的是,第二报文中记录有报文在第一设备的内部传输时的时间信息。例如,第一设备的主控板创建的第一报文在从第一设备的线卡处理芯片传输至线卡端口的第一时差补偿值。It should be noted here that the second message records the time information of the message when it is transmitted internally by the first device. For example, the first message created by the main control board of the first device is transmitted at a first time difference offset value from the line card processing chip of the first device to the line card port.

第三处理模块42,设置为在所述第二报文中增加所述第二报文从第二设备的线卡端口传输至线卡处理芯片的第二时差补偿值,并将所述第二报文传输至所述第二设备的主控板;The third processing module 42 is configured to add, in the second packet, a second time difference compensation value that is sent from the line card port of the second device to the line card processing chip, and the second Transmitting the message to the main control board of the second device;

需要说明的是,本公开实施例中所述的时差补偿值可通过手动补偿的方式来获取,并将时差补偿值增加至报文的相应字段中。这里的手动补偿获取时差补偿值也就是通过示波器来测出报文从设备的线卡处理芯片到线卡端口或从设备的线卡端口到线卡处理芯片间的传送时间,通过对测得的大量的时间数据求取平均值,最终得到时差补偿值。It should be noted that the time difference compensation value described in the embodiment of the present disclosure can be obtained by manual compensation, and the time difference compensation value is added to the corresponding field of the message. Here, the manual compensation obtains the time difference compensation value, that is, the oscilloscope measures the transmission time of the message from the line card processing chip of the device to the line card port or from the line card port of the device to the line card processing chip, and the measured time is measured. A large amount of time data is averaged to obtain a time difference compensation value.

当然,也可通过PTP系统来实时获取时差补偿值。Of course, the time difference compensation value can also be obtained in real time through the PTP system.

第二接收模块43,设置为接收所述主控板获得所述第二报文后反馈的回应报文;The second receiving module 43 is configured to receive a response message that is sent back by the main control board after obtaining the second packet;

需要说明的是,回应报文是主控板根据第二报文生成的,回应报文包括有第二报文中记录的时间信息。It should be noted that the response message is generated by the main control board according to the second message, and the response message includes the time information recorded in the second message.

第四处理模块44,设置为在所述回应报文中增加所述回应报文从所述第二设备的线卡处理芯片传输至线卡端口的第三时差补偿值,获得第三报文;The fourth processing module 44 is configured to add a third time difference compensation value that is sent from the line card processing chip of the second device to the line card port in the response message, to obtain a third message;

需要说明的是,第三报文中出来包括回应报文中增加的回应报文从所述第二设备的线卡处理芯片传输至线卡端口的第三时差补偿值,还包括有回应报文中记录的其他时间信息。It should be noted that the third packet includes a third time difference compensation value that is sent from the line card processing chip of the second device to the line card port, and includes a response message. Other time information recorded in .

传输模块45,设置为将所述第三报文通过所述第二设备的线卡端口传输至所述第一设备。The transmitting module 45 is configured to transmit the third packet to the first device by using a line card port of the second device.

示例性的,所述第二报文中记录有所述第一设备的主控板创建第一报文后,在所述第一报文中增加所述第一报文从所述第一设备的线卡处理芯片传输到线卡端口的第一时差补偿值。Illustratively, after the first packet of the first device is configured to create the first packet, the first packet is added to the first packet from the first device. The line card handles the first time difference offset value transmitted by the chip to the line card port.

本公开实施例还提供一种第二设备,该第二设备为通信网络设备,包括:如上述实施例中所述的通信网络设备间时间同步的优化装置。The embodiment of the present disclosure further provides a second device, which is a communication network device, and includes: an apparatus for optimizing time synchronization between communication network devices as described in the foregoing embodiment.

本公开实施例提供的通信网络设备间时间同步的优化装置,通过当报文从设备的线卡处理芯片传输到线卡端口或从设备的线卡端口传输到线卡处理芯片时在报文中增加时差补偿值,从而提供计算参数,使得报文在通信网络设备间传输时的延时误差率降低,从而可实现通信网络设备间精确的时间同步,满足设备在复杂组网环境下时间同步倒换的延时抖动要求。The device for optimizing time synchronization between communication network devices provided by the embodiments of the present disclosure is used in a message when a message is transmitted from a line card processing chip of the device to a line card port or from a line card port of the device to a line card processing chip. The time difference compensation value is added to provide a calculation parameter, so that the delay error rate of the message transmitted between the communication network devices is reduced, thereby achieving accurate time synchronization between the communication network devices, and meeting the time synchronization switching of the device in a complex networking environment. Delay jitter requirements.

第五实施例 Fifth embodiment

如图7所示,为本公开实施例的报文时间延时优化图。下面就该图说明报文在通信网络设备间传输时的流程。As shown in FIG. 7, the message time delay optimization map of the embodiment of the present disclosure. The following figure illustrates the flow of messages as they travel between communication network devices.

步骤101:对同一设备的主控板和线卡进行频率同步。Step 101: Perform frequency synchronization on the main control board and the line card of the same device.

这里,本公开实施例以第一设备和第二设备为例。第一设备作为延时请求发,第二设备作为延时响应方。Here, the embodiment of the present disclosure takes the first device and the second device as an example. The first device sends the request as a delay, and the second device acts as the delay responder.

步骤102:第一设备的第一报文在主控板上组建第一报文,并在第一报文中记录该时刻的时间戳T1和第一物理时钟频率。Step 102: The first packet of the first device is configured to form a first packet on the main control board, and the timestamp T1 and the first physical clock frequency of the moment are recorded in the first packet.

这里,所述第一报文也就是PTP报文,即事件报文。第一报文在主控板的1588相关模块上组建第一报文。Here, the first packet is also a PTP packet, that is, an event packet. The first packet is configured on the 1588 related module of the main control board.

步骤103:第一报文从主控板转发到线卡处理芯片后,在第一报文中记录该时刻获取到线卡处理芯片的第二物理时钟频率。Step 103: After forwarding the first packet from the main control board to the line card processing chip, record the second physical clock frequency of the line card processing chip at the moment in the first message.

需要说明的是,本步骤中第一报文从主控板转发到线卡处理芯片,该线卡处理芯片为线卡FPGA模块;获取到线卡处理芯片的第二物理时钟频率,该线卡处理芯片为PHY芯片。It should be noted that, in this step, the first packet is forwarded from the main control board to the line card processing chip, the line card processing chip is a line card FPGA module; and the second physical clock frequency of the line card processing chip is acquired, the line card The processing chip is a PHY chip.

步骤104:增加线卡处理芯片处理第一报文后到线卡端口的第一时差补偿值t1,得到第二报文。Step 104: Add a first time difference compensation value t1 to the line card port after processing the first message by the line card processing chip, to obtain a second message.

步骤105,将第二报文发送至第二设备。Step 105: Send the second message to the second device.

需要说明的是,该第二报文包括有第一报文的时间信息。It should be noted that the second packet includes time information of the first packet.

步骤106:增加第二设备的线卡端口收到第二报文后到线卡处理芯片收到第二报文的第二时差补偿值t2。Step 106: Add a second time difference compensation value t2 that the line card processing chip receives the second message after receiving the second packet by the line card port of the second device.

步骤107:第二设备的线卡处理芯片收到第二报文时的时刻记录线卡处理芯片的第三物理时钟频率。Step 107: Record the third physical clock frequency of the line card processing chip at the time when the line card processing chip of the second device receives the second message.

步骤108:第二报文通过第二设备的线卡处理芯片传输至主控板时,第二设备获取到该时刻的主控板的第二时间戳T2和第四物理时钟频率,且记录于第二报文中。Step 108: When the second packet is transmitted to the main control board by the line card processing chip of the second device, the second device acquires the second timestamp T2 and the fourth physical clock frequency of the main control board at the moment, and records the In the second message.

这里,示例性的,第二报文通过第二设备的线卡FPGA模块到主控板的1588相关模块。Here, for example, the second message passes through the line card FPGA module of the second device to the 1588 related module of the main control board.

步骤109:第二设备的主控板组建回应报文,并在回应报文中记录该时刻的主控板的时间戳T3和第五物理时钟频率。Step 109: The main control board of the second device forms a response packet, and records the timestamp T3 and the fifth physical clock frequency of the main control board at the moment in the response message.

这里,示例性的,第二设备的主控板的1588相关模块根据第二报文组建回应报文。Here, for example, the 1588 related module of the main control board of the second device forms a response message according to the second message.

需要说明的是,该回应报文包括有第二报文中记录的时间信息。It should be noted that the response message includes time information recorded in the second message.

步骤110:回应报文从主控板转发到线卡处理芯片后,在回应报文中记录该时刻获取到的线卡处理芯片的第六物理时钟频率。Step 110: After the response packet is forwarded from the main control board to the line card processing chip, the sixth physical clock frequency of the line card processing chip acquired at the moment is recorded in the response message.

这里,示例性的,回应报文从主控板转发到线卡FPGA模块,获取到线卡处理芯片的第六物理时钟频率,该线卡处理芯片为PHY芯片。Here, for example, the response message is forwarded from the main control board to the line card FPGA module, and the sixth physical clock frequency of the line card processing chip is obtained, and the line card processing chip is a PHY chip.

步骤111:增加第二设备的线卡处理芯片处理回应报文后到线卡端口的第三时差补偿 值t3,得到第三报文。Step 111: Add a third time difference compensation to the line card port after the line card processing chip of the second device processes the response message. The value t3 gives a third message.

步骤112:将第三报文返回至第一设备。Step 112: Return the third message to the first device.

这里,第三报文包括有回应报文中记录的时间信息。Here, the third message includes time information recorded in the response message.

步骤113:增加第一设备的线卡端口收到第三报文到线卡处理芯片收到第三报文的第四时差补偿值t4,得到第四报文。Step 113: Add a fourth packet to the line card processing chip of the first device to receive a fourth time difference compensation value t4 of the third packet, to obtain a fourth packet.

步骤114:第一设备的线卡处理芯片收到第三报文时的时刻记录线卡处理芯片的第七物理时钟频率。Step 114: Record the seventh physical clock frequency of the line card processing chip at the time when the line card processing chip of the first device receives the third message.

步骤115:第四报文通过第一设备的线卡处理芯片到主控板时,第一设备获取到该时刻的主控板的第四时间戳T4和第八物理时钟频率,且记录于第四报文中。Step 115: When the fourth packet passes the line card processing chip of the first device to the main control board, the first device acquires the fourth timestamp T4 and the eighth physical clock frequency of the main control board at the moment, and records the Four messages.

这里,示例性的,第四报文通过第一设备的线卡FPGA模块到主控板的1588相关模块。Here, the exemplary fourth message passes through the line card FPGA module of the first device to the 1588 related module of the main control board.

需说明的是,第四报文中包括有第一报文、第二报文以及第三报文中记录的时间信息。It should be noted that the fourth message includes the first message, the second message, and the time information recorded in the third message.

步骤116:计算得到时延矫正值。Step 116: Calculate the delay correction value.

这里,该时延矫正值为主控板到线卡处理芯片间的CF域差值加上线卡处理芯片到线卡端口的时差补偿,也就是,N+t。Here, the delay correction value is the CF domain difference between the main control board and the line card processing chip plus the time difference compensation of the line card processing chip to the line card port, that is, N+t.

需要说明的是,主控板到线卡处理芯片间的CF域差值可通过上述步骤中记录的物理时钟频率计算得到,计算过程见第一实施例,这里不做阐述。It should be noted that the CF domain difference between the main control board and the line card processing chip can be calculated by using the physical clock frequency recorded in the above steps. The calculation process is shown in the first embodiment, and is not described here.

步骤117:第二设备根据公式计算第一设备和第二设备间的延时时间,计算公式为:Delay=[((T4-N4-t4)-(T1+N1+t1))+((T3+N3+t3)-(T2-N2-t2))]÷2。Step 117: The second device calculates a delay time between the first device and the second device according to the formula, and the calculation formula is: Delay=[((T 4 -N 4 -t 4 )-(T 1 +N 1 +t 1 )) +((T 3 +N 3 +t 3 )-(T 2 -N 2 -t 2 ))]÷2.

这里,计算的延时时间为单链路延时时间。Here, the calculated delay time is a single link delay time.

其中,Delay表示为所述报文在所述第一设备与所述第二设备之间传送的延时时间;T1表示为所述第一时间戳;T2表示为所述第二时间戳;T3表示为所述第三时间戳;T4表示为所述第四时间戳;N1表示为所述第一传送时间;N2表示为所述第二传送时间;N3表示为所述第三传送时间;N4表示为所述第四传送时间;t1表示为所述第一时差补偿值;t2表示为所述第二时差补偿值;t3表示为所述第三时差补偿值;t4表示为所述第四时差补偿值。Delay represents a delay time for the message to be transmitted between the first device and the second device; T 1 is represented as the first timestamp; and T 2 is represented as the second timestamp ; T 3 is represented as the third time stamp; T 4 is represented as the fourth time stamp; N 1 is represented as the first transmission time; N 2 is represented as the second transmission time; N 3 is represented as said third transmission time; N 4 is represented by said fourth transfer time; t 1 represents a compensation value for said first time difference; t 2 represents a compensation value for said second time difference; t 3 represents said third time difference The compensation value; t 4 is expressed as the fourth time difference compensation value.

以上所述是本公开的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本公开所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本公开的保护范围。The above is a preferred embodiment of the present disclosure, and it should be noted that those skilled in the art can also make several improvements and refinements without departing from the principles of the present disclosure. It should be considered as the scope of protection of this disclosure.

工业实用性Industrial applicability

本公开实施例提供的通信网络设备间时间同步的优化方法与装置,通过当报文从设备的线卡处理芯片传输到线卡端口或从设备的线卡端口传输到线卡处理芯片时在报文中增加时差补偿值,减少报文在通信网络设备间传输时的延时误差,从而可实现通信网络设备间精确的时间同步,满足设备在复杂组网环境下时间同步倒换的延时抖动要求。 The method and device for optimizing time synchronization between communication network devices provided by the embodiments of the present disclosure are reported when the message is transmitted from the line card processing chip of the device to the line card port or from the line card port of the device to the line card processing chip. In this paper, the time difference compensation value is added to reduce the delay error when the message is transmitted between communication network devices, so that accurate time synchronization between communication network devices can be realized, and the delay jitter requirement of time synchronization switching of the device in a complex networking environment can be met. .

Claims (12)

一种通信网络设备间时间同步的优化方法,应用于第一设备,其中,所述方法包括:A method for optimizing time synchronization between communication network devices is applied to a first device, where the method includes: 获取所述第一设备的主控板传输至第二设备的第一报文,其中所述第一报文中记录有所述第一报文创建时的第一时间信息;And acquiring, by the first control board of the first device, a first packet that is sent to the second device, where the first packet is recorded with the first time information when the first packet is created; 在所述第一报文中增加所述第一报文从第一设备的线卡处理芯片传输到线卡端口的第一时差补偿值,获得第二报文;Adding, in the first packet, a first time difference compensation value that is sent from the line card processing chip of the first device to the line card port, to obtain a second packet; 将所述第二报文发送至第二设备;Sending the second packet to the second device; 获得所述第二设备接收所述第二报文后返回的第三报文,其中所述第三报文中记录有所述第二设备接收所述第二报文后,在所述第二设备的线卡处理芯片与线卡端口之间传输的第二时差补偿值和第三时差补偿值;Obtaining a third packet that is returned after the second device receives the second packet, where the third packet records that the second device receives the second packet, after the second packet a second time difference compensation value and a third time difference compensation value transmitted between the line card processing chip of the device and the line card port; 在所述第三报文中增加所述第三报文从第一设备的线卡端口传输至线卡处理芯片的第四时差补偿值,获得第四报文;Adding, in the third packet, a fourth time difference compensation value that is transmitted from the line card port of the first device to the line card processing chip, to obtain a fourth message; 根据所述第四报文,计算所述第一设备与所述第二设备之间报文传输的延时时间。And calculating, according to the fourth packet, a delay time for packet transmission between the first device and the second device. 根据权利要求1所述的通信网络设备间时间同步的优化方法,其中,所述第二时差补偿值为在所述第二报文中增加的所述第二报文从所述第二设备的线卡端口传输至线卡处理芯片的时差补偿值;The method for optimizing time synchronization between communication network devices according to claim 1, wherein the second time difference compensation value is the second message added in the second message from the second device The time difference compensation value of the line card port transmitted to the line card processing chip; 所述第三时差补偿值为在所述第二设备的主控板获得所述第二报文后反馈的回应报文中增加的所述回应报文从所述第二设备的线卡处理芯片传输至线卡端口的时差补偿值。The third time difference compensation value is the line card processing chip added from the second device in the response message fed back after the second control device obtains the second message by the second device. The time difference offset value transmitted to the line card port. 根据权利要求1所述的通信网络设备间时间同步的优化方法,其中,所述第一时间信息包括:用于频率同步的第一报文在所述第一设备的主控板上创建时,所述主控板的第一时间戳以及第一物理时钟频率;The method for optimizing time synchronization between communication network devices according to claim 1, wherein the first time information comprises: when the first message for frequency synchronization is created on the main control board of the first device, a first timestamp of the main control board and a first physical clock frequency; 所述第一报文中还记录有所述第一报文从所述主控板传输至所述第一设备的线卡处理芯片时,所述线卡处理芯片的第二物理时钟频率;Recording, in the first packet, the second physical clock frequency of the line card processing chip when the first packet is transmitted from the main control board to the line card processing chip of the first device; 所述第二报文中记录有所述第二报文从所述第二设备的线卡端口传输至所述第二设备的线卡处理芯片时,所述线卡处理芯片的第三物理时钟频率;所述第二报文从所述第二设备的线卡处理芯片传输至所述第二设备的主控板时所述主控板的第二时间戳以及第四物理时钟频率;When the second packet is recorded from the line card port of the second device to the line card processing chip of the second device, the third physical clock of the line card processing chip is recorded a second timestamp and a fourth physical clock frequency of the main control board when the second message is transmitted from the line card processing chip of the second device to the main control board of the second device; 所述第三报文中还记录有所述第二设备的主控板根据所述第二报文生成的回应报文在所述主控板上创建时,所述主控板的第三时间戳以及第五物理时钟频率;所述回应报文从所述第二设备的主控板传输至所述第二设备的线卡处理芯片时,所述线卡处理芯片的第六物理时钟频率;The third message is also recorded in the third time of the main control board when the main control board of the second device creates the response message generated by the second message on the main control board. And a fifth physical clock frequency; when the response message is transmitted from the main control board of the second device to the line card processing chip of the second device, the line card processes the sixth physical clock frequency of the chip; 所述第四报文还记录有所述第三报文从所述第一设备的线卡端口传输至所述第一设备的线卡处理芯片时,所述线卡处理芯片的第七物理时钟频率;所述第四报文从所述线卡处理芯片传输至所述第一设备的主控板时,所述主控板的第四时间戳以及第八物理时钟频 率。The fourth message is further recorded when the third message is transmitted from the line card port of the first device to the line card processing chip of the first device, and the seventh physical clock of the line card processing chip Frequency; the fourth timestamp and the eighth physical clock frequency of the main control board when the fourth message is transmitted from the line card processing chip to the main control board of the first device rate. 根据权利要求3所述的通信网络设备间时间同步的优化方法,其中,所述根据所述第四报文,计算所述第一设备与所述第二设备之间报文传输的延时时间的步骤包括:The method for optimizing the time synchronization between the communication network devices according to claim 3, wherein the calculating, according to the fourth packet, a delay time of packet transmission between the first device and the second device The steps include: 根据所述第一物理时钟频率以及所述第二物理时钟频率,得到所述第一报文从所述第一设备的主控板传输至所述第一设备的线卡处理芯片的第一传送时间;Obtaining, according to the first physical clock frequency and the second physical clock frequency, the first transmission of the first packet from the main control board of the first device to the line card processing chip of the first device time; 根据所述第三物理时钟频率以及所述第四物理时钟频率,得到所述第二报文从所述第二设备的线卡处理芯片传输至所述第二设备的主控板的第二传送时间;Obtaining, according to the third physical clock frequency and the fourth physical clock frequency, the second transmission of the second packet from the line card processing chip of the second device to the main control board of the second device time; 根据第五物理时钟频率以及所述第六物理时钟频率,得到所述回应报文从所述第二设备的主控板传输至所述第二设备的线卡处理芯片的第三传送时间;Obtaining, according to the fifth physical clock frequency and the sixth physical clock frequency, a third transmission time of the response message transmitted from the main control board of the second device to the line card processing chip of the second device; 根据所述七物理时钟频率以及所述第八物理时钟频率,得到所述第四报文从所述第一设备的线卡处理芯片到所述第一设备的主控板的第四传送时间;And obtaining, according to the seven physical clock frequencies and the eighth physical clock frequency, a fourth transmission time of the fourth packet from the line card processing chip of the first device to the main control board of the first device; 根据所述第一时间戳、第二时间戳、第三时间戳、第四时间戳、第一传送时间、第二传送时间、第三传送时间、第四传送时间、第一时差补偿值、第二时差补偿值、第三时差补偿值、第四时差补偿值,通过预设算法计算得到所述第一设备与所述第二设备之间报文传输的延时时间。Determining, according to the first timestamp, the second timestamp, the third timestamp, the fourth timestamp, the first transmission time, the second transmission time, the third transmission time, the fourth transmission time, the first time difference compensation value, The two-time difference compensation value, the third time difference compensation value, and the fourth time difference compensation value are calculated by a preset algorithm to obtain a delay time of message transmission between the first device and the second device. 根据权利要求4所述的通信网络设备间时间同步的优化方法,其中,所述根据所述第一时间戳、第二时间戳、第三时间戳、第四时间戳、第一传送时间、第二传送时间、第三传送时间、第四传送时间、第一时差补偿值、第二时差补偿值、第三时差补偿值、第四时差补偿值,通过预设算法计算得到所述第一设备与所述第二设备之间报文传输的延时时间的步骤包括:The method for optimizing time synchronization between communication network devices according to claim 4, wherein said according to said first time stamp, second time stamp, third time stamp, fourth time stamp, first transmission time, The second transmission time, the third transmission time, the fourth transmission time, the first time difference compensation value, the second time difference compensation value, the third time difference compensation value, and the fourth time difference compensation value are calculated by a preset algorithm to obtain the first device and The step of delaying packet transmission between the second devices includes: 根据公式Delay=[((T4-N4-t4)-(T1+N1+t1))+((T3+N3+t3)-(T2-N2-t2))]÷2,计算得到所述第一设备与所述第二设备之间报文传输的延时时间;According to the formula Delay=[((T 4 -N 4 -t 4 )-(T 1 +N 1 +t 1 ))+((T 3 +N 3 +t 3 )-(T 2 -N 2 -t 2 ))] ÷ 2, calculating a delay time of message transmission between the first device and the second device; 其中,Delay表示为所述报文在所述第一设备与所述第二设备之间传送的延时时间;T1表示为所述第一时间戳;T2表示为所述第二时间戳;T3表示为所述第三时间戳;T4表示为所述第四时间戳;N1表示为所述第一传送时间;N2表示为所述第二传送时间;N3表示为所述第三传送时间;N4表示为所述第四传送时间;t1表示为所述第一时差补偿值;t2表示为所述第二时差补偿值;t3表示为所述第三时差补偿值;t4表示为所述第四时差补偿值。Delay represents a delay time for the message to be transmitted between the first device and the second device; T 1 is represented as the first timestamp; and T 2 is represented as the second timestamp ; T 3 is represented as the third time stamp; T 4 is represented as the fourth time stamp; N 1 is represented as the first transmission time; N 2 is represented as the second transmission time; N 3 is represented as a third transmission time; N 4 is represented as the fourth transmission time; t 1 is represented as the first time difference compensation value; t 2 is represented as the second time difference compensation value; t 3 is represented as the third time difference The compensation value; t 4 is expressed as the fourth time difference compensation value. 一种通信网络设备间时间同步的优化装置,其中,包括:An apparatus for optimizing time synchronization between communication network devices, comprising: 第一获取模块,设置为获取第一设备的主控板传输至第二设备的第一报文,其中所述第一报文中记录有所述第一报文创建时的第一时间信息;a first acquiring module, configured to acquire a first packet that is transmitted by the main control board of the first device to the second device, where the first packet is recorded with the first time information when the first packet is created; 第一处理模块,设置为在所述第一报文中增加所述第一报文从第一设备的线卡处理芯片传输到线卡端口的第一时差补偿值,获得第二报文;The first processing module is configured to add, in the first packet, a first time difference compensation value that is sent from the line card processing chip of the first device to the line card port, to obtain a second message; 发送模块,设置为将所述第二报文发送至第二设备;a sending module, configured to send the second packet to the second device; 第二获取模块,设置为获得所述第二设备接收所述第二报文后返回的第三报文,其中 所述第三报文中记录有所述第二设备接收所述第二报文后,在所述第二设备的线卡处理芯片与线卡端口之间传输的第二时差补偿值和第三时差补偿值;a second acquiring module, configured to obtain a third packet returned by the second device after receiving the second packet, where Recording, in the third packet, a second time difference compensation value and a third transmission between the line card processing chip of the second device and the line card port after the second device receives the second message Time difference compensation value; 第二处理模块,设置为在所述第三报文中增加所述第三报文从第一设备的线卡端口传输至线卡处理芯片的第四时差补偿值,获得第四报文;a second processing module, configured to add, in the third packet, a fourth time difference compensation value that is sent from the line card port of the first device to the line card processing chip, to obtain a fourth message; 计算模块,设置为根据所述第四报文,计算所述第一设备与所述第二设备之间报文传输的延时时间。The calculating module is configured to calculate, according to the fourth packet, a delay time for packet transmission between the first device and the second device. 一种第一设备,包括:如权利要求6所述的通信网络设备间时间同步的优化装置。A first device comprising: the apparatus for optimizing time synchronization between communication network devices according to claim 6. 一种通信网络设备间时间同步的优化方法,应用于第二设备,其中,所述方法包括:An optimization method for time synchronization between communication network devices is applied to a second device, where the method includes: 接收第一设备发送的第二报文;Receiving a second packet sent by the first device; 在所述第二报文中增加所述第二报文从所述第二设备的线卡端口传输至线卡处理芯片的第二时差补偿值,并将所述第二报文传输至所述第二设备的主控板;Adding, in the second packet, a second time difference compensation value that is transmitted from the line card port of the second device to the line card processing chip, and transmitting the second message to the The main control board of the second device; 接收所述主控板获得所述第二报文后反馈的回应报文;Receiving, by the main control board, a response message that is fed back after the second packet; 在所述回应报文中增加所述回应报文从所述第二设备的线卡处理芯片传输至线卡端口的第三时差补偿值,获得第三报文;And adding, in the response packet, a third time difference compensation value that is sent from the line card processing chip of the second device to the line card port, to obtain a third message; 将所述第三报文通过所述第二设备的线卡端口传输至所述第一设备。Transmitting the third packet to the first device by using a line card port of the second device. 根据权利要求8所述的通信网络设备间时间同步的优化方法,其中,所述第二报文中记录有所述第一设备的主控板创建第一报文后,在所述第一报文中增加所述第一报文从所述第一设备的线卡处理芯片传输到线卡端口的第一时差补偿值。The method for optimizing time synchronization between communication network devices according to claim 8, wherein the second message is recorded in the first message after the main control board of the first device creates the first message. The first time difference compensation value that the first message is transmitted from the line card processing chip of the first device to the line card port is added. 一种通信网络设备间时间同步的优化装置,其中,包括:An apparatus for optimizing time synchronization between communication network devices, comprising: 第一接收模块,设置为接收第一设备发送的第二报文;The first receiving module is configured to receive the second packet sent by the first device; 第三处理模块,设置为在所述第二报文中增加所述第二报文从第二设备的线卡端口传输至线卡处理芯片的第二时差补偿值,并将所述第二报文传输至所述第二设备的主控板;a third processing module, configured to add, in the second packet, a second time difference compensation value that is sent from the line card port of the second device to the line card processing chip, and the second report is Transmitting to the main control board of the second device; 第二接收模块,设置为接收所述主控板获得所述第二报文后反馈的回应报文;a second receiving module, configured to receive a response message that is received by the main control board after obtaining the second packet; 第四处理模块,设置为在所述回应报文中增加所述回应报文从所述第二设备的线卡处理芯片传输至线卡端口的第三时差补偿值,获得第三报文;The fourth processing module is configured to add a third time difference compensation value that is sent from the line card processing chip of the second device to the line card port in the response message, to obtain a third message; 传输模块,设置为将所述第三报文通过所述第二设备的线卡端口传输至所述第一设备。And a transmission module, configured to transmit the third packet to the first device by using a line card port of the second device. 一种第二设备,包括:如权利要求10所述的通信网络设备间时间同步的优化装置。A second device comprising: the apparatus for optimizing time synchronization between communication network devices according to claim 10. 一种存储介质,设置为存储程序代码,所述程序代码用于执行权利要求1至5和8至10中任一项所述的通信网络设备间时间同步的优化方法。 A storage medium arranged to store program code for performing an optimization method of time synchronization between communication network devices according to any one of claims 1 to 5 and 8 to 10.
PCT/CN2017/087862 2016-07-04 2017-06-12 Method, apparatus and device for optimizing time synchronization between communication network devices Ceased WO2018006686A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610514790.4A CN107579793A (en) 2016-07-04 2016-07-04 The optimization method of time synchronized, device and equipment between a kind of communication network device
CN201610514790.4 2016-07-04

Publications (1)

Publication Number Publication Date
WO2018006686A1 true WO2018006686A1 (en) 2018-01-11

Family

ID=60901717

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/087862 Ceased WO2018006686A1 (en) 2016-07-04 2017-06-12 Method, apparatus and device for optimizing time synchronization between communication network devices

Country Status (2)

Country Link
CN (1) CN107579793A (en)
WO (1) WO2018006686A1 (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109818792A (en) * 2019-01-29 2019-05-28 西安电子科技大学 A Synchronization Control Method for Second-Order Complex Dynamic Networks with Directional Time-varying Topology
CN112202519A (en) * 2020-08-26 2021-01-08 浙江双成电气有限公司 Method for Controlling Delay Jitter of Packet Transmission
CN112436914A (en) * 2019-08-26 2021-03-02 烽火通信科技股份有限公司 Method and system for protecting master and slave 5G ultrahigh-precision clocks
US10947517B2 (en) * 2019-02-15 2021-03-16 Sigma-Aldrich Co. Llc CRISPR/Cas fusion proteins and systems
CN112532279A (en) * 2019-09-17 2021-03-19 华为技术有限公司 Method, device and system for acquiring data transmission time
CN112615694A (en) * 2020-12-11 2021-04-06 盛科网络(苏州)有限公司 Method and device for realizing network time synchronization
CN112737724A (en) * 2020-12-24 2021-04-30 盛科网络(苏州)有限公司 Time information synchronization method and device, storage medium and electronic device
CN112994824A (en) * 2021-03-03 2021-06-18 山东山大电力技术股份有限公司 Time synchronization method, device and system for IRIG-B code non-delay transmission
CN114629589A (en) * 2022-03-21 2022-06-14 新华三半导体技术有限公司 Data processing device and method
CN114731205A (en) * 2019-11-21 2022-07-08 华为技术有限公司 Clock synchronization method and device
CN115701007A (en) * 2021-07-22 2023-02-07 新唐科技股份有限公司 Chip transmission speed detection method and electronic device
CN116155432A (en) * 2023-02-09 2023-05-23 浙江中控技术股份有限公司 A time synchronization method and device
CN118763302A (en) * 2024-01-23 2024-10-11 杰华特微电子股份有限公司 AFE chip and battery management system with synchronous voltage sampling function

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111385049B (en) * 2018-12-29 2022-09-27 中兴通讯股份有限公司 Time correction method, device, system and storage medium
CN111082887B (en) * 2019-12-03 2022-03-18 锐捷网络股份有限公司 System, method, device, equipment and medium for signal transmission delay compensation
CN113055113B (en) * 2019-12-26 2025-01-07 中兴通讯股份有限公司 Clock time synchronization method, device, equipment and storage medium
CN112235067B (en) * 2020-09-24 2022-03-25 烽火通信科技股份有限公司 Centralized 1588 time synchronization method and time synchronization system
CN115707086A (en) * 2021-08-06 2023-02-17 大唐移动通信设备有限公司 Time delay compensation method, device, apparatus and storage medium
CN114397647B (en) * 2022-01-14 2025-03-21 江苏芯云电子科技有限公司 A method of accurate distance measurement based on communication messages
CN114745774B (en) * 2022-03-16 2023-05-12 烽火通信科技股份有限公司 Centralized time synchronization method, device, equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2077642A1 (en) * 2006-10-27 2009-07-08 Huawei Technologies Co., Ltd. A method, system and time server for adjusting network time
CN102938676A (en) * 2011-08-16 2013-02-20 中兴通讯股份有限公司 Method, device and system for processing time synchronization
CN103078699A (en) * 2012-12-28 2013-05-01 华为技术有限公司 Method and network device for conducting time synchronization based on precision time protocol
CN103188066A (en) * 2013-02-28 2013-07-03 中兴通讯股份有限公司 Reference clock signal processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2077642A1 (en) * 2006-10-27 2009-07-08 Huawei Technologies Co., Ltd. A method, system and time server for adjusting network time
CN102938676A (en) * 2011-08-16 2013-02-20 中兴通讯股份有限公司 Method, device and system for processing time synchronization
CN103078699A (en) * 2012-12-28 2013-05-01 华为技术有限公司 Method and network device for conducting time synchronization based on precision time protocol
CN103188066A (en) * 2013-02-28 2013-07-03 中兴通讯股份有限公司 Reference clock signal processing method and device

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109818792A (en) * 2019-01-29 2019-05-28 西安电子科技大学 A Synchronization Control Method for Second-Order Complex Dynamic Networks with Directional Time-varying Topology
US10947517B2 (en) * 2019-02-15 2021-03-16 Sigma-Aldrich Co. Llc CRISPR/Cas fusion proteins and systems
CN112436914A (en) * 2019-08-26 2021-03-02 烽火通信科技股份有限公司 Method and system for protecting master and slave 5G ultrahigh-precision clocks
CN112532279A (en) * 2019-09-17 2021-03-19 华为技术有限公司 Method, device and system for acquiring data transmission time
US11881931B2 (en) 2019-09-17 2024-01-23 Huawei Technologies Co., Ltd. Data transmission time obtaining method, apparatus, and system
CN112532279B (en) * 2019-09-17 2023-10-20 华为技术有限公司 Method, device, system and storage medium for obtaining data transmission time
CN114731205A (en) * 2019-11-21 2022-07-08 华为技术有限公司 Clock synchronization method and device
CN112202519A (en) * 2020-08-26 2021-01-08 浙江双成电气有限公司 Method for Controlling Delay Jitter of Packet Transmission
CN112615694A (en) * 2020-12-11 2021-04-06 盛科网络(苏州)有限公司 Method and device for realizing network time synchronization
CN112737724A (en) * 2020-12-24 2021-04-30 盛科网络(苏州)有限公司 Time information synchronization method and device, storage medium and electronic device
CN112737724B (en) * 2020-12-24 2022-09-23 苏州盛科通信股份有限公司 Time information synchronization method and device, storage medium and electronic device
CN112994824B (en) * 2021-03-03 2023-03-21 山东山大电力技术股份有限公司 Time synchronization method, device and system for IRIG-B code non-delay transmission
CN112994824A (en) * 2021-03-03 2021-06-18 山东山大电力技术股份有限公司 Time synchronization method, device and system for IRIG-B code non-delay transmission
CN115701007A (en) * 2021-07-22 2023-02-07 新唐科技股份有限公司 Chip transmission speed detection method and electronic device
CN114629589A (en) * 2022-03-21 2022-06-14 新华三半导体技术有限公司 Data processing device and method
CN116155432A (en) * 2023-02-09 2023-05-23 浙江中控技术股份有限公司 A time synchronization method and device
CN118763302A (en) * 2024-01-23 2024-10-11 杰华特微电子股份有限公司 AFE chip and battery management system with synchronous voltage sampling function

Also Published As

Publication number Publication date
CN107579793A (en) 2018-01-12

Similar Documents

Publication Publication Date Title
WO2018006686A1 (en) Method, apparatus and device for optimizing time synchronization between communication network devices
CN109565435B (en) System and method for network synchronization
US9923656B2 (en) Methods, systems, and computer readable media for testing recovered clock quality
KR101506138B1 (en) Method, apparatus and system for time distribution in a telecommunications network
US10432336B2 (en) System and method of synchronizing a distributed clock in a packet-compatible network
CN102577194B (en) System and method for synchronizing clocks within a distributed network
US8873589B2 (en) Methods and devices for clock synchronization
US9860004B2 (en) Network distributed packet-based synchronization
CN104737490B (en) Communicator, communication system and method for synchronizing time
US9698926B2 (en) Distributed two-step clock
CN104836630B (en) IEEE1588 clock synchronization system and implementation method therefor
CN103929293B (en) Asymmetric delay time synchronization method and system
CN108259109B (en) Network equipment in PTP domain and TOD synchronization method
CN101447861A (en) IEEE 1588 time synchronization system and implementation method thereof
EP3284217A1 (en) Methods, systems, and computer readable media for synchronizing timing among network interface cards (nics) in a network equipment test device
CN108599888A (en) A kind of distributed network clock synchronizing system
CN103718483A (en) Method for time synchronization in communication network
WO2009043299A1 (en) A determining method and device for the synchronization port of a transparent clock equipment
CN114337895A (en) Clock synchronization system based on linear daisy chain Ethernet topology
CN113259038A (en) Time synchronization method, node, device and storage medium
CN104184534A (en) Method for achieving accuracy of transparent clock path delay of IEEE1588 protocol
JP6227888B2 (en) Communication system, synchronization system, and communication method
CN109921871A (en) A kind of method for synchronizing time, device and network system
WO2013075307A1 (en) Method, device and system for monitoring output time of network node
CN106688207A (en) Method for determining a propagation time of a telegram in a communication network, and corresponding network components

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: 17823498

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: 17823498

Country of ref document: EP

Kind code of ref document: A1