CN116566529A - Time adjustment method, network equipment and system - Google Patents
Time adjustment method, network equipment and system Download PDFInfo
- Publication number
- CN116566529A CN116566529A CN202210103376.XA CN202210103376A CN116566529A CN 116566529 A CN116566529 A CN 116566529A CN 202210103376 A CN202210103376 A CN 202210103376A CN 116566529 A CN116566529 A CN 116566529A
- Authority
- CN
- China
- Prior art keywords
- network device
- time
- frequency
- delay data
- deviation
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0602—Systems characterised by the synchronising information used
- H04J3/0617—Systems characterised by the synchronising information used the synchronising signal being characterised by the frequency or phase
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
Description
技术领域technical field
本申请涉及通信技术领域,尤其涉及一种时间调整方法、网络设备及系统。The present application relates to the technical field of communications, and in particular to a time adjustment method, network equipment and system.
背景技术Background technique
随流检测技术(in-situ flow information telemetry,IFIT)是一种通过对网络真实业务流进行特征标记,以直接检测网络的时延、丢包、抖动等性能指标的检测技术。IFIT时延测量功能对设备之间的时间同步性能要求较高。In-situ flow information telemetry (IFIT) is a detection technology that directly detects performance indicators such as time delay, packet loss, and jitter of the network by marking the real service flow of the network. The IFIT delay measurement function requires high time synchronization performance between devices.
精确时间协议(precision time protocol,PTP)规定了通信设备间的时间调整方法,具体的,设备之间通过发送PTP报文,利用滤波算法周期性进行时间调整,实现网络设备的系统时间与上游时间同步设备的系统时间同步。The precision time protocol (precision time protocol, PTP) specifies the time adjustment method between communication devices. Specifically, the devices send PTP messages and use the filtering algorithm to periodically adjust the time to realize the system time of the network device and the upstream time. Synchronize the system time of the device.
但是,由于滤波调整调制频率越高则通信设备滤噪能力越差,并且,受限于时间调整环路带宽,每次调整的时间偏差有限,通信设备的系统时间相较上游时间同步设备的系统时间的时间偏差将随时间变化跳动,例如呈现锯齿波,锯齿波幅度峰值高,时间同步性能较差,无法满足如IFIT技术等对时间同步性能的较高要求。However, since the higher the modulation frequency of filter adjustment, the worse the noise filtering ability of the communication equipment, and, limited by the time adjustment loop bandwidth, the time deviation of each adjustment is limited, the system time of the communication equipment is compared with the system time of the upstream time synchronization equipment. The time deviation of the time will fluctuate with time, such as presenting a sawtooth wave. The amplitude peak of the sawtooth wave is high, and the time synchronization performance is poor, which cannot meet the high requirements for time synchronization performance such as IFIT technology.
发明内容Contents of the invention
有鉴于此,本申请实施例提供了一种时间调整方法和网络设备,用于提高网络设备的时间同步性能。In view of this, the embodiments of the present application provide a time adjustment method and a network device, so as to improve the time synchronization performance of the network device.
第一方面,本申请提供了一种时间调整方法,包括:第一网络设备获得频率偏差,所述频率偏差为所述第一网络设备的系统频率与第二网络设备的系统频率的偏差,所述第二网络设备为所述第一网络设备的上游时间同步设备;所述第一网络设备根据所述频率偏差获得时间偏差,所述时间偏差为所述第一网络设备和所述第二网络设备由所述频率偏差产生的时间偏差;所述第一网络设备根据所述时间偏差调整系统时间。In a first aspect, the present application provides a time adjustment method, including: a first network device obtains a frequency deviation, where the frequency deviation is a deviation between a system frequency of the first network device and a system frequency of a second network device, and the The second network device is an upstream time synchronization device of the first network device; the first network device obtains a time offset according to the frequency offset, and the time offset is the first network device and the second network A device time deviation generated by the frequency deviation; the first network device adjusts system time according to the time deviation.
基于本申请提供的方案,由于第一网络设备与上游的时间同步设备的频率不同步,会产生频率偏差,进而会不断产生时间偏差,第一网络设备获得第一网络设备与上游的时间同步设备之间的频率偏差,根据频率偏差计算由于频率偏差引起的时间偏差并对系统时间进行调整,可以减少由于频率偏差产生时间偏差,提升时间同步性能。Based on the solution provided by this application, since the frequencies of the first network device and the upstream time synchronization device are not synchronized, a frequency deviation will occur, and then time deviations will continue to occur. The first network device obtains the first network device and the upstream time synchronization device. Calculate the time deviation caused by the frequency deviation and adjust the system time according to the frequency deviation, which can reduce the time deviation caused by the frequency deviation and improve the time synchronization performance.
在第一方面的一种可能的实现方式中,所述第一网络设备根据所述频率偏差获得时间偏差包括:所述第一网络设备根据所述频率偏差和第一周期获得时间偏差,所述时间偏差为所述第一网络设备和所述第二网络设备在所述第一周期内由所述频率偏差产生的时间偏差,所述第一周期为所述根据所述时间偏差调整系统时间的周期。In a possible implementation manner of the first aspect, the obtaining the time offset by the first network device according to the frequency offset includes: obtaining the time offset by the first network device according to the frequency offset and a first cycle, the The time offset is a time offset generated by the frequency offset between the first network device and the second network device within the first period, and the first period is the adjustment of the system time according to the time offset cycle.
本申请提供的方案,基于第一周期对基于频率偏差产生的时间偏差进行周期性调整,提升第一网络设备时间同步性能。The solution provided by the present application periodically adjusts the time deviation generated based on the frequency deviation based on the first period, so as to improve the time synchronization performance of the first network device.
在第一方面的一种可能的实现方式中,所述第一周期小于第二周期,所述第二周期为所述第一网络设备根据滤波算法调整所述系统时间的周期,所述滤波算法为比例微分积分控制算法。In a possible implementation manner of the first aspect, the first period is shorter than the second period, and the second period is a period during which the first network device adjusts the system time according to a filtering algorithm, and the filtering algorithm It is a proportional-differential-integral control algorithm.
本申请提供的方案,对基于频率偏差产生的时间偏差进行调整的第一周期小于基于滤波算法调整的第二周期,因此,可以降低时间偏差锯齿波的幅度值,提升整体时间同步性能。In the solution provided by this application, the first period of adjusting the time deviation based on the frequency deviation is shorter than the second period adjusted based on the filtering algorithm. Therefore, the amplitude value of the time deviation sawtooth wave can be reduced, and the overall time synchronization performance can be improved.
在第一方面的一种可能的实现方式中,所述第一网络设备获得频率偏差包括:所述第一网络设备获得N个时延数据,所述N个时延数据均用于指示所述第一网络设备与所述第二网络设备之间的报文传输时延,所述N为大于或等于2的正整数;所述第一网络设备根据所述N个时延数据获得所述频率偏差。In a possible implementation manner of the first aspect, the obtaining the frequency offset by the first network device includes: obtaining N delay data by the first network device, and the N delay data are all used to indicate the The message transmission delay between the first network device and the second network device, the N is a positive integer greater than or equal to 2; the first network device obtains the frequency according to the N delay data deviation.
在第一方面的一种可能的实现方式中,第一网络设备接收第三网络设备发送的频率偏差。In a possible implementation manner of the first aspect, the first network device receives the frequency offset sent by the third network device.
在第一方面的一种可能的实现方式中,所述N个时延数据包括第一时延数据和第二时延数据,所述获得N个时延数据包括:所述第一网络设备根据第一报文传输时延获得所述第一时延数据;所述第一网络设备根据第二报文传输时延和特定时长内系统时间的调整值获得所述第二时延数据,所述特定时长内系统时间的调整值为所述第一时延数据对应的时间与所述第二时延数据对应的时间之间的系统时间的调整值。In a possible implementation manner of the first aspect, the N delay data includes first delay data and second delay data, and the obtaining the N delay data includes: the first network device according to The first packet transmission delay obtains the first delay data; the first network device obtains the second delay data according to the second packet transmission delay and the adjustment value of the system time within a specific duration, and the The adjustment value of the system time within the specific time period is an adjustment value of the system time between the time corresponding to the first delay data and the time corresponding to the second delay data.
本申请提供的方案,若N个时延数据对应的特定时长内存在时间调整,则需要对时延进行补偿得到时延数据,通过补偿可以使得时延数组中的时延数据统一到同一参考时间下用于计算频率偏差,提升了频率偏差计算的准确度。In the solution provided by this application, if there is a time adjustment in the specific duration corresponding to the N delay data, the delay needs to be compensated to obtain the delay data. Through compensation, the delay data in the delay array can be unified to the same reference time It is used to calculate frequency deviation, which improves the accuracy of frequency deviation calculation.
在第一方面的一种可能的实现方式中,所述系统时间的调整值包括根据滤波算法调整系统时间的调整值。In a possible implementation manner of the first aspect, the adjustment value of the system time includes adjusting the adjustment value of the system time according to a filtering algorithm.
在第一方面的一种可能的实现方式中,所述系统时间的调整值包括所述根据所述时间偏差调整系统时间的调整值。In a possible implementation manner of the first aspect, the adjustment value of the system time includes the adjustment value of adjusting the system time according to the time deviation.
在第一方面的一种可能的实现方式中,特定时长内第一网络设备既根据滤波算法调整系统时间,又根据所述时间偏差调整系统时间,则根据滤波算法调整系统时间的调整值以及根据所述时间偏差调整系统时间的调整值均需要用于补偿时延,以获取时延数据。In a possible implementation of the first aspect, the first network device adjusts the system time according to the filtering algorithm and adjusts the system time according to the time deviation within a certain period of time, then adjusts the adjustment value of the system time according to the filtering algorithm and according to All the adjustment values of the time offset adjustment system time need to be used to compensate time delay so as to obtain time delay data.
在第一方面的一种可能的实现方式中,所述N个时延数据中的任意一个时延数据为所述第一网络设备与所述第二网络设备之间的报文传输时延。In a possible implementation manner of the first aspect, any one of the N delay data is a packet transmission delay between the first network device and the second network device.
若N个时延数据中任意两个时延数据对应的时间之间该第一网络设备未进行时间调整,则N个时延数据均为第一网络设备与所述第二网络设备之间的报文传输时延,需要说明的是,该N个时延数据基于不同的时间同步报文获得。If the first network device does not perform time adjustment between the times corresponding to any two delay data in the N delay data, then the N delay data are all between the first network device and the second network device Packet transmission delay, it should be noted that the N pieces of delay data are obtained based on different time synchronization packets.
在第一方面的一种可能的实现方式中,所述第一网络设备根据所述N个时延数据获得所述频率偏差,包括:所述第一网络设备根据最小二乘法处理所述N个时延数据,获得所述频率偏差和误差,所述误差小于或等于第一阈值。In a possible implementation manner of the first aspect, the obtaining the frequency offset by the first network device according to the N delay data includes: processing the N delay data by the first network device according to the least square method time delay data to obtain the frequency deviation and error, where the error is less than or equal to a first threshold.
本申请提供的方案,第一网络设备在进行频率偏差的估算时,可以对时延数据进行线性拟合,线性拟合方法有多种,例如最小二乘法、平均值线性拟合等,具体不做限定。当频率偏差对应的误差满足第一阈值要求时,该频率偏差为有效值,通过误差限值的设计可以提升时间同步的准确性。In the solution provided by this application, the first network device can linearly fit the delay data when estimating the frequency deviation. There are many linear fitting methods, such as the least square method, average value linear fitting, etc. Do limited. When the error corresponding to the frequency deviation satisfies the first threshold requirement, the frequency deviation is an effective value, and the accuracy of time synchronization can be improved through the design of the error limit.
在第一方面的一种可能的实现方式中,所述第一网络设备根据所述N个时延数据获得所述频率偏差包括:在第三周期内,所述第一网络设备根据所述N个时延数据获得所述频率偏差,所述第三周期为所述频率偏差的获得周期。In a possible implementation manner of the first aspect, the obtaining the frequency offset by the first network device according to the N delay data includes: in the third period, the first network device according to the N time delay data to obtain the frequency deviation, and the third period is the frequency deviation acquisition period.
本申请提供的方案,可以在在第三周期内,根据计算得到的频率偏差对系统时间进行调整,在第三周期内之后,重新计算频率偏差,对频率偏差进行更新,以进一步提升时间同步性能。The solution provided by this application can adjust the system time according to the calculated frequency deviation in the third period, recalculate the frequency deviation after the third period, and update the frequency deviation to further improve the time synchronization performance .
在第一方面的一种可能的实现方式中,所述N小于或等于第二阈值,所述第二阈值大于或等于3。In a possible implementation manner of the first aspect, the N is less than or equal to a second threshold, and the second threshold is greater than or equal to three.
本申请提供的方案,用于计算频率偏差的时延数据的数量越多,则计算精度越高,计算越复杂。限定时延数据的数量小于或等于第二阈值,通过第二阈值的设定可控制频率偏差的计算复杂度和精度,在保证计算精度的同时控制计算量在合理范围。In the solution provided by the present application, the greater the amount of delay data used to calculate the frequency deviation, the higher the calculation accuracy and the more complex the calculation. The quantity of time-delay data is limited to be less than or equal to the second threshold, and the calculation complexity and accuracy of the frequency deviation can be controlled by setting the second threshold, and the calculation amount is controlled within a reasonable range while ensuring the calculation accuracy.
在第一方面的一种可能的实现方式中,所述第一网络设备为不支持频率调整的网络设备。In a possible implementation manner of the first aspect, the first network device is a network device that does not support frequency adjustment.
本申请提供的方案,可应用于不支持频率调整的网络设备,减少时间偏差。The solution provided by this application can be applied to network devices that do not support frequency adjustment to reduce time deviation.
在第一方面的一种可能的实现方式中,所述第一网络设备为支持频率调整的网络设备。In a possible implementation manner of the first aspect, the first network device is a network device that supports frequency adjustment.
本申请提供的方案,也可应用于支持频率调整的网络设备,用于减少时间偏差。The solution provided in this application can also be applied to network equipment supporting frequency adjustment to reduce time deviation.
在第一方面的一种可能的实现方式中,所述方法还包括:若所述频率偏差大于或等于第三阈值,则所述第一网络设备将频率源切换至所述第二网络设备。In a possible implementation manner of the first aspect, the method further includes: if the frequency deviation is greater than or equal to a third threshold, the first network device switches the frequency source to the second network device.
本申请提供的方案,若第一网络设备在硬件结构上具有频率调整环路,可以在满足一定的条件(例如频率偏差大于第三阈值)时进行频率切源,通过纠正时间频率不同源从根本上避免时间不同步,可以显著提升网络设备的时间同步性能。In the solution provided by this application, if the first network device has a frequency adjustment loop in the hardware structure, it can perform frequency source switching when certain conditions are met (for example, the frequency deviation is greater than the third threshold), and by correcting the different sources of time and frequency, fundamentally It can significantly improve the time synchronization performance of network devices by avoiding time out of synchronization.
第二方面,本申请提供了一种网络设备,包括:获得单元,用于获得频率偏差,所述频率偏差为所述第一网络设备的系统频率与第二网络设备的系统频率的偏差,所述第二网络设备为所述第一网络设备的上游时间同步设备;所述获得单元,还用于根据所述频率偏差获得时间偏差,所述时间偏差为所述第一网络设备和所述第二网络设备由所述频率偏差产生的时间偏差;调整单元,用于根据所述时间偏差调整系统时间。In a second aspect, the present application provides a network device, including: an obtaining unit, configured to obtain a frequency deviation, the frequency deviation being the deviation between the system frequency of the first network device and the system frequency of the second network device, so The second network device is an upstream time synchronization device of the first network device; the obtaining unit is further configured to obtain a time deviation according to the frequency deviation, and the time deviation is the first network device and the first network device 2. A time deviation generated by the frequency deviation of the network equipment; an adjustment unit, configured to adjust the system time according to the time deviation.
在第二方面的一种可能的实现方式中,所述获得单元具体用于:根据所述频率偏差和第一周期获得时间偏差,所述时间偏差为所述第一网络设备和所述第二网络设备在所述第一周期内由所述频率偏差产生的时间偏差,所述第一周期为所述调整单元根据所述时间偏差调整系统时间的周期。In a possible implementation manner of the second aspect, the obtaining unit is specifically configured to: obtain a time offset according to the frequency offset and the first cycle, and the time offset is the first network device and the second network device. A time deviation of the network device generated by the frequency deviation within the first period, where the first period is a period for the adjustment unit to adjust the system time according to the time deviation.
在第二方面的一种可能的实现方式中,所述第一周期小于第二周期,所述第二周期为所述网络设备根据滤波算法调整所述系统时间的周期,所述滤波算法为比例微分积分控制算法。In a possible implementation manner of the second aspect, the first period is shorter than the second period, and the second period is a period during which the network device adjusts the system time according to a filtering algorithm, and the filtering algorithm is a proportional Differential-integral control algorithm.
在第二方面的一种可能的实现方式中,所述获得单元具体用于:所获得N个时延数据,所述N个时延数据均用于指示所述第一网络设备与所述第二网络设备之间的报文传输时延,所述N为大于或等于2的正整数;根据所述N个时延数据获得所述频率偏差。In a possible implementation manner of the second aspect, the obtaining unit is specifically configured to: obtain N delay data, and the N delay data are all used to indicate that the first network device and the second network device Packet transmission time delay between two network devices, the N is a positive integer greater than or equal to 2; the frequency deviation is obtained according to the N time delay data.
在第二方面的一种可能的实现方式中,所述获得单元具体用于:根据第一报文传输时延获得所述第一时延数据;根据第二报文传输时延和特定时长内系统时间的调整值获得所述第二时延数据,所述特定时长内系统时间的调整值为所述第一时延数据对应的时间与所述第二时延数据对应的时间之间的系统时间的调整值。In a possible implementation manner of the second aspect, the obtaining unit is specifically configured to: obtain the first delay data according to the first packet transmission delay; The adjustment value of the system time obtains the second delay data, and the adjustment value of the system time within the specific duration is the system time between the time corresponding to the first delay data and the time corresponding to the second delay data. The adjustment value for the time.
在第二方面的一种可能的实现方式中,所述系统时间的调整值包括根据滤波算法调整系统时间的调整值。In a possible implementation manner of the second aspect, the adjustment value of the system time includes adjusting the adjustment value of the system time according to a filtering algorithm.
在第二方面的一种可能的实现方式中,所述系统时间的调整值包括所述根据所述时间偏差调整系统时间的调整值。In a possible implementation manner of the second aspect, the adjustment value of the system time includes the adjustment value of adjusting the system time according to the time deviation.
在第二方面的一种可能的实现方式中,所述N个时延数据中的任意一个时延数据为所述第一网络设备与所述第二网络设备之间的报文传输时延。In a possible implementation manner of the second aspect, any delay data in the N pieces of delay data is a packet transmission delay between the first network device and the second network device.
在第二方面的一种可能的实现方式中,所述获得单元具体用于:根据最小二乘法处理所述N个时延数据,获得所述频率偏差和误差,所述误差小于或等于第一阈值。In a possible implementation manner of the second aspect, the obtaining unit is specifically configured to: process the N time delay data according to the least square method to obtain the frequency deviation and error, and the error is less than or equal to the first threshold.
在第二方面的一种可能的实现方式中,所述获得单元具体用于:在第三周期内,根据所述N个时延数据获得所述频率偏差,所述第三周期为所述频率偏差的获得周期。In a possible implementation manner of the second aspect, the obtaining unit is specifically configured to: obtain the frequency deviation according to the N delay data in a third cycle, the third cycle being the frequency The acquisition period of the deviation.
在第二方面的一种可能的实现方式中,所述N小于或等于第二阈值,所述第二阈值大于或等于3。In a possible implementation manner of the second aspect, the N is less than or equal to a second threshold, and the second threshold is greater than or equal to three.
在第二方面的一种可能的实现方式中,所述第一网络设备为不支持频率调整的网络设备。In a possible implementation manner of the second aspect, the first network device is a network device that does not support frequency adjustment.
在第二方面的一种可能的实现方式中,所述第一网络设备为支持频率调整的网络设备。In a possible implementation manner of the second aspect, the first network device is a network device that supports frequency adjustment.
在第二方面的一种可能的实现方式中,所述网络设备还包括:切换单元,用于若所述频率偏差大于或等于第三阈值,则将频率源切换至所述第二网络设备。In a possible implementation manner of the second aspect, the network device further includes: a switching unit configured to switch the frequency source to the second network device if the frequency deviation is greater than or equal to a third threshold.
第三方面,本申请提供了一种网络设备,其特征在于,包括:一个或多个处理器和存储器;其中,所述存储器中存储有计算机可读指令;所述一个或多个处理器读取所述计算机可读指令以使所述网络设备执行如上述第一方面以及各种可能的实现方式中任一项所述的方法。In a third aspect, the present application provides a network device, which is characterized by comprising: one or more processors and a memory; wherein, computer-readable instructions are stored in the memory; the one or more processors read Acquiring the computer-readable instructions to enable the network device to execute the method described in any one of the above-mentioned first aspect and various possible implementation manners.
第四方面,本申请提供了一种包含指令的计算机程序产品,其特征在于,当其在计算机上运行时,使得所述计算机执行如上述第一方面以及各种可能的实现方式中任一项所述的方法。In a fourth aspect, the present application provides a computer program product containing instructions, which is characterized in that, when it is run on a computer, the computer executes any one of the above-mentioned first aspect and various possible implementations. the method described.
第五方面,本申请提供了一种计算机可读存储介质,包括指令,其特征在于,当所述指令在计算机上运行时,使得计算机执行如上述第一方面以及各种可能的实现方式中任一项所述的方法。In a fifth aspect, the present application provides a computer-readable storage medium, including instructions, which is characterized in that, when the instructions are run on a computer, the computer is made to execute any of the above-mentioned first aspect and various possible implementation manners. one of the methods described.
第六方面,本申请提供了一种芯片,包括处理器。处理器用于读取并执行存储器中存储的计算机程序,以执行上述任一方面任意可能的实现方式中的方法。可选地,该芯片该包括存储器,该存储器与该处理器通过电路或电线与存储器连接。进一步可选地,该芯片还包括通信接口,处理器与该通信接口连接。通信接口用于接收需要处理的数据和/或信息,处理器从该通信接口获取该数据和/或信息,并对该数据和/或信息进行处理,并通过该通信接口输出处理结果。该通信接口可以是输入输出接口。In a sixth aspect, the present application provides a chip, including a processor. The processor is used to read and execute the computer program stored in the memory, so as to execute the method in any possible implementation manner of any aspect above. Optionally, the chip includes a memory, and the memory and the processor are connected to the memory through a circuit or wires. Further optionally, the chip further includes a communication interface, and the processor is connected to the communication interface. The communication interface is used to receive data and/or information to be processed, and the processor obtains the data and/or information from the communication interface, processes the data and/or information, and outputs the processing result through the communication interface. The communication interface may be an input-output interface.
其中,第二方面、第三方面、第四方面、第五方面或第六方面以及其中任一种实现方式所带来的技术效果可参见第一方面中相应实现方式所带来的技术效果,此处不再赘述。Wherein, the technical effect brought by the second aspect, the third aspect, the fourth aspect, the fifth aspect or the sixth aspect and any one of the implementation methods can refer to the technical effect brought by the corresponding implementation method in the first aspect, I won't repeat them here.
本申请提供的时间调整方法,第一网络设备通过频率偏差获得时间偏差,对系统时间进行调整,可以减少因频率偏差产生的时间偏差,提升时间同步性能。以没有硬件调整环路的CPE通信设备CPE设备为例,TE性能提升5倍以上。In the time adjustment method provided by the present application, the first network device obtains the time deviation through the frequency deviation and adjusts the system time, which can reduce the time deviation caused by the frequency deviation and improve time synchronization performance. Taking the CPE communication equipment CPE equipment without hardware adjustment loop as an example, the TE performance is improved by more than 5 times.
对于通信网络中的核心层、汇聚层或接入层的硬件上支持频率调整环路和时间调整环路的设备,可以有效的检测频率时间是否不同源,并提升频率时间不同源场景的IFIT时间同步性能。由于本申请提供的时间调整方法对网络设备的时间源或频率源没有要求,不必排查整个组网成千上万台设备的时钟跟踪路径,降低了IFIT时间同步特性的部署难度和运维难度,可以支持更多的应用场景,提升运维效率。For devices that support frequency adjustment loops and time adjustment loops on the hardware of the core layer, aggregation layer, or access layer in the communication network, it can effectively detect whether the frequency and time are different sources, and improve the IFIT time of the frequency and time different source scenarios synchronization performance. Since the time adjustment method provided by this application has no requirements on the time source or frequency source of network devices, it is not necessary to check the clock tracking paths of thousands of devices in the entire network, which reduces the difficulty of deployment and operation and maintenance of the IFIT time synchronization feature. It can support more application scenarios and improve operation and maintenance efficiency.
附图说明Description of drawings
图1为本申请实施例提供的时间调整方法的一个应用场景架构图;FIG. 1 is an application scenario architecture diagram of the time adjustment method provided by the embodiment of the present application;
图2为本申请实施例提供的时间调整方法的另一个应用场景架构图;FIG. 2 is another application scenario architecture diagram of the time adjustment method provided by the embodiment of the present application;
图3为IFIT时延测量原理的示意图;FIG. 3 is a schematic diagram of the principle of IFIT delay measurement;
图4为本申请实施例中时间调整方法的一个实施例示意图;FIG. 4 is a schematic diagram of an embodiment of the time adjustment method in the embodiment of the present application;
图5为时间偏差锯齿波的示意图;Fig. 5 is the schematic diagram of time deviation sawtooth wave;
图6为本申请实施例中时间偏差锯齿波的另一个示意图;FIG. 6 is another schematic diagram of a time-biased sawtooth wave in an embodiment of the present application;
图7为本申请实施例中时间偏差锯齿波的另一个示意图;FIG. 7 is another schematic diagram of a time-biased sawtooth wave in an embodiment of the present application;
图8为本申请实施例中网络设备的一个实施例示意图;FIG. 8 is a schematic diagram of an embodiment of a network device in the embodiment of the present application;
图9为本申请实施例中网络设备的另一个实施例示意图。FIG. 9 is a schematic diagram of another embodiment of a network device in the embodiment of the present application.
具体实施方式Detailed ways
本申请实施例提供了一种时间调整方法、网络设备和系统,用于提高网络设备的时间同步性能。The embodiment of the present application provides a time adjustment method, network equipment and system, which are used to improve the time synchronization performance of the network equipment.
下面结合附图,对本申请的实施例进行描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。本领域普通技术人员可知,随着技术的发展和新场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。Embodiments of the present application are described below in conjunction with the accompanying drawings. Apparently, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Those of ordinary skill in the art know that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或模块的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或模块,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或模块。在本申请中出现的对步骤进行的命名或者编号,并不意味着必须按照命名或者编号所指示的时间/逻辑先后顺序执行方法流程中的步骤,已经命名或者编号的流程步骤可以根据要实现的技术目的变更执行次序,只要能达到相同或者相类似的技术效果即可。The terms "first", "second" and the like in the specification and claims of the present application and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or modules is not necessarily limited to the expressly listed Instead, other steps or modules not explicitly listed or inherent to the process, method, product or apparatus may be included. The naming or numbering of the steps in this application does not mean that the steps in the method flow must be executed in the time/logic sequence indicated by the naming or numbering. The execution order of the technical purpose is changed, as long as the same or similar technical effect can be achieved.
下面对本申请实施例中时间调整方法的应用场景架构进行介绍,请参阅图1和图2,为本申请实施例中时间调整方法的应用场景架构图。The application scenario architecture of the time adjustment method in the embodiment of the present application is introduced below. Please refer to FIG. 1 and FIG. 2 , which are diagrams of the application scenario architecture of the time adjustment method in the embodiment of the application.
如图1所示,本申请实施例提供的时间调整方法的一个应用场景包括网络设备NE-1和网络设备NE-2,NE-1和NE-2可以直接连接,也可以通过其他网络设备连接。其中,NE-1为NE-2的上游时间同步设备,具体设备类型不做限定。NE-2为硬件上不支持频率同步设备,例如灵活的传输设备(agile transport network,ATN)、分组传送网(packet transportnetwork,PTN)、客户终端设备(customer premises equipment,CPE)等无鉴相器,无直接数字频率合成器(direct digital synthesizer,DDS)等器件的设备。在图1示出的场景中,包括时间同步环路,用于NE-2与NE-1之间进行时间同步。As shown in Figure 1, an application scenario of the time adjustment method provided by the embodiment of the present application includes network equipment NE-1 and network equipment NE-2. NE-1 and NE-2 can be connected directly or through other network equipment. . Among them, NE-1 is the upstream time synchronization device of NE-2, and the specific device type is not limited. NE-2 is a device that does not support frequency synchronization in hardware, such as agile transport network (ATN), packet transport network (PTN), customer premises equipment (CPE), etc. without phase detectors , equipment without direct digital synthesizer (direct digital synthesizer, DDS) and other devices. In the scenario shown in FIG. 1 , a time synchronization loop is included for time synchronization between NE-2 and NE-1.
如图2所示,本申请实施例提供的时间调整方法的另一个应用场景包括网络设备NE-1、网络设备NE-2和网络设备NE-3,NE-3与NE-1可以直接连接,也可以通过其他网络设备连接,同样的,NE-3与NE-2可以直接连接,也可以通过其他网络设备连接。NE-3为硬件上支持频率同步设备。其中,NE-1为NE-3的频率跟踪源,NE-3的系统时钟频率与NE-1的系统时间频率同步。NE-2为NE-3的上游时间同步设备,NE-3通过收发时间同步报文与NE-2进行时间同步。As shown in Figure 2, another application scenario of the time adjustment method provided by the embodiment of the present application includes network equipment NE-1, network equipment NE-2, and network equipment NE-3. NE-3 and NE-1 can be directly connected. It can also be connected through other network devices. Similarly, NE-3 and NE-2 can be connected directly or through other network devices. NE-3 is a device that supports frequency synchronization on the hardware. Among them, NE-1 is the frequency tracking source of NE-3, and the system clock frequency of NE-3 is synchronized with the system clock frequency of NE-1. NE-2 is the upstream time synchronization device of NE-3. NE-3 synchronizes time with NE-2 by sending and receiving time synchronization packets.
通信网络设备中,频率同步是时间同步的前提,设备内系统时钟的频率同步性能影响时间同步性能,当频率不同步时,时间同步性能较差,下面参考图1和图2进行具体分析。In communication network equipment, frequency synchronization is the premise of time synchronization. The frequency synchronization performance of the system clock in the equipment affects the time synchronization performance. When the frequency is not synchronized, the time synchronization performance is poor. Refer to Figure 1 and Figure 2 for specific analysis below.
基于图1示出时间和频率不同源的应用场景,网络设备NE-2,通过与上游时间同步设备NE-1收发时间同步报文进行时间同步。NE-1在时间同步报文的发送时刻标记时戳T1,NE-2在该时间同步报文的接收时刻标记时戳T2。时戳T2是基于NE-2本地晶振自由振荡的时钟标记,时戳T1则是基于NE-1的系统时钟标记,NE-1的系统时钟与NE-2的本地晶振自由振荡的时钟不同步将使得基于时戳T1和时戳T2计算的时延数据准确度降低,NE-2的时间同步性能差。Based on the application scenario of different sources of time and frequency shown in FIG. 1 , the network device NE-2 performs time synchronization by sending and receiving time synchronization packets with the upstream time synchronization device NE-1. NE-1 marks a time stamp T1 at the time of sending the time synchronization message, and NE-2 marks a time stamp T2 at the time of receiving the time synchronization message. The time stamp T2 is based on the clock mark of the free oscillation of the local crystal oscillator of NE-2, and the time stamp T1 is based on the mark of the system clock of NE-1. If the system clock of NE-1 is not synchronized with the free oscillation clock of the local crystal oscillator of NE-2, the As a result, the accuracy of the time delay data calculated based on the time stamp T1 and time stamp T2 is reduced, and the time synchronization performance of NE-2 is poor.
基于图2示出时间和频率不同源的应用场景,需要说明的是,NE-3的时间和频率不同源,包括:Based on the application scenario of different time and frequency sources shown in Figure 2, it should be noted that the time and frequency sources of NE-3 include:
1)NE-3的频率源来源于时钟源通信楼定时供给系统(building integratedtiming supply,BITS)(由于NE-1频率源来源于时钟源BITS),但是NE-3的时间源来源于NE-2,因此,NE-3的频率和时间不同源。1) The frequency source of NE-3 comes from the clock source communication building timing supply system (building integrated timing supply, BITS) (because the frequency source of NE-1 comes from the clock source BITS), but the time source of NE-3 comes from NE-2 , therefore, NE-3 has different sources of frequency and time.
2)NE-3的频率源来源于NE-1(NE-1的频率源不来源于BITS),但NE-3的时间源来源于时钟源BITS(由于NE-2的时间源来源于BITS),因此,NE-3的频率和时间不同源。2) The frequency source of NE-3 comes from NE-1 (the frequency source of NE-1 does not come from BITS), but the time source of NE-3 comes from the clock source BITS (because the time source of NE-2 comes from BITS) , therefore, NE-3 has different sources of frequency and time.
3)NE-3的频率源来源于NE-1,但是时间源来源于NE-2,NE-1的频率源与NE-2的时间源来源不是BITS,因此,NE-3的频率和时间不同源。3) The frequency source of NE-3 comes from NE-1, but the time source comes from NE-2, the source of the frequency source of NE-1 and the time source of NE-2 are not BITS, therefore, the frequency and time of NE-3 are different source.
从上述各种情形可知,虽然网络设备NE-3有时间同步环路,也有频率同步环路,频率源一直存在,但是频率源和时间源不同源,此外,网络设备还可能发生正常跟踪的频率源丢失,设备从有源到无源的情况。From the above situations, it can be seen that although the network device NE-3 has a time synchronization loop and a frequency synchronization loop, the frequency source has always existed, but the frequency source and the time source are different sources. In addition, the network device may also have a normal tracking frequency The source is lost and the device changes from active to passive.
网络设备NE-3,通过与上游时间同步设备NE-2收发时间同步报文进行时间同步。NE-2在时间同步报文的发送时刻标记时戳T1,NE-3在该时间同步报文的接收时刻标记时戳T2。时戳T2是基于NE-1的系统时钟标记,时戳T1则是基于NE-2的系统时钟标记,NE-1的系统时钟与NE-2的系统时钟不同步,将使得基于时戳T1和时戳T2计算的时延数据准确度降低,NE-3的时间同步性能差。The network device NE-3 performs time synchronization by sending and receiving time synchronization packets with the upstream time synchronization device NE-2. NE-2 marks a time stamp T1 at the time of sending the time synchronization message, and NE-3 marks a time stamp T2 at the time of receiving the time synchronization message. Time stamp T2 is based on the system clock mark of NE-1, and time stamp T1 is based on the system clock mark of NE-2. The system clock of NE-1 is not synchronized with the system clock of NE-2. The accuracy of the time delay data calculated by the time stamp T2 decreases, and the time synchronization performance of NE-3 is poor.
在一些具体业务场景中,对于网络设备的时间同步性能要求较高,例如随流检测技术(in-situ flow information telemetry,IFIT)时延测量场景,IFIT是通过对网络真实业务流进行特征标记,以直接检测网络的时延、丢包、抖动等性能指标的检测技术。网络设备时间同步精度越高,IFIT时延测量越准确。In some specific business scenarios, the time synchronization performance of network devices is highly required, such as in-situ flow information telemetry (IFIT) delay measurement scenarios. IFIT is to characterize real network traffic, A detection technology that directly detects network performance indicators such as delay, packet loss, and jitter. The higher the time synchronization accuracy of network devices, the more accurate IFIT delay measurement will be.
请参考图3对IFIT时延测量原理进行简要介绍,入口(ingress)端,NE1依据测量周期对本周期内被检测业务流的其中一个报文进行时延染色,记录该报文的入口时戳T1、T3,并上报给集中计算单元,出口(egress)端,按照ingress端相同的周期,记录各周期被检测业务流时延染色报文的出口时戳T2、T4,并上报给集中计算单元。集中计算单元根据ingress端、egress端上报的信息,计算业务流在周期i的两个方向的单向时延,NE1到NE2的单向时延为T2-T1,NE2到NE1的单向时延为T4-T3,当被检测业务流双向同路径时,可计算业务流周期i的双向时延,为(T2-T1)+(T4-T3),本申请实施例对时延的计算方法不做限定。Please refer to Figure 3 to briefly introduce the principle of IFIT delay measurement. On the ingress (ingress) side, NE1 performs delay coloring on one of the packets of the detected service flow in this period according to the measurement cycle, and records the ingress timestamp T1 of the packet. , T3, and report to the centralized computing unit, the egress end, according to the same cycle of the ingress end, records the egress timestamps T2, T4 of the detected service flow delay dyeing messages in each cycle, and reports to the centralized computing unit. The centralized calculation unit calculates the one-way delay of the service flow in the two directions of cycle i according to the information reported by the ingress end and the egress end. The one-way delay from NE1 to NE2 is T2-T1, and the one-way delay from NE2 to NE1 is T4-T3, when the two-way path of the detected service flow is the same, the two-way time delay of the service flow period i can be calculated, which is (T2-T1)+(T4-T3), and the calculation method of the time delay in the embodiment of the present application is not Do limited.
为保证入口(ingress)端和出口(egress)端的染色周期同步,需要部署时间同步机制,已有的时间同步机制通常是基于精确时间协议(precision time protocol,PTP)协议,通过滤波算法进行时间调整。需要说明的是,本申请实施例提供的时间调整方法对于网络设备遵守的时间同步协议不做限定,可以基于PTP协议发送时间同步报文以获取时戳,也可以是基于其他时间同步协议获取时戳信息,例如NTP协议。滤波调整为设备基于比例微分积分(proportion integral differential,PID)控制原理,按照要求的带宽,利用锁相环进行滤波处理实现时间同步进行的时间调整,可以去除网络设备的业务噪声。由于滤波调整调制频率越高则通信设备滤噪能力越差,且每次调整的时间偏差有限,通信设备的系统时间相较上游时间同步设备的系统时间的时间偏差将随时间变化跳动,例如呈现锯齿波,锯齿波幅度峰值高,时间同步性能较差,无法满足如IFIT技术等对时间同步性能的较高要求。In order to ensure the synchronization of the dyeing cycle at the ingress (ingress) end and the egress (egress) end, a time synchronization mechanism needs to be deployed. The existing time synchronization mechanism is usually based on the precision time protocol (precision time protocol, PTP) protocol, and the time is adjusted through a filtering algorithm. . It should be noted that the time adjustment method provided by the embodiment of the present application does not limit the time synchronization protocol that the network device complies with. Time synchronization packets can be sent based on the PTP protocol to obtain the time stamp, or it can be obtained based on other time synchronization protocols. Stamp information, such as NTP protocol. The filter adjustment is based on the proportion integral differential (PID) control principle, according to the required bandwidth, using the phase-locked loop to perform filter processing to achieve time synchronization and time adjustment, which can remove the service noise of the network equipment. Since the higher the modulation frequency of filter adjustment, the worse the noise filtering ability of the communication equipment, and the time deviation of each adjustment is limited, the time deviation between the system time of the communication equipment and the system time of the upstream time synchronization equipment will fluctuate with time, for example, The sawtooth wave has a high peak amplitude and poor time synchronization performance, which cannot meet the high requirements for time synchronization performance such as IFIT technology.
有鉴于此,本申请实施例提供了一种时间调整方法和网络设备,用于减少时间偏差,提高网络设备的时间同步性能。In view of this, the embodiments of the present application provide a time adjustment method and network equipment, which are used to reduce time deviation and improve the time synchronization performance of the network equipment.
参见图4,本申请实施例提出了一种时间调整的方法400,用于提升时间同步性能。所述方法400可以应用于图1或图2所示的场景中,其中,在图1所示的应用场景中,第一网络设备相当于图1所示的NE-2,第二网络设备相当于图1所示的NE-1;在图2所示的应用场景中,第一网络设备相当于图1所示的NE-3,第二网络设备相当于图1所示的NE-2,所述方法400包括S401-S403。Referring to FIG. 4 , an embodiment of the present application proposes a time adjustment method 400 for improving time synchronization performance. The method 400 can be applied to the scenario shown in FIG. 1 or FIG. 2, wherein, in the application scenario shown in FIG. 1, the first network device is equivalent to NE-2 shown in FIG. 1, and the second network device is equivalent to NE-1 shown in Figure 1; in the application scenario shown in Figure 2, the first network device is equivalent to NE-3 shown in Figure 1, and the second network device is equivalent to NE-2 shown in Figure 1, The method 400 includes S401-S403.
需要说明的是,第一网络设备可以基于已有的时间同步协议进行时间调整,例如,对于遵守PTP协议的网络设备,可通过滤波算法对系统时间进行调整(后简称滤波调整)。It should be noted that the first network device may perform time adjustment based on an existing time synchronization protocol. For example, for a network device complying with the PTP protocol, the system time may be adjusted through a filtering algorithm (hereinafter referred to as filter adjustment).
S401、第一网络设备获得频率偏差。S401. The first network device obtains a frequency deviation.
频率偏差为第一网络设备的系统频率与第二网络设备的系统频率的偏差,第二网络设备为第一网络设备的上游时间同步设备。The frequency deviation is the deviation between the system frequency of the first network device and the system frequency of the second network device, and the second network device is an upstream time synchronization device of the first network device.
作为一种具体的实现方式,第一网络设备获得频率偏差的方式包括以下两种:As a specific implementation manner, the manner in which the first network device obtains the frequency deviation includes the following two methods:
方式1:第一网络设备接收来自第三网络设备的该频率偏差。Manner 1: The first network device receives the frequency offset from the third network device.
方式2:第一网络设备根据N个时延数据获得频率偏差。具体包括:第一网络设备获得N个时延数据,N为大于或等于2的正整数,第一网络设备根据N个时延数据获得频率偏差。Manner 2: The first network device obtains the frequency deviation according to the N delay data. Specifically, it includes: the first network device obtains N time delay data, where N is a positive integer greater than or equal to 2, and the first network device obtains the frequency deviation according to the N time delay data.
第一网络设备可根据第一网络设备与第二网络设备之间收发时间同步报文计算时延,根据时延获得N个时延数据。The first network device may calculate time delay according to sending and receiving time synchronization packets between the first network device and the second network device, and obtain N time delay data according to the time delay.
需要说明的是,第一网络设备可以对系统时间进行滤波调整,具体可以是第一网络设备根据PTP报文的时戳T1、T2、T3和T4,利用二阶锁相环算法,根据滤波调整的时间间隔周期性进行滤波调整,示例性地,滤波调整的时间间隔为5秒,滤波调整的时间间隔可支持配置,滤波调整的时间间隔与锁相环带宽相关,具体数值不做限定。示例性的,NE-2设备根据PTP报文的时戳T1、T2、T3和T4,利用二阶锁相环算法,每隔5秒进行一次滤波调整。It should be noted that the first network device can filter and adjust the system time. Specifically, the first network device can use the second-order phase-locked loop algorithm to adjust the system time according to the timestamps T1, T2, T3 and T4 of the PTP message. The time interval for filter adjustment is periodically adjusted. For example, the time interval for filter adjustment is 5 seconds. The time interval for filter adjustment can support configuration. The time interval for filter adjustment is related to the bandwidth of the phase-locked loop, and the specific value is not limited. Exemplarily, the NE-2 device performs filter adjustment every 5 seconds by using a second-order phase-locked loop algorithm according to the time stamps T1, T2, T3, and T4 of the PTP message.
作为一种具体的实现方式,基于获取N个时延数据过程中,系统时间是否进行调整,获取N个时延数据的方法有多种,包括:方式1,N个时延数据中的任意一个时延数据为第一网络设备与第二网络设备之间的报文传输时延。也就是说,第一网络设备在获取N个时延数据的过程中,未进行时间调整,各个时延数据直接由时戳信息计算得到。As a specific implementation method, based on whether the system time is adjusted during the process of obtaining N time-delay data, there are many ways to obtain N time-delay data, including: method 1, any one of N time-delay data The delay data is a packet transmission delay between the first network device and the second network device. That is to say, the first network device does not perform time adjustment during the process of acquiring the N time-delay data, and each time-delay data is directly calculated from the time stamp information.
第一网络设备可根据第一网络设备与第二网络设备之间收发时间同步报文计算时延,即通过对时间同步报文在发送时刻和接收时刻打戳,周期性获取时戳信息,根据时戳信息获取时延。第一网络设备开启IFIT时间同步功能,获取一次时戳信息(T1、T2、T3和T4),根据时戳信息获取时延。示例性地,NE-2设备IFIT时间同步功能开启后,每秒获取一次时戳信息。需要说明的是,第一网络设备与第二网络设备之间的时间同步报文传输时延的计算方法有多种,包括以下任意一类:T2-T1,或者T4-T3,或者[(T4-T3)+(T2-T1)]/2,具体计算方法此处不做限定。此外,时间同步报文的发送速率也不做限定。The first network device can calculate the delay according to the time synchronization message sent and received between the first network device and the second network device, that is, by stamping the time synchronization message at the sending time and receiving time, and periodically obtaining the time stamp information, according to Time stamp information acquisition delay. The first network device activates the IFIT time synchronization function, obtains time stamp information (T1, T2, T3, and T4) once, and obtains time delay according to the time stamp information. Exemplarily, after the IFIT time synchronization function of the NE-2 device is enabled, time stamp information is acquired once per second. It should be noted that there are many calculation methods for the time synchronization packet transmission delay between the first network device and the second network device, including any of the following types: T2-T1, or T4-T3, or [(T4 -T3)+(T2-T1)]/2, the specific calculation method is not limited here. In addition, the sending rate of the time synchronization message is not limited.
方式2,由于在计算时延的过程中,第一网络设备可能基于滤波调整或者本申请实施例基于频率偏差得到的时间偏差对系统时间进行调整。因此,为了计算频率偏差,需对原始时延进行补偿。N个时延数据包括第一时延数据和第二时延数据,第一网络设备根据第一报文传输时延获得第一时延数据;第一网络设备根据第二报文传输时延和特定时长内系统时间的调整值获得第二时延数据,特定时长内系统时间的调整值为所述第一时延数据对应的时间与所述第二时延数据对应的时间之间的系统时间的调整值。这里,第一时延数据为直接根据第一报文传输时延获得,特定时长是指在第一时延数据对应的时间与所述第二时延数据对应的时间之间的时间段,由于系统时间进行了调整,需要根据调整值对第二时延数据进行补偿,以使得第一时延数据与第二时延数据可以共同用于进行偏离偏差计算。用于频偏计算的N个时延数据可以视为在同一参考时间下的传输时延,也就是说,排除了所有时延数据对应的时间段内第一网络设备对系统时间进行的时间调整的影响。若在第一时延对应的时间之后,在第二时延对应的时间之前进行了时间同步调整,则时延数组中记录的第二时延数据为第二时延为根据时间调整补偿后的时延。进一步地,若在所述第一时延对应的时间与第三时延对应的时间之间进行了多次时间调整,则时延数组中记录的第三时延数据为第三时延根据多个调整值累加补偿后的时延。Mode 2, because in the process of calculating the delay, the first network device may adjust the system time based on the filter adjustment or the time deviation obtained based on the frequency deviation in this embodiment of the present application. Therefore, in order to calculate the frequency deviation, the original time delay needs to be compensated. The N delay data include first delay data and second delay data, the first network device obtains the first delay data according to the first message transmission delay; the first network device obtains the first delay data according to the second message transmission delay and The adjustment value of the system time within a specific time length obtains the second delay data, and the adjustment value of the system time within the specific time length is the system time between the time corresponding to the first delay data and the time corresponding to the second delay data adjustment value. Here, the first delay data is directly obtained according to the first message transmission delay, and the specific duration refers to the time period between the time corresponding to the first delay data and the time corresponding to the second delay data, because The system time has been adjusted, and the second time delay data needs to be compensated according to the adjustment value, so that the first time delay data and the second time delay data can be jointly used for deviation calculation. The N delay data used for frequency offset calculation can be regarded as the transmission delay at the same reference time, that is to say, the time adjustment made by the first network device to the system time in the time period corresponding to all the delay data is excluded Impact. If the time synchronization adjustment is performed after the time corresponding to the first delay and before the time corresponding to the second delay, the second delay data recorded in the delay array is the second delay after being adjusted and compensated according to the time delay. Further, if multiple time adjustments are performed between the time corresponding to the first delay and the time corresponding to the third delay, the third delay data recorded in the delay array is the third delay according to the multiple The time delay after accumulating and compensating for an adjustment value.
需要说明的是,该系统时间的调整值包括根据滤波算法调整系统时间的调整值,或者,根据时间偏差调整系统时间的调整值,或者,既包括根据滤波算法调整系统时间的调整值也包括根据时间偏差调整系统时间的调整值。It should be noted that the adjustment value of the system time includes the adjustment value of the system time according to the filtering algorithm, or the adjustment value of the system time according to the time deviation, or both the adjustment value of the system time according to the filtering algorithm and the adjustment value of the system time according to the The time offset adjusts the adjustment value of the system time.
示例性地,将每隔5秒的时间偏差调整值通过累加方式反补偿到时延上得到时延数据,例如补偿到(T2-T1)上,即每次获取的时戳计算的时延数据(T2-T1)与时间偏差调整值累加的结果相加获得时延数据,并将时延数据存储在数组中用于后续频率偏差的计算。Exemplarily, the time offset adjustment value every 5 seconds is accumulated and compensated to the time delay to obtain the time delay data, for example, compensated to (T2-T1), that is, the time delay data calculated by the time stamp obtained each time (T2-T1) is added to the accumulated result of the time offset adjustment value to obtain the time delay data, and the time delay data is stored in an array for subsequent frequency deviation calculation.
第一网络设备根据所述N个时延数据获得所述频率偏差,包括:所述第一网络设备根据最小二乘法处理所述N个时延数据,获得所述频率偏差和误差,所述误差小于或等于第一阈值。需要说明的是,第一网络设备可基于N个时延数据通过线性拟合计算频率偏差,线性拟合方法有多种,例如最小二乘法、平均值线性拟合等,具体不做限定。例如,第一网络设备根据最小二乘法对N个时延数据进行线性拟合获取频率偏差。第一网络设备根据最小二乘法对时延数组进行线性拟合获取频率偏差和所述频率偏差对应的误差,所述误差小于或等于第一阈值。第一阈值可以根据具体需求配置,例如三西格玛(3sigma,3σ)原则,具体数值此处不做限定。当误差小于或等于第一阈值时,确定频率偏差有效,若误差大于第一阈值,频率偏差无效,需要重新获取时延数据后再进行计算。The first network device obtains the frequency deviation according to the N time delay data, including: the first network device processes the N time delay data according to a least square method to obtain the frequency deviation and an error, and the error less than or equal to the first threshold. It should be noted that the first network device may calculate the frequency deviation through linear fitting based on the N delay data. There are many linear fitting methods, such as least squares method, mean linear fitting, etc., which are not specifically limited. For example, the first network device performs linear fitting on the N time delay data according to the least square method to obtain the frequency deviation. The first network device performs linear fitting on the delay array according to the least square method to obtain a frequency deviation and an error corresponding to the frequency deviation, where the error is less than or equal to a first threshold. The first threshold can be configured according to specific requirements, such as the principle of three sigma (3sigma, 3σ), and the specific value is not limited here. When the error is less than or equal to the first threshold, it is determined that the frequency offset is valid; if the error is greater than the first threshold, the frequency offset is invalid, and the time delay data needs to be reacquired before calculation.
在一种具体的实现方式中,N个时延数据可以是经过数据筛选后的时延数据,例如删除存在显著误差的时延数据等,具体可以通过各种现有方法实现,此处不再赘述。In a specific implementation, the N time-delay data can be the time-delay data after data screening, such as deleting the time-delay data with significant errors, etc., which can be realized by various existing methods, and will not be repeated here. repeat.
第一网络设备根据N个时延数据获得所述频率偏差包括:在第三周期内,第一网络设备根据N个时延数据获得所述频率偏差,所述第三周期为所述频率偏差的获得周期。第三周期例如可以是30秒,或者1分钟等,具体数值不做限定。需要说明的是,当超出第三周期,第一网络设备可以重新获得频率偏差,并用于后续进行时间偏差的计算。Obtaining the frequency offset by the first network device according to the N delay data includes: within a third cycle, the first network device obtains the frequency offset according to the N delay data, and the third cycle is a period of the frequency offset Get cycle. The third period may be, for example, 30 seconds, or 1 minute, and the specific numerical value is not limited. It should be noted that, when the third period is exceeded, the first network device may regain the frequency offset and use it for subsequent calculation of the time offset.
可以理解的是,时延数据的数量与频率偏差估算的精度、计算复杂度和实时性相关,可以支持配置。所述N小于或等于第二阈值,所述第二阈值大于或等于3。示例性的,通过时延数组记录时延数据,第二阈值为30,时延数组中的时延数据的数量大于或等于2个,且小于或等于30个。It can be understood that the amount of delay data is related to the accuracy of frequency offset estimation, computational complexity and real-time performance, and can support configuration. The N is less than or equal to a second threshold, and the second threshold is greater than or equal to three. Exemplarily, the delay data is recorded through the delay array, the second threshold is 30, and the number of delay data in the delay array is greater than or equal to 2 and less than or equal to 30.
S402、第一网络设备根据频率偏差获得时间偏差。S402. The first network device obtains the time offset according to the frequency offset.
第一网络设备根据频率偏差可以计算得到一段时长内的第一网络设备由于频率偏差引起的时间偏差。可选地,第一网络设备根据该频率偏差和第一周期获得时间偏差,所述时间偏差为所述第一网络设备和所述第二网络设备在所述第一周期内由所述频率偏差产生的时间偏差。第一周期为第一网络设备根据该时间偏差调整系统时间的周期。According to the frequency deviation, the first network device can calculate the time deviation caused by the frequency deviation of the first network device within a period of time. Optionally, the first network device obtains a time deviation according to the frequency deviation and the first period, and the time deviation is obtained by the frequency deviation between the first network device and the second network device within the first period resulting time deviation. The first period is a period in which the first network device adjusts the system time according to the time offset.
在一种具体的实现方式中,所述所述第一网络设备将所述频率偏差和所述第一周期相乘获得所述时间偏差。In a specific implementation manner, the first network device multiplies the frequency offset by the first period to obtain the time offset.
在一种具体的实现方式中,第一周期小于第二周期,所述第二周期为第一网络设备根据滤波算法调整所述系统时间的周期,所述滤波算法为比例微分积分控制算法。示例性的,第一周期为1秒,第二周期为5秒。可选地,第一周期大于或等于获取时戳的时间间隔,小于第二周期。可选的,第一周期的具体数值支持配置,与第一网络设备硬件支持的定时器相关,定时器包括1s定时器或100ms定时器等。In a specific implementation manner, the first period is shorter than the second period, and the second period is a period for the first network device to adjust the system time according to a filtering algorithm, where the filtering algorithm is a proportional differential integral control algorithm. Exemplarily, the first period is 1 second, and the second period is 5 seconds. Optionally, the first period is greater than or equal to the time interval for obtaining the time stamp, and is less than the second period. Optionally, the specific value of the first cycle supports configuration, and is related to the timer supported by the hardware of the first network device, and the timer includes a 1s timer or a 100ms timer.
S403、第一网络设备根据时间偏差调整系统时间。S403. The first network device adjusts the system time according to the time deviation.
第一网络设备根据计算得到的时间偏差调整系统时间,可选地,根据第一周期确定调制系统时间的时间点,在该时间点对系统时间进行调整,示例性地,第一周期为5秒。The first network device adjusts the system time according to the calculated time offset, optionally, determines the time point for modulating the system time according to the first period, and adjusts the system time at this time point, for example, the first period is 5 seconds .
示例性地,对频率偏差引入的时间偏差实行快速调整,例如调整间隔为1秒,则每秒将时间偏差的调整值下发到实时时钟(RTC)实现对第一网络设备系统时间的调整,此外,将此时间偏差通过累加的方式反补偿到时延数据中。Exemplarily, the time deviation introduced by the frequency deviation is adjusted quickly, for example, the adjustment interval is 1 second, and the adjustment value of the time deviation is sent to the real-time clock (RTC) every second to realize the adjustment of the system time of the first network device, In addition, this time offset is counter-compensated into the delay data by accumulating.
在一种具体的实现方式中,若该时间点还是滤波调整对应的时间点(可根据第二周期确定),则在该时间点根据滤波调整进行时间调整,根据时间偏差进行时间调整或根据时间偏差和滤波调整时差进行时间调整,具体此处不做限定。In a specific implementation, if the time point is still the time point corresponding to the filter adjustment (can be determined according to the second cycle), then at this time point, the time adjustment is performed according to the filter adjustment, and the time adjustment is performed according to the time deviation or according to the time The deviation and filter adjustment time difference are used for time adjustment, which is not limited here.
进一步地,若第一网络设备为如图2所示的支持频率调整的网络设备,该方法还包括:若所述频率偏差大于或等于第三阈值,则所述第一网络设备将频率源切换至第二网络设备。第三阈值的数值可根据使用需求设定,支持配置,其数值可与应用场景业务正常支持的最大频率偏差范围有关,当频率偏差超出第三阈值时可能导致业务异常,第三阈值具体数值此处不做限定。可选地,频率切换可结合时钟整网拓扑,在获取客户需求的前提下进行。示例性地,NE-3的频率源由NE-1切换到NE-2,即将频率源切换到与PTP报文相同的路径上,实现频率和时间同源,最终提升IFIT时间同步性能,彻底的消灭TE的锯齿波,而不仅仅是降低锯齿波的幅度值。本申请实施例提供的时间调整方法,通过频率偏差获得时间偏差,对系统时间进行调整,可以减少因频率偏差产生的时间偏差,提升时间同步性能。Further, if the first network device is a network device supporting frequency adjustment as shown in FIG. 2 , the method further includes: if the frequency deviation is greater than or equal to a third threshold, the first network device switches the frequency source to the second network device. The value of the third threshold can be set according to the use requirements and supports configuration. Its value can be related to the maximum frequency deviation range normally supported by the application scenario business. When the frequency deviation exceeds the third threshold, it may cause business abnormalities. The specific value of the third threshold is here There is no limit. Optionally, frequency switching can be combined with the clock network topology and performed on the premise of obtaining customer requirements. For example, the frequency source of NE-3 is switched from NE-1 to NE-2, that is, the frequency source is switched to the same path as the PTP message, so that the frequency and time have the same source, and finally improve the performance of IFIT time synchronization, completely Eliminate the sawtooth wave of TE, not just reduce the amplitude value of the sawtooth wave. The time adjustment method provided in the embodiment of the present application obtains the time deviation through the frequency deviation and adjusts the system time, which can reduce the time deviation caused by the frequency deviation and improve time synchronization performance.
进一步,由于存在频偏,在连续两次滤波调整之间由频偏引起的时间偏差会线性增加,参考图5,锯齿波幅度值高,时间同步性能较差,无法满足IFIT技术在时延测量中对时间同步精度的高要求。而本申请实施例提供的时间调整方法,若第一周期小于第二周期,即第一网络设备通过相较滤波调整更高的频率对频率偏差引起的时间偏差进行调整,可以降低锯齿波的幅度值,提高第一网络设备的时间同步性能,满足IFIT技术等在时延测量中对时间同步精度的高要求。下面结合图6和图7对本申请提供的时间调整方法中时间偏差的变化情况进行介绍。Furthermore, due to the existence of frequency offset, the time offset caused by frequency offset between two consecutive filter adjustments will increase linearly. Referring to Figure 5, the sawtooth wave amplitude is high, and the time synchronization performance is poor, which cannot meet the requirements of IFIT technology in delay measurement. High requirements on time synchronization accuracy. However, in the time adjustment method provided by the embodiment of the present application, if the first period is less than the second period, that is, the first network device adjusts the time deviation caused by the frequency deviation by adjusting a higher frequency than filtering, which can reduce the amplitude of the sawtooth wave value, improve the time synchronization performance of the first network device, and meet the high requirements for time synchronization accuracy in delay measurement of IFIT technology. The change of the time offset in the time adjustment method provided by the present application will be introduced below with reference to FIG. 6 and FIG. 7 .
图中黑色实线601代表第一网络设备和第二网络设备之间的时差随时间的变化,灰色实线代表第一网络设备对系统时间进行的调整,包括滤波调整6021和根据时间偏差进行时间调整(本实施例中,根据时间偏差进行时间调整的第一周期小于滤波调整的第二周期,为便于描述,称之为快速调整)6022,可见,在对时间进行调整时,第一网络设备和第二网络设备之间的时间偏差降低,第一网络设备和第二网络设备之间的时差整体呈现锯齿波形。第一网络设备IFIT时间同步功能开启后,可获取时戳信息并计算第一网络设备和第二网络设备之间的时延,图6中的五角星603代表带有噪声的时延数据,时延数据进行了时间补偿,包括基于滤波调整的时间补偿6041和基于快速调整的时间补偿6042。由于时延数据存在噪声,通过线性拟合技术计算频率偏差。本申请实施例提供的时间调整方法中网络设备通过对时间进行快速调整,使得锯齿波的幅度值降低,如图示A点降低到B点,时间同步精度提升,可以更好地满足IFIT等技术对时间同步的高要求。本申请实施例提供的时间调整方法,快速调整的时间间隔小于滤波调整的时间间隔,在一种可能的实现方式中,滤波调整的时间间隔和快速调整的时间间隔之间不为整数倍关系,示例性的,可参阅图7,在快速调整的时间(例如t1),第一网络设备根据快速调整的时间偏差进行快速调整。在滤波调整的时间(例如t2),第一网络设备进行滤波调整实现时间同步。可以理解的是,滤波调整和快速调整彼此独立进行,互不影响,其中,滤波调整可以去除网络设备的业务噪声,快速调整则用于去除由于频率偏差引起的噪声。相应地,在时延数组中都对时间调整进行补充,包括基于快速调整的时间补偿和基于滤波调整的时间补偿。在本申请实施例的时间调整方法中快速调整实施之后,可见时间偏差锯齿波的幅度值从A点降低到B点,时间同步精度提升,可以更好地满足IFIT等技术对时间同步的高要求。The black solid line 601 in the figure represents the time difference between the first network device and the second network device over time, and the gray solid line represents the adjustment of the system time by the first network device, including filter adjustment 6021 and time adjustment according to the time deviation. Adjustment (in this embodiment, the first period of time adjustment according to the time deviation is shorter than the second period of filter adjustment, for the convenience of description, it is called quick adjustment) 6022. It can be seen that when adjusting the time, the first network device The time deviation between the first network device and the second network device is reduced, and the time difference between the first network device and the second network device presents a sawtooth waveform as a whole. After the IFIT time synchronization function of the first network device is enabled, the time stamp information can be obtained and the delay between the first network device and the second network device can be calculated. The five-pointed star 603 in FIG. 6 represents the time delay data with noise, and the time The delayed data is time compensated, including filter adjustment based time compensation 6041 and fast adjustment based time compensation 6042 . Due to the noise in the time delay data, the frequency deviation is calculated by linear fitting technique. In the time adjustment method provided by the embodiment of the present application, the network device quickly adjusts the time to reduce the amplitude value of the sawtooth wave. As shown in the figure, point A is reduced to point B, and the time synchronization accuracy is improved, which can better meet technologies such as IFIT High demands on time synchronization. In the time adjustment method provided in the embodiment of the present application, the time interval for fast adjustment is shorter than the time interval for filter adjustment. In a possible implementation, the time interval for filter adjustment and the time interval for fast adjustment are not integer multiples. For example, referring to FIG. 7 , at the time of the quick adjustment (for example, t1), the first network device performs the quick adjustment according to the time offset of the quick adjustment. At the time of filter adjustment (for example, t2), the first network device performs filter adjustment to implement time synchronization. It can be understood that the filter adjustment and the fast adjustment are performed independently of each other without affecting each other, wherein the filter adjustment can remove service noise of the network device, and the fast adjustment is used to remove the noise caused by the frequency deviation. Correspondingly, the time adjustment is supplemented in the time delay array, including time compensation based on fast adjustment and time compensation based on filter adjustment. After the rapid adjustment in the time adjustment method of the embodiment of the present application, it can be seen that the amplitude value of the time deviation sawtooth wave is reduced from point A to point B, and the time synchronization accuracy is improved, which can better meet the high requirements of IFIT and other technologies for time synchronization .
上文介绍了本申请提供的时间调整方法,下面对实现该时间调整方法的网络设备进行介绍,请参阅图8,为本申请实施例中网络设备的一个实施例示意图。The time adjustment method provided by the present application is introduced above, and the network device implementing the time adjustment method is introduced below. Please refer to FIG. 8 , which is a schematic diagram of an embodiment of the network device in the embodiment of the present application.
该网络设备,包括:The network equipment, including:
获得单元801,用于获得频率偏差,所述频率偏差为所述第一网络设备的系统频率与第二网络设备的系统频率的偏差,所述第二网络设备为所述第一网络设备的上游时间同步设备;所述获得单元801,还用于根据所述频率偏差获得时间偏差,所述时间偏差为所述第一网络设备和所述第二网络设备由所述频率偏差产生的时间偏差;调整单元802,用于根据所述时间偏差调整系统时间。The obtaining unit 801 is configured to obtain a frequency deviation, where the frequency deviation is the deviation between the system frequency of the first network device and the system frequency of a second network device, the second network device being the upstream of the first network device A time synchronization device; the obtaining unit 801 is further configured to obtain a time deviation according to the frequency deviation, where the time deviation is a time deviation generated by the frequency deviation between the first network device and the second network device; The adjustment unit 802 is configured to adjust the system time according to the time deviation.
可选地,所述获得单元801具体用于:根据所述频率偏差和第一周期获得时间偏差,所述时间偏差为所述第一网络设备和所述第二网络设备在所述第一周期内由所述频率偏差产生的时间偏差,所述第一周期为所述调整单元根据所述时间偏差调整系统时间的周期。Optionally, the obtaining unit 801 is specifically configured to: obtain a time offset according to the frequency offset and the first period, the time offset is the first network device and the second network device in the first period A time deviation generated by the frequency deviation, the first period is a period in which the adjustment unit adjusts the system time according to the time deviation.
可选地,所述第一周期小于第二周期,所述第二周期为根据滤波算法调整所述系统时间的周期,所述滤波算法为比例微分积分控制算法。Optionally, the first period is shorter than a second period, and the second period is a period for adjusting the system time according to a filtering algorithm, and the filtering algorithm is a proportional-differential-integral control algorithm.
可选地,所述获得单元801具体用于:所获得N个时延数据,所述N个时延数据均用于指示所述第一网络设备与所述第二网络设备之间的报文传输时延,所述N为大于或等于2的正整数;根据所述N个时延数据获得所述频率偏差。Optionally, the obtaining unit 801 is specifically configured to: obtain N delay data, and the N delay data are all used to indicate the packet between the first network device and the second network device Transmission delay, where N is a positive integer greater than or equal to 2; the frequency deviation is obtained according to the N delay data.
可选地,所述获得单元801具体用于:根据第一报文传输时延获得所述第一时延数据;根据第二报文传输时延和特定时长内系统时间的调整值获得所述第二时延数据,所述特定时长内系统时间的调整值为所述第一时延数据对应的时间与所述第二时延数据对应的时间之间的系统时间的调整值。Optionally, the obtaining unit 801 is specifically configured to: obtain the first delay data according to the first packet transmission delay; obtain the second packet transmission delay and an adjustment value of the system time within a specific duration. For the second delay data, the adjustment value of the system time within the specific duration is an adjustment value of the system time between the time corresponding to the first delay data and the time corresponding to the second delay data.
可选地,所述系统时间的调整值包括根据滤波算法调整系统时间的调整值。Optionally, the adjustment value of the system time includes adjusting the adjustment value of the system time according to a filtering algorithm.
可选地,所述系统时间的调整值包括所述根据所述时间偏差调整系统时间的调整值。Optionally, the adjustment value of the system time includes the adjustment value of adjusting the system time according to the time deviation.
可选地,所述N个时延数据中的任意一个时延数据为所述第一网络设备与所述第二网络设备之间的报文传输时延。Optionally, any one of the N delay data is a packet transmission delay between the first network device and the second network device.
可选地,所述获得单元801具体用于:根据最小二乘法处理所述N个时延数据,获得所述频率偏差和误差,所述误差小于或等于第一阈值。Optionally, the obtaining unit 801 is specifically configured to: process the N time delay data according to a least square method to obtain the frequency deviation and error, where the error is less than or equal to a first threshold.
可选地,所述获得单元801具体用于:在第三周期内,根据所述N个时延数据获得所述频率偏差,所述第三周期为所述频率偏差的获得周期。Optionally, the obtaining unit 801 is specifically configured to: obtain the frequency offset according to the N time delay data in a third period, where the third period is an acquisition period of the frequency offset.
可选地,所述N小于或等于第二阈值,所述第二阈值大于或等于3。Optionally, the N is less than or equal to a second threshold, and the second threshold is greater than or equal to three.
可选地,所述第一网络设备为不支持频率调整的网络设备。Optionally, the first network device is a network device that does not support frequency adjustment.
可选地,所述第一网络设备为支持频率调整的网络设备。Optionally, the first network device is a network device supporting frequency adjustment.
可选地,所述网络设备还包括:切换单元803,用于若所述频率偏差大于或等于第三阈值,则将频率源切换至所述第二网络设备。Optionally, the network device further includes: a switching unit 803, configured to switch the frequency source to the second network device if the frequency deviation is greater than or equal to a third threshold.
本申请实施例提供的网络设备用于实现前述实施例中介绍的时间调整方法,具体实现过程和有益效果此处不再赘述。应理解以上网络的各个单元的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且这些单元可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分单元以软件通过处理元件调用的形式实现,部分单元以硬件的形式实现。The network device provided in the embodiment of the present application is used to implement the time adjustment method introduced in the foregoing embodiments, and the specific implementation process and beneficial effects will not be repeated here. It should be understood that the above division of each unit of the network is only a division of logical functions, and may be fully or partially integrated into one physical entity or physically separated during actual implementation. And these units can be implemented in the form of software calling through the processing element; all can be implemented in the form of hardware; some units can also be implemented in the form of software calling through the processing element, and some units can be implemented in the form of hardware.
例如,以上这些单元可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(application specific integrated circuit,ASIC),或,一个或多个微处理器(digital singnal processor,DSP),或,一个或者多个现场可编程门阵列(field programmable gate array,FPGA)等。再如,当以上某个单元通过处理元件调度程序的形式实现时,该处理元件可以是通用处理器,例如中央处理器(central processingunit,CPU)或其它可以调用程序的处理器。再如,这些单元可以集成在一起,以片上系统(system-on-a-chip,SOC)的形式实现。For example, the above units may be one or more integrated circuits configured to implement the above method, for example: one or more specific integrated circuits (application specific integrated circuit, ASIC), or one or more microprocessors (digital singnal processor, DSP), or one or more field programmable gate arrays (field programmable gate array, FPGA), etc. For another example, when one of the above units is implemented in the form of a processing element scheduler, the processing element may be a general processor, such as a central processing unit (central processing unit, CPU) or other processors that can call programs. For another example, these units can be integrated together and implemented in the form of a system-on-a-chip (SOC).
请参阅图9,为本申请实施例中网络设备的另一个实施例示意图。Please refer to FIG. 9 , which is a schematic diagram of another embodiment of the network device in the embodiment of the present application.
本实施例提供的网络设备,可以为ATN,PTN或CPE,或通信网络中核心层、汇聚层或接入层的网络设备等。本申请实施例中对其具体设备形态不做限定。The network device provided in this embodiment may be an ATN, a PTN or a CPE, or a network device at a core layer, a convergence layer, or an access layer in a communication network. The embodiment of the present application does not limit the specific device form.
该网络设备900可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上处理器901和存储器902,该存储器902中存储有程序或数据。The network device 900 may have relatively large differences due to different configurations or performances, and may include one or more processors 901 and memory 902, and the memory 902 stores programs or data.
其中,存储器902可以是易失性存储或非易失性存储。可选地,处理器901是一个或多个中央处理器(central processing unit,CPU),该CPU可以是单核CPU,也可以是多核CPU。处理器901可以与存储器902通信,在网络设备900上执行存储器902中的一系列指令。Wherein, the storage 902 may be a volatile storage or a non-volatile storage. Optionally, the processor 901 is one or more central processing units (central processing unit, CPU), and the CPU may be a single-core CPU or a multi-core CPU. The processor 901 can communicate with the memory 902 , and execute a series of instructions in the memory 902 on the network device 900 .
该网络设备900还包括一个或一个以上有线或无线网络接口903,例如以太网接口。The network device 900 also includes one or more wired or wireless network interfaces 903, such as Ethernet interfaces.
可选地,尽管图9中未示出,网络设备900还可以包括一个或一个以上电源;一个或一个以上输入输出接口,输入输出接口可以用于连接显示器、鼠标、键盘、触摸屏设备或传感设备等,输入输出接口为可选部件,可以存在也可以不存在,此处不做限定。Optionally, although not shown in FIG. 9 , the network device 900 can also include one or more power supplies; one or more input and output interfaces, which can be used to connect a display, mouse, keyboard, touch screen device or sensor Equipment, etc., input and output interfaces are optional components, which may or may not exist, and are not limited here.
本实施例中网络设备900中的处理器901所执行的流程可以参考前述方法实施例中描述的方法流程,此处不加赘述。所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。For the process executed by the processor 901 in the network device 900 in this embodiment, reference may be made to the method process described in the foregoing method embodiments, and details are not repeated here. Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other various media that can store program codes. .
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still understand the foregoing The technical solutions recorded in each embodiment are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the application.
Claims (32)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210103376.XA CN116566529A (en) | 2022-01-27 | 2022-01-27 | Time adjustment method, network equipment and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210103376.XA CN116566529A (en) | 2022-01-27 | 2022-01-27 | Time adjustment method, network equipment and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116566529A true CN116566529A (en) | 2023-08-08 |
Family
ID=87493413
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210103376.XA Pending CN116566529A (en) | 2022-01-27 | 2022-01-27 | Time adjustment method, network equipment and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116566529A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117042262A (en) * | 2023-09-06 | 2023-11-10 | 东莞汇莞文化科技有限公司 | Multi-lamplight dynamic synchronization method and system |
-
2022
- 2022-01-27 CN CN202210103376.XA patent/CN116566529A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117042262A (en) * | 2023-09-06 | 2023-11-10 | 东莞汇莞文化科技有限公司 | Multi-lamplight dynamic synchronization method and system |
CN117042262B (en) * | 2023-09-06 | 2024-03-12 | 东莞汇莞文化科技有限公司 | Multi-lamplight dynamic synchronization method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Lee et al. | Globally synchronized time via datacenter networks | |
US9178637B2 (en) | Method and devices for synchronization using linear programming | |
US9973292B2 (en) | Methods and systems for estimating offset and skew using linear programming | |
US9252902B2 (en) | Precision timing in a data over cable service interface specification (DOCSIS) system | |
US8446896B2 (en) | Time synchronization using packet-layer and physical-layer protocols | |
WO2017101528A1 (en) | Method and device for clock link switching and base station | |
CN106603183B (en) | A kind of timestamp filter method and device | |
WO2018006686A1 (en) | Method, apparatus and device for optimizing time synchronization between communication network devices | |
CN111585683A (en) | High-reliability clock synchronization system and method for time-sensitive network | |
US8949648B2 (en) | System and method to overcome wander accumulation to achieve precision clock distribution over large networks | |
US9270607B2 (en) | Method and devices for packet selection | |
CN108599888A (en) | A kind of distributed network clock synchronizing system | |
US20220007321A1 (en) | Network Entities and Methods for a Wireless Network System for Determining Time Information | |
CN101247169A (en) | A method, system and device for realizing time synchronization in a communication network | |
Iwanicki et al. | Gossip-based clock synchronization for large decentralized systems | |
Garner et al. | Synchronization of audio/video bridging networks using IEEE 802.1 AS | |
CN116566529A (en) | Time adjustment method, network equipment and system | |
EP3080933B1 (en) | Method and devices for synchronization using linear programming | |
Qing et al. | Ieee 1588 and a dynamic delay correction clock synchronization algorithm | |
US20240380505A1 (en) | Dynamic traffic load compensation | |
US20230050042A1 (en) | Clock determining method and related apparatus | |
CN118573313A (en) | Clock synchronization method and device | |
WO2017144108A1 (en) | Methods and systems for estimating skew | |
CN100401677C (en) | Method for Realizing Clock Synchronization of Fixed Network Short Message Platform Equipment | |
Qian et al. | Awakening power of physical layer: High precision time synchronization for industrial Ethernet |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |