WO2016045311A1 - Device self-checking method, apparatus and storage medium - Google Patents

Device self-checking method, apparatus and storage medium Download PDF

Info

Publication number
WO2016045311A1
WO2016045311A1 PCT/CN2015/073247 CN2015073247W WO2016045311A1 WO 2016045311 A1 WO2016045311 A1 WO 2016045311A1 CN 2015073247 W CN2015073247 W CN 2015073247W WO 2016045311 A1 WO2016045311 A1 WO 2016045311A1
Authority
WO
WIPO (PCT)
Prior art keywords
time
phy
line delay
time synchronization
message
Prior art date
Application number
PCT/CN2015/073247
Other languages
French (fr)
Chinese (zh)
Inventor
曹志刚
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016045311A1 publication Critical patent/WO2016045311A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A device self-checking method is disclosed in the present invention including: obtaining a line delay between a reception port and a transmission port of a physical interface transceiver PHY in a 1588 device; when the absolute value of the difference between the line delay and a standard time is not in a pre-set difference range, determining that the time synchronization performance of the 1588 device is abnormal; when the absolute value of the difference between the line delay and the standard time is in the pre-set difference range, determining that the time synchronization performance of the 1588 device is normal. Meanwhile, a device self-checking apparatus and storage medium are disclosed in the present invention.

Description

一种设备自检方法、装置及存储介质Device self-testing method, device and storage medium 技术领域Technical field
本发明涉及设备检测技术,尤其涉及一种设备自检方法、装置及存储介质。The present invention relates to device detection technology, and in particular, to a device self-test method, device and storage medium.
背景技术Background technique
随着1588设备在实现分组传输网络的时间同步中的应用越来越广泛,在1588设备生成和开局时,对1588设备进行收发通道和同步性能等1588功能的检测变得尤为重要。As the 1588 device is widely used in the time synchronization of the packet transmission network, it is particularly important to detect the 1588 function such as the transceiver channel and synchronization performance of the 1588 device during the generation and deployment of the 1588 device.
目前1588功能的检测需要两端设备对接,两端设备配置时间同步接口后,检测两端设备是否实现时间同步;在两端设备不能实现时间同步时,可能发生报文收发通道异常、时间同步性能异常、或两端设备异常;此时,需要对可能引发两端设备不能实现时间同步的多种原因进行逐一排查和定位;并且,该检测方法只能测试一个物理端口是否正常,无法同时对1588设备的所有端口进行检测。The detection of the 1588 function requires the device at both ends to be connected. After the time synchronization interface is configured on the devices at both ends, the device detects the time synchronization of the devices at both ends. The device is faulty or the devices at both ends are abnormal. In this case, you need to check and locate the faults of the devices at both ends. The detection method can only test whether one physical port is normal. All ports of the device are tested.
发明内容Summary of the invention
有鉴于此,本发明实施例期望提供一种设备自检方法、装置及存储介质,能够实现独立对1588设备的所有端口同时进行1588报文收发性能和1588设备的时间同步性能的检测。In view of the above, the embodiment of the present invention is to provide a device self-test method, device, and storage medium, which can independently detect 1588 packet sending and receiving performance and 1588 device time synchronization performance of all ports of the 1588 device.
本发明实施例的技术方案是这样实现的:The technical solution of the embodiment of the present invention is implemented as follows:
本发明实施例提供一种设备自检方法,包括:获取1588设备内PHY的接收端口和发送端口之间的线路时延,在所述线路时延与标准时间之差的绝对值不在预设的差值范围内时,确定1588设备的时间同步性能异常, 在所述线路时延与标准时间之差的绝对值在预设的差值范围内时,确定1588设备的时间同步性能正常。An embodiment of the present invention provides a device self-test method, which includes: acquiring a line delay between a receiving port and a sending port of a PHY in a 1588 device, where an absolute value of a difference between the line delay and the standard time is not preset. When the difference is within the range, it is determined that the time synchronization performance of the 1588 device is abnormal. When the absolute value of the difference between the line delay and the standard time is within a preset difference range, it is determined that the time synchronization performance of the 1588 device is normal.
上述实现方案中,所述获取1588设备内PHY的接收端口和发送端口之间的线路时延,包括:记录报文时戳产生的时间为T1、PHY发送报文的时间为T2、PHY接收报文的时间为T3、报文还回的时间为T4,所述线路时延为T3与T2之差,所述T3与T2之差为T4减去T1再减去C3;其中,所述C3为还回报文中携带的更新后的时间校准值。In the foregoing implementation, the acquiring the line delay between the receiving port and the sending port of the PHY in the 1588 device includes: recording the timestamp of the packet to be T1, and the time for the PHY to send the packet is T2, and the PHY receives the report. The time of the text is T3, the time when the message is returned is T4, the line delay is the difference between T3 and T2, and the difference between T3 and T2 is T4 minus T1 minus C3; wherein C3 is It also returns the updated time calibration value carried in the text.
上述实现方案中,所述报文产生时,将报文中的时间校准值清零。In the above implementation, when the message is generated, the time calibration value in the message is cleared.
上述实现方案中,确定1588设备的时间同步性能后,所述方法还包括:显示1588设备的时间同步性能、1588设备端口的收发性能和还回延时。After the time synchronization performance of the 1588 device is determined, the method further includes: displaying the time synchronization performance of the 1588 device, the transceiver performance of the 1588 device port, and the return delay.
上述实现方案中,所述确定1588设备的时间同步性能异常,包括:确定1588设备内的第一时间同步计数器和第二时间同步计数器不同步、和/或PHY异常、和/或PHY计算校准时间错误。In the above implementation, the determining the time synchronization performance abnormality of the 1588 device includes: determining that the first time synchronization counter and the second time synchronization counter in the 1588 device are out of synchronization, and/or the PHY abnormality, and/or the PHY calculation calibration time. error.
本发明实施例还提供一种设备自检装置,所述装置包括:获取模块、比较模块和确定模块;其中,The embodiment of the invention further provides a device self-checking device, the device comprising: an obtaining module, a comparing module and a determining module; wherein
所述获取模块,配置为获取1588设备内PHY的接收端口和发送端口之间的线路时延;The acquiring module is configured to acquire a line delay between a receiving port and a sending port of the PHY in the 1588 device;
所述比较模块,配置为比较所述线路时延和预设的差值范围的大小;The comparing module is configured to compare the line delay and a preset difference range;
所述确定模块,配置为在所述线路时延与标准时间之差的绝对值不在预设的差值范围内时,确定1588设备的时间同步性能异常;在所述线路时延与标准时间之差的绝对值在预设的差值范围内时,确定1588设备的时间同步性能正常。The determining module is configured to determine that the time synchronization performance of the 1588 device is abnormal when the absolute value of the difference between the line delay and the standard time is not within a preset difference range; in the line delay and the standard time When the absolute value of the difference is within the preset difference range, it is determined that the time synchronization performance of the 1588 device is normal.
上述实现方案中,所述获取模块,具体配置为记录报文时戳产生的时间为T1、PHY发送报文的时间为T2、PHY接收报文的时间为T3、报文还回的时间为T4,所述线路时延为T3与T2之差,所述T3与T2之差为T4 减去T1再减去C3;其中,所述C3为还回报文中携带的更新后的时间校准值。In the above implementation, the acquiring module is configured to record the timestamp of the packet as T1, the time when the PHY sends the packet is T2, the time when the PHY receives the packet is T3, and the time when the packet is returned is T4. The line delay is the difference between T3 and T2, and the difference between the T3 and the T2 is T4. Subtract T1 and subtract C3; wherein C3 is the updated time calibration value carried in the return text.
上述实现方案中,所述装置还包括:清零模块,配置为产生报文时,将报文中的时间校准值清零。In the above implementation, the device further includes: a clearing module configured to clear the time calibration value in the message when the message is generated.
上述实现方案中,所述装置还包括:显示模块,配置为显示1588设备的时间同步性能、1588设备端口的收发性能和还回延时。In the above implementation, the device further includes: a display module configured to display time synchronization performance of the 1588 device, transceiver performance of the 1588 device port, and a return delay.
上述实现方案中,所述确定模块,具体配置为确定1588设备内的第一时间同步计数器和第二时间同步计数器不同步、和/或PHY异常、和/或PHY计算校准时间错误。In the foregoing implementation, the determining module is specifically configured to determine that the first time synchronization counter and the second time synchronization counter are not synchronized, and/or the PHY abnormality, and/or the PHY calculation calibration time error in the 1588 device.
本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行发明实施例的上述设备自检方法。The embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the device self-test method of the embodiment of the invention.
本发明实施例所提供的设备自检方法、装置及存储介质,获取1588设备内PHY的接收端口和发送端口之间的线路时延;在所述线路时延与标准时间之差的绝对值不在预设的差值范围内时,确定1588设备的时间同步性能异常;在所述线路时延与标准时间之差的绝对值在预设的差值范围内时,确定1588设备的时间同步性能正常;其中,1588设备报文产生的时间为T1、PHY接收报文的时间为T2、PHY发送报文的时间为T3、报文还回的时间为T4,报文的校准时间为correction,所述线路时延为T3-T2,T3-T2=T4-T1-C3,所述C3为还回报文中携带的更新后的时间校准值;本发明实施例通过1588设备内的PHY发送和接收报文,确认PHY的发送端口Tx和接收端口Rx能够正常工作;通过比较获取的换回时延与预设的差值范围的大小,确定1588设备的时间同步性能;如此,实现独立对1588设备的所有端口同时进行1588报文收发性能和1588设备的时间同步性能的检测。 The device self-test method, device and storage medium provided by the embodiments of the present invention acquire the line delay between the receiving port and the sending port of the PHY in the 1588 device; the absolute value of the difference between the line delay and the standard time is not When the preset difference range is within the range, it is determined that the time synchronization performance of the 1588 device is abnormal; when the absolute value of the difference between the line delay and the standard time is within a preset difference range, it is determined that the time synchronization performance of the 1588 device is normal. The time when the 1588 device message is generated is T1, the time when the PHY receives the message is T2, the time when the PHY sends the message is T3, the time when the packet is returned is T4, and the calibration time of the packet is correction. The line delay is T3-T2, T3-T2=T4-T1-C3, and the C3 is the updated time calibration value carried in the report. The embodiment of the present invention sends and receives the message through the PHY in the 1588 device. The PHY's transmit port Tx and the receive port Rx can work normally. The time synchronization performance of the 1588 device is determined by comparing the obtained switchback delay with the preset difference range. Thus, all ports of the 1588 device are independently implemented. At the same time, the 1588 packet sending and receiving performance and the time synchronization performance of the 1588 device are detected.
附图说明DRAWINGS
图1为本发明实施例设备自检方法的处理流程示意图;1 is a schematic diagram of a processing flow of a device self-test method according to an embodiment of the present invention;
图2为本发明实施例1558设备的报文处理流程示意图;2 is a schematic diagram of a packet processing process of a device 1558 according to an embodiment of the present invention;
图3为本发明实施例1588设备自检示意图;3 is a schematic diagram of self-checking of a device according to an embodiment 1588 of the present invention;
图4为本发明实施例1588设备自检结果显示界面图;4 is a diagram showing a self-test result display interface of the device 1588 according to the embodiment of the present invention;
图5为本发明实施例设备自检装置的组成结构示意图。FIG. 5 is a schematic structural diagram of a device self-test device according to an embodiment of the present invention.
具体实施方式detailed description
本发明实施例中,获取1588设备内物理接口收发器PHY的接收端口和发送端口之间的线路时延;在所述线路时延与标准时间之差的绝对值不在预设的差值范围内时,确定1588设备的时间同步性能异常;在所述线路时延与标准时间之差的绝对值在预设的差值范围内时,确定1588设备的时间同步性能正常。In the embodiment of the present invention, the line delay between the receiving port and the sending port of the physical interface transceiver PHY in the device 1588 is obtained; the absolute value of the difference between the line delay and the standard time is not within the preset difference range. The time synchronization performance of the 1588 device is abnormal. When the absolute value of the difference between the line delay and the standard time is within a preset difference range, it is determined that the time synchronization performance of the 1588 device is normal.
为更好地理解本发明实施例的技术方案,下面对1588设备的组成及各组成部分的功能进行详细介绍。In order to better understand the technical solutions of the embodiments of the present invention, the composition of the 1588 device and the functions of the components are described in detail below.
1588设备一般包括集中处理模块和线路收发模块;其中,所述集中处理模块,配置为产生报文、还回报文、为报文打时戳、选取1588设备的时间源、计算时间偏差、同步时间等;线路收发模块,配置为处理1588报文时戳、执行物理层的编码和收发等功能;集中处理模块上设有第一时间计数器,线路收发模块上设有第二时间计数器,第二时间计数器需与第一时间计数器同步,保证线路收发模块和集中处理模块的所有时戳为同一个基准。The 1588 device generally includes a centralized processing module and a line transceiver module. The centralized processing module is configured to generate a message, return a message, time stamp the message, select a time source of the 1588 device, calculate a time offset, and synchronize the time. The line transceiver module is configured to process 1588 message time stamps, perform physical layer coding, and send and receive functions; the centralized processing module is provided with a first time counter, and the line transceiver module is provided with a second time counter, the second time The counter needs to be synchronized with the first time counter to ensure that all time stamps of the line transceiver module and the centralized processing module are the same reference.
本发明实施例设备自检方法的处理流程,如图1所示,包括以下步骤:The processing flow of the device self-test method in the embodiment of the present invention, as shown in FIG. 1 , includes the following steps:
步骤101,获取1588设备内物理接口收发器PHY的接收端口和发送端口之间的线路时延;Step 101: Acquire a line delay between a receiving port and a sending port of the physical interface transceiver PHY in the 1588 device.
具体地,本发明实施例中,1558设备的报文处理流程,如图2所示, 1588设备自检示意图,如图3所示:集中处理模块产生报文,报文时戳产生的时间为T1,通过1588设备的内部通信通道将所述报文发送至线路收发模块;在线路收发模块内部进入时戳处理模块,将报文中的correction值更新为C1=correction-T1;PHY通过发送端口Tx发送报文的时间为T2,PHY再将报文中的correction值更新为C2=correction-T1+T2;PHY通过Rx接收报文的时间为T3;PHY再通过1588设备的内部通信通道将报文还回至集中处理模块,所述还回的报文中携带T1和更新后的correction值为C3;集中处理模块记录报文还回的时间T4,将报文中的correction值更新为C3=correction-T1+T2+(T4-T3);Specifically, in the embodiment of the present invention, the packet processing flow of the 1558 device is as shown in FIG. 2, The self-checking diagram of the 1588 device is as shown in Figure 3. The centralized processing module generates the packet. The time when the packet is generated is T1. The packet is sent to the line transceiver module through the internal communication channel of the 1588 device. The module internally enters the timestamp processing module to update the correction value in the message to C1=correction-T1; the time that the PHY sends the message through the sending port Tx is T2, and the PHY updates the correction value in the message to C2=correction. -T1+T2; the time at which the PHY receives the message through Rx is T3; the PHY then returns the message to the centralized processing module through the internal communication channel of the 1588 device, and the returned packet carries the T1 and the updated correction. The value is C3; the centralized processing module records the time T4 of the packet return, and updates the correction value in the packet to C3=correction-T1+T2+(T4-T3);
其中,所述报文可以为sync报文,所述correction为报文内部的校准时间,记录需要校准的时延大小;在集中处理模块产生报文时,将报文中的correction值清零;则PHY的接收端口和发送端口之间的线路时延为T3-T2=T4-T1-C3,T3-T2也可以为PHY的高速串行链路还回时间;The packet may be a sync packet, and the correction is a calibration time inside the packet, and the delay of the calibration is required. When the centralized processing module generates the packet, the correction value in the packet is cleared. Then, the line delay between the receiving port and the sending port of the PHY is T3-T2=T4-T1-C3, and T3-T2 can also be the return time of the high-speed serial link of the PHY;
这里,所述线路延时可以为一次获取的线路延时,也可以为多个线路延时的平均值。Here, the line delay may be a line delay acquired at one time, or may be an average value of multiple line delays.
步骤102,在所述线路时延与标准时间之差的绝对值不在预设的差值范围内时,确定1588设备的时间同步性能异常;Step 102: When the absolute value of the difference between the line delay and the standard time is not within the preset difference range, determine that the time synchronization performance of the 1588 device is abnormal;
这里,所述标准时间为报文在PHY的接收端口和发送端口之间传输的理论时间,由PHY决定;所述预设的差值范围由1588设备决定,所述预设的差值范围可以为[1ns,20ns];Here, the standard time is a theoretical time for the message to be transmitted between the receiving port and the sending port of the PHY, and is determined by the PHY; the preset difference range is determined by the 1588 device, and the preset difference range may be Is [1ns, 20ns];
在所述线路时延不在预设的差值范围时,确定1588设备的时间同步性能异常,所述1588设备的时间同步性能异常包括:1588设备内的第一时间同步计数器和第二时间同步计数器不同步、和/或PHY异常、和/或PHY计算校准时间错误;When the line delay is not in the preset difference range, it is determined that the time synchronization performance of the 1588 device is abnormal, and the time synchronization performance abnormality of the 1588 device includes: the first time synchronization counter and the second time synchronization counter in the 1588 device. Out of sync, and/or PHY anomaly, and/or PHY calculation calibration time error;
其中,1588设备内的第一时间同步计数器和第二时间同步计数器不同 步、以及PHY异常均会引起T2值和T3值的不准确。The first time synchronization counter and the second time synchronization counter in the 1588 device are different. Both step and PHY anomalies can cause inaccuracies in T2 and T3 values.
步骤103,在所述线路时延在预设的差值范围内时,确定1588设备的时间同步性能正常。Step 103: When the line delay is within a preset difference range, determine that the time synchronization performance of the 1588 device is normal.
本发明实施例还包括:步骤104,显示1588设备的时间同步性能、校准时间和预设的差值范围;The embodiment of the present invention further includes: Step 104, displaying time synchronization performance, calibration time, and preset difference range of the 1588 device;
具体地,1588设备自检结果显示界面图,图4所示,1588设备自检结果显示界面包括:1588设备的时间同步性能、1588设备端口的收发性能、还回延时等。Specifically, the 1588 device self-test result display interface diagram, as shown in FIG. 4, the 1588 device self-test result display interface includes: 1588 device time synchronization performance, 1588 device port transceiver performance, and return delay.
本发明实施例在报文处理过程中,可以对每个接收端口和发送端口进行高速串行链路还回测试,检测接收端口和发送端口的收发性能,在检测到1588设备的全部接收端口和发送端口的收发性能正常时,进一步根据线路时延与预设的差值范围的大小检测1588设备的时间同步性能。In the packet processing process, the high-speed serial link back test can be performed on each receiving port and the sending port to detect the receiving and transmitting performance of the receiving port and the sending port, and all receiving ports of the 1588 device are detected. When the sending and receiving performance of the sending port is normal, the time synchronization performance of the 1588 device is further detected according to the line delay and the preset difference range.
在实施本发明实施例之前,所述方法还包括:在网络管理系统中设置1588设备的自检选项,包括:是否执行1588设备自检、执行1588设备自检的时间等参数。Before the implementation of the embodiment of the present invention, the method further includes: setting a self-test option of the 1588 device in the network management system, including: performing parameters such as 1588 device self-test, and performing 1588 device self-test time.
为实现上述设备自检方法,本发明实施例还提供一种设备自检装置,所述装置的组成结构,如图5所示,包括:获取模块11、比较模块12和确定模块13;其中,In order to implement the above-mentioned device self-test method, the embodiment of the present invention further provides a device self-test device, and the component structure of the device, as shown in FIG. 5, includes: an obtaining module 11, a comparing module 12, and a determining module 13;
所述获取模块11,配置为获取1588设备内PHY的接收端口和发送端口之间的线路时延;The obtaining module 11 is configured to acquire a line delay between a receiving port and a sending port of the PHY in the 1588 device;
所述比较模块12,配置为比较所述线路时延和预设的差值范围的大小;The comparing module 12 is configured to compare the line delay and a preset difference range.
所述确定模块13,配置为在所述线路时延不在预设的差值范围内时,确定1588设备的时间同步性能异常;在所述线路时延在预设的差值范围内时,确定1588设备的时间同步性能正常。The determining module 13 is configured to determine that the time synchronization performance of the 1588 device is abnormal when the line delay is not within a preset difference range; when the line delay is within a preset difference range, determine The time synchronization performance of the 1588 device is normal.
上述实现方案中,所述获取模块11,具体配置为记录报文时戳产生的 时间为T1、PHY发送报文的时间为T2、PHY接收报文的时间为T3、报文还回的时间为T4,所述线路时延为T3-T2,T3-T2=T4-T1-C3;其中,所述C3为还回报文中携带的更新后的时间校准值;In the above implementation, the acquiring module 11 is specifically configured to record a packet time stamp. The time is T1, the time for the PHY to send the message is T2, the time for the PHY to receive the message is T3, and the time for the packet to return is T4, the line delay is T3-T2, T3-T2=T4-T1-C3 Wherein, the C3 is an updated time calibration value carried in the return text;
所述报文可以为sync报文,所述correction为报文的时间校准值,T3-T2也可以为PHY的高速串行链路还回时间。The packet may be a sync packet, the correction is a time calibration value of the packet, and T3-T2 may also be a high-speed serial link return time of the PHY.
上述实现方案中,所述装置还包括:清零模块14,配置为产生报文时,将报文中的时间校准值清零。In the above implementation, the device further includes: a clearing module 14 configured to clear the time calibration value in the message when the message is generated.
上述实现方案中,装置还包括:显示模块15,配置为显示1588设备的时间同步性能、校准时间和预设的差值范围。In the above implementation, the device further includes: a display module 15 configured to display time synchronization performance, calibration time, and preset difference range of the 1588 device.
上述实现方案中,所述确定模块13,具体配置为确定1588设备内的第一时间同步计数器和第二时间同步计数器不同步、和/或PHY异常、和/或PHY计算校准时间错误;In the above implementation, the determining module 13 is specifically configured to determine that the first time synchronization counter and the second time synchronization counter are not synchronized, and/or the PHY abnormality, and/or the PHY calculation calibration time error in the 1588 device;
其中,1588设备内的第一时间同步计数器和第二时间同步计数器不同步、以及PHY异常均会引起T2值和T3值的不准确。The first time synchronization counter and the second time synchronization counter in the 1588 device are not synchronized, and the PHY abnormality causes the inaccuracy of the T2 value and the T3 value.
上述实现方案中,所述线路延时可以为一次获取的线路延时,也可以为多个线路延时的平均值。In the above implementation, the line delay may be a line delay acquired at one time, or may be an average value of multiple line delays.
上述实现方案中,所述标准时间为报文在PHY的接收端口和发送端口之间传输的理论时间由PHY决定;所述预设的差值范围由1588设备决定,所述预设的差值范围可以为[1ns,20ns]。In the above implementation, the standard time is determined by the PHY for the theoretical time that the packet is transmitted between the receiving port and the sending port of the PHY; the preset difference range is determined by the 1588 device, and the preset difference is The range can be [1ns, 20ns].
本发明实施例中提出的设备自检装置中的获取模块11、比较模块12、确定模块13、清零模块14和显示模块15都可以通过处理器来实现,当然也可通过具体的逻辑电路实现;其中所述处理器可以是移动终端或服务器上的处理器,在实际应用中,处理器可以为中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)或现场可编程门阵列(FPGA)等。The obtaining module 11, the comparing module 12, the determining module 13, the clearing module 14, and the display module 15 in the device self-checking device proposed in the embodiment of the present invention may be implemented by a processor, and may also be implemented by a specific logic circuit. The processor may be a mobile terminal or a processor on a server. In practical applications, the processor may be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field. Programming gate arrays (FPGAs), etc.
本发明实施例中,如果以软件功能模块的形式实现上述设备自检方法, 并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read Only Memory,ROM)、磁碟或者光盘等各种可以存储程序代码的介质。这样,本发明实施例不限制于任何特定的硬件和软件结合。In the embodiment of the present invention, if the device self-test method is implemented in the form of a software function module, And when sold or used as a stand-alone product, it can also be stored on a computer readable storage medium. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions. A computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention. The foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
相应地,本发明实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机程序,该计算机程序用于执行本发明实施例的上述设备自检方法。Correspondingly, the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a computer program, and the computer program is used to execute the device self-test method of the embodiment of the present invention.
以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。 The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.

Claims (11)

  1. 一种设备自检方法,所述方法包括:获取1588设备内物理接口收发器PHY的接收端口和发送端口之间的线路时延;A device self-test method, the method comprising: acquiring a line delay between a receiving port and a sending port of a physical interface transceiver PHY in a 1588 device;
    在所述线路时延与标准时间之差的绝对值不在预设的差值范围内时,确定1588设备的时间同步性能异常;When the absolute value of the difference between the line delay and the standard time is not within the preset difference range, determining that the time synchronization performance of the 1588 device is abnormal;
    在所述线路时延与标准时间之差的绝对值在预设的差值范围内时,确定1588设备的时间同步性能正常。When the absolute value of the difference between the line delay and the standard time is within a preset difference range, it is determined that the time synchronization performance of the 1588 device is normal.
  2. 根据权利要求1所述设备自检方法,其中,所述获取1588设备内PHY的接收端口和发送端口之间的线路时延,包括:The device self-test method according to claim 1, wherein the acquiring the line delay between the receiving port and the sending port of the PHY in the 1588 device comprises:
    记录报文时戳产生的时间为T1、PHY发送报文的时间为T2、PHY接收报文的时间为T3、报文还回的时间为T4,所述线路时延为T3与T2之差,所述T3与T2之差为T4减去T1再减去C3;其中,The time when the packet timestamp is recorded is T1, the time when the PHY sends the message is T2, the time when the PHY receives the message is T3, and the time when the packet is returned is T4, and the line delay is the difference between T3 and T2. The difference between T3 and T2 is T4 minus T1 minus C3; wherein
    所述C3为还回报文中携带的更新后的时间校准值。The C3 is an updated time calibration value carried in the report.
  3. 根据权利要求2所述设备自检方法,其中,所述报文产生时,将报文中的时间校准值清零。The device self-test method according to claim 2, wherein the time calibration value in the message is cleared when the message is generated.
  4. 根据权利要求1所述设备自检方法,其中,确定1588设备的时间同步性能后,所述方法还包括:The device self-test method according to claim 1, wherein after determining the time synchronization performance of the 1588 device, the method further includes:
    显示1588设备的时间同步性能、1588设备端口的收发性能和还回延时。Displays the time synchronization performance of the 1588 device, the transceiver performance of the 1588 device port, and the return delay.
  5. 根据权利要求1所述设备自检方法,其中,所述确定1588设备的时间同步性能异常,包括:The device self-test method according to claim 1, wherein the determining the time synchronization performance abnormality of the 1588 device comprises:
    确定1588设备内的第一时间同步计数器和第二时间同步计数器不同步、和/或PHY异常、和/或PHY计算校准时间错误。It is determined that the first time synchronization counter and the second time synchronization counter within the 1588 device are out of sync, and/or the PHY is abnormal, and/or the PHY calculates a calibration time error.
  6. 一种设备自检装置,所述装置包括:获取模块、比较模块和确定模块;其中, A device self-checking device, the device comprising: an obtaining module, a comparing module and a determining module; wherein
    所述获取模块,配置为获取1588设备内PHY的接收端口和发送端口之间的线路时延;The acquiring module is configured to acquire a line delay between a receiving port and a sending port of the PHY in the 1588 device;
    所述比较模块,配置为比较所述线路时延和预设的差值范围的大小;The comparing module is configured to compare the line delay and a preset difference range;
    所述确定模块,配置为在所述线路时延与标准时间之差的绝对值不在预设的差值范围内时,确定1588设备的时间同步性能异常;在所述线路时延与标准时间之差的绝对值在预设的差值范围内时,确定1588设备的时间同步性能正常。The determining module is configured to determine that the time synchronization performance of the 1588 device is abnormal when the absolute value of the difference between the line delay and the standard time is not within a preset difference range; in the line delay and the standard time When the absolute value of the difference is within the preset difference range, it is determined that the time synchronization performance of the 1588 device is normal.
  7. 根据权利要求6所述设备自检装置,其中,所述获取模块,配置为记录报文时戳产生的时间为T1、PHY发送报文的时间为T2、PHY接收报文的时间为T3、报文还回的时间为T4,所述线路时延为T3与T2之差,所述T3与T2之差为T4减去T1再减去C3;其中,The device self-test device according to claim 6, wherein the obtaining module is configured to record a timestamp of the message as T1, a time when the PHY sends the message is T2, and a time when the PHY receives the message is T3, and the report The time returned is T4, the line delay is the difference between T3 and T2, and the difference between T3 and T2 is T4 minus T1 minus C3;
    所述C3为还回报文中携带的更新后的时间校准值。The C3 is an updated time calibration value carried in the report.
  8. 根据权利要求7所述设备自检装置,其中,所述装置还包括:清零模块,配置为产生报文时,将报文中的时间校准值清零。The device self-test device according to claim 7, wherein the device further comprises: a clearing module configured to clear the time calibration value in the message when the message is generated.
  9. 根据权利要求6所述设备自检装置,其中,所述装置还包括:显示模块,配置为显示1588设备的时间同步性能、1588设备端口的收发性能和还回延时。The device self-test device according to claim 6, wherein the device further comprises: a display module configured to display time synchronization performance of the 1588 device, transceiver performance of the 1588 device port, and return delay.
  10. 根据权利要求6所述设备自检装置,其中,所述确定模块,配置为确定1588设备内的第一时间同步计数器和第二时间同步计数器不同步、和/或PHY异常、和/或PHY计算校准时间错误。The device self-test device of claim 6, wherein the determining module is configured to determine that the first time synchronization counter and the second time synchronization counter are out of sync, and/or PHY abnormal, and/or PHY calculations within the 1588 device The calibration time is wrong.
  11. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行权利要求1至5任一项所述的设备自检方法。 A computer storage medium having stored therein computer executable instructions for performing the device self-test method of any one of claims 1 to 5.
PCT/CN2015/073247 2014-09-28 2015-02-25 Device self-checking method, apparatus and storage medium WO2016045311A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410510243.X 2014-09-28
CN201410510243.XA CN105530139B (en) 2014-09-28 2014-09-28 Self-checking method and device for 1588 equipment

Publications (1)

Publication Number Publication Date
WO2016045311A1 true WO2016045311A1 (en) 2016-03-31

Family

ID=55580215

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/073247 WO2016045311A1 (en) 2014-09-28 2015-02-25 Device self-checking method, apparatus and storage medium

Country Status (2)

Country Link
CN (1) CN105530139B (en)
WO (1) WO2016045311A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111239584A (en) * 2019-12-31 2020-06-05 视航机器人(佛山)有限公司 Mainboard testing device, system and method applied to unmanned forklift
CN115914038B (en) * 2022-11-11 2024-04-09 中国联合网络通信集团有限公司 Degradation forwarding device detection method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011188042A (en) * 2010-03-05 2011-09-22 Nec Corp Digital signal processing circuit, digital signal processing method, and program
CN202798152U (en) * 2012-07-31 2013-03-13 许继集团有限公司 Network layering distributed intelligent regional power grid
CN103905136A (en) * 2012-12-26 2014-07-02 中兴通讯股份有限公司 Time synchronization processing method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008267839A (en) * 2007-04-16 2008-11-06 Matsushita Electric Ind Co Ltd Radar system
CN101437239A (en) * 2008-12-11 2009-05-20 吉林大学 Real time sensor signal network transmission method based on linear prediction filtering
CN102833061B (en) * 2012-08-31 2016-02-24 北京东土科技股份有限公司 Based on method and the node of the raising clock accuracy of seamless redundant looped network
CN104113386B (en) * 2014-07-09 2017-10-10 北京东土科技股份有限公司 It is a kind of to monitor the synchronous method and device of ethernet clock

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011188042A (en) * 2010-03-05 2011-09-22 Nec Corp Digital signal processing circuit, digital signal processing method, and program
CN202798152U (en) * 2012-07-31 2013-03-13 许继集团有限公司 Network layering distributed intelligent regional power grid
CN103905136A (en) * 2012-12-26 2014-07-02 中兴通讯股份有限公司 Time synchronization processing method and device

Also Published As

Publication number Publication date
CN105530139B (en) 2021-03-16
CN105530139A (en) 2016-04-27

Similar Documents

Publication Publication Date Title
US9923656B2 (en) Methods, systems, and computer readable media for testing recovered clock quality
EP2884679B1 (en) Time synchronization apparatus and method for automatically detecting the asymmetry of an optical fiber
US6741952B2 (en) Instrument timing using synchronized clocks
CN104113386B (en) It is a kind of to monitor the synchronous method and device of ethernet clock
CN107078821B (en) Distribution of the dynamic accuracy information in the network of 1588 clock of IEEE
US9401856B2 (en) Latency monitoring function
EP1931084B1 (en) A method for getting the link estimating parameters
US9167058B2 (en) Timestamp correction in a multi-lane communication link with skew
US9451571B2 (en) Determining uplink and downlink delays between a baseband unit and a remote radio head
US9800595B2 (en) Methods, systems, and computer readable media for detecting physical link intrusions
WO2018006686A1 (en) Method, apparatus and device for optimizing time synchronization between communication network devices
CN101098219A (en) Correcting time synchronisation inaccuracy caused by asymmetric delay on a communication link
CN104660359B (en) A kind of method, apparatus and equipment of clock frequency deviation detection
WO2017032113A1 (en) Method and apparatus for measuring time synchronization deviation
WO2016106908A1 (en) Method and system for synchronizing clocks in sdh network
CN105553594A (en) PET (Positron Emission Computed Tomography) clock synchronization method and device
US20200303919A1 (en) Differential protection method and system
WO2016045311A1 (en) Device self-checking method, apparatus and storage medium
CN102523263A (en) Sharing access host quantity monitoring method, device thereof and system thereof
WO2013075307A1 (en) Method, device and system for monitoring output time of network node
JP2013123224A (en) Method and system for determining dependence relationship between device parameters of mobile phone and signal parameters
US11606156B1 (en) Clock synchronization
KR20190094499A (en) apparatus for testing load capacity of ptp/ntp server
CN107872360B (en) Method for calculating one-way path delay between clock modules
Ronen Synchronization monitoring in IEEE1588 synchronization networks

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

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

Country of ref document: EP

Kind code of ref document: A1