CN115882944A - A detection method, device, electronic equipment and storage medium - Google Patents
A detection method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN115882944A CN115882944A CN202211557884.1A CN202211557884A CN115882944A CN 115882944 A CN115882944 A CN 115882944A CN 202211557884 A CN202211557884 A CN 202211557884A CN 115882944 A CN115882944 A CN 115882944A
- Authority
- CN
- China
- Prior art keywords
- jitter
- degree
- output optical
- amplitude
- network element
- 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.)
- Granted
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 105
- 230000003287 optical effect Effects 0.000 claims abstract description 405
- 238000000034 method Methods 0.000 claims abstract description 36
- 230000002159 abnormal effect Effects 0.000 claims description 61
- 239000013307 optical fiber Substances 0.000 claims description 35
- 230000008054 signal transmission Effects 0.000 claims description 34
- 238000012360 testing method Methods 0.000 claims description 24
- 230000005540 biological transmission Effects 0.000 abstract description 39
- 238000011835 investigation Methods 0.000 abstract description 4
- 230000005856 abnormality Effects 0.000 description 5
- 238000004590 computer program Methods 0.000 description 5
- 238000012423 maintenance Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000012935 Averaging Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 2
- 238000004140 cleaning Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 239000006185 dispersion Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
- 238000013024 troubleshooting Methods 0.000 description 1
Images
Landscapes
- Optical Communication System (AREA)
Abstract
本申请提供一种检测方法、装置、电子设备及存储介质。该方法包括:获取待测链路中发端网元的第一历史输出光功率和第一当前输出光功率,以及收端网元的第二历史输出光功率和第二当前输出光功率;根据第一当前输出光功率和第二当前输出光功率,确定抖动程度;若抖动程度满足预设抖动程度的要求,则根据第二当前输出光功率和第二历史输出光功率,确定第二抖动幅度;根据第一当前输出光功率和第一历史输出光功率,确定第一抖动幅度和发端抖动程度;根据抖动程度、发端抖动程度、第一抖动幅度和第二抖动幅度,得到检测结果。本申请的方法,提高对待测链路中的根因进行快排查的效率。
The present application provides a detection method, device, electronic equipment and storage medium. The method includes: obtaining the first historical output optical power and the first current output optical power of the transmitting network element in the link to be tested, and the second historical output optical power and the second current output optical power of the receiving network element; according to the first a current output optical power and a second current output optical power to determine the degree of jitter; if the degree of jitter meets the requirements of the preset jitter degree, then determine the second jitter amplitude according to the second current output optical power and the second historical output optical power; According to the first current output optical power and the first historical output optical power, the first jitter amplitude and the degree of jitter at the transmission end are determined; and the detection result is obtained according to the jitter degree, the degree of jitter at the transmission end, the first jitter amplitude, and the second jitter amplitude. The method of the present application improves the efficiency of fast investigation of the root cause in the link to be tested.
Description
技术领域technical field
本申请涉及通信技术,尤其涉及一种检测方法、装置、电子设备及存储介质。The present application relates to communication technology, and in particular to a detection method, device, electronic equipment and storage medium.
背景技术Background technique
光网络(Optical Network)一般指使用光纤作为主要传输介质的广域网、城域网或者新建的大范围的局域网。光网络具有传输速度高、传输距离长等特点。Optical Network (Optical Network) generally refers to a wide area network, a metropolitan area network, or a newly built large-scale local area network that uses optical fiber as the main transmission medium. Optical network has the characteristics of high transmission speed and long transmission distance.
光网络在进行传输时,包括多条链路,每条链路均至少包括发端网元、收端网元以及连接在发端网元和收端网元之间的光纤。During transmission, the optical network includes multiple links, and each link at least includes a sending-end network element, a receiving-end network element, and an optical fiber connected between the sending-end network element and the receiving-end network element.
然而,随着光网络的规模越来越大、拓扑越来越复杂,现有光网络的链路在进行故障检测时,存在故障链路排查困难的问题。However, as the scale of the optical network becomes larger and the topology becomes more and more complex, when fault detection is performed on links of the existing optical network, it is difficult to troubleshoot the faulty link.
发明内容Contents of the invention
本申请提供一种检测方法、装置、电子设备及存储介质,用以解决光网络的链路在进行故障检测时,存在故障链路排查困难的问题。The present application provides a detection method, device, electronic equipment, and storage medium, which are used to solve the problem of difficult troubleshooting of faulty links when fault detection is performed on links of an optical network.
第一方面,本申请提供一种检测方法,应用于检测系统,方法包括:In the first aspect, the present application provides a detection method applied to a detection system, the method comprising:
获取待测链路中发端网元的第一历史输出光功率和多个第一当前输出光功率,以及收端网元的第二历史输出光功率和多个第二当前输出光功率,其中,第一输出光功率与第二输出光功率一一对应;Obtain the first historical output optical power and multiple first current output optical powers of the transmitting network element in the link to be tested, and the second historical output optical power and multiple second current output optical powers of the receiving network element, wherein, The first output optical power is in one-to-one correspondence with the second output optical power;
根据一一对应的多个第一当前输出光功率和多个第二当前输出光功率,确定待测链路在进行光信号传输时的抖动程度;According to the one-to-one correspondence between a plurality of first current output optical powers and a plurality of second current output optical powers, determine the degree of jitter of the link to be tested during optical signal transmission;
若抖动程度满足预设抖动程度的要求,则根据多个第二当前输出光功率和第二历史输出光功率,确定收端网元在进行光信号传输时的第二抖动幅度;If the degree of jitter meets the requirements of the preset degree of jitter, then according to a plurality of second current output optical powers and second historical output optical powers, determine the second jitter amplitude of the receiving end network element when performing optical signal transmission;
根据多个第一当前输出光功率和第一历史输出光功率,确定发端网元在进行光信号传输时第一抖动幅度和发端抖动程度;According to a plurality of first current output optical powers and first historical output optical powers, determine the first jitter amplitude and the degree of jitter at the originating end network element when performing optical signal transmission;
根据抖动程度、发端抖动程度、第一抖动幅度和第二抖动幅度,得到检测结果。The detection result is obtained according to the degree of jitter, the degree of jitter at the sending end, the first jitter amplitude and the second jitter amplitude.
在本申请实施例中,获取待测链路中发端网元的第一历史输出光功率,包括:In the embodiment of this application, the first historical output optical power of the originating network element in the link to be tested is obtained, including:
确定发端网元的第一历史使用时间;determining the first historical use time of the originating network element;
以预设的第一频次,获取发端网元在第一历史使用时间内的多个第一初始输出光功率;Obtain a plurality of first initial output optical powers of the transmitting network element within the first historical usage time at a preset first frequency;
根据多个第一初始输出光功率,得到第一历史输出光功率。According to the plurality of first initial output optical powers, the first historical output optical power is obtained.
在本申请实施例中,获取待测链路中收端网元的第二历史输出光功率,包括:In the embodiment of the present application, obtaining the second historical output optical power of the receiving network element in the link to be tested includes:
确定收端网元的第二历史使用时间;determining the second historical usage time of the receiving network element;
以预设的第二频次,获取收端网元在第二历史使用时间内的多个第二初始输出光功率;Obtain a plurality of second initial output optical powers of the receiving network element within the second historical usage time at a preset second frequency;
根据多个第二初始输出光功率,得到第二历史输出光功率。According to the plurality of second initial output optical powers, a second historical output optical power is obtained.
在本申请实施例中,根据一一对应的多个第一当前输出光功率和多个第二当前输出光功率,确定待测链路在进行光信号传输时的抖动程度,包括:In the embodiment of the present application, according to the one-to-one correspondence between multiple first current output optical powers and multiple second current output optical powers, the degree of jitter of the link under test during optical signal transmission is determined, including:
根据第一当前输出光功率和第二当前输出光功率,得到输出光功率差;Obtaining the output optical power difference according to the first current output optical power and the second current output optical power;
根据输出光功率差,确定待测链路在进行光信号传输时的抖动程度。According to the output optical power difference, determine the degree of jitter of the link under test when transmitting optical signals.
在本申请实施例中,根据输出光功率差,确定待测链路在进行光信号传输时的抖动程度,包括:In the embodiment of the present application, according to the output optical power difference, the degree of jitter of the link under test during optical signal transmission is determined, including:
根据输出光功率差,确定多个第一当前输出光功率和多个第二当前输出光功率的标准差;Determine standard deviations of a plurality of first current output optical powers and a plurality of second current output optical powers according to the output optical power difference;
根据标准差,确定待测链路在进行光信号传输时的抖动程度。According to the standard deviation, determine the degree of jitter of the link under test when transmitting optical signals.
在本申请实施例中,根据多个第二当前输出光功率和第二历史输出光功率,确定收端网元在进行光信号传输时的第二抖动幅度,包括:In the embodiment of the present application, according to a plurality of second current output optical powers and second historical output optical powers, the second jitter amplitude of the receiving network element during optical signal transmission is determined, including:
根据第二历史输出光功率,确定第二门限阈值范围;Determine a second threshold threshold range according to the second historical output optical power;
根据多个第二当前输出光功率和第二门限阈值范围,确定收端网元在进行光信号传输时的第二抖动幅度。According to the plurality of second current output optical powers and the second threshold range, the second jitter amplitude when the receiving network element transmits optical signals is determined.
在本申请实施例中,根据多个第二当前输出光功率和第二门限阈值范围,确定收端网元在进行光信号传输时的第二抖动幅度,包括:In this embodiment of the present application, according to a plurality of second current output optical powers and a second threshold threshold range, the second jitter amplitude of the receiving network element during optical signal transmission is determined, including:
根据第二门限阈值范围,确定第二目标输出光功率,以及第二幅度和值,其中,第二目标输出光功率为处于第二门限阈值范围外的输出光功率,第二幅度和值表征第二抖动幅度。According to the second threshold threshold range, determine the second target output optical power, and the second amplitude and value, wherein the second target output optical power is the output optical power outside the second threshold threshold range, and the second amplitude and value represent the first Two jitter amplitude.
在本申请实施例中,方法还包括:In the embodiment of the present application, the method also includes:
当抖动程度、发端抖动程度、第一抖动幅度和第二抖动幅度均不为零时,则根据抖动程度和发端抖动程度,得到抖动程度比值,以及根据第一抖动幅度和第二抖动幅度,得到抖动幅度比值;When the degree of jitter, the degree of jitter at the sending end, the first jitter amplitude and the second jitter amplitude are all non-zero, the ratio of the jitter degree is obtained according to the degree of jitter and the degree of jitter at the sending end, and according to the first jitter amplitude and the second jitter amplitude, the obtained Jitter amplitude ratio;
根据抖动程度比值和抖动幅度比值,得到检测结果;According to the jitter degree ratio and jitter amplitude ratio, the detection result is obtained;
或,当抖动程度、发端抖动程度、第一抖动幅度和第二抖动幅度均为零时,则检测结果为待测链路正常。Or, when the degree of jitter, the degree of jitter at the sending end, the first jitter amplitude, and the second jitter amplitude are all zero, the detection result indicates that the link under test is normal.
在本申请实施例中,根据抖动程度比值和抖动幅度比值,得到检测结果,包括:In the embodiment of the present application, the detection results are obtained according to the jitter degree ratio and the jitter amplitude ratio, including:
当抖动程度比值大于抖动幅度比值时,比对抖动程度和发端抖动程度:When the ratio of the jitter degree is greater than the ratio of the jitter amplitude, compare the degree of jitter and the degree of jitter at the sending end:
若抖动程度大于发端抖动程度,则检测结果为收端网元异常或光纤异常,光纤连接发端网元和收端网元;If the jitter degree is greater than the jitter degree at the sending end, the detection result is that the receiving end network element is abnormal or the optical fiber is abnormal, and the optical fiber is connected to the sending end network element and the receiving end network element;
若抖动程度小于或等于发端抖动程度,则检测结果为发端网元异常;If the degree of jitter is less than or equal to the degree of jitter at the sending end, the detection result is that the network element at the sending end is abnormal;
当抖动程度比值小于或等于抖动幅度比值时,比对第一抖动幅度和第二抖动幅度:When the jitter degree ratio is less than or equal to the jitter amplitude ratio, compare the first jitter amplitude and the second jitter amplitude:
若第一抖动幅度大于第二抖动幅度,则检测结果为发端网元异常;If the first jitter amplitude is greater than the second jitter amplitude, the detection result is that the originating network element is abnormal;
若第一抖动幅度小于或等于第二抖动幅度,则检测结果为收端网元异常或光纤异常。If the first jitter amplitude is less than or equal to the second jitter amplitude, the detection result is that the network element at the receiving end is abnormal or the optical fiber is abnormal.
在本申请实施例中,当抖动程度和发端抖动程度为零,第一抖动幅度和第二抖动幅度不为零时、In the embodiment of the present application, when the degree of jitter and the degree of jitter at the sending end are zero, and the first jitter amplitude and the second jitter amplitude are not zero,
或当抖动程度或发端抖动程度为零,第一抖动幅度或第二抖动幅度为零时、or when the degree of jitter or the degree of jitter at the sending end is zero, and the first jitter amplitude or the second jitter amplitude is zero,
或当抖动程度或发端抖动程度不为零,第一抖动幅度或第二抖动幅度为零时,比对第一抖动幅度和第二抖动幅度:Or when the degree of jitter or the degree of jitter at the sending end is not zero, and the first jitter amplitude or the second jitter amplitude is zero, compare the first jitter amplitude and the second jitter amplitude:
若第一抖动幅度大于第二抖动幅度,则检测结果为发端网元异常;If the first jitter amplitude is greater than the second jitter amplitude, the detection result is that the originating network element is abnormal;
若第一抖动幅度小于或等于第二抖动幅度,则检测结果为收端网元异常或光纤异常。If the first jitter amplitude is less than or equal to the second jitter amplitude, the detection result is that the network element at the receiving end is abnormal or the optical fiber is abnormal.
在本申请实施例中,当抖动程度和发端抖动程度不为零,第一抖动幅度和第二抖动幅度为零时、In the embodiment of the present application, when the degree of jitter and the degree of jitter at the sending end are not zero, and the first jitter amplitude and the second jitter amplitude are zero,
或当抖动程度或发端抖动程度为零,第一抖动幅度和第二抖动幅度不为零时,比对抖动程度和发端抖动程度:Or when the degree of jitter or the degree of jitter at the sending end is zero, and the first and second jitter amplitudes are not zero, compare the degree of jitter and the degree of jitter at the sending end:
若抖动程度大于发端抖动程度,则检测结果为收端网元异常或光纤异常,光纤连接发端网元和收端网元;If the jitter degree is greater than the jitter degree at the sending end, the detection result is that the receiving end network element is abnormal or the optical fiber is abnormal, and the optical fiber is connected to the sending end network element and the receiving end network element;
若抖动程度小于或等于发端抖动程度,则检测结果为发端网元异常。If the jitter level is less than or equal to the jitter level at the sending end, the detection result is that the network element at the sending end is abnormal.
在本申请实施例中,当待测链路有两条以上时,方法还包括:In the embodiment of the present application, when there are more than two links to be tested, the method further includes:
确定每条待测链路的抖动程度;Determine the jitter level of each link to be tested;
根据抖动程度,确定待测链路中的初始目标链路,初始目标链路为抖动程度满足预设抖动程度的要求的待测链路;Determine the initial target link in the link to be tested according to the degree of jitter, and the initial target link is the link to be tested whose jitter degree meets the requirements of the preset jitter degree;
获取初始目标链路的第二抖动幅度;Acquiring the second jitter amplitude of the initial target link;
当初始目标链路有两条以上时,根据第二抖动幅度,确定初始目标链路中的目标链路;When there are more than two initial target links, according to the second jitter amplitude, determine the target link in the initial target link;
获取目标链路的第一抖动幅度和发端抖动程度;Obtain the first jitter amplitude and the jitter degree of the sending end of the target link;
根据目标链路的抖动程度、发端抖动程度、第一抖动幅度和第二抖动幅度,得到目标链路的检测结果。The detection result of the target link is obtained according to the jitter degree of the target link, the jitter degree of the sending end, the first jitter amplitude and the second jitter amplitude.
第二方面,本申请提供一种检测装置,应用于检测系统,装置包括:In the second aspect, the present application provides a detection device, which is applied to a detection system, and the device includes:
获取模块,用于获取待测链路中发端网元的第一历史输出光功率和多个第一当前输出光功率,以及收端网元的第二历史输出光功率和多个第二当前输出光功率,其中,第一输出光功率与第二输出光功率一一对应;An acquisition module, configured to acquire the first historical output optical power and multiple first current output optical powers of the transmitting network element in the link to be tested, and the second historical output optical power and multiple second current output optical powers of the receiving network element optical power, wherein the first output optical power corresponds to the second output optical power;
第一确定模块,用于根据一一对应的多个第一当前输出光功率和多个第二当前输出光功率,确定待测链路在进行光信号传输时的抖动程度;The first determination module is configured to determine the degree of jitter of the link under test when transmitting optical signals according to the one-to-one correspondence between a plurality of first current output optical powers and a plurality of second current output optical powers;
第二确定模块,用于若抖动程度满足预设抖动程度的要求,则根据多个第二当前输出光功率和第二历史输出光功率,确定收端网元在进行光信号传输时的第二抖动幅度;The second determining module is configured to determine the second current output optical power of the receiving end network element when performing optical signal transmission according to a plurality of second current output optical powers and second historical output optical powers if the degree of jitter meets the requirements of the preset jitter degree. Jitter amplitude;
第三确定模块,用于根据多个第一当前输出光功率和第一历史输出光功率,确定发端网元在进行光信号传输时第一抖动幅度和发端抖动程度;The third determination module is configured to determine the first jitter amplitude and the degree of jitter at the originating end network element when transmitting optical signals according to a plurality of first current output optical powers and first historical output optical powers;
得到模块,用于根据抖动程度、发端抖动程度、第一抖动幅度和第二抖动幅度,得到检测结果。The obtaining module is used to obtain the detection result according to the degree of jitter, the degree of jitter at the sending end, the first jitter amplitude and the second jitter amplitude.
第三方面,本申请提供一种电子设备,包括:处理器,以及与处理器通信连接的存储器;In a third aspect, the present application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;
存储器存储计算机执行指令;the memory stores computer-executable instructions;
处理器执行存储器存储的计算机执行指令,以实现上述实施例中的检测方法。The processor executes the computer-executed instructions stored in the memory, so as to implement the detection method in the above-mentioned embodiments.
第四方面,本申请提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机执行指令,计算机执行指令被处理器执行时用于实现上述实施例中的检测方法。In a fourth aspect, the present application provides a computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and the computer-executable instructions are used to implement the detection method in the foregoing embodiments when executed by a processor.
本申请提供的检测方法、装置、电子设备及存储介质,通过获取待测链路中发端网元的第一历史输出光功率和多个第一当前输出光功率,以及收端网元的第二历史输出光功率和多个第二当前输出光功率,其中,第一输出光功率与第二输出光功率一一对应;根据一一对应的多个第一当前输出光功率和多个第二当前输出光功率,确定待测链路在进行光信号传输时的抖动程度;若抖动程度满足预设抖动程度的要求,则根据多个第二当前输出光功率和第二历史输出光功率,确定收端网元在进行光信号传输时的第二抖动幅度;根据多个第一当前输出光功率和第一历史输出光功率,确定发端网元在进行光信号传输时第一抖动幅度和发端抖动程度;根据抖动程度、发端抖动程度、第一抖动幅度和第二抖动幅度,得到检测结果的手段,通过发端网元和收端网元的输出光功率,确定光网络传输时的抖动程度和抖动幅度,从而得到待测链路的检测结果,实现对待测链路中的根因进行快排查的效率。The detection method, device, electronic equipment, and storage medium provided in this application obtain the first historical output optical power and multiple first current output optical powers of the transmitting network element in the link to be tested, and the second output optical power of the receiving network element. Historical output optical power and multiple second current output optical powers, wherein the first output optical power corresponds to the second output optical power; according to the one-to-one correspondence between the multiple first current output optical powers and the multiple second current output powers output optical power to determine the degree of jitter of the link to be tested when transmitting optical signals; if the degree of jitter meets the requirements of the preset jitter degree, then determine the received optical power according to multiple second current output optical powers and second historical output optical powers. The second jitter amplitude of the end network element during optical signal transmission; according to multiple first current output optical powers and first historical output optical powers, determine the first jitter amplitude and the originating end jitter level of the originating network element during optical signal transmission ;According to the degree of jitter, the degree of jitter at the sending end, the first jitter amplitude and the second jitter amplitude, the means of obtaining the detection results, and the output optical power of the sending end network element and the receiving end network element are used to determine the degree of jitter and the jitter amplitude during optical network transmission , so as to obtain the detection result of the link to be tested, and realize the efficiency of quick investigation of the root cause in the link to be tested.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description serve to explain the principles of the application.
图1为本申请实施例提供的一种检测方法的流程示意图;Fig. 1 is a schematic flow chart of a detection method provided by the embodiment of the present application;
图2为本申请实施例提供的另一种检测方法的流程示意图;Fig. 2 is a schematic flow chart of another detection method provided by the embodiment of the present application;
图3为本申请实施例提供的检测装置的结构示意图;FIG. 3 is a schematic structural diagram of a detection device provided in an embodiment of the present application;
图4为本申请实施例提供的电子设备的结构示意图。FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
通过上述附图,已示出本申请明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本申请构思的范围,而是通过参考特定实施例为本领域技术人员说明本申请的概念。By means of the above drawings, specific embodiments of the present application have been shown, which will be described in more detail hereinafter. These drawings and text descriptions are not intended to limit the scope of the concept of the application in any way, but to illustrate the concept of the application for those skilled in the art by referring to specific embodiments.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.
现有技术中,在进行光网络故障定位时,通常很大程度依赖运维人员的经验判断,这导致了对运维人员技术要求较高,且由于光网络故障定位需要经过多层资源关联,以及因运维人员个体差异也不可避免地会造成定位效率低,花费时间长,以及出现延误甚至失误的问题。In the prior art, optical network fault location usually relies heavily on the experience and judgment of operation and maintenance personnel, which leads to high technical requirements for operation and maintenance personnel, and because optical network fault location requires multi-layer resource association, And due to individual differences in operation and maintenance personnel, it will inevitably lead to low positioning efficiency, long time-consuming, and delays or even mistakes.
本申请可以通过获得光网络中发端网元的第一历史输出光功率和第一当前输出光功率,以及收端网元的第二历史输出光功率和第二当前输出光功率,从而确定发端网元和收端网元在进行光网络传输时的抖动程度和抖动幅度,并根据抖动程度和抖动幅度确定根因是发端网元还是收端网元。This application can determine the originating network by obtaining the first historical output optical power and the first current output optical power of the transmitting network element in the optical network, and the second historical output optical power and the second current output optical power of the receiving network element. The jitter degree and jitter amplitude of the optical network element and the receiving end network element during optical network transmission, and determine whether the root cause is the sending end network element or the receiving end network element according to the jitter degree and jitter amplitude.
本申请实施例提供的检测方法的执行主体可以是服务器。其中,服务器可以为手机、平板、电脑等设备。本实施例对执行主体的实现方式不做特别限制,只要该执行主体能够获取待测链路中发端网元的第一历史输出光功率和多个第一当前输出光功率,以及收端网元的第二历史输出光功率和多个第二当前输出光功率,其中,第一输出光功率与第二输出光功率一一对应;根据一一对应的多个第一当前输出光功率和多个第二当前输出光功率,确定待测链路在进行光信号传输时的抖动程度;若抖动程度满足预设抖动程度的要求,则根据多个第二当前输出光功率和第二历史输出光功率,确定收端网元在进行光信号传输时的第二抖动幅度;根据多个第一当前输出光功率和第一历史输出光功率,确定发端网元在进行光信号传输时第一抖动幅度和发端抖动程度;根据抖动程度、发端抖动程度、第一抖动幅度和第二抖动幅度,得到检测结果即可。The execution subject of the detection method provided in the embodiment of the present application may be a server. Wherein, the server may be a device such as a mobile phone, a tablet, or a computer. This embodiment does not impose special restrictions on the implementation of the execution subject, as long as the execution subject can obtain the first historical output optical power and multiple first current output optical powers of the transmitting network element in the link to be tested, and the receiving network element The second historical output optical power and a plurality of second current output optical powers, wherein, the first output optical power corresponds to the second output optical power one-to-one; The second current output optical power determines the degree of jitter of the link under test when transmitting optical signals; if the degree of jitter meets the requirements of the preset jitter degree, then according to multiple second current output optical powers and second historical output optical powers , to determine the second jitter amplitude of the receiving network element during optical signal transmission; according to a plurality of first current output optical powers and first historical output optical powers, determine the first jitter amplitude and The degree of jitter at the sending end; according to the degree of jitter, the degree of jitter at the sending end, the first jitter amplitude, and the second jitter amplitude, the detection result can be obtained.
其中,光网络(Optical Network)一般指使用光纤作为主要传输介质的广域网、城域网或者新建的大范围的局域网。光网络具有传输速度高、传输距离长等特点。Among them, the optical network (Optical Network) generally refers to a wide area network, a metropolitan area network, or a new large-scale local area network that uses optical fibers as the main transmission medium. Optical network has the characteristics of high transmission speed and long transmission distance.
光网络传输可以是在发送方和接收方之间以光信号形态进行传输的技术。其中,光网络传输可以包括发端网元、收端网元以及连接在发端网元和收端网元之间的光纤。Optical network transmission can be a technology that transmits in the form of optical signals between the sender and the receiver. Wherein, the optical network transmission may include a sending-end network element, a receiving-end network element, and an optical fiber connected between the sending-end network element and the receiving-end network element.
链路可以是有线通信时,两个节点之间的物理线路,如电缆或光纤。A link can be a physical line, such as a cable or fiber optic, between two nodes when communicating by wire.
图1为本申请实施例提供的一种检测方法的流程示意图。本方法的执行主体可以为服务器或其它服务器,本实施例此处不做特别限制,如图1所示,本方法可以包括:FIG. 1 is a schematic flow chart of a detection method provided in an embodiment of the present application. The execution subject of this method can be a server or other servers, and this embodiment does not make special limitations here, as shown in Figure 1, this method can include:
S101、获取待测链路中发端网元的第一历史输出光功率和多个第一当前输出光功率,以及收端网元的第二历史输出光功率和多个第二当前输出光功率,其中,第一输出光功率与第二输出光功率一一对应。S101. Obtain the first historical output optical power and multiple first current output optical powers of the transmitting network element in the link to be tested, and the second historical output optical power and multiple second current output optical powers of the receiving network element, Wherein, the first output optical power is in one-to-one correspondence with the second output optical power.
其中,待测链路为光网络中的链路,在进行光网络传输时,光网络中可以包括多条链路,每条链路中均可以包括发端网元、收端网元和光纤。其中,发端网元可以通过光纤与收端网元连接,从而进行光网络传输。Wherein, the link to be tested is a link in the optical network. During optical network transmission, the optical network may include multiple links, and each link may include a transmitting network element, a receiving network element, and an optical fiber. Wherein, the sending-end network element can be connected to the receiving-end network element through an optical fiber, so as to perform optical network transmission.
在本申请实施例中,检测系统可以对多条链路逐条进行检测,也可以对多条链路同时进行检测,其中,当对多条链路进行逐条检测时,每次进行检测的链路可以作为待测链路,当对多条链路进行同时检测时,同时进行检测的多条链路可以为待测链路。In the embodiment of the present application, the detection system can detect multiple links one by one, and can also detect multiple links at the same time, wherein when multiple links are detected one by one, the link detected each time It can be used as a link to be tested, and when multiple links are detected simultaneously, the multiple links that are detected simultaneously can be the links to be tested.
第一当前输出光功率可以为发端网元在进行光网络传输时在单位时间内所作的功,第一输出光功率可以通过功率检测的方式获得,在进行功率检测时,需要检测发端网元在当前周期内的多个第一当前输出光功率,且每个第一当前输出光功率均为在当前周期内不同单位时间内所获取的输出光功率。在本申请实施例中,当前周期可以表征为进行检测时的时间,单位时间段可以为进行检测的间隔,比如,当前周期可以为1天,单位时间段可以为15分钟,在该当前周期内获得第一当前输出光功率的个数为96个。The first current output optical power can be the work done by the originating network element in unit time during optical network transmission. The first output optical power can be obtained through power detection. When performing power detection, it is necessary to detect the power of the originating network element A plurality of first current output optical powers in the current period, and each first current output optical power is an output optical power acquired in a different unit time in the current period. In the embodiment of the present application, the current cycle can be characterized as the time when the detection is performed, and the unit time period can be the detection interval. For example, the current cycle can be 1 day, and the unit time period can be 15 minutes. In the current cycle The number of obtained first current output optical power is 96.
第二当前输出光功率可以为收端网元在进行光网络传输时在单位时间内所作的功,第二当前输出光功率为与第一输出光功率对应的光功率,即收端网元检测的第二当前输出光功率可以为根据发端网元发出第一输出光功率,而得到的输出光功率。The second current output optical power can be the work done by the receiving network element in unit time when performing optical network transmission, and the second current output optical power is the optical power corresponding to the first output optical power, that is, the receiving network element detects The second current output optical power of may be the output optical power obtained according to the first output optical power sent by the originating network element.
第一历史输出光功率为发端网元在光网络传输出现故障前处于正常工作状态下的输出光功率。在一些实施例中,第一历史输出光功率可以根据预先设置的标准功率来确定,也可以通过对发端网元在光网络传输出现故障前的历史使用时间内进行检测得到。The first historical output optical power is the output optical power of the originating network element in a normal working state before the optical network transmission fails. In some embodiments, the first historical output optical power may be determined according to a preset standard power, or may be obtained by detecting the historical usage time of the originating network element before the optical network transmission fails.
其中,在本申请实施例中,获取待测链路中发端网元的第一历史输出光功率的方法可以包括:Wherein, in the embodiment of the present application, the method for obtaining the first historical output optical power of the originating network element in the link to be tested may include:
确定发端网元的第一历史使用时间;determining the first historical use time of the originating network element;
以预设的第一频次,获取发端网元在第一历史使用时间内的多个第一初始输出光功率;Obtain a plurality of first initial output optical powers of the transmitting network element within the first historical usage time at a preset first frequency;
根据多个第一初始输出光功率,得到第一历史输出光功率。According to the plurality of first initial output optical powers, the first historical output optical power is obtained.
其中,第一历史使用时间可以为发端网元在光网络传输出现故障前选取的时间,第一历史使用时间可以为发端网元在光网络传输出现故障前的所有使用时间,也可以为发端网元在光网络传输出现故障前任意选取一个时间,在本申请实施例中,为了提高所获取的第一历史输出光功率的准确性,第一历史使用时间可以为选取在发端网元在光网络传输出现故障前的一周。Wherein, the first historical use time may be the time selected by the originating network element before the optical network transmission fails, and the first historical use time may be all the use time of the originating network element before the optical network transmission fails, or it may be the originating network element Select a time arbitrarily before the optical network transmission fails. In the embodiment of this application, in order to improve the accuracy of the obtained first historical output optical power, the first historical usage time can be selected as The week before the transmission went down.
频次可以表征为在一定时间内获取检测得到输出光功率的频率,频次可以为预先设置的。第一频次可以为在第一历史使用时间内获取发端网元发送的第一初始输出光功率的频率,第一频次越大,在第一历史使用时间内获取到的第一初始输出光功率越多。例如,在一些实施例中,当第一历史使用时间为1周,频次为15分钟一次时,获取得到的第一历史输出光功率的数量可以为672个。The frequency may be characterized as a frequency at which the detected output optical power is obtained within a certain period of time, and the frequency may be preset. The first frequency may be the frequency at which the first initial output optical power sent by the originating network element is obtained within the first historical use time. The greater the first frequency, the higher the first initial output optical power obtained within the first historical use time. many. For example, in some embodiments, when the first historical use time is 1 week and the frequency is once every 15 minutes, the number of acquired first historical output optical powers may be 672.
第一历史输出光功率可以通过对多个第一初始输出光功率以加权求平均的方式得到。其中,在一些实施例中,为了进一步地提高第一历史输出光功率的准确性,在进行加权求平均前,可以对多个第一初始输出光功率进行清洗处理,从而去除多个第一历史输出光功率中的异常数据。其中,清洗处理的方法可以包括:1、去除第一初始输出光功率中的5%的最大值和5%的最小值;2、当第一初始输出光功率的数据出现异常的问题时,可以对异常数据进行删除;3、当第一初始输出光功率出现空值,且出现空值的持续时间小于预设时长时,则可以确定空值的所在时间段的其他临近时间段,并根据其他临近时间段的第一初始输出光功率对空值进行补充。The first historical output optical power may be obtained by performing weighted averaging on multiple first initial output optical powers. Wherein, in some embodiments, in order to further improve the accuracy of the first historical output optical power, before performing weighted averaging, cleaning may be performed on multiple first initial output optical powers, thereby removing multiple first historical output powers. Abnormal data in output optical power. Wherein, the cleaning method may include: 1. Removing the maximum value of 5% and the minimum value of 5% in the first initial output optical power; 2. When the data of the first initial output optical power is abnormal, the Delete the abnormal data; 3. When the first initial output optical power has a null value, and the duration of the null value is less than the preset duration, then other adjacent time periods of the time period where the null value is located can be determined, and according to other The first initial output optical power of the adjacent time period supplements the null value.
第二历史输出光功率为收端网元处于正常工作状态下的输出光功率。在一些实施例中,第二历史输出光功率可以为与获取第一历史输出光功率相同的方式在收端网元上获取。The second historical output optical power is the output optical power of the receiving network element in a normal working state. In some embodiments, the second historical output optical power may be obtained on the receiving network element in the same manner as the first historical output optical power is obtained.
其中,在本申请实施例中,获取待测链路中收端网元的第二历史输出光功率的方法可以包括:Wherein, in the embodiment of the present application, the method for obtaining the second historical output optical power of the receiving network element in the link to be tested may include:
确定收端网元的第二历史使用时间;determining the second historical usage time of the receiving network element;
以预设的第二频次,获取收端网元在第二历史使用时间内的多个第二初始输出光功率;Obtain a plurality of second initial output optical powers of the receiving network element within the second historical usage time at a preset second frequency;
根据多个第二初始输出光功率,得到第二历史输出光功率。According to the plurality of second initial output optical powers, a second historical output optical power is obtained.
其中,第二历史使用时间可以为收端网元在光网络传输出现故障前选取的时间,第二历史使用时间可以与第一历史使用时间相同,也可以与第一历史使用时间不同。Wherein, the second historical usage time may be the time selected by the receiving network element before the optical network transmission fails, and the second historical usage time may be the same as the first historical usage time, or may be different from the first historical usage time.
第二频次可以为在第二历史使用时间内获取收端网元发送的第二初始输出光功率的频率,通过第二历史使用时间和第二频次,可获取多个第二初始输出光功率,在获取到多个第二初始输出光功率后,可以以通过对多个第二初始输出光功率进行加权求平均的方式得到第二历史输出光功率。The second frequency may be the frequency for obtaining the second initial output optical power sent by the receiving network element within the second historical usage time, through the second historical usage time and the second frequency, multiple second initial output optical powers may be obtained, After the multiple second initial output optical powers are acquired, the second historical output optical power may be obtained in a manner of weighting and averaging the multiple second initial output optical powers.
S102、根据一一对应的多个第一当前输出光功率和多个第二当前输出光功率,确定待测链路在进行光信号传输时的抖动程度。S102. According to the one-to-one correspondence between the multiple first current output optical powers and the multiple second current output optical powers, determine the degree of jitter of the link under test when optical signal transmission is performed.
其中,抖动程度可以用于表征第一输出光功率和第二输出光功率之间的差异程度,即可以为待测链路在进行光信号传输时的稳定程度。在本申请实施例中,抖动程度可以通过数值的方式进行表示。Wherein, the degree of jitter may be used to characterize the degree of difference between the first output optical power and the second output optical power, that is, the degree of stability of the link under test when optical signal transmission is performed. In the embodiment of the present application, the degree of jitter may be represented by a numerical value.
其中,在本申请实施例中,获取根据一一对应的多个第一当前输出光功率和多个第二当前输出光功率,确定待测链路在进行光信号传输时的抖动程度的方法可以包括:Wherein, in the embodiment of the present application, the method of determining the degree of jitter of the link under test when transmitting optical signals according to the one-to-one correspondence between multiple first current output optical powers and multiple second current output optical powers may be include:
根据第一当前输出光功率和第二当前输出光功率,得到输出光功率差;Obtaining the output optical power difference according to the first current output optical power and the second current output optical power;
根据输出光功率差,确定待测链路在进行光信号传输时的抖动程度。According to the output optical power difference, determine the degree of jitter of the link under test when transmitting optical signals.
其中,输出光功率差可以为对应的第一当前输出光功率和第二当前输出光功率的差值,多个第一当前输出光功率和多个第二当前输出光功率可以得到多个输出光功率差。Wherein, the output optical power difference can be the difference between the corresponding first current output optical power and the second current output optical power, multiple first current output optical powers and multiple second current output optical powers can obtain multiple output optical powers Poor power.
通过多个输出光功率差可以表征光信号传输时的抖动程度。The degree of jitter during optical signal transmission can be characterized by multiple output optical power differences.
其中,在本申请实施例中,根据输出光功率差,确定待测链路在进行光信号传输时的抖动程度的方法可以包括:Wherein, in the embodiment of the present application, according to the difference in output optical power, the method for determining the degree of jitter of the link under test during optical signal transmission may include:
根据输出光功率差,确定多个第一当前输出光功率和多个第二当前输出光功率的标准差;Determine standard deviations of a plurality of first current output optical powers and a plurality of second current output optical powers according to the output optical power difference;
根据标准差,确定待测链路在进行光信号传输时的抖动程度。According to the standard deviation, determine the degree of jitter of the link under test when transmitting optical signals.
其中,标准差可以为离均差平方的算术平均数的算术平方根,标准差可以表征数据的离散程度,在本申请实施例中,标准差可以表征待测链路在进行光信号传输时的抖动程度。Among them, the standard deviation can be the arithmetic square root of the arithmetic mean of the square of the deviation from the mean, and the standard deviation can represent the degree of dispersion of the data. In the embodiment of the present application, the standard deviation can represent the jitter of the link under test when transmitting optical signals degree.
S103、若抖动程度满足预设抖动程度的要求,则根据多个第二当前输出光功率和第二历史输出光功率,确定收端网元在进行光信号传输时的第二抖动幅度。S103. If the jitter degree meets the requirement of the preset jitter degree, determine a second jitter amplitude when the receiving network element transmits optical signals according to multiple second current output optical powers and second historical output optical powers.
其中,预设抖动程度的要求用于表征收端网元和发端网元在进行光传输时的稳定程度的要求,当待测链路的抖动程度表征为平稳时,则该待测链路没有必要进行故障检测,因此不满足预设抖动程度的要求。其中,在本申请实施例中,由于抖动程度可以通过标准差表征,因此,预设抖动程度的要求可以设定为预设标准差阈值,通过标准差与预设标准差阈值进行比对,确定抖动程度是否满足预设抖动程度的要求,比如,在一些实施例中,标准差阈值可以设置为0.3,当标准差表征的抖动程度大于或等于0.3时,表征收端网元和发端网元在进行光传输时的稳定程度较差,可能存在问题,可能需要维护人员进行维护,故可以进行根据第二当前输出光功率和第二历史输出光功率,执行确定收端网元在进行光信号传输时的第二抖动幅度的步骤。Among them, the requirement of the preset jitter degree is used to characterize the stability requirements of the receiving-end network element and the sending-end network element during optical transmission. When the jitter degree of the link to be tested is characterized as stable, the link to be tested has no Necessary for fault detection, therefore the preset jitter levels are not met. Among them, in the embodiment of the present application, since the degree of jitter can be characterized by the standard deviation, the requirement for the preset degree of jitter can be set as the preset standard deviation threshold, and the standard deviation is compared with the preset standard deviation threshold to determine Whether the degree of jitter meets the requirements of the preset degree of jitter. For example, in some embodiments, the standard deviation threshold can be set to 0.3. When the degree of jitter represented by the standard deviation is greater than or equal to 0.3, it indicates that the receiving end network element and the sending end network element are in The stability of optical transmission is poor, there may be problems, and maintenance personnel may be required for maintenance, so it can be determined according to the second current output optical power and the second historical output optical power to determine that the receiving network element is performing optical signal transmission when the second jitter amplitude step.
第二抖动幅度可以表征收端网元在进行光信号传输时抖动的剧烈程度。The second jitter amplitude may represent the severity of jitter when the receiving network element transmits optical signals.
其中,在本申请实施例中,根据多个第二当前输出光功率和第二历史输出光功率,确定收端网元在进行光信号传输时的第二抖动幅度的方法可以包括:Wherein, in the embodiment of the present application, according to a plurality of second current output optical powers and second historical output optical powers, the method for determining the second jitter amplitude of the receiving network element during optical signal transmission may include:
根据第二历史输出光功率,确定第二门限阈值范围;Determine a second threshold threshold range according to the second historical output optical power;
根据多个第二当前输出光功率和第二门限阈值范围,确定收端网元在进行光信号传输时的第二抖动幅度。According to the plurality of second current output optical powers and the second threshold range, the second jitter amplitude when the receiving network element transmits optical signals is determined.
其中,第二门限阈值范围可以为收端网元在进行光信号传输可接受的抖动程度的范围,在本申请实施例中,第二门限阈值范围可以为根据第二历史输出光功率加减一定的功率范围得到,比如,第二历史输出光功率为3DB,功率范围为2DB,则第二门限阈值范围可以为1~5DB。Wherein, the second threshold threshold range may be the acceptable jitter range of the receiving network element during optical signal transmission. In the embodiment of the present application, the second threshold threshold range may be a certain range based on the addition or subtraction of the second historical output optical power. For example, if the second historical output optical power is 3DB and the power range is 2DB, then the second threshold threshold value range may be 1-5DB.
第二抖动幅度可以根据第二当前输出光功率中超出第二门限阈值范围的第二当前输出光功率确定。The second jitter amplitude may be determined according to the second current output optical power exceeding the second threshold range in the second current output optical power.
其中,在本申请实施例中,根据多个第二当前输出光功率和第二门限阈值范围,确定收端网元在进行光信号传输时的第二抖动幅度的方法可以包括:Wherein, in the embodiment of the present application, according to a plurality of second current output optical powers and a second threshold threshold range, the method for determining the second jitter amplitude of the receiving network element during optical signal transmission may include:
根据第二门限阈值范围,确定第二目标输出光功率,以及第二幅度和值,其中,第二目标输出光功率为处于第二门限阈值范围外的输出光功率,第二幅度和值表征第二抖动幅度。According to the second threshold threshold range, determine the second target output optical power, and the second amplitude and value, wherein the second target output optical power is the output optical power outside the second threshold threshold range, and the second amplitude and value represent the first Two jitter amplitude.
其中,第二目标输出光功率为在第二门限阈值范围外的第二当前输出光功率。第二幅度和值可以为第二门限阈值范围外的第二目标输出光功率与第二门限阈值范围的差值和。比如,在一些实施例中,当第二门限阈值范围为1~3DB,第二输出光功率为4DB时,则该第二输出光功率为第二目标输出光功率,且该第二目标输出光功率的第二幅度可以为1DB,第二幅度和值可以为第二幅度的和。Wherein, the second target output optical power is a second current output optical power outside the second threshold threshold range. The second amplitude sum may be a sum of differences between the second target output optical power outside the second threshold threshold range and the second threshold threshold range. For example, in some embodiments, when the second threshold threshold range is 1-3DB and the second output optical power is 4DB, then the second output optical power is the second target output optical power, and the second target output optical power The second amplitude of the power may be 1DB, and the second amplitude and value may be the sum of the second amplitudes.
S104、根据多个第一当前输出光功率和第一历史输出光功率,确定发端网元在进行光信号传输时第一抖动幅度和发端抖动程度。S104. According to multiple first current output optical powers and first historical output optical powers, determine a first jitter amplitude and an originating jitter degree when the originating network element transmits an optical signal.
其中,第一抖动幅度可以表征发端网元在进行光传输时抖动的剧烈程度。第一抖动幅度可以根据第一当前输出光功率中超出第一门限阈值范围的第一当前输出光功率确定,其中,第一门限阈值范围可以为发端网元在进行光信号传输可接受的抖动程度的范围,第一抖动幅度可以为第一目标输出光功率与第一门限阈值范围的差值和,第一目标输出光功率可以为处于第一门限阈值范围外的第一当前输出光功率。Wherein, the first jitter amplitude may represent the severe degree of jitter when the originating network element performs optical transmission. The first jitter range may be determined according to the first current output optical power of the first current output optical power that exceeds the first threshold threshold range, where the first threshold threshold range may be an acceptable jitter level for the originating network element to perform optical signal transmission range, the first jitter amplitude may be the sum of differences between the first target optical output power and the first threshold threshold range, and the first target optical output power may be the first current output optical power outside the first threshold threshold range.
发端抖动程度可以根据第一当前输出光功率得到,在本申请实施例中,可以通过获取第一当前输出光功率的标准差得到发端抖动程度。The degree of jitter at the transmission end may be obtained according to the first current output optical power. In the embodiment of the present application, the degree of jitter at the transmission end may be obtained by obtaining the standard deviation of the first current output optical power.
S105、根据抖动程度、发端抖动程度、第一抖动幅度和第二抖动幅度,得到检测结果。S105. Obtain a detection result according to the degree of jitter, the degree of jitter at the sending end, the first jitter amplitude, and the second jitter amplitude.
其中,检测结果可以包括待测链路正常、发端网元异常、收端网元异常以及光纤异常。Wherein, the detection result may include normality of the link to be tested, abnormality of the network element at the sending end, abnormality of the network element at the receiving end, and abnormality of the optical fiber.
其中,在本申请实施例中,当抖动程度、发端抖动程度、第一抖动幅度和第二抖动幅度均不为零时,则根据抖动程度和发端抖动程度,得到抖动程度比值,以及根据第一抖动幅度和第二抖动幅度,得到抖动幅度比值;Among them, in the embodiment of the present application, when the degree of jitter, the degree of jitter at the sending end, the first jitter amplitude, and the second jitter amplitude are not zero, the ratio of the degree of jitter is obtained according to the degree of jitter and the degree of jitter at the sending end, and according to the first The jitter amplitude and the second jitter amplitude obtain the jitter amplitude ratio;
根据抖动程度比值和抖动幅度比值,得到检测结果;According to the jitter degree ratio and jitter amplitude ratio, the detection result is obtained;
或,当抖动程度、发端抖动程度、第一抖动幅度和第二抖动幅度均为零时,则检测结果为待测链路正常。Or, when the degree of jitter, the degree of jitter at the sending end, the first jitter amplitude, and the second jitter amplitude are all zero, the detection result indicates that the link under test is normal.
其中,在本申请实施例中,根据抖动程度比值和抖动幅度比值,得到检测结果的方法可以包括:Among them, in the embodiment of the present application, according to the ratio of the degree of shaking and the ratio of shaking amplitude, the method for obtaining the detection result may include:
当抖动程度比值大于抖动幅度比值时,表征光网络传输的抖动频率为主要问题,比对抖动程度和发端抖动程度:When the ratio of jitter degree is greater than the ratio of jitter amplitude, the jitter frequency representing optical network transmission is the main problem. Compare the degree of jitter and the degree of jitter at the sending end:
若抖动程度大于发端抖动程度,则检测结果为收端网元异常或光纤异常,光纤连接发端网元和收端网元;If the jitter degree is greater than the jitter degree at the sending end, the detection result is that the receiving end network element is abnormal or the optical fiber is abnormal, and the optical fiber is connected to the sending end network element and the receiving end network element;
若抖动程度小于或等于发端抖动程度,则检测结果为发端网元异常;If the degree of jitter is less than or equal to the degree of jitter at the sending end, the detection result is that the network element at the sending end is abnormal;
当抖动程度比值小于或等于抖动幅度比值时,表征光网络传输的抖动幅度为主要问题,比对第一抖动幅度和第二抖动幅度:When the jitter degree ratio is less than or equal to the jitter amplitude ratio, the jitter amplitude representing optical network transmission is the main problem. Compare the first jitter amplitude and the second jitter amplitude:
若第一抖动幅度大于第二抖动幅度,则检测结果为发端网元异常;If the first jitter amplitude is greater than the second jitter amplitude, the detection result is that the originating network element is abnormal;
若第一抖动幅度小于或等于第二抖动幅度,则检测结果为收端网元异常或光纤异常。If the first jitter amplitude is less than or equal to the second jitter amplitude, the detection result is that the network element at the receiving end is abnormal or the optical fiber is abnormal.
其中,在本申请实施例中,当抖动程度和发端抖动程度为零,第一抖动幅度和第二抖动幅度不为零时、或当抖动程度或发端抖动程度为零,第一抖动幅度或第二抖动幅度为零时、或当抖动程度或发端抖动程度不为零,第一抖动幅度或第二抖动幅度为零时,比对第一抖动幅度和第二抖动幅度:Wherein, in the embodiment of the present application, when the degree of jitter and the degree of jitter at the sending end are zero, and the first jitter amplitude and the second jitter amplitude are not zero, or when the degree of jitter or the degree of jitter at the sending end is zero, the first jitter amplitude or the second jitter 2. When the jitter amplitude is zero, or when the jitter level or the originating jitter level is not zero, and the first jitter amplitude or the second jitter amplitude is zero, compare the first jitter amplitude and the second jitter amplitude:
若第一抖动幅度大于第二抖动幅度,则检测结果为发端网元异常;If the first jitter amplitude is greater than the second jitter amplitude, the detection result is that the originating network element is abnormal;
若第一抖动幅度小于或等于第二抖动幅度,则检测结果为收端网元异常或光纤异常。If the first jitter amplitude is less than or equal to the second jitter amplitude, the detection result is that the network element at the receiving end is abnormal or the optical fiber is abnormal.
其中,在本申请实施例中,当抖动程度和发端抖动程度不为零,第一抖动幅度和第二抖动幅度为零时、或当抖动程度或发端抖动程度为零,第一抖动幅度和第二抖动幅度不为零时,比对抖动程度和发端抖动程度:Wherein, in the embodiment of the present application, when the degree of jitter and the degree of jitter at the sending end are not zero, and the first jitter amplitude and the second jitter amplitude are zero, or when the degree of jitter or the degree of jitter at the sending end is zero, the first jitter amplitude and the second jitter amplitude are zero. 2. When the jitter amplitude is not zero, compare the jitter level with the sender jitter level:
若抖动程度大于发端抖动程度,则检测结果为收端网元异常或光纤异常,光纤连接发端网元和收端网元;If the jitter degree is greater than the jitter degree at the sending end, the detection result is that the receiving end network element is abnormal or the optical fiber is abnormal, and the optical fiber is connected to the sending end network element and the receiving end network element;
若抖动程度小于或等于发端抖动程度,则检测结果为发端网元异常。If the jitter level is less than or equal to the jitter level at the sending end, the detection result is that the network element at the sending end is abnormal.
其中,在本申请实施例中,当待测链路有两条以上时,检测方法还包括:Wherein, in the embodiment of the present application, when there are more than two links to be tested, the detection method further includes:
确定每条待测链路的抖动程度;Determine the jitter level of each link to be tested;
根据抖动程度,确定待测链路中的初始目标链路,初始目标链路为抖动程度满足预设抖动程度的要求的待测链路;Determine the initial target link in the link to be tested according to the degree of jitter, and the initial target link is the link to be tested whose jitter degree meets the requirements of the preset jitter degree;
获取初始目标链路的第二抖动幅度;Acquiring the second jitter amplitude of the initial target link;
当初始目标链路有两条以上时,根据第二抖动幅度,确定初始目标链路中的目标链路;When there are more than two initial target links, according to the second jitter amplitude, determine the target link in the initial target link;
获取目标链路的第一抖动幅度和发端抖动程度;Obtain the first jitter amplitude and the jitter degree of the sending end of the target link;
根据目标链路的抖动程度、发端抖动程度、第一抖动幅度和第二抖动幅度,得到目标链路的检测结果。The detection result of the target link is obtained according to the jitter degree of the target link, the jitter degree of the sending end, the first jitter amplitude and the second jitter amplitude.
其中,在有多条待测链路时,可以通过获取每条待测链路的抖动程度,从而确定多条待测链路中抖动程度超过预设抖动程度的要求的初始目标链路。在确定初始目标链路之后,可以确定每条初始目标链路的第二抖动幅度,结合第二抖动幅度和抖动程度确定初始目标链路中的目标链路,最后根据目标链路的抖动程度、发端抖动程度、第一抖动幅度和第二抖动幅度,得到目标链路的检测结果。Wherein, when there are multiple links to be tested, the jitter degree of each link to be tested can be obtained to determine the initial target link whose jitter degree exceeds the preset jitter degree requirement among the multiple links to be tested. After the initial target link is determined, the second jitter amplitude of each initial target link can be determined, and the target link in the initial target link can be determined in combination with the second jitter amplitude and the jitter degree, and finally according to the jitter degree of the target link, The degree of jitter at the sending end, the first jitter amplitude and the second jitter amplitude are used to obtain the detection result of the target link.
本申请实施例提供的检测方法可以获取待测链路中发端网元的第一历史输出光功率和多个第一当前输出光功率,以及收端网元的第二历史输出光功率和多个第二当前输出光功率,其中,第一输出光功率与第二输出光功率一一对应;根据一一对应的多个第一当前输出光功率和多个第二当前输出光功率,确定待测链路在进行光信号传输时的抖动程度;若抖动程度满足预设抖动程度的要求,则根据多个第二当前输出光功率和第二历史输出光功率,确定收端网元在进行光信号传输时的第二抖动幅度;根据多个第一当前输出光功率和第一历史输出光功率,确定发端网元在进行光信号传输时第一抖动幅度和发端抖动程度;根据抖动程度、发端抖动程度、第一抖动幅度和第二抖动幅度,得到检测结果的手段,通过发端网元和收端网元的输出光功率,确定光网络传输时的抖动程度和抖动幅度,从而得到待测链路的检测结果,实现对待测链路中的根因进行快排查的效率。The detection method provided by the embodiment of this application can obtain the first historical output optical power and multiple first current output optical powers of the transmitting network element in the link to be tested, as well as the second historical output optical power and multiple first current output optical powers of the receiving network element. The second current output optical power, wherein, the first output optical power corresponds to the second output optical power; according to the one-to-one corresponding multiple first current output optical powers and multiple second current output optical powers, determine the The degree of jitter of the link during optical signal transmission; if the degree of jitter meets the requirements of the preset jitter degree, it is determined that the network element at the receiving end is transmitting optical signals according to a plurality of second current output optical powers and second historical output optical powers. The second jitter amplitude during transmission; according to multiple first current output optical powers and first historical output optical powers, determine the first jitter amplitude and the degree of jitter at the originating end network element during optical signal transmission; according to the degree of jitter, the degree of jitter at the originating end The degree of jitter, the first jitter amplitude, and the second jitter amplitude are the means to obtain the detection results. Through the output optical power of the transmitting network element and the receiving end network element, the jitter degree and jitter amplitude during optical network transmission are determined, so as to obtain the link to be tested. The detection results can realize the efficiency of quick investigation of the root cause in the link to be tested.
图2为本申请实施例提供的另一种检测方法的流程示意图,如图2所示,该方法包括:Fig. 2 is a schematic flow chart of another detection method provided by the embodiment of the present application. As shown in Fig. 2, the method includes:
S201、获取发端网元的稳态功率POA发稳和收端网元的稳态功率POA收稳。S201. Obtain the steady-state power P OA of the transmitting network element and the steady-state power P OA of the receiving network element.
其中,发端网元的稳态功率POA发稳可以为一个周期内发端网元输出功率的平均值,收端网元的稳态功率POA收稳可以为一个周期内收端网元输出功率的平均值。Among them, the steady-state power P OA of the transmitting network element can be the average value of the output power of the transmitting network element within a period, and the steady-state power P OA of the receiving network element can be the output power of the receiving network element within a period average of.
在获取POA发稳和POA收稳时,可以对POA发稳和POA收稳进行清洗,从而得到有效的POA发稳和POA收稳。When obtaining the P OA send and P OA receive , the P OA send and P OA receive can be cleaned, so as to obtain effective P OA send and P OA receive .
S202、获取多条链路中的放端输出功率POA发和收端输出功率POA收。S202. Obtain output power P OA at the transmitting end and output power P OA receiving at the receiving end in multiple links.
其中,在获取放端输出功率POA发和收端输出功率POA收时,可以对放端输出功率和收端输出功率进行清洗,从而得到有效的POA发和POA收。Wherein, when obtaining the output power P OA at the output end and the output power P OA at the receiving end, the output power at the output end and the output power at the receiving end may be cleaned, so as to obtain effective P OA transmission and P OA reception .
S203、根据放端输出功率POA发和收端输出功率POA收,得到功率标准差SDOA。S203. Obtain the power standard deviation S DOA according to the output power P OA at the transmitting end and the output power P OA receiving at the receiving end.
其中,根据POA发和POA收,获得输出功率差值,然后根据求取输出功率差值的标准差,得到功率标准差SDOA。Wherein, the output power difference is obtained according to the P OA transmission and the P OA reception , and then the power standard deviation S DOA is obtained according to the standard deviation of the output power difference.
S204、根据收端输出功率POA收和收端网元的稳态功率POA收稳,得到收端网元阈值越限状态值TOA收。S204. According to the receiving-end output power P OA and the steady-state power P OA of the receiving-end network element, obtain the receiving-end network element threshold value T OA .
其中,根据收端网元的稳态功率,得到收端门限,在本申请实施例中,收端门限=收端网元的稳态功率±2DB。在确定收端门限后,确定收端网元的稳态功率中处于收端门限外的功率值,根据公式TOA收=∑单次越过收端门限的幅度,将功率值与收端门限做差求和,得到单条链路的收端网元阈值越限状态值。Wherein, the receiving threshold is obtained according to the steady-state power of the receiving network element, and in the embodiment of the present application, the receiving threshold=the steady-state power of the receiving network element±2DB. After determining the receiving end threshold, determine the power value outside the receiving end threshold in the steady-state power of the receiving end network element, according to the formula T OA receiving = ∑ the magnitude of a single crossing of the receiving end threshold, and compare the power value with the receiving end threshold The difference is summed to obtain the threshold value of the receiving network element exceeding the limit of a single link.
S205、根据功率标准差SDOA和收端网元阈值越限状态值TOA收,确定目标链路。S205. Determine the target link according to the power standard deviation S DOA and the receiving end network element threshold value T OA received .
其中,确定功率标准差SDOA中大于预设功率标准差阈值的初始目标链路,在本申请实施例中,可以为0.3。在从初始目标链路确定TOA收最大的目标链路。Wherein, determining the initial target link in the power standard deviation S DOA that is greater than the preset power standard deviation threshold may be 0.3 in this embodiment of the present application. After determining T OA from the initial target link to receive the maximum target link.
S206、根据发端网元的稳态功率POA发稳和发端输出功率POA发,获取目标链路的发端功率标准差SDOA发,以及发端网元阈值越限状态值TOA发;S206. According to the steady-state power P OA of the transmitting network element and the output power P OA of the transmitting end, obtain the standard deviation S DOA of the transmitting power of the target link, and the threshold value T OA of the transmitting network element;
S207、根据功率标准差SDOA、发端功率标准差SDOA发、收端网元阈值越限状态值TOA收和发端网元阈值越限状态值TOA发,得到检测结果。S207. Obtain the detection result according to the power standard deviation S DOA , the transmitting end power standard deviation S DOA sending , the receiving end network element threshold exceeding state value T OA receiving , and the transmitting end network element threshold exceeding state value T OA sending .
其中,当SDOA、SDOA发、TOA收和TOA发均为零时,则判断该目标链路未找到风险根因。Wherein, when S DOA , S DOA send , T OA receive and T OA send are all zero, it is judged that the target link has not found the risk root cause.
当SDOA、SDOA发、TOA收和TOA发均不为零时,则判断该目标链路未找到风险根因,则计算SDOA和SDOA发的比值,记为DS、以及TOA收和TOA发的比值,记为DT,其中,SDOA和SDOA发中较大的数值作为分母,TOA收和TOA发中较大的数值作为分母。When S DOA , S DOA send , T OA receive and T OA send are not zero, it is judged that the target link has not found the risk root cause, then calculate the ratio of S DOA and S DOA send , recorded as D S , and The ratio of T OA received and T OA sent is denoted as D T , wherein the larger value of S DOA and S DOA sent is used as the denominator, and the larger value of T OA received and T OA sent is used as the denominator.
在获取DS和DT后,比对DS和DT,若DS>DT、且SDOA发≥SDOA,则为发端网元异常;若DS>DT、且SDOA发<SDOA,则为收端网元异常或光纤异常;若DS<DT、且TOA收≥TOA发,则为收端网元异常或光纤异常;若DS<DT、且TOA收<TOA发,则为发端网元异常。After obtaining D S and D T , compare D S and D T , if D S >D T , and S DOA ≥ S DOA , it means that the originating network element is abnormal; if D S >D T , and S DOA < S DOA , it means that the receiving end network element is abnormal or the optical fiber is abnormal; if D S < D T , and T OA receiving ≥ T OA sending , then it is receiving end network element abnormality or optical fiber abnormality; if D S < D T , and If T OA receiving < T OA sending , it means that the originating network element is abnormal.
当SDOA和SDOA发均为零,且TOA收和TOA发均不为零时,或者当SDOA或SDOA发为零,且TOA收或TOA发为零时,或者当SDOA和SDOA发均不为零,且TOA收或TOA发为零时,则若TOA收≥TOA发,则为收端网元异常或光纤异常,若TOA收<TOA发,则为发端网元异常。When both S DOA and S DOA send are zero, and both T OA receive and T OA send are not zero, or when S DOA or S DOA send is zero, and T OA receive or T OA send is zero, or when When both S DOA and S DOA transmission are not zero, and T OA reception or T OA transmission is zero, then if T OA reception ≥ T OA transmission , it means that the network element at the receiving end is abnormal or the optical fiber is abnormal. If T OA reception < T If the OA is sent , it means that the originating NE is abnormal.
当SDOA和SDOA发均不为零,且TOA收和TOA发均为零时,或者当SDOA或SDOA发为零,且TOA收和TOA发均不为零时,则若SDOA发≥SDOA,则为发端网元异常,若SDOA发<SDOA,则为收端网元异常或光纤异常。When both S DOA and S DOA are not zero, and both T OA receive and T OA are zero, or when S DOA or S DOA are zero, and both T OA receive and T OA are not zero, Then, if S DOA ≥ S DOA , it means that the network element at the sending end is abnormal, and if S DOA 发< S DOA , it means that the network element at the receiving end is abnormal or the optical fiber is abnormal.
图3为本申请实施例提供的检测装置的结构示意图。如图3所示,该检测装置30包括:获取模块301、第一确定模块302、第二确定模块303、第三确定模块304以及得到模块305。其中:FIG. 3 is a schematic structural diagram of a detection device provided in an embodiment of the present application. As shown in FIG. 3 , the detection device 30 includes: an
获取模块301,用于获取待测链路中发端网元的第一历史输出光功率和多个第一当前输出光功率,以及收端网元的第二历史输出光功率和多个第二当前输出光功率,其中,第一输出光功率与第二输出光功率一一对应;An
第一确定模块302,用于根据一一对应的多个第一当前输出光功率和多个第二当前输出光功率,确定待测链路在进行光信号传输时的抖动程度;The
第二确定模块303,用于若抖动程度满足预设抖动程度的要求,则根据多个第二当前输出光功率和第二历史输出光功率,确定收端网元在进行光信号传输时的第二抖动幅度;The
第三确定模块304,用于根据多个第一当前输出光功率和第一历史输出光功率,确定发端网元在进行光信号传输时第一抖动幅度和发端抖动程度;The
得到模块305,用于根据抖动程度、发端抖动程度、第一抖动幅度和第二抖动幅度,得到检测结果。The obtaining
在本申请实施例中,获取模块301还可以用于:In this embodiment of the application, the obtaining
确定发端网元的第一历史使用时间;determining the first historical use time of the originating network element;
以预设的第一频次,获取发端网元在第一历史使用时间内的多个第一初始输出光功率;Obtain a plurality of first initial output optical powers of the transmitting network element within the first historical usage time at a preset first frequency;
根据多个第一初始输出光功率,得到第一历史输出光功率。According to the plurality of first initial output optical powers, the first historical output optical power is obtained.
在本申请实施例中,获取模块301还可以用于:In this embodiment of the application, the obtaining
确定收端网元的第二历史使用时间;determining the second historical usage time of the receiving network element;
以预设的第二频次,获取收端网元在第二历史使用时间内的多个第二初始输出光功率;Obtain a plurality of second initial output optical powers of the receiving network element within the second historical usage time at a preset second frequency;
根据多个第二初始输出光功率,得到第二历史输出光功率。According to the plurality of second initial output optical powers, a second historical output optical power is obtained.
在本申请实施例中,第一确定模块302还可以用于:In this embodiment of the application, the
根据第一当前输出光功率和第二当前输出光功率,得到输出光功率差;Obtaining the output optical power difference according to the first current output optical power and the second current output optical power;
根据输出光功率差,确定待测链路在进行光信号传输时的抖动程度。According to the output optical power difference, determine the degree of jitter of the link under test when transmitting optical signals.
在本申请实施例中,第一确定模块302还可以用于:In this embodiment of the application, the
根据输出光功率差,确定多个第一当前输出光功率和多个第二当前输出光功率的标准差;Determine standard deviations of a plurality of first current output optical powers and a plurality of second current output optical powers according to the output optical power difference;
根据标准差,确定待测链路在进行光信号传输时的抖动程度。According to the standard deviation, determine the degree of jitter of the link under test when transmitting optical signals.
在本申请实施例中,第二确定模块303还可以用于:In this embodiment of the application, the second determining
根据第二历史输出光功率,确定第二门限阈值范围;Determine a second threshold threshold range according to the second historical output optical power;
根据多个第二当前输出光功率和第二门限阈值范围,确定收端网元在进行光信号传输时的第二抖动幅度。According to the plurality of second current output optical powers and the second threshold range, the second jitter amplitude when the receiving network element transmits optical signals is determined.
在本申请实施例中,第二确定模块303还可以用于:In this embodiment of the application, the second determining
根据第二门限阈值范围,确定第二目标输出光功率,以及第二幅度和值,其中,第二目标输出光功率为处于第二门限阈值范围外的输出光功率,第二幅度和值表征第二抖动幅度。According to the second threshold threshold range, determine the second target output optical power, and the second amplitude and value, wherein the second target output optical power is the output optical power outside the second threshold threshold range, and the second amplitude and value represent the first Two jitter amplitude.
在本申请实施例中,得到模块305还可以用于:In the embodiment of this application, the obtaining
当抖动程度、发端抖动程度、第一抖动幅度和第二抖动幅度均不为零时,则根据抖动程度和发端抖动程度,得到抖动程度比值,以及根据第一抖动幅度和第二抖动幅度,得到抖动幅度比值;When the degree of jitter, the degree of jitter at the sending end, the first jitter amplitude and the second jitter amplitude are all non-zero, the ratio of the jitter degree is obtained according to the degree of jitter and the degree of jitter at the sending end, and according to the first jitter amplitude and the second jitter amplitude, the obtained Jitter amplitude ratio;
根据抖动程度比值和抖动幅度比值,得到检测结果;According to the jitter degree ratio and jitter amplitude ratio, the detection result is obtained;
或,当抖动程度、发端抖动程度、第一抖动幅度和第二抖动幅度均为零时,则检测结果为待测链路正常。Or, when the degree of jitter, the degree of jitter at the sending end, the first jitter amplitude, and the second jitter amplitude are all zero, the detection result indicates that the link under test is normal.
在本申请实施例中,得到模块305还可以用于:In the embodiment of this application, the obtaining
当抖动程度比值大于抖动幅度比值时,比对抖动程度和发端抖动程度:When the ratio of the jitter degree is greater than the ratio of the jitter amplitude, compare the degree of jitter and the degree of jitter at the sending end:
若抖动程度大于发端抖动程度,则检测结果为收端网元异常或光纤异常,光纤连接发端网元和收端网元;If the jitter degree is greater than the jitter degree at the sending end, the detection result is that the receiving end network element is abnormal or the optical fiber is abnormal, and the optical fiber is connected to the sending end network element and the receiving end network element;
若抖动程度小于或等于发端抖动程度,则检测结果为发端网元异常;If the degree of jitter is less than or equal to the degree of jitter at the sending end, the detection result is that the network element at the sending end is abnormal;
当抖动程度比值小于或等于抖动幅度比值时,比对第一抖动幅度和第二抖动幅度:When the jitter degree ratio is less than or equal to the jitter amplitude ratio, compare the first jitter amplitude and the second jitter amplitude:
若第一抖动幅度大于第二抖动幅度,则检测结果为发端网元异常;If the first jitter amplitude is greater than the second jitter amplitude, the detection result is that the originating network element is abnormal;
若第一抖动幅度小于或等于第二抖动幅度,则检测结果为收端网元异常或光纤异常。If the first jitter amplitude is less than or equal to the second jitter amplitude, the detection result is that the network element at the receiving end is abnormal or the optical fiber is abnormal.
在本申请实施例中,得到模块405还可以用于:In the embodiment of this application, the obtaining module 405 can also be used for:
当抖动程度和发端抖动程度为零,第一抖动幅度和第二抖动幅度不为零时、When the degree of jitter and the degree of jitter at the sending end are zero, and the first jitter amplitude and the second jitter amplitude are not zero,
或当抖动程度或发端抖动程度为零,第一抖动幅度或第二抖动幅度为零时、or when the degree of jitter or the degree of jitter at the sending end is zero, and the first jitter amplitude or the second jitter amplitude is zero,
或当抖动程度或发端抖动程度不为零,第一抖动幅度或第二抖动幅度为零时,比对第一抖动幅度和第二抖动幅度:Or when the degree of jitter or the degree of jitter at the sending end is not zero, and the first jitter amplitude or the second jitter amplitude is zero, compare the first jitter amplitude and the second jitter amplitude:
若第一抖动幅度大于第二抖动幅度,则检测结果为发端网元异常;If the first jitter amplitude is greater than the second jitter amplitude, the detection result is that the originating network element is abnormal;
若第一抖动幅度小于或等于第二抖动幅度,则检测结果为收端网元异常或光纤异常。If the first jitter amplitude is less than or equal to the second jitter amplitude, the detection result is that the network element at the receiving end is abnormal or the optical fiber is abnormal.
在本申请实施例中,得到模块305还可以用于:In the embodiment of this application, the obtaining
当抖动程度和发端抖动程度不为零,第一抖动幅度和第二抖动幅度为零时、When the degree of jitter and the degree of jitter at the sending end are not zero, and the first jitter amplitude and the second jitter amplitude are zero,
或当抖动程度或发端抖动程度为零,第一抖动幅度和第二抖动幅度不为零时,比对抖动程度和发端抖动程度:Or when the degree of jitter or the degree of jitter at the sending end is zero, and the first and second jitter amplitudes are not zero, compare the degree of jitter and the degree of jitter at the sending end:
若抖动程度大于发端抖动程度,则检测结果为收端网元异常或光纤异常,光纤连接发端网元和收端网元;If the jitter degree is greater than the jitter degree at the sending end, the detection result is that the receiving end network element is abnormal or the optical fiber is abnormal, and the optical fiber is connected to the sending end network element and the receiving end network element;
若抖动程度小于或等于发端抖动程度,则检测结果为发端网元异常。If the jitter level is less than or equal to the jitter level at the sending end, the detection result is that the network element at the sending end is abnormal.
在本申请实施例中,得到模块305还可以用于:In the embodiment of this application, the obtaining
确定每条待测链路的抖动程度;Determine the jitter level of each link to be tested;
根据抖动程度,确定待测链路中的初始目标链路,初始目标链路为抖动程度满足预设抖动程度的要求的待测链路;Determine the initial target link in the link to be tested according to the degree of jitter, and the initial target link is the link to be tested whose jitter degree meets the requirements of the preset jitter degree;
获取初始目标链路的第二抖动幅度;Acquiring the second jitter amplitude of the initial target link;
当初始目标链路有两条以上时,根据第二抖动幅度,确定初始目标链路中的目标链路;When there are more than two initial target links, according to the second jitter amplitude, determine the target link in the initial target link;
获取目标链路的第一抖动幅度和发端抖动程度;Obtain the first jitter amplitude and the jitter degree of the sending end of the target link;
根据目标链路的抖动程度、发端抖动程度、第一抖动幅度和第二抖动幅度,得到目标链路的检测结果。The detection result of the target link is obtained according to the jitter degree of the target link, the jitter degree of the sending end, the first jitter amplitude and the second jitter amplitude.
由上可知,本实施例的检测装置由获取模块301,用于获取待测链路中发端网元的第一历史输出光功率和多个第一当前输出光功率,以及收端网元的第二历史输出光功率和多个第二当前输出光功率,其中,第一输出光功率与第二输出光功率一一对应;第一确定模块302,用于根据一一对应的多个第一当前输出光功率和多个第二当前输出光功率,确定待测链路在进行光信号传输时的抖动程度;由第二确定模块303,用于若抖动程度满足预设抖动程度的要求,则根据多个第二当前输出光功率和第二历史输出光功率,确定收端网元在进行光信号传输时的第二抖动幅度;由第三确定模块304,用于根据多个第一当前输出光功率和第一历史输出光功率,确定发端网元在进行光信号传输时第一抖动幅度和发端抖动程度;由得到模块305,用于根据抖动程度、发端抖动程度、第一抖动幅度和第二抖动幅度,得到检测结果。通过发端网元和收端网元的输出光功率,确定光网络传输时的抖动程度和抖动幅度,从而得到待测链路的检测结果,实现对待测链路中的根因进行快排查的效率。It can be seen from the above that the detection device of this embodiment is configured by the obtaining
图4为本申请实施例提供的电子设备的结构示意图。如图4所示,该电子设备40包括:FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As shown in Figure 4, the electronic device 40 includes:
该电子设备40可以包括一个或者一个以上处理核心的处理器401、一个或一个以上计算机可读存储介质的存储器402、通信部件403等部件。其中,处理器401、存储器402以及通信部件403通过总线404连接。The electronic device 40 may include a
在具体实现过程中,至少一个处理器401执行存储器402存储的计算机执行指令,使得至少一个处理器401执行如上的检测方法。In a specific implementation process, at least one
处理器401的具体实现过程可参见上述方法实施例,其实现原理和技术效果类似,本实施例此处不再赘述。For the specific implementation process of the
在上述的图4所示的实施例中,应理解,处理器可以是中央处理单元(英文:Central Processing Unit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文:Digital Signal Processor,简称:DSP)、专用集成电路(英文:Application SpecificIntegrated Circuit,简称:ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合发明所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。In the above-mentioned embodiment shown in FIG. 4, it should be understood that the processor can be a central processing unit (English: Central Processing Unit, referred to as: CPU), and can also be other general-purpose processors, digital signal processors (English: Digital Signal Processor, referred to as: DSP), application specific integrated circuit (English: Application Specific Integrated Circuit, referred to as: ASIC), etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the method disclosed in conjunction with the invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
存储器可能包含高速存储器(Random Access Memory,RAM),也可能还包括非易失性存储器(Non-volatile Memory,NVM),例如至少一个磁盘存储器。The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.
总线可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外部设备互连(Peripheral Component,PCI)总线或扩展工业标准体系结构(ExtendedIndustry Standard Architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,本申请附图中的总线并不限定仅有一根总线或一种类型的总线。The bus may be an Industry Standard Architecture (Industry Standard Architecture, ISA) bus, a Peripheral Component Interconnect (Peripheral Component, PCI) bus, or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, EISA) bus, etc. The bus can be divided into address bus, data bus, control bus and so on. For ease of representation, the buses in the drawings of the present application are not limited to only one bus or one type of bus.
在一些实施例中,还提出一种计算机程序产品,包括计算机程序或指令,该计算机程序或指令被处理器执行时实现上述任一种检测方法中的步骤。In some embodiments, a computer program product is also proposed, including a computer program or instruction, and when the computer program or instruction is executed by a processor, the steps in any one of the above detection methods are implemented.
以上各个操作的具体实施可参见前面的实施例,在此不再赘述。For the specific implementation of the above operations, reference may be made to the foregoing embodiments, and details are not repeated here.
本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过指令来完成,或通过指令控制相关的硬件来完成,该指令可以存储于一计算机可读存储介质中,并由处理器进行加载和执行。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by instructions controlling related hardware, and the instructions can be stored in a computer-readable storage medium, and is loaded and executed by the processor.
为此,本申请实施例提供一种计算机可读存储介质,其中存储有多条指令,该指令能够被处理器进行加载,以执行本申请实施例所提供的任一种检测方法中的步骤。To this end, an embodiment of the present application provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any detection method provided in the embodiments of the present application.
其中,该存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。Wherein, the storage medium may include: a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and the like.
根据本申请的一个方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。According to an aspect of the present application there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium.
由于该存储介质中所存储的指令,可以执行本申请实施例所提供的任一种检测方法中的步骤,因此,可以实现本申请实施例所提供的任一种检测方法所能实现的有益效果,详见前面的实施例,在此不再赘述。Due to the instructions stored in the storage medium, the steps in any detection method provided by the embodiments of the present application can be executed, and therefore, the beneficial effects that can be achieved by any detection method provided by the embodiments of the present application can be realized , refer to the previous embodiments for details, and will not be repeated here.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由下面的权利要求书指出。Other embodiments of the present application will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the application, these modifications, uses or adaptations follow the general principles of the application and include common knowledge or conventional technical means in the technical field not disclosed in the application . The specification and examples are to be considered exemplary only, with a true scope and spirit of the application indicated by the following claims.
应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本申请的范围仅由所附的权利要求书来限制。It should be understood that the present application is not limited to the precise constructions which have been described above and shown in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.
Claims (15)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211557884.1A CN115882944B (en) | 2022-12-06 | 2022-12-06 | Detection method, detection device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211557884.1A CN115882944B (en) | 2022-12-06 | 2022-12-06 | Detection method, detection device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115882944A true CN115882944A (en) | 2023-03-31 |
CN115882944B CN115882944B (en) | 2024-12-24 |
Family
ID=85766166
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211557884.1A Active CN115882944B (en) | 2022-12-06 | 2022-12-06 | Detection method, detection device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115882944B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN119519826A (en) * | 2025-01-22 | 2025-02-25 | 深圳市澜潮科技有限公司 | A method and system for automatic switching of communication links in a smart grid |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1601930A (en) * | 2003-09-23 | 2005-03-30 | 华为技术有限公司 | A dynamic gain equalization system and method for realizing dynamic gain equalization |
US20060262709A1 (en) * | 2005-03-28 | 2006-11-23 | Hiroya Kakimoto | Optical information recording apparatus, optical information recording method, and signal processing circuit |
CN108964976A (en) * | 2018-05-31 | 2018-12-07 | 华为技术有限公司 | A kind of alarm prompt method and warning instruction device based on optical module |
CN111294112A (en) * | 2018-12-06 | 2020-06-16 | 华为技术有限公司 | A method of data acquisition and related equipment |
CN112152868A (en) * | 2019-06-28 | 2020-12-29 | 北京金山云网络技术有限公司 | Network fault detection method and device, electronic equipment and storage medium |
CN112367141A (en) * | 2020-10-29 | 2021-02-12 | 武汉邮电科学研究院有限公司 | Adaptive power equalization method and device for DWDM optical channel of optical fiber ring link |
CN114486124A (en) * | 2021-12-30 | 2022-05-13 | 中国电信股份有限公司 | Optical cable joint box detection system |
CN115396028A (en) * | 2022-08-25 | 2022-11-25 | 长春理工大学 | A Coupling Device for Space Laser Communication Based on Optical Power Jitter Distribution |
-
2022
- 2022-12-06 CN CN202211557884.1A patent/CN115882944B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1601930A (en) * | 2003-09-23 | 2005-03-30 | 华为技术有限公司 | A dynamic gain equalization system and method for realizing dynamic gain equalization |
US20060262709A1 (en) * | 2005-03-28 | 2006-11-23 | Hiroya Kakimoto | Optical information recording apparatus, optical information recording method, and signal processing circuit |
CN108964976A (en) * | 2018-05-31 | 2018-12-07 | 华为技术有限公司 | A kind of alarm prompt method and warning instruction device based on optical module |
CN111294112A (en) * | 2018-12-06 | 2020-06-16 | 华为技术有限公司 | A method of data acquisition and related equipment |
CN112152868A (en) * | 2019-06-28 | 2020-12-29 | 北京金山云网络技术有限公司 | Network fault detection method and device, electronic equipment and storage medium |
CN112367141A (en) * | 2020-10-29 | 2021-02-12 | 武汉邮电科学研究院有限公司 | Adaptive power equalization method and device for DWDM optical channel of optical fiber ring link |
CN114486124A (en) * | 2021-12-30 | 2022-05-13 | 中国电信股份有限公司 | Optical cable joint box detection system |
CN115396028A (en) * | 2022-08-25 | 2022-11-25 | 长春理工大学 | A Coupling Device for Space Laser Communication Based on Optical Power Jitter Distribution |
Non-Patent Citations (2)
Title |
---|
何如龙;孙强;: "免缠绕型光回波损耗测试仪在双工光纤跳线测试中的应用", 科技与创新, no. 02, 25 January 2018 (2018-01-25) * |
汪井源, 徐智勇: "自由空间光通信", 解放军理工大学学报(自然科学版), no. 05, 20 November 2002 (2002-11-20) * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN119519826A (en) * | 2025-01-22 | 2025-02-25 | 深圳市澜潮科技有限公司 | A method and system for automatic switching of communication links in a smart grid |
CN119519826B (en) * | 2025-01-22 | 2025-03-28 | 深圳市澜潮科技有限公司 | Automatic switching method and system for communication links of smart power grid |
Also Published As
Publication number | Publication date |
---|---|
CN115882944B (en) | 2024-12-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110377469B (en) | A detection system and method for a PCIE device | |
CN109120338B (en) | Network fault positioning method, device, equipment and medium | |
CN110336742B (en) | Information sending method and device, computer equipment and storage medium | |
CN109085811B (en) | Equipment point inspection method and device | |
US11153193B2 (en) | Method of and system for testing a computer network | |
CN114325534A (en) | Signal testing method, device, equipment and readable storage medium | |
CN115882944A (en) | A detection method, device, electronic equipment and storage medium | |
CN113810105A (en) | Optical fiber link detection method, network device and storage medium | |
CN115623464A (en) | Fault processing method and device for Bluetooth module of electric energy meter and electric energy meter | |
CN114070752B (en) | Test method, test device, electronic equipment and computer readable storage medium | |
CN112013505A (en) | Method and device for controlling communication compensation and air conditioner | |
WO2023275598A1 (en) | Method and apparatus for detecting and explaining anomalies | |
CN111064507A (en) | Optical fiber link length detection method, device and terminal equipment | |
CN115174437B (en) | Network connection stability detection method and system | |
CN109699041A (en) | A kind of RRU channel failure diagnosis processing method and RRU device | |
CN109586788B (en) | Monitoring system fault diagnosis method, device, computer equipment and storage medium | |
CN117880053A (en) | Method, apparatus, device, storage medium and program product for providing alarm | |
CN115022207B (en) | Network stability determination method and device, computer equipment and readable storage medium | |
CN115118357A (en) | Fault detection method and device for transceiving component and storage medium | |
CN114881180A (en) | Concrete compressive strength data management method, device, equipment and storage medium | |
CN113009246B (en) | PSE device detection device and PSE device detection method | |
JP2014103516A (en) | Packet transfer delay measuring apparatus, method and program | |
CN107426044B (en) | Serial line detection method and device and operation and maintenance server | |
CN118019037B (en) | Fault detection method and system based on mobile communication equipment | |
CN118264671B (en) | Updating method, device, equipment and storage medium of block chain network system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |