[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN115242610A - Link quality monitoring method, apparatus, electronic device and computer-readable storage medium - Google Patents

Link quality monitoring method, apparatus, electronic device and computer-readable storage medium Download PDF

Info

Publication number
CN115242610A
CN115242610A CN202210861318.3A CN202210861318A CN115242610A CN 115242610 A CN115242610 A CN 115242610A CN 202210861318 A CN202210861318 A CN 202210861318A CN 115242610 A CN115242610 A CN 115242610A
Authority
CN
China
Prior art keywords
optical power
target
analysis system
acquisition
link
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
Application number
CN202210861318.3A
Other languages
Chinese (zh)
Other versions
CN115242610B (en
Inventor
何晓明
彭巍
贺晓东
李韶英
张文彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202210861318.3A priority Critical patent/CN115242610B/en
Publication of CN115242610A publication Critical patent/CN115242610A/en
Application granted granted Critical
Publication of CN115242610B publication Critical patent/CN115242610B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • H04B10/079Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal
    • H04B10/0795Performance monitoring; Measurement of transmission parameters
    • H04B10/07955Monitoring or measuring power
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Optical Communication System (AREA)

Abstract

The disclosure provides a link quality monitoring method and device, electronic equipment and a computer readable storage medium, and relates to the technical field of communication. The link quality monitoring method comprises the following steps: the acquisition and analysis system of the target network acquires the CRC error packet quantity, the receiving optical power and the sending optical power from a target port of target network equipment of the target network; and the acquisition and analysis system analyzes the CRC packet error quantity, the receiving optical power and the sending optical power to determine the link quality of a target link corresponding to the target port. The embodiment of the disclosure can accurately detect the link quality in the target network in real time.

Description

链路质量监测方法、装置、电子设备和计算机可读存储介质Link quality monitoring method, apparatus, electronic device and computer-readable storage medium

技术领域technical field

本公开涉及通信技术领域,尤其涉及一种链路质量监测方法及装置、电子设备和计算机可读存储介质。The present disclosure relates to the field of communication technologies, and in particular, to a link quality monitoring method and apparatus, an electronic device, and a computer-readable storage medium.

背景技术Background technique

IP(Internet Protocol,网络互联协议)网络链路质量对网络传输性能起关键作用。链路质量劣化将引起传输误码增加,导致循环冗余码校验(CRC,Cyclic RedundancyCheck)错误报文增多,从而导致报文被转发设备丢弃。如果网络和业务的丢包率增加,将会影响业务服务质量。IP (Internet Protocol, Internet Protocol) network link quality plays a key role in network transmission performance. Deterioration of link quality will lead to an increase in transmission bit errors, resulting in an increase in Cyclic Redundancy Check (CRC, Cyclic RedundancyCheck) error packets, resulting in packets being discarded by the forwarding device. If the packet loss rate of the network and service increases, the service quality of the service will be affected.

传统方法采用设备异常告警文件上传日志服务器方式,当设备检测到误码越限、光模块接收/发送光功率异常时产生告警。当设备检测到误码越限或者光模块接收/发送光功率异常时将会在日志中产生告警。由于日志服务器存储海量实时和非实时冗余告警信息,难以获取真正有效的告警信息。The traditional method adopts the method of uploading the device abnormal alarm file to the log server. When the device detects that the error code exceeds the limit and the optical module receives/transmits the optical power abnormality, an alarm is generated. When the device detects that the error code exceeds the limit or the receiving/transmitting optical power of the optical module is abnormal, an alarm will be generated in the log. Since the log server stores massive real-time and non-real-time redundant alarm information, it is difficult to obtain truly effective alarm information.

因此,当网络发生故障后,通常借助于日志服务器对故障进行诊断和排查,难以通过日志服务器直接进行故障预警和故障实时定位。因此通过日志服务器监测链路质量异常的滞后效应非常明显。Therefore, when a network fault occurs, the log server is usually used to diagnose and troubleshoot the fault, and it is difficult to directly perform fault warning and real-time fault location through the log server. Therefore, the lag effect of monitoring abnormal link quality through the log server is very obvious.

需要说明的是,在上述背景技术部分公开的信息仅用于加强对本公开的背景的理解。It should be noted that the information disclosed in the above Background section is only for enhancement of understanding of the background of the present disclosure.

发明内容SUMMARY OF THE INVENTION

本公开的目的在于提供一种链路质量监测方法、装置、电子设备以及计算机可读存储介质,可以实现链路质量的实时精准监测。The purpose of the present disclosure is to provide a link quality monitoring method, apparatus, electronic device, and computer-readable storage medium, which can realize real-time accurate monitoring of link quality.

本公开的其他特性和优点将通过下面的详细描述变得显然,或部分地通过本公开的实践而习得。Other features and advantages of the present disclosure will become apparent from the following detailed description, or be learned in part by practice of the present disclosure.

本公开实施例提供了一种链路质量监测方法,包括:目标网络的采集与分析系统从目标网络的目标网络设备的目标端口采集CRC错包数量、接收光功率和发送光功率;所述采集与分析系统对所述CRC错包数量、所述接收光功率和所述发送光功率进行分析,以确定所述目标端口对应的目标链路的链路质量。An embodiment of the present disclosure provides a link quality monitoring method, including: a collection and analysis system of a target network collects the number of CRC error packets, received optical power, and transmitted optical power from a target port of a target network device of the target network; the collection and the analysis system analyzes the number of CRC error packets, the received optical power and the transmitted optical power to determine the link quality of the target link corresponding to the target port.

在一些实施例中,所述采集与分析系统对所述CRC错包数量、所述接收光功率和所述发送光功率进行分析,以确定所述目标端口对应的目标链路的链路质量,包括:所述采集与分析系统对所述CRC错包数量进行分析,确定所述CRC错包数量没有超出第一阈值但所述CRC错包数量呈现逐渐增加的趋势;所述采集与分析系统对所述接收光功率进行分析,确定所述接收光功率偏离第一正常范围;所述采集与分析系统确定所述目标端口对应的目标链路出现链路异常,且所述链路异常是由所述目标网络中的光模块导致的。In some embodiments, the collection and analysis system analyzes the number of CRC error packets, the received optical power and the transmitted optical power to determine the link quality of the target link corresponding to the target port, Including: the collection and analysis system analyzes the number of CRC error packets, and determines that the number of CRC error packets does not exceed the first threshold, but the number of CRC error packets shows a trend of increasing gradually; The received optical power is analyzed to determine that the received optical power deviates from the first normal range; the acquisition and analysis system determines that the target link corresponding to the target port has a link abnormality, and the link abnormality is caused by the caused by the optical module in the target network.

在一些实施例中,所述采集与分析系统对所述CRC错包数量、所述接收光功率和所述发送光功率进行分析,以确定所述目标端口对应的目标链路的链路质量,包括:所述采集与分析系统对所述CRC错包数量进行分析,确定所述CRC错包数量超出第一阈值的频率大于第二阈值;所述采集与分析系统对所述接收光功率进行分析,确定所述接收光功率超出第一正常范围的频率大于第三阈值;所述采集与分析系统确定所述目标端口对应的目标链路出现链路异常,且所述链路异常是由所述目标网络中的光模块导致的。In some embodiments, the collection and analysis system analyzes the number of CRC error packets, the received optical power and the transmitted optical power to determine the link quality of the target link corresponding to the target port, Including: the collection and analysis system analyzes the number of CRC error packets, and determines that the frequency at which the number of CRC error packets exceeds a first threshold is greater than a second threshold; the collection and analysis system analyzes the received optical power , determine that the frequency at which the received optical power exceeds the first normal range is greater than the third threshold; the acquisition and analysis system determines that the target link corresponding to the target port has a link abnormality, and the link abnormality is caused by the Caused by the optical module in the target network.

在一些实施例中,所述采集与分析系统对所述CRC错包数量、所述接收光功率和所述发送光功率进行分析,以确定所述目标端口对应的目标链路的链路质量,包括:所述采集与分析系统对所述CRC错包数量进行分析,确定所述CRC错包数量没有超出第一阈值且所述CRC错包数量呈现逐渐增加的趋势;所述采集与分析系统对所述接收光功率进行分析,确定所述接收光功率在第一正常范围内;所述采集与分析系统确定所述目标端口对应的目标链路出现链路异常,且所述链路异常是由所述目标端口配置不当或者所述目标端口接触不良导致的。In some embodiments, the collection and analysis system analyzes the number of CRC error packets, the received optical power and the transmitted optical power to determine the link quality of the target link corresponding to the target port, Including: the collection and analysis system analyzes the number of CRC error packets, and determines that the number of CRC error packets does not exceed a first threshold and the number of CRC error packets shows a gradually increasing trend; The received optical power is analyzed to determine that the received optical power is within the first normal range; the acquisition and analysis system determines that the target link corresponding to the target port has a link abnormality, and the link abnormality is caused by The target port is improperly configured or the target port is in poor contact.

在一些实施例中,所述采集与分析系统对所述CRC错包数量、所述接收光功率和所述发送光功率进行分析,以确定所述目标端口对应的目标链路的链路质量,包括:所述采集与分析系统对所述接收光功率进行分析,确定所述接收光功率超出第一正常范围的频率大于第四阈值;所述采集与分析系统对所述CRC错包数量进行分析,确定所述CRC错包数量没有超出第一阈值且所述CRC错包数量呈现逐渐增加的趋势;所述采集与分析系统确定所述目标端口对应的目标链路出现链路异常,且所述链路异常是由所述目标网络的光模块导致的。In some embodiments, the collection and analysis system analyzes the number of CRC error packets, the received optical power and the transmitted optical power to determine the link quality of the target link corresponding to the target port, Including: the collection and analysis system analyzes the received optical power, and determines that the frequency at which the received optical power exceeds the first normal range is greater than a fourth threshold; the collection and analysis system analyzes the number of CRC error packets , determine that the number of CRC error packets does not exceed the first threshold and the number of CRC error packets shows a trend of gradually increasing; the collection and analysis system determines that the target link corresponding to the target port has a link abnormality, and the The link abnormality is caused by the optical module of the target network.

在一些实施例中,所述采集与分析系统对所述CRC错包数量、所述接收光功率和所述发送光功率进行分析,以确定所述目标端口对应的目标链路质量,包括:所述采集与分析系统对所述发送光功率进行分析,确定所述接收光功率超出第二正常范围;所述采集与分析系统确定所述发送光功率影响所述目标端口的对端接收端口对数据的接收。In some embodiments, the collection and analysis system analyzes the number of CRC error packets, the received optical power, and the transmitted optical power to determine the target link quality corresponding to the target port, including: The acquisition and analysis system analyzes the transmitted optical power, and determines that the received optical power exceeds the second normal range; the acquisition and analysis system determines that the transmitted optical power affects the data of the opposite receiving port of the target port. reception.

在一些实施例中,在目标网络的采集与分析系统从目标网络的目标网络设备的目标端口采集CRC错包数量、接收光功率和发送光功率之前,所述方法还包括:所述目标端口向所述目标网络的采集与分析系统周期性上报所述CRC错包数量、所述接收光功率和所述发送光功率;其中,所述目标端口还支持冗余抑制功能以便在所述CRC错包数量或者所述接收光功率或者所述发送光功率发生变化时向所述采集与分析系统上报数据、在所述CRC错包数量或者所述接收光功率或者所述发送光功率均未发生变化时不向所述采集与分析系统上报数据。In some embodiments, before the collection and analysis system of the target network collects the number of CRC error packets, the received optical power and the transmitted optical power from the target port of the target network device of the target network, the method further includes: the target port sends a The collection and analysis system of the target network periodically reports the number of CRC error packets, the received optical power, and the transmitted optical power; wherein, the target port also supports a redundancy suppression function to prevent the CRC error packets from occurring. When the number or the received optical power or the transmitted optical power changes, report data to the acquisition and analysis system, when the number of CRC error packets or the received optical power or the transmitted optical power does not change No data is reported to the collection and analysis system.

在一些实施例中,在目标网络的采集与分析系统从目标网络的目标网络设备的目标端口采集CRC错包数量、接收光功率和发送光功率之前,所述方法还包括:所述目标端口在所述CRC错包数量或者所述接收光功率或者所述发送光功率发生变化时向所述采集与分析系统发送所述CRC错包数量、所述接收光功率和所述发送光功率;其中,所述目标端口还支持上报抑制功能以便在抑制定时器触发时向所述采集与分析系统上报数据、在所述抑制定时器未触发时不向所述采集与分析系统上报数据。In some embodiments, before the collection and analysis system of the target network collects the number of CRC error packets, the received optical power and the transmitted optical power from the target port of the target network device of the target network, the method further includes: the target port is in When the number of CRC error packets or the received optical power or the transmitted optical power changes, the number of CRC error packets, the received optical power and the transmitted optical power are sent to the collection and analysis system; wherein, The target port also supports a report suppression function so as to report data to the collection and analysis system when the suppression timer is triggered, and not to report data to the collection and analysis system when the suppression timer is not triggered.

在一些实施例中,在目标网络的采集与分析系统从目标网络的目标网络设备的目标端口采集CRC错包数量、接收光功率和发送光功率之前,所述方法还包括:所述目标端口在所述CRC错包数量超出第一阈值或者所述接收光功率偏离第一正常范围或者所述发送光功率偏离第二正常范围时向所述采集与分析系统发送所述CRC错包数量、所述接收光功率和所述发送光功率。In some embodiments, before the collection and analysis system of the target network collects the number of CRC error packets, the received optical power and the transmitted optical power from the target port of the target network device of the target network, the method further includes: the target port is in When the number of CRC error packets exceeds the first threshold or the received optical power deviates from the first normal range or the transmitted optical power deviates from the second normal range, the number of CRC error packets, the received optical power and the transmitted optical power.

本公开实施例提供了一种链路质量监测装置,包括:数据采集模块和分析模块。An embodiment of the present disclosure provides a link quality monitoring device, including: a data acquisition module and an analysis module.

其中,所述数据采集模块用于目标网络的采集与分析系统从目标网络的目标网络设备的目标端口采集CRC错包数量、接收光功率和发送光功率;所述分析模块可以用于所述采集与分析系统对所述CRC错包数量、所述接收光功率和所述发送光功率进行分析,以确定所述目标端口对应的目标链路的链路质量。Wherein, the data collection module is used for the collection and analysis system of the target network to collect the number of CRC error packets, the received optical power and the transmitted optical power from the target port of the target network device of the target network; the analysis module can be used for the collection and the analysis system analyzes the number of CRC error packets, the received optical power and the transmitted optical power to determine the link quality of the target link corresponding to the target port.

本公开实施例提出一种电子设备,该电子设备包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现上述任一项所述的链路质量监测方法。An embodiment of the present disclosure provides an electronic device, the electronic device includes: one or more processors; and a storage device for storing one or more programs, when the one or more programs are processed by the one or more programs The processor executes, so that the one or more processors implement the link quality monitoring method described in any one of the above.

本公开实施例提出一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时实现如上述任一项所述的链路质量监测方法。An embodiment of the present disclosure provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the link quality monitoring method described in any one of the above.

本公开实施例提出一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述链路质量监测方法。Embodiments of the present disclosure provide a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above link quality monitoring method.

本公开实施例提供的链路质量监测方法、装置及电子设备和计算机可读存储介质,利用采集与分析系统实时地从目标网络的网络设备中采集端口CRC错误报文数量、接收光功率和发送光功率等实时数据,并对采集的数据进行智能化处理和分析,实现链路质量的实时精准监测。The link quality monitoring method, device, electronic device, and computer-readable storage medium provided by the embodiments of the present disclosure use a collection and analysis system to collect, in real time, the number of port CRC error packets, received optical power, and sent data from network equipment of a target network. Real-time data such as optical power, and intelligently process and analyze the collected data to achieve real-time and accurate monitoring of link quality.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary only and do not limit the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.

图1是根据一示例性实施例示出的一种链路质量监测方法的流程图。Fig. 1 is a flow chart of a method for monitoring link quality according to an exemplary embodiment.

图2是根据一示例性实施例示出的一种链路质量监测方法的流程图。Fig. 2 is a flow chart of a method for monitoring link quality according to an exemplary embodiment.

图3是根据一示例性实施例示出的一种链路质量监测方法的流程图。Fig. 3 is a flow chart of a method for monitoring link quality according to an exemplary embodiment.

图4是根据一示例性实施例示出的一种链路质量监测方法的流程图。Fig. 4 is a flow chart of a method for monitoring link quality according to an exemplary embodiment.

图5是根据一示例性实施例示出的一种链路质量监测方法的流程图。Fig. 5 is a flow chart of a method for monitoring link quality according to an exemplary embodiment.

图6是根据一示例性实施例示出的一种CRC错包数据量随时间变化的示意图。Fig. 6 is a schematic diagram showing the variation of the CRC error packet data amount with time according to an exemplary embodiment.

图7是根据一示例性实施例示出的一种光功率变化趋势示意图。Fig. 7 is a schematic diagram showing a trend of changes in optical power according to an exemplary embodiment.

图8是根据一示例性实施例示出的一种链路质量监测方法的流程图。Fig. 8 is a flow chart of a method for monitoring link quality according to an exemplary embodiment.

图9是根据一示例性实施例示出的一种链路质量监测方法的流程图。Fig. 9 is a flow chart of a method for monitoring link quality according to an exemplary embodiment.

图10是根据一示例性实施例示出的一种链路质量监测方法的流程图。Fig. 10 is a flowchart showing a method for monitoring link quality according to an exemplary embodiment.

图11是根据一示例性实施例示出的一种链路质量监测方法的流程图。Fig. 11 is a flowchart showing a method for monitoring link quality according to an exemplary embodiment.

图12是根据一示例性实施例示出的一种链路质量检测方法的示意图。Fig. 12 is a schematic diagram showing a method for detecting link quality according to an exemplary embodiment.

图13是根据一示例性实施例示出的一种链路质量显示方法的示意图。Fig. 13 is a schematic diagram showing a method for displaying link quality according to an exemplary embodiment.

图14是根据一示例性实施例示出的一种链路质量监测装置的框图。Fig. 14 is a block diagram of a link quality monitoring apparatus according to an exemplary embodiment.

图15示出了适于用来实现本公开实施例的的电子设备的结构示意图。FIG. 15 shows a schematic structural diagram of an electronic device suitable for implementing an embodiment of the present disclosure.

具体实施方式Detailed ways

现在将参考附图更全面地描述示例实施例。然而,示例实施例能够以多种形式实施,且不应被理解为限于在此阐述的实施例;相反,提供这些实施例使得本公开将全面和完整,并将示例实施例的构思全面地传达给本领域的技术人员。在图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments, however, can be embodied in various forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar parts, and thus their repeated descriptions will be omitted.

本公开所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。在下面的描述中,提供许多具体细节从而给出对本公开的实施方式的充分理解。然而,本领域技术人员将意识到,可以实践本公开的技术方案而省略特定细节中的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知方法、装置、实现或者操作以避免模糊本公开的各方面。The features, structures, or characteristics described in this disclosure may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided in order to give a thorough understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the present disclosure.

附图仅为本公开的示意性图解,图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。The accompanying drawings are merely schematic illustrations of the present disclosure, and the same reference numerals in the drawings denote the same or similar parts, and thus their repeated descriptions will be omitted. Some of the block diagrams shown in the figures do not necessarily necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.

附图中所示的流程图仅是示例性说明,不是必须包括所有的内容和步骤,也不是必须按所描述的顺序执行。例如,有的步骤还可以分解,而有的步骤可以合并或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flowcharts shown in the figures are only exemplary illustrations, and do not necessarily include all contents and steps, nor do they have to be performed in the order described. For example, some steps can be decomposed, and some steps can be combined or partially combined, so the actual execution order may be changed according to the actual situation.

在本申请的描述中,除非另有说明,“/”表示“或”的意思,例如,A/B可以表示A或B。本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。此外,“至少一个”是指一个或多个,“多个”是指两个或两个以上。“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同;用语“包含”、“包括”和“具有”用以表示开放式的包括在内的意思并且是指除了列出的要素/组成部分/等之外还可存在另外的要素/组成部分/等;In the description of this application, unless otherwise stated, "/" means "or", for example, A/B can mean A or B. In this article, "and/or" is only an association relationship to describe the associated objects, which means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone these three situations. Further, "at least one" means one or more, and "plurality" means two or more. The words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" are not necessarily different; the terms "comprising", "including" and "having" ” is used to indicate an open-ended inclusive meaning and to mean that additional elements/components/etc may be present in addition to the listed elements/components/etc;

为了能够更清楚地理解本发明的上述目的、特征和优点,下面结合附图和具体实施方式对本发明进行进一步的详细描述,需要说明的是,在不冲突的情况下,本申请的实施例及实施例中的特征可以相互组合。In order to be able to understand the above-mentioned objects, features and advantages of the present invention more clearly, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the Features in the embodiments may be combined with each other.

图1是根据一示例性实施例示出的一种链路质量监测方法的流程图。Fig. 1 is a flow chart of a method for monitoring link quality according to an exemplary embodiment.

参照图1,本公开实施例提供的链路质量监测方法可以包括以下步骤。Referring to FIG. 1 , the link quality monitoring method provided by the embodiment of the present disclosure may include the following steps.

步骤S102,目标网络的采集与分析系统从目标网络的目标网络设备的目标端口采集CRC错包数量、接收光功率和发送光功率。Step S102, the collection and analysis system of the target network collects the number of CRC error packets, the received optical power and the transmitted optical power from the target port of the target network device of the target network.

在一些实施例中,目标网络的目标网络设备会实时采集端口CRC错误报文、接收/发送光功率、阈值告警等实时数据,并向管控系统或者采集与分析系统上报。其中,目标网络设备可以是目标网络中的任意设备,例如是基站或者其他等,本公开对此不做限制。In some embodiments, the target network device of the target network collects real-time data such as port CRC error messages, received/transmitted optical power, and threshold alarms in real time, and reports them to the management and control system or the collection and analysis system. The target network device may be any device in the target network, such as a base station or others, which is not limited in the present disclosure.

上述采集与分析系统可以是目标网络中的IP网管或者管控系统等,本公开对采集与分析系统中的具体实体表现不做限制。The above collection and analysis system may be an IP network management system or a management and control system in the target network, and the present disclosure does not limit the specific entity performance in the collection and analysis system.

在一些实施例中,目标网络的管控系统或者目标网络的采集与分析系统可以从目标网络的网络设备中的端口出位置处实时地采集CRC错包数量、该端口接收到的光功率和发送的光功率。In some embodiments, the management and control system of the target network or the collection and analysis system of the target network may collect, in real time, the number of CRC error packets, the optical power received by the port, and the transmitted optical power from the outgoing position of the port in the network device of the target network. Optical power.

步骤S104,采集与分析系统对CRC错包数量、接收光功率和发送光功率进行分析,以确定目标端口对应的目标链路的链路质量。In step S104, the collection and analysis system analyzes the number of CRC error packets, the received optical power and the transmitted optical power to determine the link quality of the target link corresponding to the target port.

上述实施例可以利用采集与分析系统(或管控系统)从网络设备的端口出采集CRC错误报文数量、光接收功率和光发送功率、阈值告警等实时数据,并对采集的数据进行智能化处理和分析,实现链路质量的实时精准监测。In the above embodiment, the acquisition and analysis system (or management and control system) can be used to collect real-time data such as the number of CRC error packets, optical receive power and optical transmit power, and threshold alarms from the port of the network device, and intelligently process and analyze the collected data. Analysis to achieve real-time and accurate monitoring of link quality.

上述实施例中的网络设备会实时地采集端口CRC错误报文、接收/发送光功率、阈值告警等实时数据,并向管控系统上报。管控系统对上报的链路质量数据进行实时、智能化处理,评估和确认链路质量异常或存在质量劣化的趋势。该方法对链路质量监测的实时性强,克服了传统从日志服务器过滤和提取真实有效告警信息的局限性。The network device in the above embodiment will collect real-time data such as port CRC error message, received/sent optical power, threshold alarm, etc. in real time, and report it to the management and control system. The management and control system processes the reported link quality data in real time and intelligently, and evaluates and confirms that the link quality is abnormal or has a trend of quality deterioration. The method has strong real-time performance for link quality monitoring, and overcomes the limitation of traditionally filtering and extracting real and effective alarm information from the log server.

图2是根据一示例性实施例示出的一种链路质量监测方法的流程图。Fig. 2 is a flow chart of a method for monitoring link quality according to an exemplary embodiment.

参照图2,本公开实施例提供的链路质量监测方法可以包括以下步骤。Referring to FIG. 2 , the link quality monitoring method provided by the embodiment of the present disclosure may include the following steps.

步骤S202,目标端口向目标网络的采集与分析系统周期性上报CRC错包数量、接收光功率和发送光功率;其中,目标端口还支持冗余抑制功能以便在CRC错包数量或者接收光功率或者发送光功率发生变化时向采集与分析系统上报数据、在CRC错包数量或者接收光功率或者发送光功率均未发生变化时不向采集与分析系统上报数据。Step S202, the target port periodically reports the number of CRC error packets, the received optical power and the transmitted optical power to the collection and analysis system of the target network; wherein, the target port also supports a redundancy suppression function so that the number of CRC error packets or the received optical power or When the transmit optical power changes, it reports data to the acquisition and analysis system, and does not report data to the acquisition and analysis system when the number of CRC error packets, the received optical power, or the transmit optical power does not change.

在一些实施例中,为了减少采集上报的数据,上述过程还支持了冗余抑制功能,即在周期性上报过程中,若采集数据值没有发生变化,则不上报,但需向管控系统周期性上报心跳监测报文,表明该订阅会话保持连接状态。In some embodiments, in order to reduce the data collected and reported, the above process also supports the redundancy suppression function, that is, during the periodic reporting process, if the collected data value does not change, it will not be reported, but it needs to be periodically reported to the management and control system. A heartbeat monitoring packet is reported, indicating that the subscription session remains connected.

步骤S204,目标网络的采集与分析系统从目标网络的目标网络设备的目标端口采集CRC错包数量、接收光功率和发送光功率。Step S204, the collection and analysis system of the target network collects the number of CRC error packets, the received optical power and the transmitted optical power from the target port of the target network device of the target network.

步骤S206,采集与分析系统对CRC错包数量、接收光功率和发送光功率进行分析,以确定目标端口对应的目标链路的链路质量。Step S206, the collection and analysis system analyzes the number of CRC error packets, the received optical power and the transmitted optical power to determine the link quality of the target link corresponding to the target port.

本实施例提供的技术方案,一方面通过目标端口向目标网络的采集与分析系统周期性上报CRC错包数量、接收光功率和发送光功率,使得采集与分析系统可以实时的采集目标端口中的CRC错包数量、接收光功率和发送光功率,以便对目标链路的链路质量进行实时地判断;另一方面,还通过冗余抑制功能减少了采集上报的数据量。The technical solution provided in this embodiment, on the one hand, periodically reports the number of CRC error packets, the received optical power and the transmitted optical power to the acquisition and analysis system of the target network through the target port, so that the acquisition and analysis system can collect the data in the target port in real time. The number of CRC error packets, the received optical power and the transmitted optical power can be used to judge the link quality of the target link in real time; on the other hand, the redundancy suppression function also reduces the amount of data collected and reported.

图3是根据一示例性实施例示出的一种链路质量监测方法的流程图。Fig. 3 is a flow chart of a method for monitoring link quality according to an exemplary embodiment.

参照图3,本公开实施例提供的链路质量监测方法可以包括以下步骤。Referring to FIG. 3 , the link quality monitoring method provided by the embodiment of the present disclosure may include the following steps.

步骤S302,目标端口在CRC错包数量或者接收光功率或者发送光功率发生变化时向采集与分析系统发送CRC错包数量、接收光功率和发送光功率;其中,目标端口还支持上报抑制功能以便在抑制定时器触发时向采集与分析系统上报数据、在抑制定时器未触发时不向采集与分析系统上报数据。Step S302, the target port sends the number of CRC error packets, the received optical power and the transmitted optical power to the acquisition and analysis system when the number of CRC error packets or the received optical power or the transmitted optical power changes; wherein, the target port also supports the reporting suppression function so that Report data to the collection and analysis system when the suppression timer is triggered, and do not report data to the collection and analysis system when the suppression timer is not triggered.

在一些实施例中,为了减少因数据频繁变化而导致的过多数据量,本实施例支持上报抑制功能,即设定一个抑制定时器,定时器计时到且数据发生了改变时触发数据上报。In some embodiments, in order to reduce the excessive amount of data caused by frequent data changes, this embodiment supports a reporting suppression function, that is, a suppression timer is set, and data reporting is triggered when the timer expires and the data changes.

步骤S304,目标网络的采集与分析系统从目标网络的目标网络设备的目标端口采集CRC错包数量、接收光功率和发送光功率。Step S304, the collection and analysis system of the target network collects the number of CRC error packets, the received optical power and the transmitted optical power from the target port of the target network device of the target network.

步骤S306,采集与分析系统对CRC错包数量、接收光功率和发送光功率进行分析,以确定目标端口对应的目标链路的链路质量。In step S306, the collection and analysis system analyzes the number of CRC error packets, the received optical power and the transmitted optical power to determine the link quality of the target link corresponding to the target port.

本实施例提供的技术方案,一方面目标端口在CRC错包数量或者接收光功率或者发送光功率发生变化时向采集与分析系统发送相关数据,可以使得采集与分析系统可以实时的采集目标端口中的CRC错包数量、接收光功率和发送光功率,以便对目标链路的链路质量进行实时地判断;另一方面,通过抑制功能减少了采集上报的数据量。According to the technical solution provided in this embodiment, on the one hand, the target port sends relevant data to the acquisition and analysis system when the number of CRC error packets or the received optical power or the transmitted optical power changes, so that the acquisition and analysis system can collect data in the target port in real time. The number of CRC error packets, the received optical power and the transmitted optical power can be used to judge the link quality of the target link in real time; on the other hand, the suppression function reduces the amount of data collected and reported.

图4是根据一示例性实施例示出的一种链路质量监测方法的流程图。Fig. 4 is a flow chart of a method for monitoring link quality according to an exemplary embodiment.

参照图4,本公开实施例提供的链路质量监测方法可以包括以下步骤。Referring to FIG. 4 , the link quality monitoring method provided by the embodiment of the present disclosure may include the following steps.

步骤S402,目标端口在CRC错包数量超出第一阈值或者接收光功率偏离第一正常范围或者发送光功率偏离第二正常范围时向采集与分析系统发送CRC错包数量、接收光功率和发送光功率。Step S402, when the number of CRC error packets exceeds the first threshold or the received optical power deviates from the first normal range or the transmitted optical power deviates from the second normal range, the target port sends the number of CRC error packets, the received optical power and the transmitted optical power to the acquisition and analysis system. power.

步骤S404,目标网络的采集与分析系统从目标网络的目标网络设备的目标端口采集CRC错包数量、接收光功率和发送光功率。Step S404, the collection and analysis system of the target network collects the number of CRC error packets, the received optical power and the transmitted optical power from the target port of the target network device of the target network.

步骤S406,采集与分析系统对CRC错包数量、接收光功率和发送光功率进行分析,以确定目标端口对应的目标链路的链路质量。Step S406, the collection and analysis system analyzes the number of CRC error packets, the received optical power, and the transmitted optical power to determine the link quality of the target link corresponding to the target port.

本实施例提供的技术方案,目标端口在CRC错包数量或者接收光功率或者发送光功率达到设定阈值时向采集与分析系统发送相关数据,可以使得采集与分析系统可以实时的采集目标端口中的CRC错包数量、接收光功率和发送光功率,以便对目标链路的链路质量进行实时地判断,从而使得采集与分析系统能够及时地发现目标链路的异常情况。According to the technical solution provided in this embodiment, the target port sends relevant data to the acquisition and analysis system when the number of CRC error packets or the received optical power or the transmitted optical power reaches a set threshold, so that the acquisition and analysis system can collect the data in the target port in real time. In order to judge the link quality of the target link in real time, the acquisition and analysis system can detect the abnormal situation of the target link in time.

图5是根据一示例性实施例示出的一种链路质量监测方法的流程图。Fig. 5 is a flow chart of a method for monitoring link quality according to an exemplary embodiment.

参照图5,本公开实施例提供的链路质量监测方法可以包括以下步骤。Referring to FIG. 5 , the link quality monitoring method provided by the embodiment of the present disclosure may include the following steps.

步骤S502,目标网络的采集与分析系统从目标网络的目标网络设备的目标端口采集CRC错包数量、接收光功率和发送光功率。Step S502, the collection and analysis system of the target network collects the number of CRC error packets, the received optical power and the transmitted optical power from the target port of the target network device of the target network.

步骤S504,采集与分析系统对CRC错包数量进行分析,确定CRC错包数量没有超出第一阈值但CRC错包数量呈现逐渐增加的趋势。Step S504, the collection and analysis system analyzes the number of CRC error packets, and determines that the number of CRC error packets does not exceed the first threshold, but the number of CRC error packets shows a trend of gradually increasing.

图6是根据一示例性实施例示出的一种CRC错包数据量随时间变化的示意图。Fig. 6 is a schematic diagram showing the variation of the CRC error packet data amount with time according to an exemplary embodiment.

参考图6,通过采集与分析系统对CRC错包数据量的分析可知,CRC错包数据量在一段时间内呈现逐渐增加的趋势。Referring to FIG. 6 , it can be known from the analysis of the CRC error packet data volume by the acquisition and analysis system that the CRC error packet data volume presents a trend of increasing gradually over a period of time.

步骤S506,采集与分析系统对接收光功率进行分析,确定接收光功率偏离第一正常范围。Step S506, the collection and analysis system analyzes the received optical power, and determines that the received optical power deviates from the first normal range.

图7是根据一示例性实施例示出的一种光功率变化趋势示意图。Fig. 7 is a schematic diagram showing a trend of changes in optical power according to an exemplary embodiment.

参考图7,上述第一正常范围可以是根据设定的正常上限和正常下限确定的范围。Referring to FIG. 7 , the above-mentioned first normal range may be a range determined according to the set normal upper limit and normal lower limit.

在一些实施例中,如果采集与分析系统分析确定CRC错包数据量随着时间的变现呈现逐渐增加的趋势,那么采集与分析系统会对该目标端口的接收光功率进行分析以确定该接收光功率在该段时间内是否已经偏离了第一正常范围(如接收光功率在一段时间内已经完全低于正常下限或者高于正常上限、或者该接收光功率在一段时间内低于正常下限和高于正常上限的比例大于目标阈值)。In some embodiments, if the acquisition and analysis system analyzes and determines that the amount of CRC error packet data shows a gradually increasing trend over time, the acquisition and analysis system analyzes the received optical power of the target port to determine the received optical power. Whether the power has deviated from the first normal range within this period of time (for example, the received optical power has been completely lower than the normal lower limit or higher than the normal upper limit within a certain period of time, or the received optical power has been lower than the normal lower limit and higher for a period of time the proportion of the upper limit of normal is greater than the target threshold).

步骤S508,采集与分析系统确定目标端口对应的目标链路出现链路异常,且链路异常是由目标网络中的光模块导致的。In step S508, the acquisition and analysis system determines that the target link corresponding to the target port has a link abnormality, and the link abnormality is caused by an optical module in the target network.

在一些实施例中,如果目标端口的CRC错包数量呈现逐渐增加的趋势,且确定接收光功率偏离第一正常范围,则确定目标端口对应的目标链路出现了链路异常,且该链路异常是由目标网络中的光模块导致的。In some embodiments, if the number of CRC error packets of the target port shows a trend of gradually increasing, and it is determined that the received optical power deviates from the first normal range, it is determined that the target link corresponding to the target port has a link abnormality, and the link The exception is caused by the optical module in the target network.

在一些实施例中,对上报的CRC错包数据和光模块的接收、发送光功率数据进行关联分析,如CRC错包数量呈逐渐增加的趋势,且光模块接收光功率偏离正常范围(过强或过弱),可初步判断因光模块问题可能导致的链路质量异常趋势;In some embodiments, a correlation analysis is performed between the reported CRC error packet data and the received and transmitted optical power data of the optical module. For example, the number of CRC error packets tends to increase gradually, and the received optical power of the optical module deviates from the normal range (too strong or too weak), you can preliminarily judge the abnormal trend of link quality that may be caused by optical module problems;

本实施例提供的技术方案,不仅能够发现目标链路的异常情况,还能够通过分析确定目标链路的异常原因。The technical solution provided in this embodiment can not only discover the abnormal situation of the target link, but also determine the abnormal cause of the target link through analysis.

图8是根据一示例性实施例示出的一种链路质量监测方法的流程图。Fig. 8 is a flow chart of a method for monitoring link quality according to an exemplary embodiment.

参照图8,本公开实施例提供的链路质量监测方法可以包括以下步骤。Referring to FIG. 8 , the link quality monitoring method provided by the embodiment of the present disclosure may include the following steps.

步骤S802,目标网络的采集与分析系统从目标网络的目标网络设备的目标端口采集CRC错包数量、接收光功率和发送光功率。Step S802, the collection and analysis system of the target network collects the number of CRC error packets, the received optical power and the transmitted optical power from the target port of the target network device of the target network.

步骤S804,采集与分析系统对CRC错包数量进行分析,确定CRC错包数量超出第一阈值的频率大于第二阈值。Step S804, the collection and analysis system analyzes the number of CRC error packets, and determines that the frequency at which the number of CRC error packets exceeds the first threshold is greater than the second threshold.

在一些实施例中,采集与分析系统可以对CRC错包数量进行分析以确定CRC错包数量在目标时间段内超出第一阈值的频率,该目标时间段可以指的是数据采集之前的额一段时间。In some embodiments, the collection and analysis system may analyze the number of CRC errors to determine how often the number of CRC errors exceeds a first threshold within a target time period, which may refer to a period prior to data collection time.

步骤S806,采集与分析系统对接收光功率进行分析,确定接收光功率超出第一正常范围的频率大于第三阈值。Step S806, the collection and analysis system analyzes the received optical power, and determines that the frequency at which the received optical power exceeds the first normal range is greater than a third threshold.

在一些实施例中,如果确定CRC错包数量在目标时间段内超出第一阈值的频率大于第二阈值,则采集与分析系统会继续对接收光功率进行分析。In some embodiments, if it is determined that the frequency with which the number of CRC error packets exceeds the first threshold value within the target time period is greater than the second threshold value, the acquisition and analysis system continues to analyze the received optical power.

步骤S808,采集与分析系统确定目标端口对应的目标链路出现链路异常,且链路异常是由目标网络中的光模块导致的。Step S808, the acquisition and analysis system determines that the target link corresponding to the target port has a link abnormality, and the link abnormality is caused by an optical module in the target network.

在一些实施例中,如果确定CRC错包数量在目标时间段内超出第一阈值的频率大于第二阈值,且接收光功率超出第一正常范围的频率大于第三阈值,则确定目标端口对应的目标链路出现了异常,且该链路异常是由目标网络中的光模块导致的。In some embodiments, if it is determined that the frequency at which the number of CRC error packets exceeds the first threshold within the target time period is greater than the second threshold, and the frequency at which the received optical power exceeds the first normal range is greater than the third threshold, then determine that the target port corresponds to The target link is abnormal, and the abnormality of the link is caused by the optical module in the target network.

在一些实施例中,若频繁接收到CRC错包数据超过阈值的告警,并且频繁收到接收光功率超过门限值的告警,可基本确定因光模块问题导致的链路质量异常。In some embodiments, if an alarm that the CRC error packet data exceeds a threshold value is frequently received, and an alarm that the received optical power exceeds the threshold value is frequently received, it can be basically determined that the link quality is abnormal due to an optical module problem.

本实施例提供的技术方案,不仅能够发现目标链路的异常情况,还能够通过分析确定目标链路的异常原因。The technical solution provided in this embodiment can not only discover the abnormal situation of the target link, but also determine the abnormal cause of the target link through analysis.

图9是根据一示例性实施例示出的一种链路质量监测方法的流程图。Fig. 9 is a flow chart of a method for monitoring link quality according to an exemplary embodiment.

参照图9,本公开实施例提供的链路质量监测方法可以包括以下步骤。Referring to FIG. 9 , the link quality monitoring method provided by the embodiment of the present disclosure may include the following steps.

步骤S902,目标网络的采集与分析系统从目标网络的目标网络设备的目标端口采集CRC错包数量、接收光功率和发送光功率。Step S902, the collection and analysis system of the target network collects the number of CRC error packets, the received optical power and the transmitted optical power from the target port of the target network device of the target network.

步骤S904,采集与分析系统对CRC错包数量进行分析,确定CRC错包数量呈现逐渐增加的趋势。Step S904, the collection and analysis system analyzes the number of CRC error packets, and determines that the number of CRC error packets shows a trend of gradually increasing.

步骤S906,采集与分析系统对接收光功率进行分析,确定接收光功率在第一正常范围内。Step S906, the collection and analysis system analyzes the received optical power, and determines that the received optical power is within the first normal range.

在一些实施例中,如果采集与分析系统对CRC错包数量进行分析后,确定CRC错包数量没有超出第一阈值且CRC错包数量呈现逐渐增加的趋势,则采集与分析系统会继续对接收光功率进行分析,以确定接收光功率是否在第一正常范围内。In some embodiments, if the collection and analysis system analyzes the number of CRC error packets and determines that the number of CRC error packets does not exceed the first threshold and the number of CRC error packets shows a trend of gradually increasing, the collection and analysis system will continue to analyze the received CRC error packets. The optical power is analyzed to determine whether the received optical power is within the first normal range.

步骤S908,采集与分析系统确定目标端口对应的目标链路出现链路异常,且链路异常是由目标端口配置不当或者目标端口接触不良导致的。Step S908, the collection and analysis system determines that the target link corresponding to the target port has a link abnormality, and the link abnormality is caused by improper configuration of the target port or poor contact of the target port.

在一些实施例中,如果采集与分析系统对CRC错包数量进行分析后,确定CRC错包数量呈现逐渐增加的趋势,且该目标端口的接收光功率在第一正常范围内,则确定该目标端口对应的目标链路出现链路异常,且链路异常是由目标端口配置不当或者目标端口接触不良导致的。In some embodiments, if the acquisition and analysis system analyzes the number of CRC error packets and determines that the number of CRC error packets shows a trend of gradually increasing, and the received optical power of the target port is within the first normal range, then the target port is determined The target link corresponding to the port is abnormal, and the abnormal link is caused by improper configuration of the target port or poor contact of the target port.

在一些实施例中,若CRC错包数量呈逐渐增加的趋势,且光模块接收光功率在正常范围,可考虑端口存在不适当配置、或端口接触不良等问题,需要进一步对故障进行排查。In some embodiments, if the number of CRC error packets increases gradually, and the received optical power of the optical module is within the normal range, it may be considered that the port has problems such as improper configuration or poor port contact, and further troubleshooting is required.

本实施例提供的技术方案,不仅能够发现目标链路的异常情况,还能够通过分析确定目标链路的异常原因。The technical solution provided in this embodiment can not only discover the abnormal situation of the target link, but also determine the abnormal cause of the target link through analysis.

图10是根据一示例性实施例示出的一种链路质量监测方法的流程图。Fig. 10 is a flowchart showing a method for monitoring link quality according to an exemplary embodiment.

参照图10,本公开实施例提供的链路质量监测方法可以包括以下步骤。Referring to FIG. 10 , the link quality monitoring method provided by the embodiment of the present disclosure may include the following steps.

步骤S1002,目标网络的采集与分析系统从目标网络的目标网络设备的目标端口采集CRC错包数量、接收光功率和发送光功率。Step S1002, the acquisition and analysis system of the target network collects the number of CRC error packets, the received optical power and the transmitted optical power from the target port of the target network device of the target network.

步骤S1004,采集与分析系统对接收光功率进行分析,确定接收光功率超出第一正常范围的频率大于第四阈值。Step S1004, the collection and analysis system analyzes the received optical power, and determines that the frequency at which the received optical power exceeds the first normal range is greater than a fourth threshold.

步骤S1006,采集与分析系统对CRC错包数量进行分析,确定CRC错包数量没有超出第一阈值且CRC错包数量呈现逐渐增加的趋势。Step S1006, the collection and analysis system analyzes the number of CRC error packets, and determines that the number of CRC error packets does not exceed the first threshold and the number of CRC error packets shows a trend of gradually increasing.

步骤S1008,采集与分析系统确定目标端口对应的目标链路出现链路异常,且链路异常是由目标网络的光模块导致的。Step S1008, the collection and analysis system determines that a target link corresponding to the target port has a link abnormality, and the link abnormality is caused by an optical module of the target network.

在一些实施例中,若频繁收到接收光功率超过门限值的告警,且存在CRC错包数量呈逐渐增加的趋势,可基本确定因光模块问题导致的链路质量异常。In some embodiments, if an alarm that the received optical power exceeds the threshold is frequently received, and the number of CRC error packets tends to increase gradually, it can be basically determined that the link quality is abnormal due to a problem with the optical module.

本实施例提供的技术方案,不仅能够发现目标链路的异常情况,还能够通过分析确定目标链路的异常原因。The technical solution provided in this embodiment can not only discover the abnormal situation of the target link, but also determine the abnormal cause of the target link through analysis.

图11是根据一示例性实施例示出的一种链路质量监测方法的流程图。Fig. 11 is a flowchart showing a method for monitoring link quality according to an exemplary embodiment.

参照图11,本公开实施例提供的链路质量监测方法可以包括以下步骤。Referring to FIG. 11 , the link quality monitoring method provided by the embodiment of the present disclosure may include the following steps.

步骤S1102,目标网络的采集与分析系统从目标网络的目标网络设备的目标端口采集CRC错包数量、接收光功率和发送光功率。Step S1102, the acquisition and analysis system of the target network collects the number of CRC error packets, the received optical power and the transmitted optical power from the target port of the target network device of the target network.

步骤S1104,采集与分析系统对发送光功率进行分析,确定接收光功率超出第二正常范围。Step S1104, the collection and analysis system analyzes the transmitted optical power, and determines that the received optical power exceeds the second normal range.

步骤S1106,采集与分析系统确定发送光功率影响目标端口的对端接收端口对数据的接收。Step S1106, the acquisition and analysis system determines that the transmission optical power affects the reception of data by the opposite receiving port of the target port.

在一些实施例中,若频繁收到发送光功率超过门限的告警,则可能存在影响对端设备端口接收数据问题,需要进一步对故障进行检查。In some embodiments, if the alarm that the transmit optical power exceeds the threshold is frequently received, there may be a problem that affects the data received by the port of the peer device, and the fault needs to be further checked.

本实施例提供的技术方案,不仅能够发现目标链路的异常情况,还能够通过分析确定目标链路的异常原因。The technical solution provided in this embodiment can not only discover the abnormal situation of the target link, but also determine the abnormal cause of the target link through analysis.

图12是根据一示例性实施例示出的一种路链路质量监测方法的流程图。Fig. 12 is a flow chart of a method for monitoring road link quality according to an exemplary embodiment.

首先,采集与分析系统或者管控系统配置目标设备的目标端口反映链路质量的关键数据上报订阅,包括:CRC错包数量、光模块的接收光功率、发送光功率、CRC错包数量超过设定阈值的告警上报、光模块的接收、发送光功率超过设定门限值的告警上报。First, the acquisition and analysis system or the management and control system configure the target port of the target device to report and subscribe the key data reflecting the link quality, including: the number of CRC error packets, the received optical power of the optical module, the transmitted optical power, and the number of CRC error packets exceeding the set value. Alarm reporting of the threshold value, and alarm reporting of the optical module receiving and sending optical power exceeding the set threshold value.

上述链路质量检测方法可以包括以下步骤:The above link quality detection method may include the following steps:

步骤(一):目标设备的目标端口的设备采集数据上报方式可以采用以下任意一种或者多种方式:Step (1): The device collection data reporting method of the target port of the target device can adopt any one or more of the following methods:

(1)周期性(periodic)上报:目标端口将采集的CRC错包数量、光模块的接收光功率、发送光功率等数据向管控系统周期性上报,上报周期可配置,应支持亚秒级最小上报周期。为了减少采集上报的数据量,还应支持冗余抑制功能,即,若采集数据值没有发生变化,则不上报,但需向管控系统周期性上报心跳监测报文,表明该订阅会保持连接状态。(1) Periodic reporting: The target port will periodically report the collected data such as the number of CRC error packets, the received optical power of the optical module, and the transmitted optical power to the management and control system. The reporting period is configurable and should support sub-second minimum reporting cycle. In order to reduce the amount of data collected and reported, the redundancy suppression function should also be supported, that is, if the collected data value does not change, it will not be reported, but the heartbeat monitoring message needs to be periodically reported to the management and control system, indicating that the subscription will remain connected. .

(2)变化(on-change)上报:目标端口将采集的CRC错包数量、光模块的接收光功率、发送光功率等数据在第一次上报后,后续有数据值发生变化时才上报。为减少因数据频繁变化上报的数据量,还应支持上报抑制功能,即设定一个抑制定时器,定时器计时到时触发数据上报。(2) On-change reporting: The target port will report the data such as the number of CRC error packets, the received optical power of the optical module, and the transmitted optical power for the first time, and only when the subsequent data values change. In order to reduce the amount of data reported due to frequent data changes, the report suppression function should also be supported, that is, a suppression timer is set, and data reporting is triggered when the timer expires.

(3)阈值触发上报:预设CRC错包数量阈值、光模块的接收光功率门限值、发送光功率门限值,当采集数据达到或超过阈值时触发上报,上报频率可设置。(3) Threshold trigger reporting: preset CRC error packet number threshold, optical module receiving optical power threshold value, and transmitting optical power threshold value, trigger reporting when the collected data reaches or exceeds the threshold, and the reporting frequency can be set.

网络设备根据订阅配置及数据上报方式对上述数据进行采集和telemetry(一种监控设备性能和故障的远程数据采集技术)报文封装,并携带采集的时间戳信息以及采集节点信息,上报管控系统。The network device collects and encapsulates the above data according to the subscription configuration and data reporting method, and encapsulates the telemetry (a remote data collection technology for monitoring device performance and faults).

参考图12,可以采用周期性上报和阈值触发上报联合上报方式进行CRC错包数量、光模块的接收光功率、发送光功率等数据的上报。Referring to FIG. 12 , periodic reporting and threshold-triggered reporting can be used to report data such as the number of CRC error packets, the received optical power, and the transmitted optical power of the optical module.

步骤(二):管控系统对上报的链路质量数据进行实时智能化处理步骤包括以下至少一种方式:Step (2): The management and control system performs real-time intelligent processing on the reported link quality data. The step includes at least one of the following methods:

(1)对上报的CRC错包数据和光模块的接收、发送光功率数据进行关联分析,如CRC错包数量呈逐渐增加的趋势,且光模块接收光功率偏离正常范围(过强或过弱),如图6所示,可初步判断因光模块问题可能导致的链路质量异常趋势。(1) Correlation analysis is performed between the reported CRC error packet data and the received and transmitted optical power data of the optical module. For example, the number of CRC error packets increases gradually, and the received optical power of the optical module deviates from the normal range (too strong or too weak) , as shown in Figure 6, the abnormal trend of the link quality that may be caused by the optical module problem can be preliminarily determined.

(2)若频繁接收到CRC错包数据超过阈值的告警,并且频繁收到接收光功率超过门限值的告警,可基本确定因光模块问题导致的链路质量异常。(2) If the alarm that the CRC error packet data exceeds the threshold value is frequently received, and the alarm that the received optical power exceeds the threshold value is frequently received, the abnormal link quality caused by the optical module problem can be basically determined.

(3)若CRC错包数量呈逐渐增加的趋势,且光模块接收光功率在正常范围,可考虑端口存在不适当配置、或端口接触不良等问题,需要进一步对故障进行排查。(3) If the number of CRC error packets increases gradually, and the received optical power of the optical module is within the normal range, it can be considered that the port has problems such as improper configuration or poor port contact, and further troubleshooting is required.

(4)若频繁收到接收光功率超过门限值的告警,且存在CRC错包数量呈逐渐增加的趋势,可基本确定因光模块问题导致的链路质量异常。(4) If the alarm that the received optical power exceeds the threshold value is frequently received, and the number of CRC error packets tends to increase gradually, it can be basically determined that the link quality is abnormal due to the problem of the optical module.

(5)若频繁收到发送光功率超过门限值的告警,可能存在影响对端设备接收端口接收数据问题,需要进一步对故障进行排查。(5) If the alarm that the transmit optical power exceeds the threshold is frequently received, there may be a problem that affects the data received by the receiving port of the peer device, and further troubleshooting is required.

步骤(三):管控系统对链路质量状况的实时可视化呈现(如图13所示):Step (3): Real-time visual presentation of link quality status by the management and control system (as shown in Figure 13):

(1)当实时检测链路质量异常时,应以醒目颜色(如深红色)或者特殊形状(如星形)标注异常链路,提示重大故障。(1) When the abnormal link quality is detected in real time, the abnormal link should be marked with a striking color (such as dark red) or a special shape (such as a star) to indicate a major fault.

(2)当实时检测链路质量存在异常趋势时,应以浅颜色(如黄色)或者特征形状标注存在异常趋势链路,提示故障隐患。(2) When there is an abnormal trend in the real-time detection of link quality, the abnormal trend link should be marked with a light color (such as yellow) or a characteristic shape to indicate a potential fault.

上述实施例中的网络设备可以实时上报反映链路质量的CRC错包计数、收/发光功率数据、阈值告警信息等;由管控系统对上报的链路质量数据进行实时智能化处理和关联分析,能够实时监测链路质量状况,准确预测链路质量异常趋势,并对存在质量异常的链路可视化呈现,大幅提升了故障诊断和根因分析的效率。The network device in the above embodiment can report the CRC error packet count, the receiving/emitting power data, the threshold alarm information, etc. that reflect the link quality in real time; the management and control system performs real-time intelligent processing and correlation analysis on the reported link quality data, It can monitor the link quality status in real time, accurately predict the abnormal link quality trend, and visualize the links with abnormal quality, which greatly improves the efficiency of fault diagnosis and root cause analysis.

本实施例能够根据从网络设备获取反映链路质量的实时数据及告警信息,并由管控系统对上报的数据进行实时关联分析、智能化处理,进而评估和确定链路质量异常或异常趋势。In this embodiment, real-time data and alarm information reflecting link quality can be obtained from network devices, and the management and control system can perform real-time correlation analysis and intelligent processing on the reported data, so as to evaluate and determine abnormal link quality or abnormal trend.

基于同一发明构思,本公开实施例中还提供了一种链路质量监测装置,如下面的实施例。由于该装置实施例解决问题的原理与上述方法实施例相似,因此该装置实施例的实施可以参见上述方法实施例的实施,重复之处不再赘述。Based on the same inventive concept, the embodiments of the present disclosure also provide a link quality monitoring apparatus, such as the following embodiments. Since the principle of solving the problem in this apparatus embodiment is similar to that in the foregoing method embodiment, the implementation of this apparatus embodiment may refer to the implementation of the foregoing method embodiment, and repeated details will not be repeated.

图14是根据一示例性实施例示出的一种链路质量监测装置的框图。参照图14,本公开实施例提供的链路质量监测装置1400可以包括:数据采集模块1401和分析模块1402。Fig. 14 is a block diagram of a link quality monitoring apparatus according to an exemplary embodiment. Referring to FIG. 14 , a link quality monitoring apparatus 1400 provided by an embodiment of the present disclosure may include: a data collection module 1401 and an analysis module 1402 .

其中,数据采集模块1401可以用于通过目标网络的采集与分析系统从目标网络的目标网络设备的目标端口采集CRC错包数量、接收光功率和发送光功率;分析模块1402可以用于通过采集与分析系统对CRC错包数量、接收光功率和发送光功率进行分析,以确定目标端口对应的目标链路的链路质量。The data collection module 1401 can be used to collect the number of CRC error packets, the received optical power and the transmitted optical power from the target port of the target network device of the target network through the collection and analysis system of the target network; the analysis module 1402 can be used to collect and The analysis system analyzes the number of CRC error packets, the received optical power and the transmitted optical power to determine the link quality of the target link corresponding to the target port.

此处需要说明的是,上述数据采集模块1401、分析模块1402对应于方法实施例中的S102~S104,上述模块与对应的步骤所实现的示例和应用场景相同,但不限于上述方法实施例所公开的内容。需要说明的是,上述模块作为装置的一部分可以在诸如一组计算机可执行指令的计算机系统中执行。It should be noted here that the above data collection module 1401 and the analysis module 1402 correspond to S102 to S104 in the method embodiments, and the examples and application scenarios implemented by the above modules and the corresponding steps are the same, but are not limited to the above method embodiments. public content. It should be noted that the above-mentioned modules can be executed in a computer system such as a set of computer-executable instructions as part of an apparatus.

在一些实施例中,分析模块1402可以包括:第一错包分析单元、第一光功率分析单元和第一异常判断单元。In some embodiments, the analysis module 1402 may include: a first packet error analysis unit, a first optical power analysis unit, and a first abnormality judgment unit.

其中,第一错包分析单元可以用于采集与分析系统对CRC错包数量进行分析,确定CRC错包数量没有超出第一阈值但CRC错包数量呈现逐渐增加的趋势;第一光功率分析单元可以用于采集与分析系统对接收光功率进行分析,确定接收光功率偏离第一正常范围;第一异常判断单元可以用于采集与分析系统确定目标端口对应的目标链路出现链路异常,且链路异常是由目标网络中的光模块导致的。Wherein, the first error packet analysis unit can be used for the collection and analysis system to analyze the number of CRC error packets, and it is determined that the number of CRC error packets does not exceed the first threshold but the number of CRC error packets shows a trend of increasing gradually; the first optical power analysis unit It can be used for the collection and analysis system to analyze the received optical power and determine that the received optical power deviates from the first normal range; the first abnormality judgment unit can be used for the collection and analysis system to determine that the target link corresponding to the target port has a link abnormality, and Link exceptions are caused by optical modules in the target network.

在一些实施例中,分析模块1402可以包括:第二错包分析单元、第二光功率分析单元和第二异常判断单元。In some embodiments, the analysis module 1402 may include: a second packet error analysis unit, a second optical power analysis unit, and a second abnormality judgment unit.

其中,第二错包分析单元可以用于采集与分析系统对CRC错包数量进行分析,确定CRC错包数量超出第一阈值的频率大于第二阈值;第二光功率分析单元可以用于采集与分析系统对接收光功率进行分析,确定接收光功率超出第一正常范围的频率大于第三阈值;第二异常判断单元可以用于采集与分析系统确定目标端口对应的目标链路出现链路异常,且链路异常是由目标网络中的光模块导致的。Wherein, the second error packet analysis unit can be used for the collection and analysis system to analyze the number of CRC error packets, and determine that the frequency at which the number of CRC error packets exceeds the first threshold is greater than the second threshold; the second optical power analysis unit can be used to collect and analyze The analysis system analyzes the received optical power, and determines that the frequency at which the received optical power exceeds the first normal range is greater than the third threshold; the second abnormality judgment unit can be used to collect and analyze the system to determine that the target link corresponding to the target port has a link abnormality, And the abnormal link is caused by the optical module in the target network.

在一些实施例中,分析模块1402可以包括:第三错包分析单元、第三光功率分析单元和第三异常判断单元。In some embodiments, the analysis module 1402 may include: a third packet error analysis unit, a third optical power analysis unit, and a third abnormality judgment unit.

其中,第三错包分析单元可以用于采集与分析系统对CRC错包数量进行分析,确定CRC错包数量呈现逐渐增加的趋势;第三光功率分析单元可以用于采集与分析系统对接收光功率进行分析,确定接收光功率在第一正常范围内;第三异常判断单元可以用于采集与分析系统确定目标端口对应的目标链路出现链路异常,且链路异常是由目标端口配置不当或者目标端口接触不良导致的。Among them, the third error packet analysis unit can be used for the collection and analysis system to analyze the number of CRC error packets, and it is determined that the number of CRC error packets shows a trend of increasing gradually; the third optical power analysis unit can be used for the collection and analysis system to analyze the received light The power is analyzed to determine that the received optical power is within the first normal range; the third abnormality judgment unit can be used to collect and analyze the system to determine that the target link corresponding to the target port has a link abnormality, and the link abnormality is caused by improper configuration of the target port Or the target port is in poor contact.

在一些实施例中,第四错包分析单元、第四光功率分析单元和第四异常判断单元。In some embodiments, a fourth packet error analysis unit, a fourth optical power analysis unit, and a fourth abnormality judgment unit.

其中,第四接光功率分析单元可以用于采集与分析系统对接收光功率进行分析,确定接收光功率超出第一正常范围的频率大于第四阈值;第四错包分析单元可用于采集与分析系统对CRC错包数量进行分析,确定CRC错包数量没有超出第一阈值且CRC错包数量呈现逐渐增加的趋势;第四异常判断单元可以用于采集与分析系统确定目标端口对应的目标链路出现链路异常,且链路异常是由目标网络的光模块导致的。Wherein, the fourth receiving optical power analysis unit can be used for the collection and analysis system to analyze the received optical power, and determine that the frequency of the received optical power exceeding the first normal range is greater than the fourth threshold; the fourth error packet analysis unit can be used for collection and analysis The system analyzes the number of CRC error packets, and determines that the number of CRC error packets does not exceed the first threshold and the number of CRC error packets shows a trend of increasing gradually; the fourth abnormality judgment unit can be used to collect and analyze the target link determined by the system to correspond to the target port A link abnormality occurs, and the link abnormality is caused by the optical module of the target network.

在一些实施例中,第五光功率分析单元和第五异常判断单元。In some embodiments, a fifth optical power analysis unit and a fifth abnormality determination unit.

其中,第五光功率分析单元可以用于采集与分析系统对发送光功率进行分析,确定接收光功率超出第二正常范围;Wherein, the fifth optical power analysis unit can be used for the collection and analysis system to analyze the transmitted optical power, and determine that the received optical power exceeds the second normal range;

采集与分析系统确定发送光功率影响目标端口的对端接收端口对数据的接收。The acquisition and analysis system determines that the transmitted optical power affects the reception of data by the opposite receiving port of the target port.

在一些实施例中,链路质量监测装置还可以包括:周期性上报模块。In some embodiments, the link quality monitoring apparatus may further include: a periodic reporting module.

其中,周期性上报模块可以用于在目标网络的采集与分析系统从目标网络的目标网络设备的目标端口采集CRC错包数量、接收光功率和发送光功率之前,目标端口向目标网络的采集与分析系统周期性上报CRC错包数量、接收光功率和发送光功率;其中,目标端口还支持冗余抑制功能以便在CRC错包数量或者接收光功率或者发送光功率发生变化时向采集与分析系统上报数据、在CRC错包数量或者接收光功率或者发送光功率均未发生变化时不向采集与分析系统上报数据。Among them, the periodic reporting module can be used for the collection and analysis system of the target network to collect the number of CRC error packets, the received optical power and the transmitted optical power from the target port of the target network device of the target network. The analysis system periodically reports the number of CRC error packets, received optical power, and transmitted optical power; among them, the target port also supports the redundancy suppression function so as to report to the acquisition and analysis system when the number of CRC error packets or the received optical power or the transmitted optical power changes. Report data, and do not report data to the acquisition and analysis system when the number of CRC error packets or the received optical power or the transmitted optical power has not changed.

在一些实施例中,链路质量监测装置还可以包括:变化上报模块。In some embodiments, the link quality monitoring apparatus may further include: a change reporting module.

其中,变化上报模块可以用于在目标网络的采集与分析系统从目标网络的目标网络设备的目标端口采集CRC错包数量、接收光功率和发送光功率之前,目标端口在CRC错包数量或者接收光功率或者发送光功率发生变化时向采集与分析系统发送CRC错包数量、接收光功率和发送光功率;其中,目标端口还支持上报抑制功能以便在抑制定时器触发时向采集与分析系统上报数据、在抑制定时器未触发时不向采集与分析系统上报数据。Among them, the change reporting module can be used to collect the number of CRC error packets, the received optical power and the transmitted optical power from the target port of the target network device of the target network before the acquisition and analysis system of the target network collects the number of CRC error packets, the received optical power and the transmitted optical power. When the optical power or the transmitted optical power changes, the number of CRC error packets, the received optical power and the transmitted optical power are sent to the acquisition and analysis system; the target port also supports the report suppression function to report to the acquisition and analysis system when the suppression timer is triggered data, and do not report data to the acquisition and analysis system when the suppression timer is not triggered.

在一些实施例中,链路质量监测装置还可以包括:阈值触发上报模块。In some embodiments, the link quality monitoring apparatus may further include: a threshold trigger reporting module.

其中,阈值触发上报模块可以用于在目标网络的采集与分析系统从目标网络的目标网络设备的目标端口采集CRC错包数量、接收光功率和发送光功率之前,目标端口在CRC错包数量超出第一阈值或者接收光功率偏离第一正常范围或者发送光功率偏离第二正常范围时向采集与分析系统发送CRC错包数量、接收光功率和发送光功率。The threshold trigger reporting module can be used to collect the number of CRC error packets, the received optical power and the transmitted optical power from the target port of the target network device in the target network acquisition and analysis system. When the first threshold value or the received optical power deviates from the first normal range or the transmitted optical power deviates from the second normal range, the number of CRC error packets, the received optical power and the transmitted optical power are sent to the acquisition and analysis system.

由于装置1400的各功能已在其对应的方法实施例中予以详细说明,本公开于此不再赘述。Since the functions of the apparatus 1400 have been described in detail in the corresponding method embodiments, the present disclosure will not repeat them here.

描述于本申请实施例中所涉及到的模块/或单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的模块/或单元也可以设置在处理器中。其中,这些模块/或单元的名称在某种情况下并不构成对该模块/或单元本身的限定。The modules and/or units involved in the embodiments of the present application may be implemented in a software manner, and may also be implemented in a hardware manner. The described modules and/or units may also be provided in a processor. Wherein, the names of these modules/or units do not constitute limitations on the modules/or units themselves under certain circumstances.

附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations, can be implemented in special purpose hardware-based systems that perform the specified functions or operations, or can be implemented using A combination of dedicated hardware and computer instructions is implemented.

此外,上述附图仅是根据本公开示例性实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。In addition, the above-mentioned figures are merely schematic illustrations of the processes included in the methods according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the chronological order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, in multiple modules.

图15示出了适于用来实现本公开实施例的的电子设备的结构示意图。需要说明的是,图15示出的电子设备1500仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。FIG. 15 shows a schematic structural diagram of an electronic device suitable for implementing an embodiment of the present disclosure. It should be noted that the electronic device 1500 shown in FIG. 15 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.

如图15所示,电子设备1500包括中央处理单元(CPU)1501,其可以根据存储在只读存储器(ROM)1502中的程序或者从储存部分1508加载到随机访问存储器(RAM)1503中的程序而执行各种适当的动作和处理。在RAM 1503中,还存储有电子设备1500操作所需的各种程序和数据。CPU 1501、ROM 1502以及RAM 1503通过总线1504彼此相连。输入/输出(I/O)接口1505也连接至总线1504。As shown in FIG. 15 , the electronic device 1500 includes a central processing unit (CPU) 1501 that can be loaded into a random access memory (RAM) 1503 according to a program stored in a read only memory (ROM) 1502 or a program from a storage section 1508 Instead, various appropriate actions and processes are performed. In the RAM 1503, various programs and data necessary for the operation of the electronic device 1500 are also stored. The CPU 1501 , the ROM 1502 , and the RAM 1503 are connected to each other through a bus 1504 . An input/output (I/O) interface 1505 is also connected to bus 1504 .

以下部件连接至I/O接口1505:包括键盘、鼠标等的输入部分1506;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分1507;包括硬盘等的储存部分1508;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分1509。通信部分1509经由诸如因特网的网络执行通信处理。驱动器1510也根据需要连接至I/O接口1505。可拆卸介质1511,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器1510上,以便于从其上读出的计算机程序根据需要被安装入储存部分1508。The following components are connected to the I/O interface 1505: an input section 1506 including a keyboard, a mouse, etc.; an output section 1507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1508 including a hard disk, etc. ; and a communication section 1509 including a network interface card such as a LAN card, a modem, and the like. The communication section 1509 performs communication processing via a network such as the Internet. Drivers 1510 are also connected to I/O interface 1505 as needed. A removable medium 1511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 1510 as needed so that a computer program read therefrom is installed into the storage section 1508 as needed.

特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读存储介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分1509从网络上被下载和安装,和/或从可拆卸介质1511被安装。在该计算机程序被中央处理单元(CPU)1501执行时,执行本申请的系统中限定的上述功能。In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable storage medium, the computer program containing program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network via the communication portion 1509, and/or installed from the removable medium 1511. When the computer program is executed by the central processing unit (CPU) 1501, the above-described functions defined in the system of the present application are executed.

需要说明的是,本公开所示的计算机可读存储介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读存储介质,该计算机可读存储介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读存储介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the computer-readable storage medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this application, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable storage medium other than a computer-readable storage medium that can be sent, propagated, or transmitted for use by or in connection with the instruction execution system, apparatus, or device program of. Program code embodied on a computer-readable storage medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

作为另一方面,本申请还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施例中描述的设备中所包含的;也可以是单独存在,而未装配入该设备中。上述计算机可读存储介质承载有一个或者多个程序,当上述一个或者多个程序被一个该设备执行时,使得该设备可实现功能包括:目标网络的采集与分析系统从目标网络的目标网络设备的目标端口采集CRC错包数量、接收光功率和发送光功率;采集与分析系统对CRC错包数量、接收光功率和发送光功率进行分析,以确定目标端口对应的目标链路的链路质量。As another aspect, the present application also provides a computer-readable storage medium. The computer-readable storage medium may be included in the device described in the above embodiments; it may also exist alone without being assembled into the device. middle. The above-mentioned computer-readable storage medium carries one or more programs, and when the above-mentioned one or more programs are executed by a device, the device can realize the functions including: the acquisition and analysis system of the target network from the target network device of the target network The target port collects the number of CRC error packets, the received optical power and the transmitted optical power; the collection and analysis system analyzes the number of CRC error packets, the received optical power and the transmitted optical power to determine the link quality of the target link corresponding to the target port .

根据本申请的一个方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述实施例的各种可选实现方式中提供的方法。According to one 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. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the methods provided in various optional implementations of the above-described embodiments.

通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,本公开实施例的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中,包括若干指令用以使得一台计算设备(可以是个人计算机、服务器、移动终端、或者智能设备等)执行根据本公开实施例的方法,例如图1~图5、图8~图11中的一个或多个所示的步骤。From the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, the technical solutions of the embodiments of the present disclosure may be embodied in the form of software products, and the software products may be stored in a non-volatile storage medium (which may be CD-ROM, U disk, mobile hard disk, etc.), including several instructions To make a computing device (which may be a personal computer, a server, a mobile terminal, or a smart device, etc.) to execute the method according to the embodiment of the present disclosure, for example, one or more of FIGS. 1 to 5 and 8 to 11 steps shown.

本领域技术人员在考虑说明书及实践在这里公开的公开后,将容易想到本公开的其他实施例。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未申请的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由权利要求指出。Other embodiments of the present disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common general knowledge or techniques in the technical field to which this disclosure is not claimed . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the claims.

应当理解的是,本公开并不限于这里已经示出的详细结构、附图方式或实现方法,相反,本公开意图涵盖包含在所附权利要求的精神和范围内的各种修改和等效设置。It should be understood that the present disclosure is not limited to the detailed structures, drawings, or implementations shown herein, but on the contrary, the present disclosure is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims .

Claims (13)

1. A method for link quality monitoring, comprising:
the acquisition and analysis system of the target network acquires the CRC error packet quantity, the receiving optical power and the sending optical power from a target port of target network equipment of the target network;
and the acquisition and analysis system analyzes the CRC packet error quantity, the receiving optical power and the sending optical power to determine the link quality of a target link corresponding to the target port.
2. The method of claim 1, wherein the analyzing the CRC error number, the received optical power, and the transmitted optical power data by the collecting and analyzing system to determine the link quality of the target link corresponding to the target port comprises:
the acquisition and analysis system analyzes the CRC packet error amount, and determines that the CRC packet error amount does not exceed a first threshold but shows a gradually increasing trend;
the acquisition and analysis system analyzes the received optical power and determines that the received optical power deviates from a first normal range;
and the acquisition and analysis system determines that a link abnormity occurs in a target link corresponding to the target port, and the link abnormity is caused by an optical module in the target network.
3. The method of claim 1, wherein the analyzing the CRC error number, the received optical power, and the transmitted optical power data by the collecting and analyzing system to determine the link quality of the target link corresponding to the target port comprises:
the acquisition and analysis system analyzes the CRC packet error quantity and determines that the frequency of the CRC packet error quantity exceeding a first threshold is greater than a second threshold;
the acquisition and analysis system analyzes the received optical power and determines that the frequency of the received optical power exceeding a first normal range is greater than a third threshold;
and the acquisition and analysis system determines that a link abnormity occurs in a target link corresponding to the target port, and the link abnormity is caused by an optical module in the target network.
4. The method of claim 1, wherein the analyzing the CRC error number, the received optical power, and the transmitted optical power data by the collecting and analyzing system to determine the link quality of the target link corresponding to the target port comprises:
the acquisition and analysis system analyzes the CRC packet error amount and determines that the CRC packet error amount shows a gradually increasing trend;
the acquisition and analysis system analyzes the received optical power and determines that the received optical power is in a first normal range;
the acquisition and analysis system determines that a link abnormality occurs in a target link corresponding to the target port, and the link abnormality is caused by improper configuration of the target port or poor contact of the target port.
5. The method of claim 1, wherein the analyzing the CRC error number, the received optical power, and the transmitted optical power data by the collecting and analyzing system to determine the link quality of the target link corresponding to the target port comprises:
the acquisition and analysis system analyzes the received optical power and determines that the frequency of the received optical power exceeding a first normal range is greater than a fourth threshold;
the acquisition and analysis system analyzes the CRC packet error quantity, and determines that the CRC packet error quantity does not exceed a first threshold and the CRC packet error quantity shows a gradually increasing trend;
and the acquisition and analysis system determines that a link abnormity occurs in a target link corresponding to the target port, and the link abnormity is caused by an optical module of the target network.
6. The method of claim 1, wherein the analyzing the CRC error number, the received optical power, and the transmitted optical power by the collecting and analyzing system to determine the target link quality corresponding to the target port comprises:
the acquisition and analysis system analyzes the transmitted optical power and determines that the transmitted optical power exceeds a second normal range;
and the acquisition and analysis system determines that the sending light power influences the receiving of the opposite end receiving port of the target port on the data.
7. The method of claim 1, wherein the collecting and analyzing system of the target network collects the number of CRC error packets, the received optical power, and the transmitted optical power from the target port of the target network device of the target network, comprising:
the target port reports the CRC error packet number, the receiving optical power and the sending optical power to an acquisition and analysis system of the target network periodically;
the target port further supports a redundancy suppression function so as to report data to the acquisition and analysis system when the number of CRC error packets or the received optical power or the transmitted optical power changes, and not report data to the acquisition and analysis system when neither the number of CRC error packets or the received optical power nor the transmitted optical power changes.
8. The method of claim 1, wherein the collecting and analyzing system of the target network collects the number of CRC error packets, the received optical power and the transmitted optical power from the target port of the target network device of the target network, comprising:
when the CRC error packet number or the receiving optical power or the transmitting optical power changes, the target port reports the CRC error packet number, the receiving optical power and the transmitting optical power data to the acquisition and analysis system;
the target port further supports a report suppression function so as to report data to the acquisition and analysis system when a suppression timer is triggered and not report data to the acquisition and analysis system when the suppression timer is not triggered.
9. The method of claim 1, wherein the collecting and analyzing system of the target network collects the number of CRC error packets, the received optical power, and the transmitted optical power from the target port of the target network device of the target network, comprising:
and the target port reports the CRC error packet number, the receiving optical power and the transmitting optical power data to the acquisition and analysis system when the CRC error packet number exceeds a first threshold value, or the receiving optical power deviates from a first normal range, or the transmitting optical power deviates from a second normal range.
10. A method as claimed in claim 7, 8 or 9, wherein the collecting and analyzing system of the target network collects the number of CRC error packets, the received optical power and the transmitted optical power from the target port of the target network device of the target network, comprising:
and the target network equipment performs message packaging on the acquired data and carries acquisition timestamp information and acquisition node information.
11. A link quality monitoring apparatus, comprising:
the data acquisition module is used for acquiring the CRC error packet quantity, the receiving optical power and the sending optical power from a target port of target network equipment of a target network by an acquisition and analysis system of the target network;
and the analysis module is used for analyzing the CRC packet error number, the receiving optical power and the sending optical power by the acquisition and analysis system so as to determine the link quality of a target link corresponding to the target port.
12. An electronic device, comprising:
a memory; and
a processor coupled to the memory, the processor being configured to perform the link quality monitoring method of any of claims 1-9 based on instructions stored in the memory.
13. A computer-readable storage medium, on which a program is stored which, when executed by a processor, implements the link quality monitoring method according to any one of claims 1 to 10.
CN202210861318.3A 2022-07-20 2022-07-20 Link quality monitoring method, device, electronic equipment and computer readable storage medium Active CN115242610B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210861318.3A CN115242610B (en) 2022-07-20 2022-07-20 Link quality monitoring method, device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210861318.3A CN115242610B (en) 2022-07-20 2022-07-20 Link quality monitoring method, device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN115242610A true CN115242610A (en) 2022-10-25
CN115242610B CN115242610B (en) 2025-01-14

Family

ID=83676226

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210861318.3A Active CN115242610B (en) 2022-07-20 2022-07-20 Link quality monitoring method, device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115242610B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116436825A (en) * 2022-10-27 2023-07-14 中国电信股份有限公司 Packet loss processing method and system and network equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101682425A (en) * 2007-06-05 2010-03-24 思科技术公司 Optical link quality monitoring in a computer network
US20120008506A1 (en) * 2010-07-12 2012-01-12 International Business Machines Corporation Detecting intermittent network link failures
CN105337664A (en) * 2015-12-08 2016-02-17 国网浙江省电力公司绍兴供电公司 Novel Ethernet communication circuit monitoring device
CN105763251A (en) * 2016-04-19 2016-07-13 广东睿江云计算股份有限公司 Optical fibre link quality monitoring method and apparatus
CN110365406A (en) * 2019-07-16 2019-10-22 中国联合网络通信集团有限公司 IP network optical port method of evaluating performance and equipment
CN113595833A (en) * 2021-08-05 2021-11-02 中国工商银行股份有限公司 CRC exception handling method and system
CN113810105A (en) * 2020-06-15 2021-12-17 中兴通讯股份有限公司 Optical fiber link detection method, network device and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101682425A (en) * 2007-06-05 2010-03-24 思科技术公司 Optical link quality monitoring in a computer network
US20120008506A1 (en) * 2010-07-12 2012-01-12 International Business Machines Corporation Detecting intermittent network link failures
CN105337664A (en) * 2015-12-08 2016-02-17 国网浙江省电力公司绍兴供电公司 Novel Ethernet communication circuit monitoring device
CN105763251A (en) * 2016-04-19 2016-07-13 广东睿江云计算股份有限公司 Optical fibre link quality monitoring method and apparatus
CN110365406A (en) * 2019-07-16 2019-10-22 中国联合网络通信集团有限公司 IP network optical port method of evaluating performance and equipment
CN113810105A (en) * 2020-06-15 2021-12-17 中兴通讯股份有限公司 Optical fiber link detection method, network device and storage medium
CN113595833A (en) * 2021-08-05 2021-11-02 中国工商银行股份有限公司 CRC exception handling method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116436825A (en) * 2022-10-27 2023-07-14 中国电信股份有限公司 Packet loss processing method and system and network equipment
CN116436825B (en) * 2022-10-27 2025-02-14 中国电信股份有限公司 Packet loss processing method and system, and network device

Also Published As

Publication number Publication date
CN115242610B (en) 2025-01-14

Similar Documents

Publication Publication Date Title
US7640460B2 (en) Detect user-perceived faults using packet traces in enterprise networks
CN107294808B (en) Interface test method, device and system
RU2571568C2 (en) Method and apparatus for remote fault location in wireless network
CN112422344A (en) Log abnormity warning method and device, storage medium and electronic device
US20170187602A1 (en) System and method of troubleshooting network source inefficiency
JP2004528648A (en) Automatic detection of limiting factor in TCP connection
JP6097889B2 (en) Monitoring system, monitoring device, and inspection device
CN109274513A (en) Data processing method, device and computer readable storage medium
CN105263155B (en) The method and system of remote real time monitoring intelligent mobile terminal baseband processor operating status
CN111130912B (en) Abnormal location method, server and storage medium for content distribution network
CN104979908A (en) Substation network online failure analysis method
CN112134754A (en) Pressure testing method and device, network equipment and storage medium
CN115242610A (en) Link quality monitoring method, apparatus, electronic device and computer-readable storage medium
CN103036707B (en) Portable IPTV service service quality diagnostic device and diagnostic method
CN116204386B (en) Method, system, medium and equipment for automatically identifying and monitoring application service relationship
TW201929491A (en) Broadband subscriber lines malfunction testing system
CN116471214A (en) A method and system for monitoring electric power communication data
CN114172796B (en) Fault positioning method and related device for communication network
CN110753363A (en) Intelligent device wireless debugging system and method
CN105337664A (en) Novel Ethernet communication circuit monitoring device
CN115883328A (en) Big data cluster fault analysis method, device, equipment, medium and product
CN113064890A (en) Quality evaluation method, device, server and medium for operator data
CN112347140A (en) Industrial big data oriented data processing method and system
CN117255005B (en) CDN-based service alarm processing method, device, equipment and medium
CN118827393A (en) eBPF-based application observation link topology construction method and related equipment

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