Link quality detection method, apparatus, device, storage medium, and program product

By configuring multicast protocols and generating detection multicast streams, monitoring and comparing network device logs, the accuracy and efficiency issues of link quality detection are resolved, enabling rapid location and identification of poor link quality.

CN118802633BActive Publication Date: 2025-11-21HANDAN BRANCH OF CHINA MOBILE GRP HEBEI COMPANYLIMITED +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410590920.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-13
Publication Date
2025-11-21
Estimated Expiration
2044-05-13

AI Technical Summary

Technical Problem

In existing technologies, link quality testing is difficult to achieve accurate detection and location of quality across the entire link. Probe testing and manual inspection are inefficient and cannot meet the high sensitivity requirements of operator networks.

Method used

By configuring the multicast protocol, multiple detection multicast streams are generated and forwarded to all Member links of each target Trunk link. The transmission quality of each detection multicast stream is monitored, and the monitoring results are compared with the target network device logs to determine the port that has failed.

Benefits of technology

It enables accurate identification and rapid location of subtle quality defects across the entire link, meeting the network quality requirements of industrial internet and ultra-high-definition video, and reducing troubleshooting time and workload.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802633B_ABST
    Figure CN118802633B_ABST
Patent Text Reader

Abstract

The application provides a link quality detection method, device, equipment, storage medium and program product, and belongs to the technical field of communication, wherein the method comprises the following steps: configuring a multicast protocol, configuring parameters, a forwarding path and load sharing rules of a detection multicast flow, so that the detection multicast flow can be distributed among Member links of each target Trunk link according to the load sharing rules; generating multiple detection multicast flows, forwarding corresponding detection multicast flows to all Member links of each target Trunk link, monitoring the transmission quality of each detection multicast flow, and obtaining a monitoring result, wherein the monitoring result comprises a mapping relationship between each detection multicast flow and each Member link; obtaining a target network device log, comparing the monitoring result with the target network device log, and determining a faulty port. The application can realize accurate identification and rapid positioning of slight differences in the whole link.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of communication, and in particular to a link quality detection method, device, equipment, storage medium and program product. BACKGROUND

[0002] With the vigorous development and wide application of Internet technology, the amount of data transmitted by network transmission link in unit time is rapidly increasing, and the time sensitivity is greatly improved. It is very important to detect the link quality. In the prior art, the link quality is detected by probe dialing or manual checking, which is difficult to detect the whole link quality, and the accuracy and efficiency of detection and positioning are low. SUMMARY

[0003] The present application provides a link quality detection method, device, equipment, storage medium and program product to solve the defects that the link quality is detected by probe dialing or manual checking in the prior art, which is difficult to detect the whole link quality, and the accuracy and efficiency of detection and positioning are low.

[0004] In a first aspect, the present application provides a link quality detection method, comprising:

[0005] Configuring a multicast protocol, configuring parameters, forwarding paths and load sharing rules of detection multicast streams, so that the detection multicast streams can be distributed among the Member links of each target Trunk link according to the load sharing rules;

[0006] Generating multiple detection multicast streams, forwarding the corresponding detection multicast streams to all Member links of the target Trunk link, monitoring the transmission quality of each detection multicast stream, and obtaining a monitoring result, wherein the monitoring result includes the mapping relationship between each detection multicast stream and each Member link;

[0007] Obtaining a target network device log, comparing the monitoring result with the target network device log, and determining the faulty port.

[0008] In some embodiments, the comparison of the monitoring result with the target network device log to determine the faulty port comprises:

[0009] Based on the monitoring result, determining a target detection multicast stream with poor quality;

[0010] Determining a target time when the target detection multicast stream has poor quality, and obtaining a log of the target network device corresponding to the target detection multicast stream at the target time;

[0011] The monitoring result of the target detection multicast stream at the target time is compared with the log of the target network device corresponding to the target detection multicast stream at the target time, a mapping relationship between the target detection multicast stream and the target Member link is constructed, and the faulty port is determined.

[0012] In some embodiments, the parameters of the detection multicast stream include a code rate and network information, and the network information includes a destination Internet Protocol (IP) and a destination port; and the load sharing rule includes flow-based load sharing.

[0013] In some embodiments, the parameters, the forwarding path, and the load sharing rule of the detection multicast stream are configured by:

[0014] The parameters of the detection multicast stream are configured, and a corresponding multicast group is configured for each target Trunk link.

[0015] The ports of each network device of the target network to be detected are enabled and disabled for Protocol-Independent Multicast (PIM) to enable the detection multicast stream to cover each target Trunk link.

[0016] The load sharing rule is configured on the ports of each network device.

[0017] In some embodiments, the multicast protocol is configured by:

[0018] A Protocol-Independent Multicast-Sparse Mode (PIM-SM) protocol is configured on a carrying network device of the target network to be detected.

[0019] An Internet Group Management Protocol (IGMP) is configured on an access layer device of the target network.

[0020] In some embodiments, the multiple detection multicast streams are generated, the corresponding detection multicast stream is forwarded to all Member links of each target Trunk link, the transmission quality of each detection multicast stream is monitored, and a monitoring result is obtained, including:

[0021] Based on the parameters of the detection multicast stream, a multicast stream generator is used to generate multiple detection multicast streams.

[0022] The corresponding detection multicast stream is forwarded to all Member links of each target Trunk link.

[0023] The multicast stream quality probe is used to monitor and evaluate the transmission quality of each detection multicast stream from multiple aspects to obtain a monitoring result.

[0024] In a second aspect, the present application further provides a link quality detection device, comprising:

[0025] A device configuration unit is configured to configure a multicast protocol, configure parameters, forwarding paths and load sharing rules of detection multicast streams, so that the detection multicast streams can be distributed among Member links of each target Trunk link according to the load sharing rules.

[0026] A link detection unit is configured to generate multiple detection multicast streams, forward corresponding detection multicast streams to all Member links of each target Trunk link, monitor the transmission quality of each detection multicast stream, and obtain a monitoring result, wherein the monitoring result comprises a mapping relationship between each detection multicast stream and each Member link.

[0027] A fault positioning unit is configured to obtain a target network device log, compare the monitoring result with the target network device log, and determine a faulty port.

[0028] In a third aspect, the present application further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the link quality detection method according to any one of the above aspects when executing the program.

[0029] In a fourth aspect, the present application further provides a non-transitory computer readable storage medium, which stores a computer program, wherein the computer program is executable on a processor to implement the link quality detection method according to any one of the above aspects.

[0030] In a fifth aspect, the present application further provides a computer program product, comprising a computer program, wherein the computer program is executable on a processor to implement the link quality detection method according to any one of the above aspects.

[0031] The link quality detection method, device, equipment, storage medium and program product provided by the present application can realize accurate identification and rapid positioning of subtle differences in the whole link by configuring a multicast protocol, configuring parameters, forwarding paths and load sharing rules of detection multicast streams, generating multiple detection multicast streams, forwarding corresponding detection multicast streams to all Member links of each target Trunk link, monitoring the transmission quality of each detection multicast stream, comparing the monitoring result with a target network device log, and determining a faulty port. BRIEF DESCRIPTION OF DRAWINGS

[0032] In order to make the technical solutions in the present application or prior art clearer, the accompanying drawings needed in the embodiments or prior art description will be briefly introduced. Obviously, the accompanying drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort on the basis of these drawings.

[0033] Figure 1 is a structural schematic diagram of a link quality detection system provided by an embodiment of the present application;

[0034] Figure 2 is a flow schematic diagram of a link quality detection method provided by an embodiment of the present application;

[0035] Figure 3 is a structural schematic diagram of a target network to be detected provided by an embodiment of the present application;

[0036] Figure 4 is a structural schematic diagram of a link quality detection device provided by an embodiment of the present application;

[0037] Figure 5 is a structural schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0038] In order to make the technical solutions in the present application or prior art clearer, the accompanying drawings needed in the embodiments or prior art description will be briefly introduced. Obviously, the accompanying drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort on the basis of these drawings.

[0039] The large flow and low delay characteristics brought by the evolution of the Internet greatly improve the sensitivity of the operator network, and slight link quality jitter will have a serious impact. The existing link quality detection scheme has the following defects:

[0040] 1) Probe dialing: The probe dialing scheme cannot meet the requirements of full member detection, and in some non-path member failure scenarios, it may also cause maintenance personnel to misjudge. In the equivalent route scenario of the operator network route load balancing, the probe dialing will also appear the dialing path uncertain situation, in addition, the probe dialing is limited by the performance of the network equipment;

[0041] 2) Device view: through Simple Network Management Protocol (SNMP) or maintenance personnel manually to the network device alarm, the cyclic redundancy check (CRC) under the port of the wrong package statistics, also exist monitoring efficiency, scene coverage is not complete, port CRC error code statistics can not cover the flash scene.

[0042] In the process of maintaining the existing network, the end user often feedbacks that the network quality is poor, but the network test result is normal. After the user complains, a large amount of manpower is consumed to carry out on-site packet capture and application layer analysis, which not only cannot quickly locate the problem, but also is prone to deviation in the positioning direction, causing the fault handling time delay, and the fine maintenance of the network cannot be realized.

[0043] Therefore, the embodiment of the present application provides a link quality detection method, device, equipment, storage medium and program product, by configuring a multicast protocol, configuring parameters, forwarding paths and load sharing rules of a detection multicast flow, generating a plurality of detection multicast flows, forwarding the corresponding detection multicast flow to all Member links of each target Trunk link, monitoring the transmission quality of each detection multicast flow, comparing the monitoring result with the target network device log, and determining the port that occurs a fault. The present application can realize accurate identification and rapid positioning of the subtle difference of the whole link.

[0044] Figure 1 The structure diagram of the link quality detection system provided by the embodiment of the present application is shown in the figure. Figure 1 As shown, a link quality detection system is provided, which comprises a multicast flow generator, a multicast flow quality probe, a flow control module, a topology input module, a cooperative component and a high-density link monitoring module.

[0045] The multicast flow generator is configured to generate a plurality of detection multicast flows, and forward the corresponding detection multicast flow to all Member links of each target Trunk link.

[0046] The flow control module is configured to configure a multicast protocol, configure parameters, forwarding paths and load sharing rules of a detection multicast flow, so that the detection multicast flow can be distributed among the Member links of each target Trunk link according to the load sharing rules.

[0047] The topology input module is configured to obtain a target network device log, compare the monitoring result with the target network device log, and determine the port that occurs a fault.

[0048] The cooperative assembly is used for configuring and functionally combining the drainage control module, the multicast stream generator and the multicast stream quality probe, realizing cooperation and consistency of test paths, test multicast streams and corresponding monitoring tasks, and synchronizing task information to the high-density link monitoring module.

[0049] The high-density link monitoring module is used for determining the association of the multicast stream quality probe reporting data with test tasks and monitoring tasks, and realizing accurate identification and positioning of poor-quality links based on the mapping relationship between multicast stream quality probe deployment points and network topology.

[0050] It can be understood that by synchronously reporting the multicast stream quality probe detection result, the mapping relationship between the detection multicast stream and the corresponding physical link to the high-density link monitoring module, the member-level physical link of the whole network can be monitored, high-sensitivity monitoring and high-density detection are realized, and thus the network quality requirements of industrial internet, ultra-high-definition video and virtual reality (VR) services can be met.

[0051] Figure 2 A flowchart of a link quality detection method provided by the embodiment of the present application is shown in Fig. 1. Figure 2 As shown in Fig. 1, a link quality detection method is provided, which includes the following steps: step 210, step 220 and step 230. The method flow steps are only used as one possible implementation of the present application.

[0052] In step 210, a multicast protocol is configured, parameters, forwarding paths and load sharing rules of a detection multicast stream are configured, so that the detection multicast stream can be distributed among the Member links of each target Trunk link according to the load sharing rules.

[0053] The Trunk link refers to a high-capacity aggregation link in a network for transmitting data, which is used to connect two network devices (such as switches or routers). The Trunk link is composed of multiple Member links and can carry a large amount of data traffic to realize high-speed data transmission and communication between network devices.

[0054] The Member link is a single member link of the Trunk link, which is used to connect two network device ports.

[0055] Figure 3 A structure diagram of a target network to be detected provided by the embodiment of the present application is shown in Fig. 2. Figure 3As shown, the target network to be detected includes six remote terminals (RTs), and the six RTs form a "mouth-shaped" network. The uplink, downlink and crosslink of the backbone network are all configured with multi-Member Trunks. For example, a Trunk35 link is configured between RT05 and RT03, and the Trunk35 link includes three Members, i.e., Member-1, Member-2 and Member-3.

[0056] For example, the normal forwarding path of the multicast stream to be detected is "RT01-RT03", and the standby forwarding path is "RT01-RT02-RT04-RT03" via the logical link trunk13 (the actual traffic load is on three members, and the traffic carried by the three members is different).

[0057] Optionally, each network device port enables the PIM protocol; taking the unidirectional RT03 as an example, the uplink Trunk13 and the crosslink Trunk34 are monitored in the full path.

[0058] For example, if the link quality of the Trunk34 needs to be tested, the PIM protocol of the trunk13 of the RT03 is disabled, and the multicast stream can be forwarded according to the forwarding path "RT01-RT02-RT04-RT03".

[0059] In some embodiments, the multicast protocol is configured, including:

[0060] The protocol-independent multicast sparse mode PIM-SM protocol is configured on the bearer network device of the target network to be detected.

[0061] The Internet Group Management Protocol IGMP is configured on the access layer device of the target network.

[0062] The PIM-SM protocol establishes and maintains the multicast tree by using the "join pruning" mechanism, ensures that the multicast data is only copied and forwarded where there are receivers, and thus can greatly reduce network congestion.

[0063] The IGMP realizes the management function of group members by sending messages between receiver hosts and multicast routers, and can effectively send data streams to multiple users in scenarios such as video conferencing, online games, streaming media broadcasting and the like which need to send the same content to multiple receivers.

[0064] In some embodiments, the parameters of the multicast stream to be detected include the code rate and network information, and the network information includes the destination Internet Protocol IP and the destination port. The load sharing rule includes flow-based load.

[0065] The code rate of the multicast stream refers to the rate of transmitting the multicast stream, such as 2 Mbps, 8 Mbps, or 16 Mbps.

[0066] It should be noted that the number of forwarding multicast messages per unit time of the link can be adjusted by changing the code rate, so as to adjust the fine degree of link quality monitoring. By adjusting the multicast message encapsulation (such as destination IP and destination port), the mapping relationship between the member in the trunk and the multicast stream can be determined.

[0067] The per-flow load balancing refers to classifying the multicast messages into different data streams according to certain rules (such as five-tuple: source IP address, destination IP address, protocol number, source port number, and destination port number), and the messages of the same data stream are sent on the same link.

[0068] It can be understood that the per-flow load balancing can meet the forwarding of multicast messages with the same attribute on the same interface, and can maximize the guarantee that the multicast messages will not be out of order at the receiving end.

[0069] In some embodiments, the parameters of the detected multicast stream, the forwarding path, and the load balancing rule are configured, including:

[0070] The parameters of the detected multicast stream are configured, and a corresponding multicast group is configured for each target Trunk link.

[0071] The enablement and disablement of the protocol-independent multicast (PIM) of the ports of each network device of the target network to be detected are performed, so that the detected multicast stream can cover each target Trunk link.

[0072] The load balancing rule is configured on the port of each network device.

[0073] Optionally, the multicast stream of a certain code rate can be configured with different multicast groups (destination IP and destination port) and multiplexed into multiple detected multicast streams.

[0074] Step 220, generating multiple detected multicast streams, forwarding the corresponding detected multicast stream to all Member links of each target Trunk link, monitoring the transmission quality of each detected multicast stream, and obtaining a monitoring result, the monitoring result including the mapping relationship between each detected multicast stream and each Member link.

[0075] Optionally, the multicast stream generator selects the code rate of the detected multicast stream according to the detection fine degree, and forms m detected multicast streams by encapsulating different multicast message headers (multicast group IP and port number), m being a natural number greater than or equal to 1, and m being greater than a preset threshold.

[0076] Optionally, the number of multicast streams detected in the multicast group corresponding to each target Trunk link is greater than the total number of Member links of each target Trunk link.

[0077] In step 230, the target network device log is acquired, the monitoring result is compared with the target network device log, and the faulty port is determined.

[0078] The target network device log includes port state changes, error information, etc., and the specific device, specific port and specific time of the down event can be obtained from the target network device log.

[0079] Optionally, the log information is acquired from the target network device using appropriate network management tools or commands.

[0080] In the embodiment of the application, by configuring the multicast protocol, configuring the parameters of the detected multicast stream, the forwarding path and the load sharing rule, generating multiple detected multicast streams, forwarding the corresponding detected multicast stream to all Member links of each target Trunk link, monitoring the transmission quality of each detected multicast stream, comparing the monitoring result with the target network device log, and determining the faulty port, the fine and accurate identification and rapid positioning of the whole link can be realized.

[0081] It should be noted that each embodiment of the application can be freely combined, the order can be changed or the embodiments can be executed independently, and the fixed execution order is not required.

[0082] In some embodiments, the monitoring result is compared with the target network device log to determine the faulty port, including:

[0083] Based on the monitoring result, the target detected multicast stream with quality difference is determined.

[0084] The target moment when the target detected multicast stream has quality difference is determined, and the log of the target network device corresponding to the target detected multicast stream at the target moment is acquired.

[0085] The monitoring result of the target detected multicast stream at the target moment is compared with the log of the target network device corresponding to the target detected multicast stream at the target moment, a mapping relationship between the target detected multicast stream and the target Member link is constructed, and the faulty port is determined.

[0086] Table 1 is a mapping table of the detected multicast stream and the Member link provided by the embodiment of the application, as shown in Table 1, Trunk 13 includes three Member links, and the port of each Member link corresponds to a detected multicast stream.

[0087] Table 1 is a mapping table of the detected multicast stream and the Member link provided by the embodiment of the application, as shown in Table 1, Trunk 13 includes three Member links, and the port of each Member link corresponds to a detected multicast stream.

[0088]

[0089] For example, by comparing the logs of RT03, the up and down events of Member-1 in Trunk13 are identified, and multicast stream quality probe A finds that the multicast stream "239.255.0.1:8084" has poor quality with packet loss, and it can be directly judged that the "100G1 / 0 / 0 / 0" physical link of RT03 has failed.

[0090] It can be understood that by comparing the monitoring results with the device logs, the faulty port can be more accurately determined, the time and workload of troubleshooting can be reduced, and the efficiency of fault handling can be improved.

[0091] In some embodiments, a plurality of detection multicast streams are generated, a corresponding detection multicast stream is forwarded to all Member links of each target Trunk link, the transmission quality of each detection multicast stream is monitored, and monitoring results are obtained, including:

[0092] Based on the parameters of the detection multicast stream, a multicast stream generator is used to generate a plurality of detection multicast streams;

[0093] A corresponding detection multicast stream is forwarded to all Member links of each target Trunk link;

[0094] A multicast stream quality probe is used to monitor and evaluate the transmission quality of each detection multicast stream from multiple aspects, and monitoring results are obtained.

[0095] Optionally, the protocol encapsulation format of the detection multicast stream carrying the video stream is Moving Picture Experts Group Transport Stream (MPEG-TS), Real-time Transport Protocol (RTP), or User Datagram Protocol (UDP).

[0096] The UDP message has no retransmission mechanism, which ensures the sensitivity of the multicast message to link quality. Once a link quality problem occurs (such as packet loss or packet error), the multicast message will not be blocked due to the disaster recovery mechanism of the protocol itself.

[0097] The RTP message contains a sequence field that can be continuously circulated between 0 and 65535. The RTP message also contains a Real-Time Control Protocol (RTCP) message, which can be used to judge network quality.

[0098] Optionally, each RTP message encapsulates 7 MPEG-MTS messages, with the sequence numbers of the 7 MTS messages cycling consecutively between 0 and 15.

[0099] Understandably, by generating multiple detection multicast streams and monitoring their transmission quality, the performance of network transmission can be monitored in real time, which helps to promptly identify network problems and respond quickly. By using multicast stream quality probes to monitor and evaluate the transmission quality of each detection multicast stream from multiple levels, a comprehensive understanding of various aspects of network transmission can be obtained, including indicators such as packet loss rate, latency, and bandwidth utilization. By correlating the monitoring results with the target Trunk and Member links, the location of network transmission problems can be accurately pinpointed, which helps to quickly locate and resolve problems.

[0100] The link quality detection device provided in the embodiments of the present invention will be described below. The link quality detection device described below can be referred to in correspondence with the link quality detection method described above.

[0101] Figure 4 This is a schematic diagram of the link quality detection device provided in an embodiment of the present invention, as shown below. Figure 4 As shown, the link quality detection device 400 includes:

[0102] The device configuration unit 410 is used to configure the multicast protocol, configure the parameters, forwarding path and load sharing rules of the detection multicast stream, so that the detection multicast stream can be distributed among the Member links of each target Trunk link according to the load sharing rules.

[0103] The link detection unit 420 is used to generate multiple detection multicast streams, forward the corresponding detection multicast streams to all Member links of each target Trunk link, monitor the transmission quality of each detection multicast stream, and obtain monitoring results. The monitoring results include the mapping relationship between each detection multicast stream and each Member link.

[0104] The fault location unit 430 is used to acquire the target network device logs, compare the monitoring results with the target network device logs, and determine the port where the fault occurred.

[0105] Optionally, the monitoring results are compared with the target network device logs to determine the port where the fault occurred, including:

[0106] Based on the monitoring results, the target detection multicast streams that have poor quality were identified;

[0107] Determine the target time when the target detection multicast stream experiences quality degradation, and obtain the logs of the target network device corresponding to the target detection multicast stream at the target time;

[0108] The monitoring result of the target detection multicast stream at the target time is compared with the log of the target network device corresponding to the target detection multicast stream at the target time, a mapping relationship between the target detection multicast stream and the target Member link is constructed, and the faulty port is determined.

[0109] Optionally, the parameters of the detection multicast stream include a code rate and network information, the network information includes a destination Internet Protocol (IP) and a destination port, and the load sharing rule includes flow-based load sharing.

[0110] Optionally, the parameters of the detection multicast stream, the forwarding path and the load sharing rule are configured, including:

[0111] The parameters of the detection multicast stream are configured, and a corresponding multicast group is configured for each target Trunk link.

[0112] The ports of each network device of the target network to be detected are enabled and disabled for Protocol Independent Multicast (PIM), so that the detection multicast stream can cover each target Trunk link.

[0113] The load sharing rule is configured on the ports of each network device.

[0114] Optionally, the multicast protocol is configured, including:

[0115] The Protocol Independent Multicast Sparse Mode (PIM-SM) protocol is configured on the carrying network device of the target network to be detected.

[0116] The Internet Group Management Protocol (IGMP) is configured on the access layer device of the target network.

[0117] Optionally, the multiple detection multicast streams are generated, the corresponding detection multicast stream is forwarded to all Member links of each target Trunk link, the transmission quality of each detection multicast stream is monitored, and a monitoring result is obtained, including:

[0118] Based on the parameters of the detection multicast stream, the multicast stream generator is used to generate multiple detection multicast streams.

[0119] The corresponding detection multicast stream is forwarded to all Member links of each target Trunk link.

[0120] The multicast stream quality probe is used to monitor and evaluate the transmission quality of each detection multicast stream from multiple aspects, and a monitoring result is obtained.

[0121] It should be noted that the link quality detection device provided by the embodiment of the present application can realize all method steps realized by the link quality detection method embodiment, and can achieve the same technical effects, and the same parts and beneficial effects in the method embodiment will not be described in detail.

[0122] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention, such as... Figure 5 As shown, the electronic device may include a processor 510, a communications interface 520, a memory 530, and a communication bus 540. The processor 510, communications interface 520, and memory 530 communicate with each other via the communication bus 540. The processor 510 can call logical instructions in the memory 530 to execute a link quality detection method. This method includes: configuring a multicast protocol, configuring parameters, forwarding paths, and load-sharing rules for the detection multicast stream, so that the detection multicast stream can be distributed among the Member links of each target Trunk link according to the load-sharing rules; generating multiple detection multicast streams, forwarding the corresponding detection multicast streams to all Member links of each target Trunk link, monitoring the transmission quality of each detection multicast stream, obtaining monitoring results, including the mapping relationship between each detection multicast stream and each Member link; acquiring target network device logs, comparing the monitoring results with the target network device logs, and determining the port where the fault occurred.

[0123] Furthermore, the logical instructions in the aforementioned memory 530 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0124] In another aspect, the present application also provides a computer program product, which comprises a computer program stored on a non-transitory computer readable storage medium, and the computer program is executable by a processor to enable a computer to perform the link quality detection method provided by any of the above methods, and the method comprises: configuring a multicast protocol, configuring parameters, forwarding paths and load sharing rules of detection multicast flows, so that the detection multicast flows can be distributed among Member links of each target Trunk link according to the load sharing rules; generating multiple detection multicast flows, forwarding corresponding detection multicast flows to all Member links of each target Trunk link, monitoring transmission quality of each detection multicast flow to obtain monitoring results, and the monitoring results comprise a mapping relationship between each detection multicast flow and each Member link; obtaining a target network device log, comparing the monitoring results with the target network device log, and determining a faulty port.

[0125] In another aspect, the present application also provides a non-transitory computer readable storage medium, which stores a computer program, and the computer program is executable by a processor to implement the link quality detection method provided by any of the above methods, and the method comprises: configuring a multicast protocol, configuring parameters, forwarding paths and load sharing rules of detection multicast flows, so that the detection multicast flows can be distributed among Member links of each target Trunk link according to the load sharing rules; generating multiple detection multicast flows, forwarding corresponding detection multicast flows to all Member links of each target Trunk link, monitoring transmission quality of each detection multicast flow to obtain monitoring results, and the monitoring results comprise a mapping relationship between each detection multicast flow and each Member link; obtaining a target network device log, comparing the monitoring results with the target network device log, and determining a faulty port.

[0126] The device embodiments described above are only schematic, wherein the units shown as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e., can be located in one place or distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the present embodiment scheme. Those skilled in the art can understand and implement without creative labor.

[0127] Those skilled in the art can clearly understand the technical solutions of the various embodiments from the above description of the embodiments, and the various embodiments can be implemented by means of software with the necessary general hardware platforms, and of course, can also be implemented by hardware. Based on such understanding, the above technical solutions, essentially or in other words, the part of the prior art that makes a contribution, can be embodied in the form of a software product, which can be stored in a computer readable storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, and the like, and includes a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0128] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for some technical features therein; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method of link quality detection, the method comprising: include: Configure the multicast protocol, and configure the parameters, forwarding path and load sharing rules for the detection multicast stream, so that the detection multicast stream can be distributed among the Member links of each target Trunk link according to the load sharing rules; Generate multiple detection multicast streams, forward the corresponding detection multicast streams to all Member links of each target Trunk link, monitor the transmission quality of each detection multicast stream, and obtain monitoring results. The monitoring results include the mapping relationship between each detection multicast stream and each Member link. Obtain the target network device logs, compare the monitoring results with the target network device logs, and determine the port where the fault occurred.

2. The method of claim 1, wherein, The step of comparing the monitoring results with the target network device logs to determine the port where the fault occurred includes: Based on the monitoring results, the target detection multicast stream that has poor quality was identified; Determine the target time when the target detection multicast stream experiences quality degradation, and obtain the logs of the target network device corresponding to the target detection multicast stream at the target time; The monitoring results of the target detection multicast stream at the target time are compared with the logs of the target network device corresponding to the target detection multicast stream at the target time to construct the mapping relationship between the target detection multicast stream and the target Member link, and to determine the port where the fault occurred.

3. The method of claim 1, wherein, The parameters for detecting multicast streams include bitrate and network information, the network information including destination Internet Protocol IP and destination port; the load balancing rules include stream-by-stream load balancing.

4. The method of link quality detection according to any of claims 1-3, characterized in that, The parameters, forwarding paths, and load balancing rules for configuring and detecting multicast streams include: Configure the parameters for detecting multicast streams, and configure the corresponding multicast group for each target Trunk link; Enable and disable Protocol Independent Multicast (PIM) on the ports of each network device in the target network to be detected, so that the detection multicast stream can cover each target trunk link. Configure the load balancing rules on the ports of each of the network devices.

5. The method of claim 1, wherein, The configuration of the multicast protocol includes: Configure the Protocol Independent Multicast Sparse Mode (PIM-SM) protocol on the bearer network equipment of the target network to be tested; Configure the Internet Group Management Protocol (IGMP) on the access layer device of the target network.

6. The method of claim 1, wherein, The process involves generating multiple detection multicast streams, forwarding the corresponding detection multicast streams to all Member links of each target Trunk link, monitoring the transmission quality of each detection multicast stream, and obtaining monitoring results, including: Based on the parameters of the detected multicast stream, a multicast stream generator is used to generate multiple detected multicast streams; Forward the corresponding detection multicast stream to all Member links of each target Trunk link; Multicast stream quality probes are used to monitor and evaluate the transmission quality of each detected multicast stream from multiple levels, and the monitoring results are obtained.

7. A link quality detection apparatus characterized by comprising: include: The device configuration unit is used to configure the multicast protocol, configure the parameters, forwarding path and load sharing rules of the detection multicast stream, so that the detection multicast stream can be distributed among the Member links of each target Trunk link according to the load sharing rules. The link detection unit is used to generate multiple detection multicast streams, forward the corresponding detection multicast streams to all Member links of each target Trunk link, monitor the transmission quality of each detection multicast stream, and obtain monitoring results. The monitoring results include the mapping relationship between each detection multicast stream and each Member link. The fault location unit is used to acquire the target network device logs, compare the monitoring results with the target network device logs, and determine the port where the fault occurred.

8. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the link quality detection method as described in any one of claims 1 to 6. 9.A non-transitory computer-readable storage medium having stored thereon a computer program, characterized in that, When the computer program is executed by a processor, it implements the link quality detection method as described in any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the link quality detection method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method for detecting transmission quality of multicast streams, device and system

    CN105828218A

  • Message sending method and first network equipment

    CN112737956A