CN106330591B - OAM test method and equipment for communication system - Google Patents
OAM test method and equipment for communication system Download PDFInfo
- Publication number
- CN106330591B CN106330591B CN201510378740.3A CN201510378740A CN106330591B CN 106330591 B CN106330591 B CN 106330591B CN 201510378740 A CN201510378740 A CN 201510378740A CN 106330591 B CN106330591 B CN 106330591B
- Authority
- CN
- China
- Prior art keywords
- signal
- time
- tod
- parameter
- 1pps
- 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.)
- Active
Links
- 238000004891 communication Methods 0.000 title claims abstract description 40
- 238000010998 test method Methods 0.000 title claims description 7
- 238000012360 testing method Methods 0.000 claims abstract description 317
- 238000013507 mapping Methods 0.000 claims abstract description 18
- 230000007246 mechanism Effects 0.000 claims abstract description 14
- 230000015556 catabolic process Effects 0.000 claims abstract description 10
- 238000006731 degradation reaction Methods 0.000 claims abstract description 10
- 238000000034 method Methods 0.000 claims abstract description 9
- 230000008859 change Effects 0.000 claims description 27
- 238000012545 processing Methods 0.000 claims description 13
- 230000005856 abnormality Effects 0.000 claims description 6
- 230000003993 interaction Effects 0.000 claims description 6
- 238000012795 verification Methods 0.000 abstract description 4
- 238000004088 simulation Methods 0.000 abstract description 3
- 230000001934 delay Effects 0.000 description 6
- 230000001360 synchronised effect Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000002159 abnormal effect Effects 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000010276 construction Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Images
Landscapes
- Synchronisation In Digital Transmission Systems (AREA)
- Tests Of Electronic Circuits (AREA)
Abstract
本发明提供了一种通信系统的OAM测试方法及设备,该方法包括:向被测系统发送第一信号并接收被测系统反馈的第二信号,第二信号为第一信号的反馈信号;间隔第一预设时间改变第一信号的第一参数;间隔第二预设时间采集第二信号的参数,从第二信号的参数中获取与第一参数根据一通信接口协议呈一映射关系的至少一个参数,组成第二参数集合;根据第一参数与第二参数集合,生成测试结果。本发明为测试通信系统的OAM功能和性能提供了仿真场景和自动测试手段,来验证OAM的时间降质输出功能、频率同步和时间同步关联机制,实现了对不同时间接口协议的关联验证以及对设备不同时间接口之间选源功能的自动测试。
The present invention provides an OAM testing method and equipment for a communication system, the method comprising: sending a first signal to a system under test and receiving a second signal fed back by the system under test, where the second signal is a feedback signal of the first signal; The first preset time changes the first parameter of the first signal; the parameter of the second signal is collected at intervals of the second preset time, and at least one parameter that is in a mapping relationship with the first parameter according to a communication interface protocol is obtained from the parameter of the second signal. One parameter constitutes the second parameter set; according to the first parameter and the second parameter set, the test result is generated. The invention provides simulation scenarios and automatic testing means for testing the OAM function and performance of the communication system to verify the time degradation output function, frequency synchronization and time synchronization association mechanism of OAM, and realizes the association verification of different time interface protocols and the verification of different time interface protocols. Automatic test of the source selection function between different time interfaces of the device.
Description
技术领域technical field
本发明涉及通信技术领域,特别涉及一种通信系统的OAM测试方法及设备。The present invention relates to the technical field of communications, in particular to an OAM testing method and device of a communications system.
背景技术Background technique
OAM是指通信系统的操作、维护、管理。为了使通信系统正常运行,需对OAM维持通信系统的时间同步以及频率同步进行测试。现有的OAM测试设备能够对时间和频率同步的精度等功能和性能进行测试,但是,现有测试设备针对同步网络和系统正常工作情况下的功能和性能进行测试,无法对异常情况下同步网络和系统的同步OAM功能进行测试;现有测试设备无法分析测试设备输出信号变化而引起的被测试设备的变化;现有测试设备先对同步网络和系统的交互报文等数据进行收集,再通过人工对数据进行分析,判断同步网络和系统的功能和性能是否符合要求,导致系统测试工作量大,测试步骤繁琐,容易出现操作和判断失误等问题。OAM refers to the operation, maintenance and management of communication systems. In order to make the communication system operate normally, it is necessary to test the time synchronization and frequency synchronization of the OAM to maintain the communication system. The existing OAM test equipment can test the functions and performances such as the accuracy of time and frequency synchronization. However, the existing test equipment tests the functions and performance of the synchronization network and the system under normal working conditions, and cannot test the synchronization network under abnormal conditions. Test the synchronous OAM function of the system; the existing test equipment cannot analyze the change of the tested equipment caused by the change of the output signal of the test equipment; the existing test equipment Manually analyze the data to judge whether the functions and performance of the synchronization network and system meet the requirements, resulting in a large amount of system testing workload, cumbersome testing steps, and prone to problems such as operation and judgment errors.
发明内容SUMMARY OF THE INVENTION
本发明提供了一种通信系统的OAM测试方法及设备,其目的是为了解决现有的OAM测试设备无法对异常情况下同步网络和系统的同步OAM功能进行测试以及工作量大、测试步骤繁琐、容易出现操作和判断失误等问题。The present invention provides an OAM testing method and equipment for a communication system, and its purpose is to solve the problem that the existing OAM testing equipment cannot test the synchronous OAM function of the synchronous network and the system under abnormal conditions, the workload is large, the testing steps are cumbersome, Problems such as operation and judgment errors are prone to occur.
为了达到上述目的,本发明的实施例提供了一种通信系统的OAM测试方法,该方法包括:In order to achieve the above object, an embodiment of the present invention provides an OAM test method for a communication system, the method comprising:
向被测系统发送第一信号并接收被测系统反馈的第二信号,第二信号为第一信号的反馈信号;Send a first signal to the system under test and receive a second signal fed back by the system under test, where the second signal is a feedback signal of the first signal;
间隔第一预设时间改变第一信号的第一参数;changing the first parameter of the first signal at intervals of a first preset time;
间隔第二预设时间采集第二信号的参数,从第二信号的参数中获取与第一参数根据一通信接口协议呈一映射关系的至少一个参数,组成第二参数集合;collecting parameters of the second signal at intervals of a second preset time, and obtaining at least one parameter from the parameters of the second signal that is in a mapping relationship with the first parameter according to a communication interface protocol to form a second parameter set;
根据第一参数与第二参数集合,生成测试结果。A test result is generated according to the first parameter and the second parameter set.
进一步地,第一信号包括精确时间同步协议PTP信号、外定时频率信号或线路频率信号、秒脉冲与当前时刻1PPS+TOD信号中的至少一种。Further, the first signal includes at least one of a precise time synchronization protocol PTP signal, an external timing frequency signal or a line frequency signal, a second pulse and a current time 1PPS+TOD signal.
进一步地,根据第一参数与第二参数集合,生成检测结果的步骤,具体包括:Further, according to the first parameter and the second parameter set, the step of generating the detection result specifically includes:
判断第二参数集合中的所有元素是否均随第一参数的改变按照映射关系做出相应改变:若是,则生成测试通过的测试结果;否则,生成测试不通过的测试结果。Determine whether all elements in the second parameter set are changed according to the mapping relationship with the change of the first parameter: if so, generate a test result that passes the test; otherwise, generate a test result that fails the test.
进一步地,在向被测系统发送第一信号并接收被测系统反馈的第二信号的步骤之后,该方法还包括:Further, after the step of sending the first signal to the system under test and receiving the second signal fed back by the system under test, the method further includes:
判断与被测系统之间的通信是否正常:若是,则执行间隔第一预设时间改变第一信号的第一参数的步骤;否则,提示连接异常。It is judged whether the communication with the system under test is normal: if yes, the step of changing the first parameter of the first signal at intervals of the first preset time is performed; otherwise, a connection abnormality is prompted.
进一步地,PTP信号的参数包括:时钟质量等级ClockClass、优先级Priority、时间可跟踪性timeTraceable、频率可跟踪性frequencyTraceable、时间源timeSource、当前协调世界时与国际原子时的偏移量currentUtcOffset以及主时钟号GrandmasterIdentity中的一种或多种;1PPS+TOD信号的参数包括秒脉冲状态与闰秒值Leap Seconds中的一种;外定时频率信号或线路频率信号的参数至少包括同步状态信息SSM。Further, the parameters of the PTP signal include: clock quality level ClockClass, priority Priority, time traceability timeTraceable, frequency traceability frequencyTraceable, time source timeSource, offset currentUtcOffset between current coordinated universal time and international atomic time, and master clock One or more of the GrandmasterIdentity number; the parameters of the 1PPS+TOD signal include one of the second pulse state and the leap second value Leap Seconds; the parameters of the external timing frequency signal or line frequency signal include at least the synchronization state information SSM.
进一步地,测试被测系统的时间降质输出功能时,第一信号为PTP时间信号或1PPS+TOD时间信号;Further, when testing the time degradation output function of the system under test, the first signal is a PTP time signal or a 1PPS+TOD time signal;
作为第一信号的PTP时间信号的第一参数为ClockClass,第二信号为被测系统反馈的PTP时间信号和1PPS+TOD时间信号;作为第二信号的PTP时间信号,第二参数集合至少包括timeSource与ClockClass;作为第二信号的1PPS+TOD时间信号,第二参数集合至少包括TOD报文的秒脉冲状态;The first parameter of the PTP time signal as the first signal is ClockClass, the second signal is the PTP time signal and 1PPS+TOD time signal fed back by the system under test; as the PTP time signal of the second signal, the second parameter set includes at least timeSource With ClockClass; as the 1PPS+TOD time signal of the second signal, the second parameter set includes at least the second pulse state of the TOD message;
作为第一信号的1PPS+TOD时间信号的第一参数为秒脉冲状态,第二信号为被测系统反馈的PTP时间信号和1PPS+TOD时间信号;作为第二信号的PTP时间信号,第二参数集合至少包括timeSource与ClockClass;作为第二信号的1PPS+TOD时间信号,第二参数集合至少包括TOD报文的秒脉冲状态。The first parameter of the 1PPS+TOD time signal as the first signal is the second pulse state, the second signal is the PTP time signal and the 1PPS+TOD time signal fed back by the system under test; as the PTP time signal of the second signal, the second parameter The set includes at least timeSource and ClockClass; as the 1PPS+TOD time signal as the second signal, the second parameter set includes at least the pulse-per-second state of the TOD message.
进一步地,测试被测系统对设备不同时间接口选源功能时,第一信号为PTP时间信号和1PPS+TOD时间信号;Further, when testing the system-under-test's source selection function for different time interfaces of the device, the first signal is the PTP time signal and the 1PPS+TOD time signal;
作为第一信号的PTP时间信号的第一参数为Priority以及ClockClass,第二信号为被测系统反馈的PTP时间信号以及1PPS+TOD时间信号;The first parameters of the PTP time signal as the first signal are Priority and ClockClass, and the second signal is the PTP time signal and the 1PPS+TOD time signal fed back by the system under test;
作为第二信号的PTP时间信号,第二参数集合至少包括Priority1、ClockClass与grandmasterIdentity;As the PTP time signal of the second signal, the second parameter set at least includes Priority1, ClockClass and grandmasterIdentity;
作为第二信号的1PPS+TOD时间信号第二参数集合至少包括TOD报文的秒脉冲状态。The second parameter set of the 1PPS+TOD time signal as the second signal includes at least the pulse-per-second state of the TOD message.
进一步地,测试被测系统闰秒处理功能时,第一信号为PTP时间信号或1PPS+TOD时间信号;Further, when testing the leap second processing function of the system under test, the first signal is a PTP time signal or a 1PPS+TOD time signal;
作为第一信号的PTP时间信号的第一参数为currentUtcOffset,第二信号为被测系统反馈的PTP时间信号和1PPS+TOD时间信号;作为第二信号的PTP时间信号,第二参数集合至少包括currentUtcOffset;作为第二信号的1PPS+TOD时间信号,第二参数集合至少包括Leap Seconds;The first parameter of the PTP time signal as the first signal is currentUtcOffset, and the second signal is the PTP time signal and 1PPS+TOD time signal fed back by the system under test; as the PTP time signal of the second signal, the second parameter set includes at least currentUtcOffset ; As the 1PPS+TOD time signal of the second signal, the second parameter set includes at least Leap Seconds;
作为第一信号的1PPS+TOD时间信号的第一参数为Leap Seconds,第二信号为被测系统反馈的1PPS+TOD时间信号,第二信号为被测系统反馈的PTP时间信号和1PPS+TOD时间信号;作为第二信号的PTP时间信号,第二参数集合至少包括currentUtcOffset;作为第二信号的1PPS+TOD时间信号,第二参数集合至少包括Leap Seconds。The first parameter of the 1PPS+TOD time signal as the first signal is Leap Seconds, the second signal is the 1PPS+TOD time signal fed back by the system under test, and the second signal is the PTP time signal and 1PPS+TOD time fed back by the system under test signal; as the PTP time signal of the second signal, the second parameter set includes at least currentUtcOffset; as the 1PPS+TOD time signal of the second signal, the second parameter set includes at least Leap Seconds.
进一步地,测试被测系统频率同步和时间同步关联机制时,第一信号为PTP时间信号和外定时频率信号或线路频率信号;Further, when testing the frequency synchronization and time synchronization correlation mechanism of the system under test, the first signal is a PTP time signal and an external timing frequency signal or a line frequency signal;
作为第一信号的外定时频率信号或线路频率信号的第一参数为SSM,第二信号为被测系统反馈的PTP时间信号,第二参数集合至少包括GrandmasterIdentity、ClockClass、timeTraceable和frequencyTraceable。The first parameter of the external timing frequency signal or line frequency signal as the first signal is SSM, the second signal is the PTP time signal fed back by the system under test, and the second parameter set includes at least GrandmasterIdentity, ClockClass, timeTraceable and frequencyTraceable.
为了实现上述目的,本发明还提供了一种通信系统的OAM测试设备,该设备包括:In order to achieve the above object, the present invention also provides an OAM test device of a communication system, the device comprising:
信号交互模块,用于向被测系统发送第一信号并接收被测系统反馈的第二信号,第二信号为第一信号的反馈信号;a signal interaction module, configured to send a first signal to the system under test and receive a second signal fed back by the system under test, where the second signal is a feedback signal of the first signal;
第一参数处理模块,用于间隔第一预设时间改变第一信号的第一参数;a first parameter processing module for changing the first parameter of the first signal at intervals of a first preset time;
采集模块,用于间隔第二预设时间采集第二信号的参数,从第二信号的参数中获取与第一参数根据一通信接口协议呈一映射关系的至少一个参数,组成第二参数集合;a collection module, configured to collect parameters of the second signal at intervals of a second preset time, obtain at least one parameter from the parameters of the second signal that is in a mapping relationship with the first parameter according to a communication interface protocol, and form a second parameter set;
测试结果生成模块,用于根据第一参数与第二参数集合,生成测试结果。The test result generating module is configured to generate the test result according to the first parameter and the second parameter set.
进一步地,第一信号包括精确时间同步协议PTP信号、外定时频率信号或线路频率信号、秒脉冲与当前时刻1PPS+TOD信号中的至少一种。Further, the first signal includes at least one of a precise time synchronization protocol PTP signal, an external timing frequency signal or a line frequency signal, a second pulse and a current time 1PPS+TOD signal.
进一步地,测试结果生成模块具体包括:Further, the test result generation module specifically includes:
判断子模块,用于判断第二参数集合中的所有元素是否均随第一参数的改变按照映射关系做出相应改变:若是,则生成测试通过的测试结果;否则,生成测试不通过的测试结果。The judgment submodule is used to judge whether all the elements in the second parameter set are changed according to the mapping relationship with the change of the first parameter: if so, generate a test result that passes the test; otherwise, generate a test result that fails the test .
进一步地,该设备还包括:Further, the device also includes:
连接判断模块,用于在信号交互模块向被测系统发送第一信号并接收被测系统反馈的第二信号之后,The connection judgment module is used for, after the signal interaction module sends the first signal to the system under test and receives the second signal fed back by the system under test,
判断与被测系统之间的通信是否正常:若是,则执行间隔第一预设时间改变第一信号的第一参数的步骤;否则,提示连接异常。It is judged whether the communication with the system under test is normal: if yes, the step of changing the first parameter of the first signal at intervals of the first preset time is performed; otherwise, a connection abnormality is prompted.
进一步地,PTP信号的参数包括:时钟质量等级ClockClass、优先级Priority、时间可跟踪性timeTraceable、频率可跟踪性frequencyTraceable、时间源timeSource、当前协调世界时与国际原子时的偏移量currentUtcOffset以及主时钟号GrandmasterIdentity中的一种或多种;1PPS+TOD信号的参数至少包括秒脉冲状态与闰秒值Leap Seconds中的一种;外定时频率信号或线路频率信号的参数至少包括同步状态信息SSM。Further, the parameters of the PTP signal include: clock quality level ClockClass, priority Priority, time traceability timeTraceable, frequency traceability frequencyTraceable, time source timeSource, offset currentUtcOffset between current coordinated universal time and international atomic time, and master clock One or more of the GrandmasterIdentity number; the parameters of the 1PPS+TOD signal include at least one of the second pulse state and the leap second value Leap Seconds; the parameters of the external timing frequency signal or line frequency signal include at least the synchronization state information SSM.
进一步地,测试被测系统的时间降质输出功能时,第一信号为PTP时间信号或1PPS+TOD时间信号;Further, when testing the time degradation output function of the system under test, the first signal is a PTP time signal or a 1PPS+TOD time signal;
作为第一信号的PTP时间信号的第一参数为ClockClass,第二信号为被测系统反馈的PTP时间信号和1PPS+TOD时间信号;作为第二信号的PTP时间信号,第二参数集合至少包括timeSource与ClockClass;作为第二信号的1PPS+TOD时间信号,第二参数集合至少包括TOD报文的秒脉冲状态;The first parameter of the PTP time signal as the first signal is ClockClass, the second signal is the PTP time signal and 1PPS+TOD time signal fed back by the system under test; as the PTP time signal of the second signal, the second parameter set includes at least timeSource With ClockClass; as the 1PPS+TOD time signal of the second signal, the second parameter set includes at least the second pulse state of the TOD message;
作为第一信号的1PPS+TOD时间信号的第一参数为秒脉冲状态,第二信号为被测系统反馈的PTP时间信号和1PPS+TOD时间信号;作为第二信号的PTP时间信号,第二参数集合至少包括timeSource与ClockClass;作为第二信号的1PPS+TOD时间信号,第二参数集合至少包括TOD报文的秒脉冲状态。The first parameter of the 1PPS+TOD time signal as the first signal is the second pulse state, the second signal is the PTP time signal and the 1PPS+TOD time signal fed back by the system under test; as the PTP time signal of the second signal, the second parameter The set includes at least timeSource and ClockClass; as the 1PPS+TOD time signal as the second signal, the second parameter set includes at least the pulse-per-second state of the TOD message.
进一步地,测试被测系统对设备不同时间接口选源功能时,第一信号为PTP时间信号和1PPS+TOD时间信号;Further, when testing the system-under-test's source selection function for different time interfaces of the device, the first signal is the PTP time signal and the 1PPS+TOD time signal;
作为第一信号的PTP时间信号的第一参数为Priority以及ClockClass,第二信号为被测系统反馈的PTP时间信号以及1PPS+TOD时间信号;The first parameters of the PTP time signal as the first signal are Priority and ClockClass, and the second signal is the PTP time signal and the 1PPS+TOD time signal fed back by the system under test;
作为第二信号的PTP时间信号,第二参数集合至少包括Priority1、ClockClass与grandmasterIdentity;As the PTP time signal of the second signal, the second parameter set at least includes Priority1, ClockClass and grandmasterIdentity;
作为第二信号的1PPS+TOD时间信号第二参数集合至少包括TOD报文的秒脉冲状态。The second parameter set of the 1PPS+TOD time signal as the second signal includes at least the pulse-per-second state of the TOD message.
进一步地,测试被测系统闰秒处理功能时,第一信号为PTP时间信号或1PPS+TOD时间信号;Further, when testing the leap second processing function of the system under test, the first signal is a PTP time signal or a 1PPS+TOD time signal;
作为第一信号的PTP时间信号的第一参数为currentUtcOffset,第二信号为被测系统反馈的PTP时间信号和1PPS+TOD时间信号;作为第二信号的PTP时间信号,第二参数集合至少包括currentUtcOffset;作为第二信号的1PPS+TOD时间信号,第二参数集合至少包括Leap Seconds;The first parameter of the PTP time signal as the first signal is currentUtcOffset, and the second signal is the PTP time signal and 1PPS+TOD time signal fed back by the system under test; as the PTP time signal of the second signal, the second parameter set includes at least currentUtcOffset ; As the 1PPS+TOD time signal of the second signal, the second parameter set includes at least Leap Seconds;
作为第一信号的1PPS+TOD时间信号的第一参数为Leap Seconds,第二信号为被测系统反馈的1PPS+TOD时间信号,第二信号为被测系统反馈的PTP时间信号和1PPS+TOD时间信号;作为第二信号的PTP时间信号,第二参数集合至少包括currentUtcOffset;作为第二信号的1PPS+TOD时间信号,第二参数集合至少包括Leap Seconds。The first parameter of the 1PPS+TOD time signal as the first signal is Leap Seconds, the second signal is the 1PPS+TOD time signal fed back by the system under test, and the second signal is the PTP time signal and 1PPS+TOD time fed back by the system under test signal; as the PTP time signal of the second signal, the second parameter set includes at least currentUtcOffset; as the 1PPS+TOD time signal of the second signal, the second parameter set includes at least Leap Seconds.
进一步地,测试被测系统频率同步和时间同步关联机制时,第一信号为PTP时间信号和外定时频率信号或线路频率信号;Further, when testing the frequency synchronization and time synchronization correlation mechanism of the system under test, the first signal is a PTP time signal and an external timing frequency signal or a line frequency signal;
作为第一信号的外定时频率信号或线路频率信号的第一参数为SSM,第二信号为被测系统反馈的PTP时间信号,第二参数集合至少包括GrandmasterIdentity、ClockClass、timeTraceable和frequencyTraceable。The first parameter of the external timing frequency signal or line frequency signal as the first signal is SSM, the second signal is the PTP time signal fed back by the system under test, and the second parameter set includes at least GrandmasterIdentity, ClockClass, timeTraceable and frequencyTraceable.
本发明的上述方案至少包括以下有益效果:The above-mentioned scheme of the present invention at least includes the following beneficial effects:
本发明提供的通信系统的OAM测试方法及设备,为测试通信系统的OAM功能和性能提供了仿真场景和自动测试手段,来验证OAM的时间降质输出功能、频率同步和时间同步关联机制,实现了对不同时间接口协议的关联验证以及对设备不同时间接口之间选源功能的自动测试;可以实现同步网络和系统异常情况下同步OAM功能和性能的测试并自动分析、判断同步网络和系统OAM功能和性能是否符合要求;本发明可模拟各种时间输出故障,支持时间同步故障管理功能测试;本发明提高了测试效率,促进同步网络的建设和应用。The OAM testing method and equipment of the communication system provided by the present invention provide simulation scenarios and automatic testing means for testing the OAM function and performance of the communication system, so as to verify the time degradation output function, frequency synchronization and time synchronization association mechanism of the OAM, and realize The correlation verification of different time interface protocols and the automatic test of the source selection function between the different time interfaces of the device; it can realize the test of the synchronization OAM function and performance under the abnormal conditions of the synchronization network and the system, and automatically analyze and judge the synchronization network and system OAM Whether the function and performance meet the requirements; the invention can simulate various time output faults and support the function test of time synchronization fault management; the invention improves the test efficiency and promotes the construction and application of the synchronization network.
附图说明Description of drawings
图1为本发明的实施例所述的通信系统的OAM测试方法的步骤流程图;Fig. 1 is the step flow chart of the OAM test method of the communication system described in the embodiment of the present invention;
图2为本发明的实施例所述的通信系统的OAM测试设备的结构示意图;2 is a schematic structural diagram of an OAM test device of a communication system according to an embodiment of the present invention;
图3为本发明的实施例提供的所述的通信系统的OAM测试设备的示例1的场景示意图;3 is a schematic diagram of a scenario of Example 1 of the OAM test device of the communication system provided by the embodiment of the present invention;
图4为本发明的实施例提供的所述的通信系统的OAM测试设备的示例2的场景示意图;4 is a schematic diagram of a scenario of Example 2 of the OAM test device of the communication system provided by the embodiment of the present invention;
图5为本发明的实施例提供的所述的通信系统的OAM测试设备的示例3的场景示意图;5 is a schematic diagram of a scenario of Example 3 of the OAM test device of the communication system provided by the embodiment of the present invention;
图6为本发明的实施例提供的所述的通信系统的OAM测试设备的示例3的场景示意图。FIG. 6 is a schematic diagram of a scenario of Example 3 of the OAM test device of the communication system according to the embodiment of the present invention.
具体实施方式Detailed ways
为使本发明要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, the following will be described in detail with reference to the accompanying drawings and specific embodiments.
参见图1,本发明针对现有的问题,提供了一种通信系统的OAM测试方法,该方法包括:Referring to Fig. 1, the present invention provides an OAM test method for a communication system in view of the existing problems, the method comprising:
步骤101,向被测系统发送第一信号并接收被测系统反馈的第二信号,第二信号为第一信号的反馈信号;
进一步地,第一信号包括精确时间同步协议PTP信号、外定时频率信号或线路频率信号、秒脉冲与当前时刻1PPS+TOD信号中的至少一种;作为一个优选示例,当需要验证被测系统的频率同步和时间同步关联机制,只需向被测系统发送PTP信号即可;当需要验证被测系统的对设备不同时间接口之间选源功能时,则需同时向被测系统发送PTP信号以及1PPS+TOD信号。Further, the first signal includes at least one of the precise time synchronization protocol PTP signal, the external timing frequency signal or the line frequency signal, the second pulse and the current moment 1PPS+TOD signal; The frequency synchronization and time synchronization association mechanism only needs to send the PTP signal to the system under test; when it is necessary to verify the function of selecting the source between the different time interfaces of the device under test, the PTP signal and 1PPS+TOD signal.
步骤102,间隔第一预设时间改变第一信号的第一参数;
这里,间隔第一预设时间是为了待与被测系统通信稳定后再执行改变第一参数的步骤。Here, the interval of the first preset time is to perform the step of changing the first parameter after the communication with the system under test is stabilized.
进一步地,PTP信号的参数包括:时钟质量等级ClockClass、优先级Priority、时间可跟踪性timeTraceable、频率可跟踪性frequencyTraceable、时间源timeSource、当前协调世界时与国际原子时的偏移量currentUtcOffset以及主时钟号GrandmasterIdentity中的一种或多种;1PPS+TOD信号的参数至少包括秒脉冲状态与闰秒值Leap Seconds中的一种;外定时频率信号或线路频率信号的参数至少包括同步状态信息SSM。Further, the parameters of the PTP signal include: clock quality level ClockClass, priority Priority, time traceability timeTraceable, frequency traceability frequencyTraceable, time source timeSource, offset currentUtcOffset between current coordinated universal time and international atomic time, and master clock One or more of the GrandmasterIdentity number; the parameters of the 1PPS+TOD signal include at least one of the second pulse state and the leap second value Leap Seconds; the parameters of the external timing frequency signal or line frequency signal include at least the synchronization state information SSM.
步骤103,间隔第二预设时间采集第二信号的参数,从第二信号的参数中获取与第一参数根据一通信接口协议呈一映射关系的至少一个参数,组成第二参数集合;
步骤104,根据第一参数与第二参数集合,生成测试结果。Step 104: Generate a test result according to the first parameter and the second parameter set.
进一步地,步骤104,具体包括:Further, step 104 specifically includes:
判断第二参数集合中的所有元素是否均随第一参数的改变按照映射关系做出相应改变:若是,则生成测试通过的测试结果;否则,生成测试不通过的测试结果。Determine whether all elements in the second parameter set are changed according to the mapping relationship with the change of the first parameter: if so, generate a test result that passes the test; otherwise, generate a test result that fails the test.
进一步地,在步骤101之后,该方法还包括:Further, after
判断与被测系统之间的通信是否正常:若是,则执行间隔第一预设时间改变第一信号的第一参数的步骤;否则,提示连接异常。It is judged whether the communication with the system under test is normal: if yes, the step of changing the first parameter of the first signal at intervals of the first preset time is performed; otherwise, a connection abnormality is prompted.
进一步地,测试被测系统的时间降质输出功能时,第一信号为PTP时间信号或1PPS+TOD时间信号;Further, when testing the time degradation output function of the system under test, the first signal is a PTP time signal or a 1PPS+TOD time signal;
作为第一信号的PTP时间信号的第一参数为ClockClass,第二信号为被测系统反馈的PTP时间信号和1PPS+TOD时间信号;作为第二信号的PTP时间信号,第二参数集合至少包括timeSource与ClockClass;作为第二信号的1PPS+TOD时间信号,第二参数集合至少包括TOD报文的秒脉冲状态;The first parameter of the PTP time signal as the first signal is ClockClass, the second signal is the PTP time signal and 1PPS+TOD time signal fed back by the system under test; as the PTP time signal of the second signal, the second parameter set includes at least timeSource With ClockClass; as the 1PPS+TOD time signal of the second signal, the second parameter set includes at least the second pulse state of the TOD message;
作为第一信号的1PPS+TOD时间信号的第一参数为秒脉冲状态,第二信号为被测系统反馈的PTP时间信号和1PPS+TOD时间信号;作为第二信号的PTP时间信号,第二参数集合至少包括timeSource与ClockClass;作为第二信号的1PPS+TOD时间信号,第二参数集合至少包括TOD报文的秒脉冲状态。The first parameter of the 1PPS+TOD time signal as the first signal is the second pulse state, the second signal is the PTP time signal and the 1PPS+TOD time signal fed back by the system under test; as the PTP time signal of the second signal, the second parameter The set includes at least timeSource and ClockClass; as the 1PPS+TOD time signal as the second signal, the second parameter set includes at least the pulse-per-second state of the TOD message.
进一步地,测试被测系统对设备不同时间接口选源功能时,第一信号为PTP时间信号和1PPS+TOD时间信号;Further, when testing the system-under-test's source selection function for different time interfaces of the device, the first signal is the PTP time signal and the 1PPS+TOD time signal;
作为第一信号的PTP时间信号的第一参数为Priority以及ClockClass,第二信号为被测系统反馈的PTP时间信号以及1PPS+TOD时间信号;The first parameters of the PTP time signal as the first signal are Priority and ClockClass, and the second signal is the PTP time signal and the 1PPS+TOD time signal fed back by the system under test;
作为第二信号的PTP时间信号,第二参数集合至少包括Priority1、ClockClass与grandmasterIdentity;As the PTP time signal of the second signal, the second parameter set at least includes Priority1, ClockClass and grandmasterIdentity;
作为第二信号的1PPS+TOD时间信号第二参数集合至少包括TOD报文的秒脉冲状态。The second parameter set of the 1PPS+TOD time signal as the second signal includes at least the pulse-per-second state of the TOD message.
进一步地,测试被测系统闰秒处理功能时,第一信号为PTP时间信号或1PPS+TOD时间信号;Further, when testing the leap second processing function of the system under test, the first signal is a PTP time signal or a 1PPS+TOD time signal;
作为第一信号的PTP时间信号的第一参数为currentUtcOffset,第二信号为被测系统反馈的PTP时间信号和1PPS+TOD时间信号;作为第二信号的PTP时间信号,第二参数集合至少包括currentUtcOffset;作为第二信号的1PPS+TOD时间信号,第二参数集合至少包括Leap Seconds;The first parameter of the PTP time signal as the first signal is currentUtcOffset, and the second signal is the PTP time signal and 1PPS+TOD time signal fed back by the system under test; as the PTP time signal of the second signal, the second parameter set includes at least currentUtcOffset ; As the 1PPS+TOD time signal of the second signal, the second parameter set includes at least Leap Seconds;
作为第一信号的1PPS+TOD时间信号的第一参数为Leap Seconds,第二信号为被测系统反馈的1PPS+TOD时间信号,第二信号为被测系统反馈的PTP时间信号和1PPS+TOD时间信号;作为第二信号的PTP时间信号,第二参数集合至少包括currentUtcOffset;作为第二信号的1PPS+TOD时间信号,第二参数集合至少包括Leap Seconds。The first parameter of the 1PPS+TOD time signal as the first signal is Leap Seconds, the second signal is the 1PPS+TOD time signal fed back by the system under test, and the second signal is the PTP time signal and 1PPS+TOD time fed back by the system under test signal; as the PTP time signal of the second signal, the second parameter set includes at least currentUtcOffset; as the 1PPS+TOD time signal of the second signal, the second parameter set includes at least Leap Seconds.
进一步地,测试被测系统频率同步和时间同步关联机制时,第一信号为PTP时间信号和外定时频率信号或线路频率信号;Further, when testing the frequency synchronization and time synchronization correlation mechanism of the system under test, the first signal is a PTP time signal and an external timing frequency signal or a line frequency signal;
作为第一信号的外定时频率信号或线路频率信号的第一参数为SSM,第二信号为被测系统反馈的PTP时间信号,第二参数集合至少包括GrandmasterIdentity、ClockClass、timeTraceable和frequencyTraceable。The first parameter of the external timing frequency signal or line frequency signal as the first signal is SSM, the second signal is the PTP time signal fed back by the system under test, and the second parameter set includes at least GrandmasterIdentity, ClockClass, timeTraceable and frequencyTraceable.
本发明提供的通信系统的OAM测试方法及设备,为测试通信系统的OAM功能和性能提供了仿真场景和自动测试手段,来验证OAM的时间降质输出功能、频率同步和时间同步关联机制,实现对不同时间接口协议的关联验证以及对设备不同时间接口之间选源功能的自动测试;可以实现同步网络和系统异常情况下同步OAM功能和性能的测试并自动分析、判断同步网络和系统OAM功能和性能是否符合要求;本发明可模拟各种时间输出故障,支持时间同步故障管理功能测试;本发明提高了测试效率,促进同步网络的建设和应用。The OAM testing method and equipment of the communication system provided by the present invention provide simulation scenarios and automatic testing means for testing the OAM function and performance of the communication system, so as to verify the time degradation output function, frequency synchronization and time synchronization association mechanism of the OAM, and realize The correlation verification of different time interface protocols and the automatic test of the source selection function between different time interfaces of the device; it can realize the test of the synchronization OAM function and performance under the abnormal conditions of the synchronization network and the system, and automatically analyze and judge the synchronization network and system OAM function and whether the performance meets the requirements; the present invention can simulate various time output faults and support the test of the time synchronization fault management function; the present invention improves the test efficiency and promotes the construction and application of the synchronization network.
参见图2,为了实现上述目的,本发明还提供了一种通信系统的OAM测试设备,该设备包括:Referring to Fig. 2, in order to achieve the above object, the present invention also provides an OAM test equipment of a communication system, the equipment includes:
信号交互模块201,用于向被测系统发送第一信号并接收被测系统反馈的第二信号,第二信号为第一信号的反馈信号;A
第一参数处理模块202,用于间隔第一预设时间改变第一信号的第一参数;a first
采集模块203,用于间隔第二预设时间采集第二信号的参数,从第二信号的参数中获取与第一参数根据一通信接口协议呈一映射关系的至少一个参数,组成第二参数集合;The
测试结果生成模块204,用于根据第一参数与第二参数集合,生成测试结果。The test
进一步地,第一信号包括精确时间同步协议PTP信号、外定时频率信号或线路频率信号、秒脉冲与当前时刻1PPS+TOD信号中的至少一种。Further, the first signal includes at least one of a precise time synchronization protocol PTP signal, an external timing frequency signal or a line frequency signal, a second pulse and a current time 1PPS+TOD signal.
进一步地,测试结果生成模块具体包括:Further, the test result generation module specifically includes:
判断子模块,用于判断第二参数集合中的所有元素是否均随第一参数的改变按照映射关系做出相应改变:若是,则生成测试通过的测试结果;否则,生成测试不通过的测试结果。The judgment submodule is used to judge whether all the elements in the second parameter set are changed according to the mapping relationship with the change of the first parameter: if so, generate a test result that passes the test; otherwise, generate a test result that fails the test .
进一步地,该设备还包括:Further, the device also includes:
连接判断模块,用于在信号交互模块向被测系统发送第一信号并接收被测系统反馈的第二信号之后,The connection judgment module is used for, after the signal interaction module sends the first signal to the system under test and receives the second signal fed back by the system under test,
判断与被测系统之间的通信是否正常:若是,则执行间隔第一预设时间改变第一信号的第一参数的步骤;否则,提示连接异常。It is judged whether the communication with the system under test is normal: if yes, the step of changing the first parameter of the first signal at intervals of the first preset time is performed; otherwise, a connection abnormality is prompted.
进一步地,PTP信号的参数包括:时钟质量等级ClockClass、优先级Priority、时间可跟踪性timeTraceable、频率可跟踪性frequencyTraceable、时间源timeSource、当前协调世界时与国际原子时的偏移量currentUtcOffset以及主时钟号GrandmasterIdentity中的一种或多种;1PPS+TOD信号的参数至少包括秒脉冲状态与闰秒值Leap Seconds中的一种;外定时频率信号或线路频率信号的参数至少包括同步状态信息SSM。Further, the parameters of the PTP signal include: clock quality level ClockClass, priority Priority, time traceability timeTraceable, frequency traceability frequencyTraceable, time source timeSource, offset currentUtcOffset between current coordinated universal time and international atomic time, and master clock One or more of the GrandmasterIdentity number; the parameters of the 1PPS+TOD signal include at least one of the second pulse state and the leap second value Leap Seconds; the parameters of the external timing frequency signal or line frequency signal include at least the synchronization state information SSM.
进一步地,测试被测系统的时间降质输出功能时,第一信号为PTP时间信号或1PPS+TOD时间信号;Further, when testing the time degradation output function of the system under test, the first signal is a PTP time signal or a 1PPS+TOD time signal;
作为第一信号的PTP时间信号的第一参数为ClockClass,第二信号为被测系统反馈的PTP时间信号和1PPS+TOD时间信号;作为第二信号的PTP时间信号,第二参数集合至少包括timeSource与ClockClass;作为第二信号的1PPS+TOD时间信号,第二参数集合至少包括TOD报文的秒脉冲状态;The first parameter of the PTP time signal as the first signal is ClockClass, the second signal is the PTP time signal and 1PPS+TOD time signal fed back by the system under test; as the PTP time signal of the second signal, the second parameter set includes at least timeSource With ClockClass; as the 1PPS+TOD time signal of the second signal, the second parameter set includes at least the second pulse state of the TOD message;
作为第一信号的1PPS+TOD时间信号的第一参数为秒脉冲状态,第二信号为被测系统反馈的PTP时间信号和1PPS+TOD时间信号;作为第二信号的PTP时间信号,第二参数集合至少包括timeSource与ClockClass;作为第二信号的1PPS+TOD时间信号,第二参数集合至少包括TOD报文的秒脉冲状态。The first parameter of the 1PPS+TOD time signal as the first signal is the second pulse state, the second signal is the PTP time signal and the 1PPS+TOD time signal fed back by the system under test; as the PTP time signal of the second signal, the second parameter The set includes at least timeSource and ClockClass; as the 1PPS+TOD time signal as the second signal, the second parameter set includes at least the pulse-per-second state of the TOD message.
进一步地,测试被测系统对设备不同时间接口选源功能时,第一信号为PTP时间信号和1PPS+TOD时间信号;Further, when testing the function of the system under test to select the source for different time interfaces of the device, the first signal is the PTP time signal and the 1PPS+TOD time signal;
作为第一信号的PTP时间信号的第一参数为Priority以及ClockClass,第二信号为被测系统反馈的PTP时间信号以及1PPS+TOD时间信号;The first parameters of the PTP time signal as the first signal are Priority and ClockClass, and the second signal is the PTP time signal and the 1PPS+TOD time signal fed back by the system under test;
作为第二信号的PTP时间信号,第二参数集合至少包括Priority1、ClockClass与grandmasterIdentity;As the PTP time signal of the second signal, the second parameter set at least includes Priority1, ClockClass and grandmasterIdentity;
作为第二信号的1PPS+TOD时间信号第二参数集合至少包括TOD报文的秒脉冲状态。The second parameter set of the 1PPS+TOD time signal as the second signal includes at least the pulse-per-second state of the TOD message.
进一步地,测试被测系统闰秒处理功能时,第一信号为PTP时间信号或1PPS+TOD时间信号;Further, when testing the leap second processing function of the system under test, the first signal is a PTP time signal or a 1PPS+TOD time signal;
作为第一信号的PTP时间信号的第一参数为currentUtcOffset,第二信号为被测系统反馈的PTP时间信号和1PPS+TOD时间信号;作为第二信号的PTP时间信号,第二参数集合至少包括currentUtcOffset;作为第二信号的1PPS+TOD时间信号,第二参数集合至少包括Leap Seconds;The first parameter of the PTP time signal as the first signal is currentUtcOffset, and the second signal is the PTP time signal and 1PPS+TOD time signal fed back by the system under test; as the PTP time signal of the second signal, the second parameter set includes at least currentUtcOffset ; As the 1PPS+TOD time signal of the second signal, the second parameter set includes at least Leap Seconds;
作为第一信号的1PPS+TOD时间信号的第一参数为Leap Seconds,第二信号为被测系统反馈的1PPS+TOD时间信号,第二信号为被测系统反馈的PTP时间信号和1PPS+TOD时间信号;作为第二信号的PTP时间信号,第二参数集合至少包括currentUtcOffset;作为第二信号的1PPS+TOD时间信号,第二参数集合至少包括Leap Seconds。The first parameter of the 1PPS+TOD time signal as the first signal is Leap Seconds, the second signal is the 1PPS+TOD time signal fed back by the system under test, and the second signal is the PTP time signal and 1PPS+TOD time fed back by the system under test signal; as the PTP time signal of the second signal, the second parameter set includes at least currentUtcOffset; as the 1PPS+TOD time signal of the second signal, the second parameter set includes at least Leap Seconds.
进一步地,测试被测系统频率同步和时间同步关联机制时,第一信号为PTP时间信号和外定时频率信号或线路频率信号;Further, when testing the frequency synchronization and time synchronization correlation mechanism of the system under test, the first signal is a PTP time signal and an external timing frequency signal or a line frequency signal;
作为第一信号的外定时频率信号或线路频率信号的第一参数为SSM,第二信号为被测系统反馈的PTP时间信号,第二参数集合至少包括GrandmasterIdentity、ClockClass、timeTraceable和frequencyTraceable。The first parameter of the external timing frequency signal or line frequency signal as the first signal is SSM, the second signal is the PTP time signal fed back by the system under test, and the second parameter set includes at least GrandmasterIdentity, ClockClass, timeTraceable and frequencyTraceable.
最后,再通过若干具体示例对本发明实施例的上述方案作进一步的描述。Finally, the above solutions of the embodiments of the present invention are further described through several specific examples.
示例1:测试被测系统的时间降质输出功能。Example 1: Test the time degradation output function of the system under test.
测试系统存储不同时间接口协议的参数映射关系,测试系统能够支持输出和输入为PTP和1PPS+TOD两种时间接口,自动改变测试系统输出的第一信号的其中一种参数,测试被测系统输出的信号第二信号是否发生变化。如果输出和输入为不同的时间接口,能够测试另外一种时间接口的参数是否根据映射关系发生相关联的变化,并自动给出测试是否通过的结果。The test system stores the parameter mapping relationship of different time interface protocols. The test system can support the output and input of PTP and 1PPS+TOD two time interfaces, automatically change one of the parameters of the first signal output by the test system, and test the output of the system under test. The signal of the second signal is changed. If the output and input are different time interfaces, it can test whether the parameters of the other time interface are associated with changes according to the mapping relationship, and automatically give the result of whether the test passes.
参见图3,测试系统输出第一信号给被测系统,同时采集被测系统输出的第二信号,自动改变测试系统第一信号的参数ClockClass或秒脉冲状态,并分析第二信号是否跟随第一信号改变。具体步骤如下:Referring to FIG. 3, the test system outputs the first signal to the system under test, and simultaneously collects the second signal output by the system under test, automatically changes the parameter ClockClass or the second pulse state of the first signal of the test system, and analyzes whether the second signal follows the first signal Signal changes. Specific steps are as follows:
步骤一:测试系统向被测系统发送第一信号,即PTP时间信号或1PPS+TOD时间信号;并接收来自被测系统的第二信号,即PTP时间信号或者1PPS+TOD时间信号。Step 1: The test system sends the first signal, namely the PTP time signal or the 1PPS+TOD time signal, to the system under test; and receives the second signal from the system under test, namely the PTP time signal or the 1PPS+TOD time signal.
步骤二:测试系统间隔第一预设时间依次改变第一信号PTP报文的ClockClass或TOD报文的秒脉冲状态编码。例如,其中,ClockClass依次设为6、7、8、52、187、255;秒脉冲状态依次设为0x00、0x01、0x05、0x03、0x04、0x02。需要说明的是,当测试系统向被测系统发送PTP时间信号时,改变PTP报文的ClockClass;当测试系统向被测系统发送1PPS+TOD时间信号时,改变TOD报文的秒脉冲状态编码。Step 2: The test system sequentially changes the ClockClass of the first signal PTP message or the second pulse state code of the TOD message at a first preset time interval. For example, the ClockClass is set to 6, 7, 8, 52, 187, and 255 in sequence; the second pulse state is set to 0x00, 0x01, 0x05, 0x03, 0x04, and 0x02 in sequence. It should be noted that when the test system sends the PTP time signal to the system under test, the ClockClass of the PTP message is changed; when the test system sends the 1PPS+TOD time signal to the system under test, the second pulse state code of the TOD message is changed.
步骤三:测试系统延时采集来自被测系统的PTP报文,并分析报文中的timeSource、ClockClass等参数是否随第一信号变化。按照步骤二的顺序,被测系统输出的timeSource应当依次为0x20、0xA0、0xA0、0xA0、0xA0,ClockClass应当依次为6、7、8、52、187、255。若第二信号跟随第一信号做出正确变化,提示PTP系统降质输出功能有效;否则,提示PTP系统降质输出功能无效。Step 3: The test system delays collecting the PTP message from the system under test, and analyzes whether parameters such as timeSource and ClockClass in the message change with the first signal. According to the sequence of step 2, the timeSource output by the system under test should be 0x20, 0xA0, 0xA0, 0xA0, 0xA0 in sequence, and the ClockClass should be 6, 7, 8, 52, 187, 255 in sequence. If the second signal follows the first signal to make a correct change, it indicates that the degraded output function of the PTP system is valid; otherwise, it indicates that the degraded output function of the PTP system is invalid.
步骤四:测试系统延时采集来自被测系统的1PPS+TOD时间信号,并分析报文中的秒脉冲状态等参数是否跟随第一信号变化。其中,秒脉冲状态应当依次为0x00、0x01、0x05、0x03、0x04、0x02。若第二信号跟随第一信号做出正确变化,提示1PPS+TOD系统降质输出功能有效;否则,提示1PPS+TOD系统降质输出功能无效。Step 4: The test system delays the collection of the 1PPS+TOD time signal from the system under test, and analyzes whether parameters such as the second pulse state in the message follow the change of the first signal. Among them, the second pulse state should be 0x00, 0x01, 0x05, 0x03, 0x04, 0x02 in sequence. If the second signal follows the first signal to make a correct change, it indicates that the degraded output function of the 1PPS+TOD system is valid; otherwise, it indicates that the degraded output function of the 1PPS+TOD system is invalid.
示例2:测试被测系统的对设备不同时间接口选源功能。Example 2: Test the system-under-test's source selection function for different time interfaces of the device.
测试系统支持对设备不同时间接口选源功能的自动测试。测试系统存储不同时间接口协议的参数映射关系,同时输出两种时间接口的信号,自动改变其中一种输出时间接口的参数,引发设备时间源选源发生变化,测试系统通过测试被测系统的输出信号(PTP,1PPS+TOD)中的参数,通过参数自动分析被测系统选源是否发生变化,并自动给出测试是否通过的结果。The test system supports the automatic test of the source selection function of the device interface at different times. The test system stores the parameter mapping relationship of different time interface protocols, outputs the signals of two time interfaces at the same time, and automatically changes the parameters of one of the output time interfaces, causing the device time source selection to change. The test system passes the output of the tested system. The parameters in the signal (PTP, 1PPS+TOD) can automatically analyze whether the source selection of the system under test has changed through the parameters, and automatically give the result of whether the test has passed.
参见图4,测试系统向被测系统发送第一信号,即PTP和1PPS+TOD时间信号;同时获取被测系统反馈的第二信号,即PTP和1PPS+TOD时间信号。自动改变PTP输出信号的参数Priority1、ClockClass和Priority2,自动改变1PPS+TOD信号的秒脉冲状态,并分析被测系统是否发生选源倒换。具体步骤如下:Referring to FIG. 4 , the test system sends the first signal, namely PTP and 1PPS+TOD time signal, to the system under test; meanwhile, acquires the second signal fed back by the system under test, namely PTP and 1PPS+TOD time signal. Automatically change the parameters Priority1, ClockClass and Priority2 of the PTP output signal, automatically change the pulse-per-second state of the 1PPS+TOD signal, and analyze whether the source selection switch occurs in the system under test. Specific steps are as follows:
步骤一:测试系统向被测系统同时发送PTP时间信号和1PPS+TOD时间信号,测试系统同时获取来自被测系统的PTP时间信号和1PPS+TOD时间信号。Step 1: The test system sends the PTP time signal and the 1PPS+TOD time signal to the system under test at the same time, and the test system simultaneously obtains the PTP time signal and the 1PPS+TOD time signal from the system under test.
步骤二:测试系统设置输出PTP报文参数Priority1、ClockClass和Priority2参数,比如设置为128、6和10;Step 2: The test system sets the output PTP message parameters Priority1, ClockClass and Priority2 parameters, such as 128, 6 and 10;
测试系统设置输出TOD报文的秒脉冲状态,如0x00,在被测系统设置对应的Priority1和Priority2等参数为128和20。The test system sets the second pulse state of the output TOD message, such as 0x00, and sets the corresponding parameters such as Priority1 and Priority2 to 128 and 20 in the system under test.
步骤三:测试系统延时采集来自被测系统的PTP报文,并分析报文中的Priority1、ClockClass、Priority2和grandmasterIdentity等参数是否与第一信号一致。Step 3: The test system delays collecting the PTP message from the system under test, and analyzes whether parameters such as Priority1, ClockClass, Priority2, and grandmasterIdentity in the message are consistent with the first signal.
其中,Priority1、ClockClass、Priority2和grandmasterIdentity等参数的配置值应当与输出PTP报文相同。(由于PTP与1PPS+TOD质量等级相同,优先级较高,所以被测系统应跟踪PTP)若满足条件,提示时间同步不同接口选源功能有效;否则,提示时间同步不同接口选源功能无效。The configuration values of parameters such as Priority1, ClockClass, Priority2, and grandmasterIdentity should be the same as the output PTP packets. (Because the quality level of PTP is the same as 1PPS+TOD, the priority is higher, so the system under test should track the PTP.) If the conditions are met, it will prompt that the time synchronization source selection function of different interfaces is valid; otherwise, it will prompt that the time synchronization source selection function of different interfaces is invalid.
步骤四:测试系统延时采集来自被测系统的1PPS+TOD时间信号,并分析报文中的秒脉冲状态。其中,秒脉冲状态应当与输出PTP报文的ClockClass具有映射关系。Step 4: The test system delays collection of the 1PPS+TOD time signal from the system under test, and analyzes the second pulse state in the message. The second pulse state should have a mapping relationship with the ClockClass of the output PTP message.
若满足条件,提示时间同步不同接口选源功能有效;否则,提示时间同步不同接口选源功能无效。If the conditions are met, it indicates that the time synchronization source selection function on different interfaces is valid; otherwise, it indicates that the time synchronization source selection function through different interfaces is invalid.
步骤五:测试系统在一预设时间之后再次更改PTP报文中质量等级ClockClass,如降低等级为7。Step 5: The test system changes the quality level ClockClass in the PTP message again after a preset time, such as reducing the level to 7.
步骤六:重复步骤三和四,这时被测系统应倒换跟踪测试系统输出的1PPS+TOD信号,测试系统测试被测系统输出的PTP和1PPS+TOD,Priority1、ClockClass、Priority2、grandmasterIdentity、秒脉冲状态、时钟源类型、时钟源工作状态等应当与测试系统输出的1PPS+TOD时间信号相同,或与其等效映射值相同。Step 6: Repeat steps 3 and 4. At this time, the system under test should switch the 1PPS+TOD signal output by the tracking test system, and the test system should test the PTP and 1PPS+TOD output by the system under test, Priority1, ClockClass, Priority2, grandmasterIdentity, second pulse The status, clock source type, clock source working status, etc. should be the same as the 1PPS+TOD time signal output by the test system, or the same as its equivalent mapping value.
步骤七:测试系统在一预设时间之后关闭1PPS+TOD时间信号。Step 7: The test system turns off the 1PPS+TOD time signal after a preset time.
步骤八:重复步骤三和四。这时被测系统应倒换跟踪测试系统输出的PTP信号,其中,Priority1、ClockClass、Priority2、grandmasterIdentity,秒脉冲状态、时钟源类型、时钟源工作状态对应的Priority1、ClockClass、Priority2、grandmasterIdentity等参数的配置值应当与测试系统输出的PTP时间信号相同,或者与其等效映射值相同。Step 8: Repeat steps 3 and 4. At this time, the system under test should switch and track the PTP signal output by the test system. Among them, Priority1, ClockClass, Priority2, grandmasterIdentity, second pulse state, clock source type, and configuration of parameters such as Priority1, ClockClass, Priority2, and grandmasterIdentity corresponding to the working state of the clock source The value should be the same as the PTP time signal output by the test system, or its equivalent mapped value.
示例3:测试被测系统的闰秒处理功能。Example 3: Testing the leap second handling capability of the system under test.
参见图5,测试系统向被测系统发送第一信号,即PTP和1PPS+TOD时间信号;同时获取被测系统反馈的第二信号,即PTP和1PPS+TOD时间信号。自动改变第一信号中的PTP信号的参数currentUtcOffset或者1PPS+TOD信号中的Leap Seconds,并自动分析第二信号的闰秒是否跟随输出信号改变(PTP输出信号的参数currentUtcOffset或者1PPS+TOD输出信号中的Leap Seconds)。测试系统支持参数currentUtcOffset和Leap Seconds的转换对应关系,currentUtcOffset的数值=Leap Seconds的数值+19。具体的测试步骤如下:Referring to FIG. 5 , the test system sends the first signal, namely PTP and 1PPS+TOD time signal, to the system under test; meanwhile, acquires the second signal fed back by the system under test, namely PTP and 1PPS+TOD time signal. Automatically change the parameter currentUtcOffset of the PTP signal in the first signal or the Leap Seconds in the 1PPS+TOD signal, and automatically analyze whether the leap second of the second signal changes with the output signal (parameter currentUtcOffset of the PTP output signal or Leap Seconds in the 1PPS+TOD output signal) Leap Seconds). The test system supports the conversion correspondence between the parameters currentUtcOffset and Leap Seconds. The value of currentUtcOffset = the value of Leap Seconds + 19. The specific test steps are as follows:
步骤一:测试系统向被测系统同时发送PTP时间信号和1PPS+TOD时间信号,测试系统同时获取来自被测系统的PTP时间信号和1PPS+TOD时间信号。Step 1: The test system sends the PTP time signal and the 1PPS+TOD time signal to the system under test at the same time, and the test system simultaneously obtains the PTP time signal and the 1PPS+TOD time signal from the system under test.
步骤二:测试系统间隔第一预设时间,依次调整输出PTP报文的currentUtcOffset或TOD报文的Leap Seconds。其中,假设currentUtcOffset依次设为:-100、-35、0、35、100,Leap Seconds依次设为:-100、-35、0、35、100。需要说明的是,当测试系统向被测系统发送PTP时间信号时,调整PTP报文的currentUtcOffset;发送1PPS+TOD时间信号时,调整TOD报文的LeapSeconds。Step 2: At the interval of the first preset time, the test system adjusts the currentUtcOffset of the output PTP packet or the Leap Seconds of the TOD packet in sequence. Among them, it is assumed that the currentUtcOffset is set to: -100, -35, 0, 35, 100 in sequence, and the Leap Seconds is set to: -100, -35, 0, 35, 100 in sequence. It should be noted that when the test system sends the PTP time signal to the system under test, the currentUtcOffset of the PTP message is adjusted; when the 1PPS+TOD time signal is sent, the LeapSeconds of the TOD message is adjusted.
步骤三:测试系统延时采集来自被测系统的PTP时间信号,并分析PTP报文中的currentUtcOffset等参数是否跟随第一信号变化。其中,currentUtcOffset的数值应当与第一信号报文中相同,若是,提示PTP闰秒处理功能有效;否则,提示PTP闰秒处理功能无效。Step 3: The test system delays the collection of the PTP time signal from the system under test, and analyzes whether parameters such as currentUtcOffset in the PTP message change with the first signal. Among them, the value of currentUtcOffset should be the same as that in the first signal message. If so, it indicates that the PTP leap second processing function is valid; otherwise, it indicates that the PTP leap second processing function is invalid.
步骤四:测试系统延时采集来自被测系统的1PPS+TOD时间信号,并分析报文中的Leap Seconds等参数是否跟随第一信号变化。其中,报文中LeapSeconds的数值应当与第一信号报文中的currentUtcOffset的数值有对应关系,currentUtcOffset的数值=LeapSeconds的数值+19。若跟随第一信号变化,提示1PPS+TOD闰秒处理功能有效;否则,提示1PPS+TOD闰秒处理功能无效。Step 4: The test system delays collection of the 1PPS+TOD time signal from the system under test, and analyzes whether parameters such as Leap Seconds in the message follow the change of the first signal. The value of LeapSeconds in the packet should have a corresponding relationship with the value of currentUtcOffset in the first signal packet, and the value of currentUtcOffset=value of LeapSeconds+19. If it follows the change of the first signal, it indicates that the 1PPS+TOD leap second processing function is valid; otherwise, it indicates that the 1PPS+TOD leap second processing function is invalid.
步骤五:测试系统在一预设时间内自动保持输出PTP报文的ClockClass值为255或TOD报文的秒脉冲状态为0x02,使被测系统丢失时间参考源。Step 5: The test system automatically keeps the ClockClass value of the output PTP message as 255 or the second pulse state of the TOD message as 0x02 within a preset time, so that the system under test loses the time reference source.
步骤六:重复步骤三和步骤四,其中,测试系统输入报文中currentUtcOffset和Leap Seconds的数值应当保持不变。Step 6: Repeat steps 3 and 4, wherein the values of currentUtcOffset and Leap Seconds in the input message of the test system should remain unchanged.
步骤七:变更被测系统,继续测试。Step 7: Change the system under test and continue the test.
示例4:测试被测系统的频率同步和时间同步关联机制。Example 4: Test the frequency synchronization and time synchronization correlation mechanism of the system under test.
参见图6,测试系统能够自动验证频率同步和时间同步关联机制。即测试系统自动改变第一信号的频率同步质量等级,分析被测设备反馈的第二信号参数是否发生相应的改变。具体的测试方法如下:Referring to Figure 6, the test system can automatically verify the frequency synchronization and time synchronization association mechanisms. That is, the test system automatically changes the frequency synchronization quality level of the first signal, and analyzes whether the parameters of the second signal fed back by the device under test change accordingly. The specific test method is as follows:
测试系统能自动改变输出外定时信号或同步以太信号的质量等级,同时检测输入PTP信号报文中的GrandmasterIdentity、ClockClass(时钟质量等级)、timeTraceable和frequencyTraceable字段,分析第二信号是否跟随第一信号改变。具体步骤如下:The test system can automatically change the quality level of the output external timing signal or synchronous Ethernet signal, and at the same time detect the GrandmasterIdentity, ClockClass (clock quality level), timeTraceable and frequencyTraceable fields in the input PTP signal packet, and analyze whether the second signal changes with the first signal. . Specific steps are as follows:
步骤一:测试系统向被测系统同时发送PTP时间信号和外定时频率信号或线路频率信号,测试系统同时获取来自被测系统的PTP时间信号和外定时频率信号或线路频率信号。Step 1: The test system sends PTP time signal and external timing frequency signal or line frequency signal to the system under test at the same time, and the test system simultaneously obtains the PTP time signal and external timing frequency signal or line frequency signal from the system under test.
步骤二:测试系统设置PTP报文的ClockClass参数为6,间隔第一预设时间依次调整外定时频率信号或线路频率信号或同步以太信号的SSM(同步状态信息),模拟各种等级的频率信号,即SSM编码依次为0010、0100、1000、1011、1111。Step 2: The test system sets the ClockClass parameter of the PTP message to 6, and adjusts the SSM (synchronization status information) of the external timing frequency signal or the line frequency signal or the synchronous Ethernet signal in sequence at the first preset time to simulate various levels of frequency signals , that is, the SSM codes are 0010, 0100, 1000, 1011, and 1111 in sequence.
步骤三:测试系统延时获取来自被测系统的PTP时间信号,并分析报文中的GrandmasterIdentity、ClockClass、timeTraceable和frequencyTraceable等参数是否跟随第一信号变化。若第二信号跟随第一信号变化,提示频率同步与时间同步关联机制有效;否则,提示频率同步与时间同步关联机制无效。Step 3: The test system obtains the PTP time signal from the system under test in a delayed manner, and analyzes whether parameters such as GrandmasterIdentity, ClockClass, timeTraceable, and frequencyTraceable in the packet follow the change of the first signal. If the second signal changes with the first signal, it indicates that the frequency synchronization and time synchronization association mechanism is valid; otherwise, it indicates that the frequency synchronization and time synchronization association mechanism is invalid.
步骤四:变更被测系统,继续测试Step 4: Change the system under test and continue testing
示例5,测试系统能够模拟各种时间输出故障,支持时间同步故障管理功能测试。具体地,测试系统能自动地按照一定顺序以固定时间打开/关闭PTP输出接口,单独打开/关闭PTP接口中发送的Announce(携带时间状态的通知)报文、Sync(同步)报文、Delay_Resp(延时响应)报文,1PPS+ToD中1PPS信号、1PPS+ToD中TOD信号,并自动调整Announce报文的发送频率、ClockClass参数、stepsRemoved(同步跳数)参数、1PPS+TOD时间信号和PTP时间信号的质量等级等。Example 5, the test system can simulate various time output faults and support the test of time synchronization fault management function. Specifically, the test system can automatically open/close the PTP output interface at a fixed time in a certain order, and individually open/close the Announce (notification carrying the time status) message, the Sync (synchronization) message, the Delay_Resp ( Delay response) message, 1PPS signal in 1PPS+ToD, TOD signal in 1PPS+ToD, and automatically adjust the sending frequency of Announce message, ClockClass parameter, stepsRemoved (synchronous hop number) parameter, 1PPS+TOD time signal and PTP time Signal quality level, etc.
需要说明的是,本发明实施例提供的通信系统的OAM测试设备是应用上述方法的设备,即上述方法的所有实施例均适用于该设备,且均能达到相同或相似的有益效果。It should be noted that the OAM testing device of the communication system provided by the embodiment of the present invention is a device applying the above method, that is, all embodiments of the above method are applicable to the device, and can achieve the same or similar beneficial effects.
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above are the preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can be made. It should be regarded as the protection scope of the present invention.
Claims (14)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510378740.3A CN106330591B (en) | 2015-06-30 | 2015-06-30 | OAM test method and equipment for communication system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510378740.3A CN106330591B (en) | 2015-06-30 | 2015-06-30 | OAM test method and equipment for communication system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106330591A CN106330591A (en) | 2017-01-11 |
| CN106330591B true CN106330591B (en) | 2020-02-11 |
Family
ID=57727713
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510378740.3A Active CN106330591B (en) | 2015-06-30 | 2015-06-30 | OAM test method and equipment for communication system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106330591B (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106549822B (en) * | 2015-09-16 | 2019-12-06 | 中国移动通信集团公司 | Method and device for testing response time of time synchronization message and test equipment |
| CN110572295B (en) * | 2018-06-06 | 2021-04-09 | 中国信息通信研究院 | Test method for verifying SSM response rule |
| US11257564B1 (en) * | 2020-11-04 | 2022-02-22 | Micron Technology, Inc. | Defect detection for a memory device |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1261205A (en) * | 2000-01-12 | 2000-07-26 | 北京大学 | Method and system for analyzing parameters of semiconductor |
| CN101179331A (en) * | 2006-11-08 | 2008-05-14 | 中兴通讯股份有限公司 | Automatic debugging method and system of optical module |
| CN103812726A (en) * | 2014-01-26 | 2014-05-21 | 烽火通信科技股份有限公司 | Automated testing method and device for data communication equipment |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100473197C (en) * | 2003-04-22 | 2009-03-25 | 萨基姆公司 | System and method for testing mobile phone networks |
-
2015
- 2015-06-30 CN CN201510378740.3A patent/CN106330591B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1261205A (en) * | 2000-01-12 | 2000-07-26 | 北京大学 | Method and system for analyzing parameters of semiconductor |
| CN101179331A (en) * | 2006-11-08 | 2008-05-14 | 中兴通讯股份有限公司 | Automatic debugging method and system of optical module |
| CN103812726A (en) * | 2014-01-26 | 2014-05-21 | 烽火通信科技股份有限公司 | Automated testing method and device for data communication equipment |
Non-Patent Citations (1)
| Title |
|---|
| "netperf与网络性能测量";汤凯;《IBM Developer》;20040701;第5-7页 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106330591A (en) | 2017-01-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104375038B (en) | A kind of expansible closed-loop synchronization distribution power automation terminal detection platform and method | |
| CN110611371B (en) | System and method for testing time setting and timekeeping of distribution automation equipment | |
| CN104505934B (en) | Clock synchronizing and monitoring system | |
| CN104918319A (en) | Clock synchronization simplified information exchange method applied to wireless sensor network | |
| CN105577348B (en) | Frequency deviation monitoring method and device based on time synchronization network | |
| CN105450384A (en) | Synchronous clock time synchronization apparatus for communication module | |
| WO2013023530A1 (en) | Implementation method and device for automatically detecting asymmetry time delay of 1588 link | |
| CN106330591B (en) | OAM test method and equipment for communication system | |
| CN103546267A (en) | Time synchronization monitoring method and system | |
| CN110380923A (en) | Site element protection looped network test device | |
| CN106688207A (en) | Method for determining the propagation time of a telegram in a communication network and corresponding network components | |
| CN110798276A (en) | A time synchronization method and system for SDN network of intelligent substation | |
| CN102171966B (en) | Method and device for simulating live network packet delay jitter | |
| US8775885B2 (en) | IEEE1588 protocol negative testing method | |
| CN103595582B (en) | High-accuracy synchronous system detection device applied to intelligent transformer substation | |
| CN104954156A (en) | Clock synchronous network element abnormity processing method, apparatus and system thereof | |
| JP2015104128A (en) | Advanced metering infrastructure site investigation system | |
| CN105450320A (en) | Whole-course us-level-precision wireless ethernet synchronization apparatus of intelligent transformer station and method thereof | |
| CN111917503B (en) | Method and apparatus for providing a clock signal | |
| US9007889B2 (en) | Communication device and communication system with failure detection capabilities | |
| CN103997123B (en) | A smart substation circuit breaker remote control system and method based on sniffing idle state | |
| CN103631230B (en) | Affair sequential record method and system | |
| CN108990086B (en) | Synchronous network alarm method and device | |
| CN104020375B (en) | A kind of apparatus and method for detecting Intelligent substation merging unit time parameter | |
| CN106656395A (en) | Improved system and method for synchronous time measurement in power grid based on self-learning |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |