Transmission detection method, apparatus and system

By inserting detection headers with multiple matching strategies into the data packets, the problem of incomplete detection results in the prior art is solved, achieving higher detection accuracy and more efficient network bandwidth utilization.

CN117081967BActive Publication Date: 2025-12-05HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210509300.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-10
Publication Date
2025-12-05
Estimated Expiration
2042-05-10

AI Technical Summary

Technical Problem

Existing flow-following detection technologies (such as IFIT) cannot fully cover the detection results of multiple matching strategies when only one detection header is inserted into the data packet, resulting in poor detection performance and increased network bandwidth consumption.

Method used

By inserting a detection header containing multiple matching strategies into the data message, and associating the flow identifier with the matching strategy, comprehensive detection of the data flow can be achieved. Only one detection header is needed to cover the detection results of multiple strategies.

Benefits of technology

This improved the comprehensiveness and accuracy of the detection results, reduced data packet overhead, and increased the utilization rate of network bandwidth resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117081967B_ABST
    Figure CN117081967B_ABST
Patent Text Reader

Abstract

A kind of transmission detection method, device and system belong to network technical field.First network node receives the first message of first data stream, then first network node obtains second message based on first message and forwards second message.Second message includes detection header, and the detection header includes first flow identifier, first flow identifier is all associated with second flow identifier, third flow identifier.First flow identifier is used to indicate first data stream.Second flow identifier is used to indicate second data stream.Third flow identifier is used to indicate third data stream.Second data stream matches first matching policy and second data stream does not match second matching policy.Third data stream matches second matching policy and third data stream does not match first matching policy.First message matches first matching policy and second matching policy.This application can realize the detection of same data stream according to at least two matching policies, and detection effect is better.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of network technology, and in particular to a transmission detection method, apparatus and system. Background Technology

[0002] In-situ flow information telemetry (IFIT) is a type of flow detection technology. The principle of IFIT is that the network device acting as the head node inserts an IFIT header into the data packet, and network nodes (such as at least one of the head node, intermediate nodes, and tail nodes) detect the data flow to which the data packet belongs based on this IFIT header. Summary of the Invention

[0003] This application provides a transmission detection method, apparatus, and system capable of detecting the same data stream that matches both of the at least two matching strategies. The detection result of the same data stream covers the at least two matching strategies and can include the detection results corresponding to each of the at least two matching strategies. Therefore, the detection result of the same data stream is more comprehensive, with higher detection accuracy and better detection effect. Furthermore, when detecting the same data stream that matches both of the at least two matching strategies, the technical solution of this application only needs to add one detection header to the data packets of the same data stream, without increasing the overhead of the data packets. This avoids consuming additional network bandwidth resources by adding multiple detection headers to the data packets of the same data stream, thus improving the utilization rate of network bandwidth resources. The technical solution of this application is as follows:

[0004] A first aspect provides a transmission detection method, comprising: a first network node receiving a first message, the first message being a data packet of a first data stream; the first network node obtaining a second message based on the first message, the second message including a detection header, the detection header including a first stream identifier, the first stream identifier being associated with a second stream identifier and a third stream identifier, the first stream identifier indicating a first data stream, the second stream identifier indicating a second data stream, the third stream identifier indicating a third data stream, the second data stream matching a first matching policy and not matching the second matching policy, the third data stream matching the second matching policy and not matching the first matching policy, the first message matching both the first and second matching policies; and the first network node forwarding the second message. The second message is a detection message of the first data stream.

[0005] In current flow detection technologies, such as IFIT, the head node can enable multiple matching strategies for data flow detection. If a data packet received by the head node matches at least two of these matching strategies, the head node inserts a detection header (e.g., an IFIT header) into the data packet according to one of the matching strategies to obtain a detection packet. The head node then forwards the detection packet to the transit node, which in turn forwards it to the tail node. The tail node then removes the detection header from the detection packet to obtain the original data packet. This detection header includes the flow identifier (flowID) of the data flow to which the data packet belongs. During the transmission of the detection packet, at least one network node among the head, transit, and tail nodes can detect the data flow to which the data packet belongs based on this detection header to obtain the data flow's transmission detection information and send this information to the controller. The controller can then determine the transmission quality of the data flow based on this transmission detection information. However, when a header node determines that a data packet matches at least two matching strategies, it inserts a detection header into the data packet based on only one of the matching strategies. This results in the detection of the data stream to which the data packet belongs, based only on one matching strategy matched by the data packet. The detection result of the data stream only includes the detection result corresponding to the one matching strategy matched by the data stream. The detection result of the data stream cannot cover the at least two matching strategies matched by the data stream, and the detection result of the data stream is not comprehensive enough, resulting in poor detection performance.

[0006] The technical solution provided in this application allows a first network node to receive a first message of a first data stream. After receiving the first message, the first network node obtains a second message based on the first message and forwards it. The detection header of the second message includes a first stream identifier indicating the first data stream. The first data stream matches both the first matching strategy and the second matching strategy. Therefore, network nodes along the transmission path of the first data stream can detect the first data stream based on the detection header included in the second message. This allows for the detection of the first data stream based on both the first and second matching strategies. The detection result of the first data stream can cover both the first and second matching strategies. The detection result of the first data stream can include the detection result corresponding to the first matching strategy and the detection result corresponding to the second matching strategy. The detection result of the first data stream is more comprehensive, resulting in higher detection accuracy and better detection effect. Furthermore, the second message may include only one detection header. That is, this application can detect the first data stream by adding one detection header to the data message of the first data stream according to the first matching strategy and the second matching strategy. Therefore, it will not increase the overhead of the data message of the first data stream, avoid adding multiple detection headers to the data message of the first data stream to consume additional network bandwidth resources, and improve the utilization rate of network bandwidth resources.

[0007] Furthermore, in this application, the first-stream identifier is associated with both the second-stream identifier and the third-stream identifier. The first-stream identifier indicates the first data stream, the second-stream identifier indicates the second data stream, and the third-stream identifier indicates the third data stream. The first data stream matches both the first and second matching strategies. The second data stream matches the first matching strategy but does not match the second matching strategy. The third data stream matches the second matching strategy but does not match the first matching strategy. After obtaining the detection result of the first data stream that matches both the first and second matching strategies, the detection result of the second data stream that matches the first matching strategy but does not match the second matching strategy can be determined based on the detection result of the first data stream and the association between the first-stream identifier and the second-stream identifier. For example, the detection result corresponding to the first matching strategy in the detection result of the first data stream can be determined as the detection result of the second data stream. Furthermore, after obtaining the detection results of the first data stream that matches both the first and second matching strategies, the detection results of the third data stream that matches the second matching strategy but does not match the first matching strategy can be determined based on the detection results of the first data stream and the association between the first stream identifier and the third stream identifier. For example, the detection results of the first data stream that correspond to the second matching strategy can be determined as the detection results of the third data stream. In this way, the detection results of both the second and third data streams are more comprehensive, and the detection effects of both the second and third data streams are better. For example, in practical applications, network nodes can also detect the second data stream based on packets that match the first matching strategy but do not match the second matching strategy. If the detection result of the second data stream is not determined based on the detection result of the first data stream and the association between the first stream identifier and the second stream identifier, then the final detection result of the second data stream only includes the detection result obtained by the network node based on packets that match the first matching strategy but do not match the second matching strategy, and does not include the detection result obtained based on the packets belonging to the first data stream (that is, the packets that match both the first and second matching strategies). In other words, the final detection result of the second data stream only includes the detection result corresponding to the first matching strategy. Thus, the detection result of the second data stream will be missing some content (for example, the detection result corresponding to the first matching strategy in the detection result of the first data stream will be missing), and the detection result of the second data stream will be incomplete.Similarly, network nodes can also detect the third data stream based on packets that match the second matching strategy but do not match the first matching strategy. If the detection result of the third data stream is not determined based on the detection result of the first data stream and the association between the first stream identifier and the third stream identifier, then the final detection result of the third data stream only includes the detection result obtained by the network node based on packets that match the second matching strategy but do not match the first matching strategy, and does not include the detection result obtained based on the packets belonging to the first data stream (that is, the packets that match both the first and second matching strategies). In other words, the final detection result of the third data stream only includes the detection result corresponding to the second matching strategy. Thus, the detection result of the third data stream will be missing some content (for example, the detection result corresponding to the second matching strategy in the detection result of the first data stream will be missing), and the detection result of the third data stream will be incomplete.

[0008] Optionally, in this application, the types of the first matching policy and the second matching policy are different. For example, the first matching policy is to match an access control list (ACL) rule, and the second matching policy is to belong to a virtual private network (VPN). Another example is that the first matching policy is to match an ACL rule, and the second matching policy is to transmit through a tunnel.

[0009] Optionally, the first matching strategy is associated with the first detection strategy, and the second matching strategy is associated with the second detection strategy. The first network node can determine the detection strategy for the first data stream based on the first and second detection strategies, and then obtain the second message based on the first message according to the detection strategy for the first data stream. Each of the first and second detection strategies can include at least one of a detection action, a detection period, and a detection type, and the detection strategy for the first data stream can include at least one of a detection action, a detection period, and a detection type.

[0010] Optionally, the first detection strategy includes a first detection action, the second detection strategy includes a second detection action, the first matching strategy is associated with the first detection action, and the second matching strategy is associated with the second detection action. The method further includes: a first network node determining a detection action for the first data stream based on the first and second detection actions. The detection header further includes action indication information used to indicate the detection action for the first data stream.

[0011] The technical solution provided in this application includes action indication information in the detection header of the detection message (e.g., the second message) of the first data stream, which facilitates the network node receiving the detection message to determine the detection action of the first data stream based on the action indication information, and then executes the detection action of the first data stream to obtain the transmission detection information of the first data stream.

[0012] Optionally, the detection action of the first data stream includes at least one of a first detection action and a second detection action. For example, the detection action of the first data stream includes a first detection action and a second detection action.

[0013] The technical solution provided in this application involves a first network node superimposing a first detection action associated with a first matching strategy and a second detection action associated with a second matching strategy as a detection action for a first data stream that matches both the first and second matching strategies. In this way, network nodes on the transmission path of the first data stream can perform detection on the first data stream according to the first and second matching strategies by executing the detection action of the first data stream. This allows the detection result of the first data stream to cover both the first and second matching strategies. In other words, the detection result of the first data stream can include the detection result corresponding to the first and second matching strategies.

[0014] Optionally, the first detection strategy includes a first detection period, the second detection strategy includes a second detection period, the first matching strategy is associated with the first detection period, and the second matching strategy is associated with the second detection period. The method further includes: a first network node determining the detection period of the first data stream based on the first and second detection periods. The detection header further includes period indication information, which indicates the detection period of the first data stream.

[0015] The technical solution provided in this application includes period indication information in the detection header of the detection message (e.g., the second message) of the first data stream, which makes it easier for the network node receiving the detection message to determine the detection period of the first data stream according to the period indication information, and then perform the detection action of the first data stream within the detection period of the first data stream.

[0016] Optionally, the detection period of the first data stream is the shorter of the first and second detection periods. This increases the detection frequency and accuracy of the first data stream.

[0017] Optionally, the first detection strategy includes a first detection type, the second detection strategy includes a second detection type, the first matching strategy is associated with the first detection type, and the second matching strategy is associated with the second detection type. The method further includes: a first network node determining the detection type of the first data stream based on the first detection type and the second detection type. The detection header further includes type indication information used to indicate the detection type of the first data stream.

[0018] The technical solution provided in this application includes type indication information in the detection header of the detection message (e.g., the second message) of the first data stream, which makes it easier for the network node receiving the detection message to determine the detection type of the first data stream according to the type indication information, and then perform the transmission detection of the first data stream according to the detection type of the first data stream.

[0019] Optionally, the detection type of the first data stream can be one of the first detection type and the second detection type.

[0020] Optionally, the first detection type is end-to-end (E2E) detection, the second detection type is hop-by-hop detection, and the detection type of the first data stream is the second detection type.

[0021] The technical solution provided in this application, when the first detection type is E2E detection and the second detection type is hop-by-hop detection, determines that the first data stream's detection type is the second detection type (i.e., hop-by-hop detection). This ensures that the head node, intermediate nodes, and tail node all detect the first data stream, facilitating flexible acquisition of the detection results. For example, it allows for flexible acquisition of the transmission quality of the first data stream on a certain path segment and the transmission quality of the first data stream within a certain network node.

[0022] Optionally, the method further includes: a first network node generating a first flow table, the first flow table including the message information of the first packet and a first flow identifier. The first flow table is the flow table of the first data stream, the first packet may be the first data packet of the first data stream, and the message information of the first packet may be tuple information of the first packet, such as a two-tuple, a three-tuple, or a five-tuple.

[0023] The technical solution provided in this application allows the first network node to generate a first flow table based on the first data packet of the first data stream. This facilitates the first network node to obtain the detection packet of the first data stream based on the data packet of the first data stream after receiving subsequent data packets of the first data stream.

[0024] Optionally, the first flow table may further include at least one of the following: action indication information, period indication information, and type indication information. The action indication information is used to indicate the detection action of the first data stream, the period indication information is used to indicate the detection period of the first data stream, and the type indication information is used to indicate the detection type of the first data stream.

[0025] Optionally, the method further includes: a first network node receiving a third message, the third message being a data message of a first data stream; the first network node obtaining a fourth message based on the third message, the third message matching a first flow table, the fourth message including a detection header including a first flow identifier; and the first network node forwarding the fourth message.

[0026] In the technical solution provided in this application, the third message is a non-first data message of the first data stream. After the first network node receives the non-first data message of the first data stream, the first network node obtains the detection message of the first data stream based on the data messages of the first data stream according to the first flow table. In this way, the process of the first network node obtaining the detection message of the first data stream can be simplified and the efficiency of the first network node in obtaining the detection message of the first data stream can be improved.

[0027] Optionally, the detection header of the fourth message may further include at least one of the following: action indication information, period indication information, and type indication information. The action indication information is used to indicate the detection action of the first data stream; the period indication information is used to indicate the detection period of the first data stream; and the type indication information is used to indicate the detection type of the first data stream.

[0028] Optionally, the method further includes: the first network node determining that the number of hits on the first flow table within a specified time period is no greater than a preset number, and the first network node aging up the first flow table. This reduces the overhead of flow resources.

[0029] Optionally, the method further includes: a first network node obtaining transmission detection information of the first data stream based on a detection message of the first data stream, wherein the detection message of the first data stream includes a second message. For example, the detection message of the first data stream includes a detection header, which includes action indication information, and the first network node obtains the transmission detection information of the first data stream by executing the detection action indicated by the action indication information.

[0030] Optionally, the method further includes: the first network node sending first reporting information to the controller, the first reporting information including a first stream identifier and transmission detection information of the first data stream.

[0031] The technical solution provided in this application allows the first network node to send transmission detection information of the first data stream to the controller. This facilitates the controller in determining the transmission detection information of the second data stream based on the transmission detection information of the first data stream and the association between the first stream identifier and the second stream identifier, and / or determining the transmission detection information of the third data stream based on the transmission detection information of the first data stream and the association between the first stream identifier and the third stream identifier. The transmission detection information of the second data stream and / or the transmission detection information of the third data stream are more comprehensive, and the detection effect of the second data stream and / or the detection effect of the third data stream are better.

[0032] Optionally, the method further includes: the first network node determining the transmission detection information of the second data stream based on the transmission detection information of the first data stream and the association between the first stream identifier and the second stream identifier; the first network node sending second reporting information to the controller, the second reporting information including the second stream identifier and the transmission detection information of the second data stream.

[0033] The technical solution provided in this application allows the first network node to determine the transmission detection information of the second data stream based on the transmission detection information of the first data stream and the association between the first stream identifier and the second stream identifier, thus making the transmission detection information of the second data stream more comprehensive. The first network node sends the transmission detection information of the second data stream to the controller, which facilitates the controller in determining the transmission quality of the second data stream based on this information, resulting in a more accurate assessment of the transmission quality of the second data stream.

[0034] Optionally, the method further includes: the first network node determining the transmission detection information of the third data stream based on the transmission detection information of the first data stream and the association between the first stream identifier and the third stream identifier; the first network node sending third reporting information to the controller, the third reporting information including the third stream identifier and the transmission detection information of the third data stream.

[0035] The technical solution provided in this application allows the first network node to determine the transmission detection information of the third data stream based on the transmission detection information of the first data stream and the association between the first stream identifier and the third stream identifier, thus making the transmission detection information of the third data stream more comprehensive. The first network node sending the transmission detection information of the third data stream to the controller facilitates the controller in determining the transmission quality of the third data stream based on this information, resulting in more accurate transmission quality information for the obtained third data stream.

[0036] Optionally, the method further includes: the first network node generating a first association relationship, the first association relationship including the association relationship between the first flow identifier and the second flow identifier and the third flow identifier.

[0037] Optionally, the method further includes: the first network node sending a first association to the controller.

[0038] Optionally, the method further includes: a first network node receiving a first association relationship sent by the controller, the first association relationship including the association relationship between the first flow identifier and the second flow identifier and the third flow identifier.

[0039] Optionally, the method further includes: the first network node sending a first association relationship to the second network node.

[0040] The technical solution provided in this application allows the first network node to obtain (e.g., generate or receive) a first association relationship, which facilitates the first network node in determining the transmission detection information of the second data stream based on the transmission detection information of the first data stream and the association relationship between the first stream identifier and the second stream identifier, and / or facilitates the first network node in determining the transmission detection information of the third data stream based on the transmission detection information of the first data stream and the association relationship between the first stream identifier and the third stream identifier.

[0041] Optionally, the detection header includes an IFIT header.

[0042] Optionally, the first network node is the head node.

[0043] Secondly, a transmission detection method is provided, comprising: a second network node receiving a detection message of a first data stream, the detection message including a detection header, the detection header including a first stream identifier, the first stream identifier being associated with a second stream identifier and a third stream identifier, the first stream identifier indicating a first data stream, the second stream identifier indicating a second data stream, the third stream identifier indicating a third data stream, the first data stream matching both a first matching strategy and a second matching strategy, the second data stream matching the first matching strategy but not matching the second matching strategy, and the third data stream matching the second matching strategy but not matching the first matching strategy; the second network node obtaining transmission detection information of the first data stream based on the detection message of the first data stream.

[0044] Optionally, the detection header further includes action indication information, which indicates the detection action of the first data stream. The second network node can determine the detection action of the first data stream based on the action indication information, and then execute the detection action of the first data stream to obtain the transmission detection information of the first data stream.

[0045] Optionally, the detection header further includes periodicity indication information, which indicates the detection period of the first data stream. The second network node can determine the detection period of the first data stream based on the periodicity indication information, and then perform the detection action of the first data stream within the detection period of the first data stream to achieve periodic detection of the first data stream.

[0046] Optionally, the detection header further includes type indication information, which indicates the detection type of the first data stream. The second network node can determine the detection type of the first data stream based on the type indication information, and then perform transmission detection of the first data stream according to the detection type of the first data stream to obtain the transmission detection information of the first data stream.

[0047] Optionally, the method further includes: the second network node sending first reporting information to the controller, the first reporting information including a first stream identifier and transmission detection information of the first data stream.

[0048] Optionally, the method further includes: the second network node determining the transmission detection information of the second data stream based on the transmission detection information of the first data stream and the association between the first stream identifier and the second stream identifier; the second network node sending second reporting information to the controller, the second reporting information including the second stream identifier and the transmission detection information of the second data stream.

[0049] Optionally, the method further includes: the second network node determining the transmission detection information of the third data stream based on the transmission detection information of the first data stream and the association between the first stream identifier and the third stream identifier; the second network node sending third reporting information to the controller, the third reporting information including the third stream identifier and the transmission detection information of the third data stream.

[0050] Optionally, the second network node receives the first association relationship, which includes the association relationship between the first flow identifier and the second flow identifier and the third flow identifier.

[0051] Optionally, the detection header includes an IFIT header.

[0052] Optionally, the second network node can be an intermediate node or a tail node.

[0053] Thirdly, a transmission detection method is provided, comprising: a controller receiving first reporting information sent by at least one network node, the first reporting information including a first stream identifier and transmission detection information of a first data stream, the first stream identifier being associated with a second stream identifier and a third stream identifier, the first stream identifier being used to indicate a first data stream, the second stream identifier being used to indicate a second data stream, the third stream identifier being used to indicate a third data stream, the first data stream matching both a first matching strategy and a second matching strategy, the second data stream matching the first matching strategy but not matching the second matching strategy, and the third data stream matching the second matching strategy but not matching the first matching strategy; the controller determining transmission detection information of a second data stream based on the transmission detection information of the first data stream and the association relationship between the first stream identifier and the second stream identifier.

[0054] Optionally, the method further includes: the controller determining the transmission detection information of the third data stream based on the transmission detection information of the first data stream and the association between the first stream identifier and the third stream identifier.

[0055] Optionally, the method further includes: the controller generating a first association relationship, the first association relationship including the association relationship between the first flow identifier and the second flow identifier and the third flow identifier.

[0056] Optionally, the method further includes: the controller sending a first association to at least one network node.

[0057] Optionally, the method further includes: the controller receiving a first association relationship sent by the first network node, the first association relationship including the association relationship between the first flow identifier and the second flow identifier and the third flow identifier.

[0058] Optionally, the first network node is the head node.

[0059] Optionally, the at least one network node includes at least one of a head node, an intermediate node, and a tail node.

[0060] Fourthly, a transmission detection device is provided, applied to a first network node, the device comprising:

[0061] The receiving module is used to receive a first message, which is a data message of the first data stream;

[0062] The processing module is configured to obtain a second message based on the first message. The second message includes a detection header, which includes a first stream identifier. The first stream identifier is associated with a second stream identifier and a third stream identifier. The first stream identifier is used to indicate the first data stream, the second stream identifier is used to indicate the second data stream, and the third stream identifier is used to indicate the third data stream. The second data stream matches the first matching strategy and does not match the second matching strategy. The third data stream matches the second matching strategy and does not match the first matching strategy. The first message matches both the first matching strategy and the second matching strategy.

[0063] The sending module is used to forward the second message.

[0064] Optionally, the first matching strategy is associated with the first detection action, and the second matching strategy is associated with the second detection action. The processing module is further configured to determine the detection action of the first data stream based on the first detection action and the second detection action. The detection header also includes action indication information, which is used to indicate the detection action of the first data stream.

[0065] Optionally, the detection action of the first data stream includes at least one of the first detection action and the second detection action.

[0066] Optionally, the first matching strategy is associated with a first detection period, and the second matching strategy is associated with a second detection period. The processing module is further configured to determine the detection period of the first data stream based on the first detection period and the second detection period. The detection header also includes period indication information, which is used to indicate the detection period of the first data stream.

[0067] Optionally, the detection period of the first data stream is the minimum of the first detection period and the second detection period.

[0068] Optionally, the first matching strategy is associated with a first detection type, and the second matching strategy is associated with a second detection type. The processing module is further configured to determine the detection type of the first data stream based on the first detection type and the second detection type. The detection header also includes type indication information, which is used to indicate the detection type of the first data stream.

[0069] Optionally, the detection type of the first data stream is one of a first detection type and a second detection type.

[0070] Optionally, the first detection type is E2E detection, the second detection type is hop-by-hop detection, and the detection type of the first data stream is the second detection type.

[0071] Optionally, the processing module is further configured to generate a first flow table, the first flow table including the message information of the first message and the first flow identifier.

[0072] Optionally, the first flow table further includes at least one of the following: action indication information, period indication information, and type indication information; wherein, the action indication information is used to indicate the detection action of the first data flow; the period indication information is used to indicate the detection period of the first data flow; and the type indication information is used to indicate the detection type of the first data flow.

[0073] Optionally, the receiving module is further configured to receive a third message, wherein the third message is a data message of the first data stream;

[0074] The processing module is further configured to obtain a fourth message based on the third message, the third message being matched with the first flow table, and the fourth message including a detection header, the detection header including the first flow identifier;

[0075] The sending module is also used to forward the fourth message.

[0076] Optionally, the detection header of the fourth message further includes at least one of the following: action indication information, period indication information, and type indication information; wherein, the action indication information is used to indicate the detection action of the first data stream; the period indication information is used to indicate the detection period of the first data stream; and the type indication information is used to indicate the detection type of the first data stream.

[0077] Optionally, the processing module is further configured to determine that the number of hits on the first flow table within a specified time period is not greater than a preset number, and then age the first flow table.

[0078] Optionally, the processing module is further configured to obtain transmission detection information of the first data stream based on the detection message of the first data stream, wherein the detection message of the first data stream includes the second message.

[0079] Optionally, the sending module is further configured to send first reporting information to the controller, the first reporting information including the first stream identifier and the transmission detection information of the first data stream.

[0080] Optionally, the processing module is further configured to determine the transmission detection information of the second data stream based on the transmission detection information of the first data stream and the association relationship between the first stream identifier and the second stream identifier;

[0081] The sending module is further configured to send a second reporting information to the controller, the second reporting information including the second stream identifier and the transmission detection information of the second data stream.

[0082] Optionally, the processing module is further configured to determine the transmission detection information of the third data stream based on the transmission detection information of the first data stream and the association relationship between the first stream identifier and the third stream identifier;

[0083] The sending module is further configured to send third reporting information to the controller, the third reporting information including the third stream identifier and the transmission detection information of the third data stream.

[0084] Optionally, the processing module is further configured to generate a first association relationship, the first association relationship including the association relationship between the first stream identifier and the second stream identifier and the third stream identifier.

[0085] Optionally, the sending module is further configured to send the first association relationship to the controller.

[0086] Optionally, the receiving module is further configured to receive a first association relationship sent by the controller, the first association relationship including the association relationship between the first stream identifier and the second stream identifier and the third stream identifier.

[0087] Optionally, the sending module is further configured to send the first association relationship to the second network node.

[0088] Optionally, the detection header includes an IFIT header.

[0089] Optionally, the first network node is the head node.

[0090] Fifthly, a transmission detection device is provided, applied to a second network node, the device comprising:

[0091] A receiving module is configured to receive a detection message of a first data stream. The detection message includes a detection header, which includes a first stream identifier. The first stream identifier is associated with a second stream identifier and a third stream identifier. The first stream identifier indicates the first data stream, the second stream identifier indicates the second data stream, and the third stream identifier indicates the third data stream. The first data stream matches both the first and second matching strategies. The second data stream matches the first matching strategy but does not match the second matching strategy. The third data stream matches the second matching strategy but does not match the first matching strategy.

[0092] The processing module is used to obtain the transmission detection information of the first data stream based on the detection message of the first data stream.

[0093] Optionally, the detection header further includes action indication information, which is used to indicate the detection action of the first data stream. The processing module is also used to determine the detection action of the first data stream based on the action indication information.

[0094] Optionally, the detection header further includes periodicity indication information, which is used to indicate the detection period of the first data stream. The processing module is also used to determine the detection period of the first data stream based on the periodicity indication information.

[0095] Optionally, the detection header further includes type indication information, which is used to indicate the detection type of the first data stream. The processing module is also used to determine the detection type of the first data stream based on the type indication information.

[0096] Optionally, the device further includes: a sending module, configured to send first reporting information to the controller, the first reporting information including the first stream identifier and the transmission detection information of the first data stream.

[0097] Optionally, the processing module is further configured to determine the transmission detection information of the second data stream based on the transmission detection information of the first data stream and the association relationship between the first stream identifier and the second stream identifier;

[0098] The sending module is further configured to send a second reporting information to the controller, the second reporting information including the second stream identifier and the transmission detection information of the second data stream.

[0099] Optionally, the processing module is further configured to determine the transmission detection information of the third data stream based on the transmission detection information of the first data stream and the association relationship between the first stream identifier and the third stream identifier;

[0100] The sending module is further configured to send third reporting information to the controller, the third reporting information including the third stream identifier and the transmission detection information of the third data stream.

[0101] Optionally, the receiving module is further configured to receive a first association relationship, the first association relationship including the association relationship between the first stream identifier and the second stream identifier and the third stream identifier.

[0102] Optionally, the detection header includes an IFIT header.

[0103] Optionally, the second network node is an intermediate node or a tail node.

[0104] Sixthly, a transmission detection device is provided, applied to a controller, the device comprising:

[0105] A receiving module is configured to receive first reporting information sent by at least one network node. The first reporting information includes a first stream identifier and transmission detection information of a first data stream. The first stream identifier is associated with a second stream identifier and a third stream identifier. The first stream identifier is used to indicate the first data stream, the second stream identifier is used to indicate the second data stream, and the third stream identifier is used to indicate the third data stream. The first data stream matches both a first matching strategy and a second matching strategy. The second data stream matches the first matching strategy but does not match the second matching strategy. The third data stream matches the second matching strategy but does not match the first matching strategy.

[0106] The processing module is configured to determine the transmission detection information of the second data stream based on the transmission detection information of the first data stream and the association relationship between the first stream identifier and the second stream identifier.

[0107] Optionally, the processing module is further configured to determine the transmission detection information of the third data stream based on the transmission detection information of the first data stream and the association relationship between the first stream identifier and the third stream identifier.

[0108] Optionally, the processing module is further configured to generate a first association relationship, the first association relationship including the association relationship between the first stream identifier and the second stream identifier and the third stream identifier.

[0109] Optionally, the apparatus further includes a sending module for sending the first association relationship to at least one network node.

[0110] Optionally, the receiving module is further configured to receive a first association relationship sent by the first network node, the first association relationship including the association relationship between the first flow identifier and the second flow identifier and the third flow identifier.

[0111] Optionally, the first network node is the head node.

[0112] Optionally, the at least one network node includes at least one of a head node, an intermediate node, and a tail node.

[0113] The modules in the fourth to sixth aspects mentioned above can be implemented based on software, hardware, or a combination of software and hardware, and the modules can be arbitrarily combined or divided based on specific implementations.

[0114] In a seventh aspect, a transmission detection device is provided, including a memory and a processor;

[0115] The memory is used to store a computer program; the processor is used to execute the computer program stored in the memory so that the transmission detection device performs the transmission detection method provided by the first aspect or any alternative of the first aspect, or performs the transmission detection method provided by the second aspect or any alternative of the second aspect.

[0116] Eighthly, a transmission detection device is provided, including a memory and a processor;

[0117] The memory is used to store computer programs; the processor is used to execute the computer programs stored in the memory so that the transmission detection device performs the transmission detection method provided by the third aspect or any alternative method of the third aspect described above.

[0118] Ninthly, a transmission detection system is provided, including a controller and multiple network nodes;

[0119] At least one of the plurality of network nodes includes a transmission detection device as provided in the fourth aspect or any alternative to the fourth aspect above, or includes a transmission detection device as provided in the fifth aspect or any alternative to the fifth aspect above, or includes a transmission detection device as provided in the seventh aspect above.

[0120] The controller includes a transmission detection device as provided in the sixth aspect or any alternative to the sixth aspect above, or includes a transmission detection device as provided in the eighth aspect above.

[0121] In a tenth aspect, a computer-readable storage medium is provided, wherein a computer program is stored therein, which, when executed, implements the transmission detection method provided by the first aspect or any alternative method of the first aspect, or implements the transmission detection method provided by the second aspect or any alternative method of the second aspect, or implements the transmission detection method provided by the third aspect or any alternative method of the third aspect.

[0122] Eleventhly, a computer program product is provided, comprising a program or code that, when executed, implements the transmission detection method provided by the first aspect or any optional method of the first aspect, or implements the transmission detection method provided by the second aspect or any optional method of the second aspect, or implements the transmission detection method provided by the third aspect or any optional method of the third aspect.

[0123] In a twelfth aspect, a chip is provided, the chip including programmable logic circuitry and / or program instructions, the chip being configured to: implement the transmission detection method provided by the first aspect or any alternative method of the first aspect above, or implement the transmission detection method provided by the second aspect or any alternative method of the second aspect above, or implement the transmission detection method provided by the third aspect or any alternative method of the third aspect above.

[0124] The technical effects of the second to twelfth aspects mentioned above can be referred to the first aspect, and therefore will not be elaborated upon.

[0125] The beneficial effects of the technical solution provided in this application are:

[0126] The transmission detection method, apparatus, and system provided in this application, after a first network node receives a first message of a first data stream, the first network node obtains a second message based on the first message and forwards the second message. The second message includes a detection header, which includes a first stream identifier used to indicate the first data stream. The first data stream matches both the first matching strategy and the second matching strategy. Therefore, network nodes on the transmission path of the first data stream can detect the first data stream based on the detection header included in the second message, thereby realizing the detection of the first data stream according to the first and second matching strategies. The detection result of the first data stream can cover both the first and second matching strategies, resulting in a more comprehensive detection result, higher detection accuracy, and better detection effect. Furthermore, the second message can include only one detection header; that is, adding one detection header to the data message of the first data stream is sufficient to realize the detection of the first data stream according to the first and second matching strategies. Therefore, it does not increase the overhead of the data message of the first data stream, avoids consuming additional network bandwidth resources by adding multiple detection headers to the data message of the first data stream, and improves the utilization rate of network bandwidth resources.

[0127] Furthermore, the first-stream identifier is associated with both the second-stream and third-stream identifiers. The second-stream identifier indicates the second data stream, and the third-stream identifier indicates the third data stream. The second data stream matches the first matching strategy but does not match the second matching strategy, and the third data stream matches the second matching strategy but does not match the first matching strategy. After obtaining the detection result of the first data stream, the detection result of the second data stream (which matches the first matching strategy but does not match the second matching strategy) can be determined based on the detection result of the first data stream and the association between the first-stream and second-stream identifiers. Similarly, the detection result of the third data stream (which matches the second matching strategy but does not match the first matching strategy) can be determined based on the detection result of the first data stream and the association between the first-stream and third-stream identifiers. The detection results of both the second and third data streams are more comprehensive, and their detection effects are both better. Attached Figure Description

[0128] Figure 1 This is a schematic diagram of the structure of an IFIT header provided in an embodiment of this application;

[0129] Figure 2 This is a schematic diagram of the structure of an IFIT message provided in an embodiment of this application;

[0130] Figure 3 This is a schematic diagram illustrating an application scenario provided in an embodiment of this application;

[0131] Figure 4This is a flowchart of a transmission detection method provided in an embodiment of this application;

[0132] Figure 5 This is a flowchart of another transmission detection method provided in the embodiments of this application;

[0133] Figure 6 This is a flowchart of another transmission detection method provided in the embodiments of this application;

[0134] Figure 7 This is a flowchart of another transmission detection method provided in the embodiments of this application;

[0135] Figure 8 This is a flowchart of another transmission detection method provided in the embodiments of this application;

[0136] Figure 9 This is a flowchart of another transmission detection method provided in the embodiments of this application;

[0137] Figure 10 This is a flowchart of another transmission detection method provided in the embodiments of this application;

[0138] Figure 11 This is a flowchart of another transmission detection method provided in the embodiments of this application;

[0139] Figure 12 This is a flowchart of another transmission detection method provided in the embodiments of this application;

[0140] Figure 13 This is a schematic diagram of the structure of a transmission detection device provided in an embodiment of this application;

[0141] Figure 14 This is a schematic diagram of another transmission detection device provided in an embodiment of this application;

[0142] Figure 15 This is a schematic diagram of another transmission detection device provided in the embodiments of this application;

[0143] Figure 16 This is a schematic diagram of the structure of another transmission detection device provided in the embodiments of this application;

[0144] Figure 17 This is a schematic diagram of another transmission detection device provided in the embodiments of this application. Detailed Implementation

[0145] The embodiments of this application will now be described in further detail with reference to the accompanying drawings.

[0146] Stream-following inspection (SFIO) technology uses data packets as carriers to detect the transmission quality of data streams. The transmission quality detected by SFIO reflects the actual transmission performance of the data stream. The principle of SFIO is as follows: the header node inserts an inspection header into the data packet based on its characteristics. Network nodes (e.g., at least one of the header, intermediate, and tail nodes) then inspect the data stream to which the data packet belongs based on this inspection header to obtain transmission detection information for that data stream. These characteristics include, for example, matching a specific ACL rule, belonging to a VPN, or being transmitted through a tunnel.

[0147] In current flow detection technologies, the head node can enable multiple matching strategies for data flow detection. Each matching strategy is associated with at least one detection action. At least two of these matching strategies are of different types, and different matching strategies of the same type have different priorities. For example, these multiple matching strategies may include: hitting ACL rule 1, belonging to VPN 1, and transmitting through tunnel 1. ACL rule, VPN, and tunnel are all types of matching strategies, and the three matching strategies "hitting ACL rule 1," "belonging to VPN 1," and "transmitting through tunnel 1" are all of different types. Typically, ACL rules have the highest priority (i.e., matching strategies of type ACL rule have the highest priority). After receiving a data packet, the head node matches the data packet with each of these multiple matching strategies based on the characteristics of the data packet. If the head node determines that the data packet matches at least two of the multiple matching strategies, to save packet overhead, the head node typically selects one of the at least two matching strategies according to priority, and inserts a detection header into the data packet according to the selected matching strategy to obtain a detection packet (if detection is performed based on the data packet according to at least two matching strategies, at least two detection headers need to be inserted into the data packet, resulting in increased packet overhead and reduced transmission link bandwidth utilization). Then, the head node forwards the detection packet to the intermediate node, which forwards it to the tail node. The tail node then removes the detection header from the detection packet to obtain the original data packet. The detection header includes detection flags (e.g., packet loss detection flags, delay detection flags) and the flowID of the data stream to which the data packet belongs. The detection flags indicate the detection action for that data stream. During the transmission of this detection message, at least one of the head node, intermediate node, and tail node obtains the transmission detection information of the data stream based on the flowID and detection flag in the detection header, and reports the transmission detection information of the data stream to the controller. The controller can determine the transmission quality of the data stream based on the transmission detection information. For example, if the detection header includes a packet loss detection flag, at least one of the head node, intermediate node, and tail node can obtain the packet loss detection information of the data stream based on the flowID and packet loss detection flag in the detection header, and the controller can determine the packet loss rate of the data stream based on the packet loss detection information. As another example, if the detection header includes a latency detection flag, at least one of the head node, intermediate node, and tail node can obtain the latency detection information of the data stream based on the flowID and latency detection flag in the detection header, and the controller can determine the transmission latency of the data stream based on the latency detection information.

[0148] However, in current flow-following detection technologies, when a header node determines that a data packet matches at least two matching policies, it only inserts a detection header into the data packet according to one of those policies. This results in detection of only the data stream to which the data packet belongs, based on just one of the matching policies. The detection result for this data stream only includes the detection result corresponding to the matching policy matched by the data stream, failing to cover the at least two matching policies matched by the data stream. Therefore, the detection result is not comprehensive enough, the detection effect is poor, and it is difficult to meet user needs. For example, the user requirement is: to perform transmission detection of a data stream based on tunnel 1, and to perform tunnel switching (or tunnel handover, for example, switching the data stream to tunnel 2) when the transmission quality of the data stream transmitted through tunnel 1 does not meet the requirements. During the transmission detection of this data stream, if the header node determines that the data stream hits a certain ACL rule, and the data stream is transmitted through tunnel 1, according to current flow-following detection technologies, the header node will only detect the data stream based on that ACL rule. Thus, the detection result cannot meet the user's requirements.

[0149] As described above, in flow-following detection technology, network nodes detect data streams based on the detection header included in the detection message to obtain data stream transmission detection information. Flow-following detection technology may include IFIT technology, in-suitoam operations administration and maintenance (IOAM) technology, and other technologies. The names of the detection header and detection message may differ depending on the technology. For example, in IFIT technology, the detection header may be called an IFIT header or IFIT detection header, and the detection message may be called an IFIT message or IFIT detection message. In IOAM technology, the detection header may be called an IOAM header or IOAM detection header, and the detection message may be called an IOAM message or IOAM detection message. Other technologies may use different names for the detection header and message. Regardless of the technology, the detection header can include a flow identifier to indicate the data stream to be detected; this embodiment does not limit this.

[0150] The following section uses IFIT technology as an example to introduce the structure of the inspection header and the inspection message. The structure of the IFIT header and the inspection message typically differ in different network scenarios. The following example uses a segmented routing internet protocol version 6 (SRv6) scenario.

[0151] Please refer to Figure 1 This diagram illustrates the structure of an IFIT header provided in an embodiment of this application. This IFIT header is the IFIT header used in an SRv6 scenario. The IFIT header includes: a flow instruction indicator (FII), a flow instruction header (FIH), and a flow instruction extension header (FIEH), where FIEH is an optional part. The FII includes a type field, a length field, and a reserved field. The type field can have a value of 130, used to indicate the IFIT header. The length field indicates the total length of the FIH and FIEH. The FIH includes a flow identifier field, an L field, a D field, a reserved (R) field, and a header type indicator (HTI) field. The flow identifier field records the flow identifier. The L field records packet loss markings (also known as packet loss flags or packet loss bits). The D field records delay markings (also known as delay flags or delay bits). The HTI field records the type of FIH. The HTI field value can be 0, 1, 2, 3, or 4. 0 is a reserved value. 1 and 3 both indicate an E2E FIH. A value of 1 indicates an invalid FIH, while a value of 3 indicates a valid FIH. 2 and 4 indicate a hop-by-hop FIH. A value of 2 indicates an invalid FIH, while a value of 4 indicates a valid FIH. The FIH includes the Flow ID Extension (flowID Ext) field, the V field, the P field, the Destination Internet Protocol (DIP) mask field, the Source Internet Protocol (SIP) mask field, and a reserved field. The Flow ID Extension field records the flow identifier (i.e., the extended flow identifier). The V field records the reverse flow learning enable flag. The P field records the detection period (or the reporting period of the detection results). The value of the P field can be 0, 1, 2, 3, 4, or 5. 0 and 1 are reserved values. 2 indicates a detection period of 10 seconds, 3 indicates a detection period of 30 seconds, 4 indicates a detection period of 60 seconds, and 5 indicates a detection period of 300 seconds. The DIP mask field records the length of the DIP mask used for automatic reverse flow learning. The SIP mask field records the length of the SIP mask used for automatic reverse flow learning. These reserved fields are for future expansion.

[0152] Please refer to Figure 2This document illustrates a structural diagram of an IFIT message provided in an embodiment of this application. This IFIT message is an IFIT message used in an SRv6 scenario. The IFIT message includes: payload, segment routing header (SRH), IFIT header, segment list, SRH basic header, and Ethernet header (ETH). The IFIT header is inserted into the datagram by the header node; its content can be found in [reference needed]. Figure 1 The descriptions of SRH, segment list, and SRH base header are omitted here.

[0153] It should be noted that, Figure 1 and Figure 2 This is for illustrative purposes only and is not intended to limit the technical solutions of this application. In practical applications, the content and format of the IFIT header and IFIT message can be flexibly adjusted as needed. For example, in Figure 2 In the illustrated IFIT message, the IFIT header is located within the SRv6 header. In other implementation scenarios, the IFIT header can be independent of the SRv6 header; for example, the IFIT header can be located within the hop-by-hop header (HBH). This embodiment of the application does not limit this. Furthermore, the structure of the IOAM header, the structure of the IOAM message, and the structures of other detection headers and detection messages can all refer to relevant standard protocols, and will not be elaborated here.

[0154] The technical solution of this application is introduced below, and the application scenario of this application is introduced first.

[0155] Please refer to Figure 3 The illustration shows a schematic diagram of an application scenario provided by an embodiment of this application. This application scenario provides a communication network, which can also be referred to as a communication system. This communication network is, for example, a data center network (DCN), a metropolitan area network, a wide area network, or a campus network.

[0156] like Figure 3As shown, the communication network includes a controller 100 and multiple network nodes 101-103. The controller 100 is connected to network nodes 101-103 respectively, and the network nodes 101-103 are connected sequentially. Network nodes 101-103 can forward packets under the control of the controller 100. For example, network nodes 101-103 include edge network nodes and core network nodes. Edge network nodes are located at the edge of the communication network and are used for workstations to access the communication network. Core network nodes are connected between different edge network nodes and are used for packet forwarding between different edge network nodes. For example, the edge network node can be a provider edge (PE) node, and the core network node can be a provider (P) node.

[0157] The controller 100 integrates network management, service control, and network analysis functions. The controller 100 can be a functional module deployed in a server, a single server, a server cluster consisting of several servers, a cloud computing service center, or other devices or modules with network control functions. Each network node 101-103 can be a switch, router, virtual switch, or virtual router, etc. This embodiment uses the example where all network nodes 101-103 are network devices. In one possible scenario, network nodes 101-103 are the same network device; for example, all network nodes 101-103 are routers. In another possible scenario, at least two of network nodes 101-103 are different network devices; for example, some network nodes 101-103 are routers, and others are switches. The workstation accessing the communication network can be a host, server, base station, virtual machine (VM), etc. The host can be a smartphone, tablet, desktop computer, or Internet of Things (IoT) device, etc. This embodiment does not limit the specific devices used.

[0158] Communication networks typically include data flow transmission paths, which may include multiple network nodes. Based on the direction of data flow, these network nodes can include a head node, a tail node, and at least one intermediate node located between the head and tail nodes. Data flows into the transmission path through the head node and out through the tail node. The number of intermediate nodes varies depending on the length of the transmission path, or the transmission path may only include head and tail nodes, excluding intermediate nodes. In some implementation scenarios, network nodes are also called network devices, gateway devices, routing nodes, or routing devices; head nodes are also called head node devices, ingress nodes, entry devices, or first nodes; intermediate nodes are also called relay nodes, relay devices, or intermediate devices; tail nodes are also called tail node devices, egress nodes, or exit devices; and transmission paths are also called forwarding paths, communication paths, or communication tunnels. For example... Figure 1 As shown, the communication network includes a transmission path P, network node 101 can be a head node, network node 103 can be a tail node, and network node 102 can be an intermediate node.

[0159] In this embodiment, the head node (e.g., network node 101) can enable multiple matching strategies, all of which can be used for data stream matching during transmission detection. At least two of the multiple matching strategies can be of different types, or the multiple matching strategies can be of the same type. After receiving a data packet of a certain data stream, the head node matches the data packet with each of the multiple matching strategies and obtains a detection packet for the data stream based on the matching results. The detection packet includes a detection header (e.g., an IFIT header or an IOAM header), which includes a flow identifier indicating the data stream. The head node then forwards the detection packet to its next-hop node, which can be an intermediate node or a tail node. Here, we take an example where the next-hop node is an intermediate node (e.g., network node 102). After receiving the detection message, the intermediate node forwards it to its next-hop node. The next-hop node can be either an intermediate node or a tail node; this example assumes the next-hop node is a tail node (e.g., network node 103). Upon receiving the detection message, the tail node can remove the detection header to obtain the original data message. During the transmission of the detection messages in this data stream, at least one of the head node, intermediate node, and tail node can obtain the transmission detection information of the data stream based on the detection messages. For ease of description, in this application, a data stream matching a single matching strategy (i.e., one matching strategy) is referred to as a single data stream (or raw data stream), the stream identifier used to indicate a single data stream (or raw data stream) is referred to as a single stream identifier (or raw stream identifier), a data stream matching at least two matching strategies is referred to as a detailed data stream (or integrated data stream, aggregated data stream), and the stream identifier used to indicate a detailed data stream (or integrated data stream, aggregated data stream) is referred to as a detailed stream identifier (or integrated stream identifier, aggregated stream identifier). Network nodes can obtain the transmission detection information of a detailed data stream based on the detection message of that detailed data stream. The transmission detection information of a detailed data stream can include the transmission detection information corresponding to each of the at least two matching strategies matching that detailed data stream. This transmission detection information can cover the at least two matching strategies matching that detailed data stream, making it more comprehensive. Therefore, the detection accuracy of the detailed data stream is higher, and the detection effect is better.

[0160] Furthermore, in this application, the detailed stream identifier and the single stream identifier can be associated. After obtaining the transmission detection information of the detailed data stream, the network node can determine the transmission detection information of the single data stream based on the transmission detection information of the detailed data stream and the association relationship between the detailed stream identifier and the single stream identifier. For example, the network node determines the transmission detection information corresponding to the matching strategy that matches the single data stream from the transmission detection information of the detailed data stream as the transmission detection information of the single data stream. The network node can also send the transmission detection information of the single data stream to the controller, and the controller can determine the transmission quality of the single data stream based on the transmission detection information of the single data stream. Alternatively, after obtaining the transmission detection information of the detailed data stream, the network node can send this information to the controller. The controller can then determine the transmission detection information of the single data stream based on this information and the association between the detailed stream identifier and the single stream identifier. For example, the controller can determine the transmission detection information corresponding to the matching strategy that matches the single data stream from the detailed data stream's transmission detection information as the single data stream's transmission detection information. The controller can also determine the transmission quality of the single data stream based on this transmission detection information. Because this application allows determining the transmission detection information of a single data stream based on the detailed data stream's transmission detection information and the association between the detailed stream identifier and the single stream identifier, the determined single data stream's transmission detection information is more comprehensive, and the single data stream's detection effect is better.

[0161] For example, the head node enables multiple matching strategies, including matching strategy 1, matching strategy 2, and matching strategy 3. `flowID1` indicates a data flow that matches matching strategy 1 but does not match matching strategy 2 or matching strategy 3 (this data flow is simply referred to as data flow 1). `flowID2` indicates a data flow that matches matching strategy 2 but does not match matching strategy 1 or matching strategy 3 (this data flow is simply referred to as data flow 2). `flowID3` indicates a data flow that matches matching strategy 3 but does not match matching strategy 1 or matching strategy 2 (this data flow is simply referred to as data flow 3). `flowID12` indicates a data flow that matches both matching strategy 1 and matching strategy 2 but does not match matching strategy 3 (this data flow is simply referred to as data flow 12). `flowID23` indicates a data flow that matches both matching strategy 2 and matching strategy 3 but does not match matching strategy 1 (this data flow is simply referred to as data flow 23). `flowID13` indicates a data flow that matches both matching strategy 1 and matching strategy 3 but does not match matching strategy 2 (this data flow is simply referred to as data flow 13). flowID123 is used to indicate a data flow that matches all three matching strategies (matching strategy 1, matching strategy 2, and matching strategy 3) (this data flow is simply referred to as data flow 123). Data flow 1, data flow 2, and data flow 3 can all be called single data flows (or raw data flows), and flowID1, flowID2, and flowID3 can all be called single flow identifiers (or raw flow identifiers). Data flow 12, data flow 13, data flow 23, and data flow 123 can all be called detailed data flows, and flowID12, flowID13, flowID23, and flowID123 can all be called detailed flow identifiers. flowID12 is associated with flowID1 and flowID2, flowID13 is associated with flowID1 and flowID3, flowID23 is associated with flowID2 and flowID3, and flowID123 is associated with flowID1, flowID2, and flowID3.

[0162] Taking data stream 12 as an example, during the transmission of the detection message of data stream 12, at least one of the head node, intermediate node, and tail node can obtain the transmission detection information of data stream 12 based on the detection message of data stream 12. Since data stream 12 matches both matching strategy 1 and matching strategy 2, the transmission detection information of data stream 12 can include the transmission detection information corresponding to matching strategy 1 and the transmission detection information corresponding to matching strategy 2. The transmission detection information of data stream 12 is more comprehensive, with higher detection accuracy and better detection effect. In addition, since flowID12 is associated with flowID1 and flowID2, the transmission detection information of the data stream that matches matching strategy 1 but does not match matching strategy 2 or matching strategy 3 (i.e., data stream 1) can be determined based on the transmission detection information of data stream 12, and the transmission detection information of the data stream that matches matching strategy 2 but does not match matching strategy 1 or matching strategy 3 (i.e., data stream 2) can be determined based on the transmission detection information of data stream 12. For example, after the at least one network node obtains the transmission detection information of data stream 12, the at least one network node can determine the transmission detection information of data stream 1 based on the transmission detection information of data stream 12 and the association between flowID12 and flowID1 (for example, determining the transmission detection information corresponding to matching strategy 1 in the transmission detection information of data stream 12 as the transmission detection information of data stream 1). Furthermore, the at least one network node can determine the transmission detection information of data stream 2 based on the transmission detection information of data stream 12 and the association between flowID12 and flowID2 (for example, determining the transmission detection information corresponding to matching strategy 2 in the transmission detection information of data stream 12 as the transmission detection information of data stream 2). The at least one network node can send both the transmission detection information of data stream 1 and the transmission detection information of data stream 2 to the controller. The controller can determine the transmission quality of data stream 1 based on the transmission detection information of data stream 1, and the controller can determine the transmission quality of data stream 2 based on the transmission detection information of data stream 2.Alternatively, after acquiring the transmission detection information of data stream 12, the at least one network node can send the transmission detection information of data stream 12 to the controller. The controller can determine the transmission detection information of data stream 1 based on the transmission detection information of data stream 12 and the association between flowID12 and flowID1 (for example, determining the transmission detection information of data stream 12 corresponding to matching strategy 1 as the transmission detection information of data stream 1), and determine the transmission quality of data stream 1 based on the transmission detection information of data stream 1. Similarly, the controller can determine the transmission detection information of data stream 2 based on the transmission detection information of data stream 12 and the association between flowID12 and flowID2 (for example, determining the transmission detection information of data stream 12 corresponding to matching strategy 2 as the transmission detection information of data stream 2), and determine the transmission quality of data stream 2 based on the transmission detection information of data stream 2. Therefore, the transmission detection information of both data stream 1 and data stream 2 is more comprehensive, and the detection effect of data stream 1 and data stream 2 is also better.

[0163] It should be noted that the definitions of head node and tail node above are merely illustrative. In practical applications, the head node can be the network node that begins monitoring traffic, and the tail node can be the network node that ends monitoring traffic. For example, for a data stream, the head node can be the network node that begins detecting the transmission quality of the data stream (or the starting node for detecting the data stream), and the tail node can be the network node that ends detecting the transmission quality of the data stream (or the ending node for detecting the data stream). It can be understood that any network node in a communication network can serve as a head node and / or a tail node. For example... Figure 1 As shown, if it is necessary to detect the transmission quality of a certain data stream from network node 102 to network node 103, network node 102 can be the head node and network node 103 can be the tail node; if it is necessary to detect the transmission quality of another data stream from network node 103 to network node 101, network node 103 can be the head node and network node 101 can be the tail node.

[0164] It should also be noted that the terms "single data stream" and "detailed data stream" are used merely for ease of description. Both "single data stream" and "detailed data stream" are defined at the granularity of matching strategies. "Single data stream" is short for a data stream matching a single matching strategy, while "detailed data stream" is short for a data stream matching at least two matching strategies. A single data stream can be a single data stream (or business stream) or a group of multiple data streams (or business streams). For example, a single data stream is a data stream identified by a 5-tuple. For instance, if data stream A, identified by 5-tuple A, matches matching strategy 1 but does not match matching strategies 2 and 3, then data stream A can be the aforementioned data stream 1 (i.e., a single data stream). For example, a single data stream can be a group of multiple data streams identified by a 5-tuple. For instance, if data stream B, identified by 5-tuple B, and data stream C, identified by 5-tuple C, both match matching strategy 2 but do not match matching strategies 1 and 3, then data streams B and C together constitute the aforementioned data stream 2 (i.e., a single data stream). In other words, data stream 2 includes data streams B and C. The concept of a raw data stream is the same as that of a single data stream, and the concepts of combined data stream and aggregated data stream are the same as those of a detailed data stream, and will not be elaborated further here.

[0165] It should also be pointed out that, Figure 1 The application scenarios illustrated are for illustrative purposes only and are not intended to limit the technical solutions of this application. In implementation, the controller can also be integrated into network nodes; for example, the controller can be integrated into the head node. The communication network may include more than […]. Figure 1 The number of network nodes shown can be increased or decreased, and the number of network nodes and controllers can be configured as needed. This application embodiment does not limit this.

[0166] The above is an introduction to the application scenarios of this application. The following is an embodiment of the transmission detection method of this application.

[0167] Please refer to Figure 4 The diagram illustrates a flowchart of a transmission detection method provided in an embodiment of this application. This transmission detection method is applied to a first network node, which may be a head node (the network node that begins monitoring the first data stream). For example... Figure 1 As shown, network node 101 can be the network node that begins monitoring the first data stream, and the first network node can be network node 101. See also Figure 4 The method includes the following steps S401 to S403.

[0168] S401. The first network node receives the first message, which is a data message of the first data stream.

[0169] The first network node can receive the first message from its upstream node. The upstream node of the first network node can be a network node or a workstation connected to the first network node.

[0170] S402. The first network node obtains a second message based on the first message. The second message includes a detection header, which includes a first flow identifier. The first flow identifier is associated with a second flow identifier and a third flow identifier. The first flow identifier is used to indicate a first data flow, the second flow identifier is used to indicate a second data flow, and the third flow identifier is used to indicate a third data flow. The second data flow matches the first matching policy and does not match the second matching policy. The third data flow matches the second matching policy and does not match the first matching policy. The first message matches both the first and second matching policies.

[0171] In this embodiment, the first network node can enable multiple matching policies, including a first matching policy and a second matching policy. The types of the first and second matching policies can be different or the same. In this application, a data stream that matches both the first and second matching policies is referred to as a first data stream; a data stream that matches the first matching policy but not the second matching policy is referred to as a second data stream (e.g., a second data stream that matches only the first matching policy); and a data stream that matches the second matching policy but not the first matching policy is referred to as a third data stream (e.g., a third data stream that matches only the second matching policy). After receiving a first packet, the first network node can match the first packet with each of the multiple matching policies. The first network node can determine that the first packet matches both the first and second matching policies. Then, the first network node obtains a second packet including a detection header based on the first packet. This detection header includes a first stream identifier indicating the first data stream. Optionally, the first network node first obtains the first flow identifier, then generates a detection header including the first flow identifier, and then adds the detection header to the first message to obtain the second message. The first flow identifier is associated with both the second and third flow identifiers; the second flow identifier indicates the second data flow, and the third flow identifier indicates the third data flow. In this application, the message including the detection header is referred to as the detection message, and the second message can be the detection message of the first data flow.

[0172] In this embodiment, the first flow identifier may be generated by the first network node when it receives the first data packet of the first data stream, or it may be pre-allocated before the first data stream is transmitted. After the first network node determines that the first packet matches both the first matching strategy and the second matching strategy, the first network node can obtain the pre-allocated first flow identifier. Alternatively, the first packet is the first data packet of the first data stream, and after the first network node determines that the first packet matches both the first matching strategy and the second matching strategy, the first network node generates the first flow identifier. This embodiment does not limit this approach.

[0173] The following description uses the example of a pre-allocated first flow identifier. In an optional embodiment, the first network node allocates flow identifiers according to multiple matching policies enabled by the first network node, and establishes a correspondence between matching policies and flow identifiers. When the first network node actually transmits a data stream, it determines the corresponding flow identifier based on the matching policy that matches the data stream to generate a detection header. For ease of description, a data stream matching a single matching policy is called a single data stream, and the flow identifier used to indicate a single data stream is called a single flow identifier. A data stream matching at least two matching policies is called a detailed data stream, and the flow identifier used to indicate a detailed data stream is called a detailed flow identifier. Among the multiple matching policies enabled by the first network node, each matching policy can correspond to a single flow identifier. The single flow identifiers corresponding to any two matching policies are different. The single flow identifier corresponding to each matching policy is used to indicate the data stream (i.e., a single data stream) that matches each matching policy. Furthermore, every at least two matching policies can jointly correspond to a detailed flow identifier. The detailed flow identifier jointly corresponding to every at least two matching policies is used to indicate the data stream (i.e., a detailed data stream) that matches every at least two matching policies. The first network node can obtain the first flow identifier based on the first matching policy and the second matching policy that match the first packet, as well as the correspondence between the matching policy and the flow identifier. As an example, the first network node enables multiple matching policies including matching policy 1, matching policy 2, and matching policy 3. Matching policy 1 corresponds to flowID1, matching policy 2 corresponds to flowID2, matching policy 3 corresponds to flowID3, matching policy 1 and matching policy 2 together correspond to flowID12, matching policy 1 and matching policy 3 together correspond to flowID13, matching policy 2 and matching policy 3 together correspond to flowID23, and matching policy 1, matching policy 2, and matching policy 3 together correspond to flowID123. Assuming the first matching policy is matching policy 1 and the second matching policy is matching policy 2, the first network node determines the first flow identifier as flowID12 based on the first and second matching policies that match the first packet, as well as the correspondence between the matching policy and the flow identifier. The first flow identifier is a detailed flow identifier.

[0174] In an optional embodiment, the first matching strategy is associated with the first detection strategy, and the second matching strategy is associated with the second detection strategy. After the first network node determines that the first packet matches both the first and second matching strategies, the first network node can determine the detection strategy for the first data stream based on the first and second detection strategies. Then, it generates a detection header based on the first stream identifier and the detection strategy for the first data stream, and adds this detection header to the first packet to obtain the second packet. Each of the first and second detection strategies can include at least one of a detection action, a detection period, and a detection type. The detection strategy for the first data stream can include at least one of a detection action, a detection period, and a detection type.

[0175] In optional embodiments, the first detection strategy includes a first detection action, the second detection strategy includes a second detection action, a first matching strategy is associated with the first detection action, and the second matching strategy is associated with the second detection action. The first network node determining the detection strategy for the first data stream based on the first and second detection strategies may include: the first network node determining the detection action for the first data stream based on the first and second detection actions. The detection action for the first data stream includes at least one of the first and second detection actions; for example, the detection action for the first data stream includes both the first and second detection actions. The detection header of the second message may also include action indication information, which is used to indicate the detection action for the first data stream. This application includes action indication information in the detection header of the second message, which facilitates the network node that obtains the second message to perform the corresponding detection action according to the action indication information to obtain the transmission detection information of the first data stream. For example, one of the first and second detection actions is a latency detection action, and the other is a packet loss detection action (e.g., the first detection action is a latency detection action, and the second detection action is a packet loss detection action). The action indication information for the first data stream may include latency detection indication information and packet loss detection indication information. The latency detection indication information is used to indicate latency detection actions. A network node that obtains the second packet can obtain the latency detection information of the first data stream based on the latency detection indication information included in the detection header of the second packet. This latency detection information may include: the receive timestamp of the second packet received by the network node, and / or the send timestamp of the second packet sent by the network node. The packet loss detection indication information is used to indicate packet loss detection actions. A network node that obtains the second packet can obtain the packet loss detection information of the first data stream based on the packet loss detection indication information included in the detection header of the second packet. This packet loss detection information may include: the number of packets (e.g., detection packets) received by the network node in the first data stream, and / or the number of packets (e.g., detection packets) sent by the network node in the first data stream. The latency detection indication information can also be called a latency coloring mark, and the packet loss detection indication information can also be called a packet loss coloring mark. The above-mentioned latency detection information and packet loss detection information are collectively referred to as transmission detection information.

[0176] In optional embodiments, the first detection strategy includes a first detection period, the second detection strategy includes a second detection period, a first matching strategy is associated with the first detection period, and the second matching strategy is associated with the second detection period. The first network node determining the detection strategy for the first data stream based on the first and second detection strategies may include: the first network node determining the detection period of the first data stream based on the first and second detection periods. The detection period of the first data stream is the minimum period between the first and second detection periods. The detection header of the second message may further include period indication information, which is used to indicate the detection period of the first data stream. This application includes period indication information in the detection header of the second message, which facilitates the network node obtaining the second message in determining the detection period of the first data stream, and thus obtaining the transmission detection information of the first data stream within the detection period of the first data stream.

[0177] In optional embodiments, the first detection strategy includes a first detection type, the second detection strategy includes a second detection type, a first matching strategy is associated with the first detection type, and the second matching strategy is associated with the second detection type. The first network node determining the detection strategy for the first data stream based on the first and second detection strategies may include: the first network node determining the detection type of the first data stream based on the first and second detection types. The detection type of the first data stream includes one of the first and second detection types. For example, the first detection type is end-to-end detection, the second detection type is hop-by-hop detection, and the detection type of the first data stream is the second detection type (i.e., hop-by-hop detection). The detection header of the second message may also include type indication information, which indicates the detection type of the first data stream. This application includes type indication information in the detection header of the second message, which facilitates the network node that obtains the second message in determining the detection type of the first data stream based on the type indication information, and then detecting the first data stream according to the detection type of the first data stream to obtain the transmission detection information of the first data stream. For example, if the detection type of the first data stream is hop-by-hop detection, the head node, intermediate nodes, and tail node can all detect the first data stream to obtain its transmission detection information. As another example, if the detection type of the first data stream is end-to-end detection, both the head node and tail node can detect the first data stream to obtain its transmission detection information, while intermediate nodes may not need to detect the first data stream.

[0178] In an optional embodiment, the detection header is an IFIT header. The first flow identifier can be carried in the flow identifier field of the IFIT header, the delay detection indication information can be carried in the D field of the IFIT header, the packet loss detection indication information can be carried in the L field of the IFIT header, the period indication information can be carried in the P field of the IFIT header, and the type indication information can be carried in the HTI field of the IFIT header. Besides the first flow identifier, action indication information, period indication information, and type indication information, the detection header may also include other information related to transmission detection, which will not be elaborated here. Furthermore, the use of an IFIT header is merely an example; in other embodiments, the detection header can be other flow-following detection headers, such as an IOAM header. This application does not limit this to specific implementations.

[0179] S403. The first network node forwards the second message.

[0180] The first network node can forward the second message to its next-hop node. The next-hop node can be an intermediate node or a tail node. For example... Figure 1 As shown, the first network node is network node 101, the next hop node of the first network node is network node 102, and network node 102 can be an intermediate node.

[0181] In summary, the transmission detection method provided in this application involves a first network node receiving a first message of a first data stream, then obtaining a second message based on the first message and forwarding it. The second message includes a detection header, which includes a first stream identifier indicating the first data stream. Since the first data stream matches both the first and second matching strategies, network nodes along the transmission path of the first data stream can detect it based on the detection header included in the second message. This allows for the detection of the first data stream based on both the first and second matching strategies. The detection results of the first data stream can cover both the first and second matching strategies. The detection results can include the detection results corresponding to the first and second matching strategies, making the detection results more comprehensive. Therefore, the detection accuracy of the first data stream is higher, and the detection effect is better.

[0182] Furthermore, the second message may include only one detection header. That is, this application can detect the first data stream by adding one detection header to the data message of the first data stream according to the first matching strategy and the second matching strategy. Therefore, it will not increase the overhead of the data message of the first data stream, avoid adding multiple detection headers to the data message of the first data stream to consume additional network bandwidth resources, and improve the utilization rate of network bandwidth resources.

[0183] Furthermore, the first-stream identifier is associated with both the second-stream identifier and the third-stream identifier. The first-stream identifier indicates the first data stream, the second-stream identifier indicates the second data stream, and the third-stream identifier indicates the third data stream. The first data stream matches both the first and second matching strategies. The second data stream matches the first matching strategy but does not match the second matching strategy. The third data stream matches the second matching strategy but does not match the first matching strategy. After obtaining the detection results of the first data stream that matches both the first and second matching strategies, the detection results of the second data stream that matches the first matching strategy but does not match the second matching strategy can be determined based on the detection results of the first data stream and the association between the first-stream identifier and the second-stream identifier. Similarly, the detection results of the third data stream that matches the second matching strategy but does not match the first matching strategy can be determined based on the detection results of the first data stream and the association between the first-stream identifier and the third-stream identifier. In this way, the detection results of the second and third data streams are more comprehensive, and the detection effects of the second and third data streams are better.

[0184] In this embodiment, the first message may be the first data message of the first data stream. After the first network node determines that the first message matches both the first matching strategy and the second matching strategy, for example, after the first network node forwards the second message obtained based on the first message, the first network node can generate a flow table for the first data stream based on the message information of the first message and the first flow identifier. As an example, please refer to... Figure 5 The diagram illustrates a flowchart of another transmission detection method provided in an embodiment of this application. Figure 5 As shown, the transmission detection method applied to the first network node further includes the following step S404.

[0185] S404. The first network node generates a first flow table, which includes the message information of the first message and the first flow identifier.

[0186] The first flow table is the flow table of the first data stream. It includes message information of the first packet and a first flow identifier. The message information of the first packet can be tuple information included in the first packet, such as binary, triplet, or quintuple tuples. Optionally, the first flow table may also include at least one of the following: action indication information, period indication information, and type indication information. The action indication information is used to indicate the detection action of the first data stream, the period indication information is used to indicate the detection period of the first data stream, and the type indication information is used to indicate the detection type of the first data stream.

[0187] For example, the first network node generates a first flow table based on the message information of the first message, the first flow identifier, the detection action of the first data flow, the detection period of the first data flow, and the detection type of the first data flow.

[0188] In an optional embodiment, after the first network node generates the first flow table, the first network node can determine whether the number of hits of the first flow table within a specified time period is greater than a preset number. If the first network node determines that the number of hits of the first flow table within the specified time period is not greater than the preset number, the first network node can age the first flow table, thereby reducing the overhead of flow resources. For example, the first network node periodically checks the number of hits of the first flow table. If, within a certain period, the number of hits of the first flow table is not greater than the preset number, the first network node ages the first flow table, for example, by deleting the first flow table. In a specific embodiment, at the beginning of each aging cycle (e.g., the duration of the aging cycle is equal to the specified duration mentioned above), the first network node begins to count the number of hits of the first flow table, and at the end of each aging cycle, it stops counting the number of hits of the first flow table. If at the end of each aging cycle, the number of hits of the first flow table counted by the first network node is not greater than a preset number, the first network node ages the first flow table. If at the end of each aging cycle, the number of hits of the first flow table counted by the first network node is not less than the preset number, the first network node resets the preset number count for this aging cycle to zero and begins counting for the next aging cycle. The preset number can be set as needed; for example, the preset number can be 0.

[0189] After the first network node generates the flow table for the first data stream, for subsequent data packets received from the first data stream, the first network node can obtain the detection message for the first data stream based on the flow table and the data packet, in order to perform transmission detection of the first data stream. Please continue to refer to... Figure 5 The transmission detection method applied to the first network node further includes the following steps S405 to S407.

[0190] S405. The first network node receives the third message, which is a data message of the first data stream.

[0191] S406. The first network node obtains the fourth message based on the third message. The third message matches the first flow table. The fourth message includes a detection header, which includes the first flow identifier.

[0192] The first network node can match the message information of the third message with the message information included in the first flow table. If the first network node determines that the message information of the third message matches the message information included in the first flow table, the first network node confirms that the third message matches the first flow table. Then, the first network node obtains a fourth message, including a detection header, based on the third message.

[0193] In this embodiment, the detection header of the fourth message includes a first flow identifier from the first flow table. Furthermore, the detection header of the fourth message may also include at least one of the following: action indication information, period indication information, and type indication information. The action indication information indicates the detection action of the first data stream, the period indication information indicates the detection period of the first data stream, and the type indication information indicates the detection type of the first data stream.

[0194] For example, the first network node generates a detection header based on the first flow identifier, action indication information, period indication information and type indication information included in the first flow table, and adds the detection header to the third message to obtain the fourth message.

[0195] S407. The first network node forwards the fourth message.

[0196] In summary, the transmission detection method provided in this application allows a first network node to generate a flow table for the first data stream based on the first data packet of the first data stream. Subsequently, after the first network node receives data packets of the first data stream, it obtains the detection packet of the first data stream based on the flow table of the first data stream and the data packets of the first data stream. This simplifies the process of the first network node obtaining the detection packet of the first data stream and improves the efficiency of the first network node in obtaining the detection packet of the first data stream.

[0197] During the transmission of packets of the first data stream, the first network node can obtain transmission detection information of the first data stream based on the packets. The packets of the first data stream mentioned here include the data packets of the first data stream and / or the detection packets of the first data stream. The detection packets of the first data stream are obtained based on the data packets of the first data stream and include a detection header carrying a first stream identifier. For example, the aforementioned first and third packets are both data packets of the first data stream, and the aforementioned second and fourth packets are both detection packets of the first data stream.

[0198] The following example illustrates how the first network node obtains the transmission detection information of the first data stream based on the detection message of the first data stream. Please refer to [link / reference needed]. Figure 4 and Figure 5 The transmission detection method applied to the first network node further includes the following step S408.

[0199] S408. The first network node obtains the transmission detection information of the first data stream based on the detection message of the first data stream.

[0200] Optionally, the first network node obtains the transmission detection information of the first data stream based on the detection header included in the detection message of the first data stream. As described above, the detection header of the detection message of the first data stream includes a first stream identifier, and may also include at least one of the following: action indication information, period indication information, and type indication information.

[0201] Taking the detection header of the detection message of the first data stream, which includes a first stream identifier, action indication information, period indication information, and type indication information, as an example, the first network node can determine the detection type of the first data stream based on the type indication information included in the detection header of the first data stream detection message, determine the detection action of the first data stream based on the action indication information included in the detection header of the first data stream detection message, and determine the detection period of the first data stream based on the period indication information included in the detection header of the first data stream detection message. Within each detection period of the first data stream, the first network node executes the detection action of the first data stream according to the detection type of the first data stream to obtain the transmission detection information of the first data stream. For example, the detection action of the first data stream includes a latency detection action and a packet loss detection action. Within each detection period of the first data stream, the first network node obtains the latency detection information of the first data stream by executing the latency detection action, and obtains the packet loss detection information of the first data stream by executing the packet loss detection action.

[0202] The first network node can be the head node. Within each detection period of the first data stream, the latency detection information of the first data stream acquired by the first network node includes: the sending timestamp of the detection packets of the first data stream sent by the first network node within each detection period, and may also include the receiving timestamp of the data packets of the first data stream received by the first network node within each detection period. The packet loss detection information of the first data stream acquired by the first network node includes: the number of detection packets of the first data stream sent by the first network node within each detection period, and may also include the number of data packets of the first data stream received by the first network node within each detection period. This embodiment of the application does not limit this.

[0203] After the first network node obtains the transmission detection information of the first data stream, in one implementation of this application, please continue to refer to... Figure 4 and Figure 5 The transmission detection method applied to the first network node further includes the following step S409a.

[0204] S409a. The first network node sends a first reporting message to the controller, the first reporting message including the first stream identifier and the transmission detection information of the first data stream.

[0205] The first network node may send a first reporting message to the controller after the end of each detection cycle of the first data stream. The first reporting message sent by the first network node to the controller each time may include the first stream identifier and the transmission detection information of the first data stream obtained by the first network node in the previous detection cycle, such as: the latency detection information and packet loss detection information of the first data stream obtained by the first network node in the previous detection cycle.

[0206] Optionally, the first network node sends the first reporting information to the controller via the border gateway protocol (BGP), network configuration protocol (NETCONF), pathcomputation element communication protocol (PCEP), or other proprietary protocols. This application embodiment does not limit the protocol used by the first network node to send the first reporting information to the controller.

[0207] It should be noted that S409a is merely exemplary. In other embodiments, the first network node acts as the head node, and the first network node may not execute S409a. The first network node can carry the transmission detection information of the first data stream obtained by the first network node to the tail node through the detection message of the first data stream. The tail node then uniformly reports the transmission detection information of the first data stream obtained by the network nodes along the first data stream to the controller. This application embodiment does not limit this.

[0208] In summary, the transmission detection method provided in this application, since the first stream identifier is associated with both the second stream identifier and the third stream identifier, allows the first network node to send the first stream identifier and the transmission detection information of the first data stream to the controller. This facilitates the controller in determining the transmission detection information of the second data stream based on the transmission detection information of the first data stream and the association between the first stream identifier and the second stream identifier, and further determines the transmission quality of the second data stream based on the transmission detection information of the second data stream. And / or, it facilitates the controller in determining the transmission detection information of the third data stream based on the transmission detection information of the first data stream and the association between the first stream identifier and the third stream identifier, and further determines the transmission quality of the third data stream based on the transmission detection information of the third data stream. In other words, by associating detailed flow identifiers (e.g., first flow identifiers) with single flow identifiers (e.g., second flow identifiers and third flow identifiers), this application enables network nodes to obtain transmission detection information of detailed data flows. The controller can then determine the transmission detection information of single data flows (e.g., second data flows and third data flows) based on the transmission detection information of the detailed data flow (e.g., first data flow) and the association between the detailed flow identifier and the single flow identifier. This ensures that the transmission detection information of single data flows is more comprehensive and the detection effect of single data flows is better.

[0209] After the first network node obtains the transmission detection information of the first data stream, in another implementation of this application, please refer to... Figures 6 to 7 The transmission detection method applied to the first network node further includes the following steps S409b to S410b, and / or S411b to S412b.

[0210] S409b. The first network node determines the transmission of the second data stream based on the transmission detection information of the first data stream and the association between the first stream identifier and the second stream identifier.

[0211] Input detection information.

[0212] In this embodiment, the first data stream is matched with both the first matching strategy and the second matching strategy. The transmission detection information of the first data stream includes the transmission detection information corresponding to the first matching strategy and the transmission detection information corresponding to the second matching strategy. The second data stream is matched with the first matching strategy but not with the second matching strategy. The first network node can determine the transmission detection information corresponding to the first matching strategy in the transmission detection information of the first data stream as the transmission detection information of the second data stream based on the transmission detection information of the first data stream and the association relationship between the first stream identifier and the second stream identifier.

[0213] In this embodiment, the detection action of the second data stream is the detection action associated with the first matching strategy (i.e., the first detection action). The first network node can determine the transmission detection information corresponding to the first matching strategy in the transmission detection information of the first data stream based on the detection action of the second data stream, and then determine this part of the transmission detection information as the transmission detection information of the second data stream. For example, the first network node determines the transmission detection information of the second data stream based on the transmission detection information of the first data stream, the detection action of the second data stream, and the association relationship between the first stream identifier and the second stream identifier. Taking the transmission detection information of the first data stream including packet loss detection information and latency detection information as an example, in an optional embodiment, the detection action of the second data stream is a packet loss detection action. The first network node determines the packet loss detection information included in the transmission detection information of the first data stream as the transmission detection information corresponding to the first matching strategy in the transmission detection information of the first data stream, and then determines this packet loss detection information as the transmission detection information of the second data stream. In another optional embodiment, the detection action of the second data stream is a latency detection action. The first network node determines the latency detection information included in the transmission detection information of the first data stream as the transmission detection information corresponding to the first matching strategy in the transmission detection information of the first data stream, and then determines the latency detection information as the transmission detection information of the second data stream. In yet another optional embodiment, the detection action of the second data stream is a packet loss detection action and a latency detection action. The first network node determines both the packet loss detection information and the latency detection information included in the transmission detection information of the first data stream as the transmission detection information corresponding to the first matching strategy in the transmission detection information of the first data stream, and then determines the packet loss detection information and the latency detection information as the transmission detection information of the second data stream.

[0214] In an optional embodiment, the first network node also transmits packets of the second data stream (i.e., packets that match the first matching policy but do not match the second matching policy). During the transmission of packets of the second data stream, the first network node can obtain transmission detection information of the second data stream based on the packets of the second data stream. For ease of distinction, the transmission detection information of the second data stream determined based on the transmission detection information of the first data stream and the association relationship between the first stream identifier and the second stream identifier is referred to as the first transmission detection information of the second data stream, and the transmission detection information of the second data stream obtained based on the packets of the second data stream (i.e., packets that match the first matching policy but do not match the second matching policy) is referred to as the second transmission detection information of the second data stream. After obtaining the first transmission detection information and the second transmission detection information of the second data stream, the first network node can merge the first transmission detection information and the second transmission detection information of the second data stream to obtain the final transmission detection information of the second data stream. The first network node may also choose not to merge the first transmission detection information and the second transmission detection information of the second data stream, and this embodiment does not limit this.

[0215] In an optional embodiment, the first network node is the network node that begins monitoring the second data stream (i.e., the head node). After receiving the data packet of the second data stream, the first network node determines that the second data stream matches the first matching strategy and does not match the second matching strategy. Based on the single-stream identifier (i.e., the second stream identifier) ​​corresponding to the first matching strategy, and the first detection strategy associated with the first matching strategy (including at least one of the first detection action, first detection period, and first detection type), the first network node generates a detection header including detection indication information for the second data stream and adds this detection header to the data packet of the second data stream to obtain the detection packet of the second data stream. During the transmission of the detection packet of the second data stream, at least one network node (e.g., including the first network node) can obtain the second transmission detection information of the second data stream based on the detection packet. The implementation process of the network node obtaining the second transmission detection information of the second data stream is similar to the implementation process of the network node obtaining the transmission detection information of the first data stream, and will not be described again here. The detection indication information of the second data stream includes a second stream identifier, and may also include at least one of the following: action indication information of the second data stream, period indication information of the second data stream, and type indication information of the second data stream. The action indication information of the second data stream is used to indicate the detection action of the second data stream (i.e., the first detection action), the period indication information of the second data stream is used to indicate the detection period of the second data stream (i.e., the first detection period), and the type indication information of the second data stream is used to indicate the detection type of the second data stream (i.e., the first detection type). Optionally, the detection header of the detection message of the second data stream may also include other information related to transmission detection, which will not be elaborated here. This detection header may be an IFIT header or other flow-following detection header, such as an IOAM header.

[0216] As described in S409b, if the first network node does not determine the transmission detection information of the second data stream (i.e., the first transmission detection information of the second data stream) based on the transmission detection information of the first data stream and the association between the first stream identifier and the second stream identifier, then the final transmission detection information of the second data stream only includes the second transmission detection information and does not include the first transmission detection information, resulting in incomplete final transmission detection information. In this embodiment, the transmission detection information of the second data stream determined by the first network node based on the transmission detection information of the first data stream and the association between the first stream identifier and the second stream identifier makes the final transmission detection information of the second data stream more comprehensive.

[0217] S410b. The first network node sends a second reporting message to the controller, the second reporting message including the second stream identifier and the transmission detection information of the second data stream.

[0218] Optionally, after the end of each detection cycle of the second data stream, the first network node sends a second reporting message to the controller. Each time the first network node sends the second reporting message to the controller, it includes a second stream identifier and the transmission detection information of the second data stream acquired by the first network node in the previous detection cycle (referring to the detection cycle of the second data stream). The transmission detection information of the second data stream mentioned here can be the first transmission detection information of the second data stream, or it can include both the first and second transmission detection information of the second data stream. Alternatively, the first network node may send the second reporting message to the controller after the end of each detection cycle of the first data stream. Each time the first network node sends the second reporting message to the controller, it includes a second stream identifier and the transmission detection information of the second data stream acquired by the first network node in the previous detection cycle (referring to the detection cycle of the first data stream). This embodiment of the application does not limit this approach.

[0219] Optionally, the first network node sends the second reporting information to the controller via BGP, NETCONF, PCEP or other proprietary protocols. This application does not limit the protocol used by the first network node to send the second reporting information to the controller.

[0220] S411b. The first network node determines the transmission detection information of the third data stream based on the transmission detection information of the first data stream and the association between the first stream identifier and the third stream identifier.

[0221] In this embodiment, the first data stream is matched with both the first and second matching strategies. The transmission detection information of the first data stream includes the transmission detection information corresponding to the first and second matching strategies. The third data stream is matched with the second matching strategy but not with the first matching strategy. The first network node can determine the transmission detection information corresponding to the second matching strategy in the transmission detection information of the first data stream as the transmission detection information of the third data stream based on the transmission detection information of the first data stream and the association relationship between the first stream identifier and the third stream identifier.

[0222] In this embodiment, the detection action of the third data stream is the detection action associated with the second matching strategy (i.e., the second detection action). The first network node can determine the transmission detection information corresponding to the second matching strategy in the transmission detection information of the first data stream based on the detection action of the third data stream, and then determine this part of the transmission detection information as the transmission detection information of the third data stream. For example, the first network node determines the transmission detection information of the third data stream based on the transmission detection information of the first data stream, the detection action of the third data stream, and the association relationship between the first stream identifier and the third stream identifier. Taking the transmission detection information of the first data stream including packet loss detection information and latency detection information as an example, in an optional embodiment, the detection action of the third data stream is a packet loss detection action. The first network node determines the packet loss detection information included in the transmission detection information of the first data stream as the transmission detection information corresponding to the second matching strategy in the transmission detection information of the first data stream, and then determines this packet loss detection information as the transmission detection information of the third data stream. In another optional embodiment, the detection action of the third data stream is a latency detection action. The first network node determines the latency detection information included in the transmission detection information of the first data stream as the transmission detection information corresponding to the second matching strategy in the transmission detection information of the first data stream, and then determines the latency detection information as the transmission detection information of the third data stream. In yet another optional embodiment, the detection action of the third data stream is a packet loss detection action and a latency detection action. The first network node determines both the packet loss detection information and the latency detection information included in the transmission detection information of the first data stream as the transmission detection information corresponding to the second matching strategy in the transmission detection information of the first data stream, and then determines the packet loss detection information and the latency detection information as the transmission detection information of the third data stream.

[0223] In an optional embodiment, the first network node also transmits packets of the third data stream (i.e., packets that match the second matching strategy but do not match the first matching strategy). During the transmission of packets of the third data stream, the first network node can obtain transmission detection information of the third data stream based on the packets of the third data stream. For ease of distinction, the transmission detection information of the third data stream determined based on the transmission detection information of the first data stream and the association relationship between the first stream identifier and the third stream identifier is referred to as the first transmission detection information of the third data stream. The transmission detection information of the third data stream obtained based on packets of the third data stream (i.e., packets that match the second matching strategy but do not match the first matching strategy) is referred to as the second transmission detection information of the third data stream. After obtaining the first and second transmission detection information of the third data stream, the first network node can fuse the first and second transmission detection information of the third data stream to obtain the final transmission detection information of the third data stream. The first network node may also choose not to fuse the first and second transmission detection information of the third data stream; this embodiment does not limit this.

[0224] In an optional embodiment, the first network node is the network node that begins monitoring the third data stream (i.e., the head node). After receiving the data packet of the third data stream, the first network node determines that the third data stream matches the second matching strategy and does not match the first matching strategy. Based on the single-stream identifier (i.e., the third-stream identifier) ​​corresponding to the second matching strategy, and the second detection strategy associated with the second matching strategy (including at least one of the second detection action, second detection period, and second detection type), the first network node generates a detection header including detection indication information for the third data stream and adds this detection header to the data packet of the third data stream to obtain the detection packet of the third data stream. During the transmission of the detection packet of the third data stream, at least one network node (e.g., including the first network node) can obtain the second transmission detection information of the third data stream based on the detection packet. The implementation process of the network node obtaining the second transmission detection information of the third data stream is similar to the implementation process of the network node obtaining the transmission detection information of the first data stream, and will not be described again here. The detection indication information of the third data stream includes a third stream identifier, and may also include at least one of the following: action indication information of the third data stream, period indication information of the third data stream, and type indication information of the third data stream. The action indication information of the third data stream is used to indicate the detection action of the third data stream (i.e., the second detection action), the period indication information of the third data stream is used to indicate the detection period of the third data stream (i.e., the second detection period), and the type indication information of the third data stream is used to indicate the detection type of the third data stream (i.e., the second detection type). Optionally, the detection header of the third data stream detection message may also include other information related to transmission detection, which will not be elaborated here. This detection header may be an IFIT header or other flow-following detection headers, such as an IOAM header.

[0225] As described in S411b, if the first network node does not determine the transmission detection information of the third data stream (i.e., the first transmission detection information of the third data stream) based on the transmission detection information of the first data stream and the association between the first stream identifier and the third stream identifier, then the final transmission detection information of the third data stream only includes the second transmission detection information and does not include the first transmission detection information, resulting in incomplete final transmission detection information. In this embodiment, the first network node determines the transmission detection information of the third data stream based on the transmission detection information of the first data stream and the association between the first stream identifier and the third stream identifier, making the final transmission detection information of the third data stream more comprehensive.

[0226] S412b. The first network node sends a third reporting message to the controller, which includes a third stream identifier and transmission detection information of the third data stream.

[0227] Optionally, after the end of each detection cycle of the third data stream, the first network node sends a third reporting message to the controller. Each time the first network node sends the third reporting message to the controller, it includes the third stream identifier and the transmission detection information of the third data stream obtained by the first network node in the previous detection cycle (referring to the detection cycle of the third data stream). The transmission detection information of the third data stream mentioned here can be the first transmission detection information of the third data stream, or it can include both the first and second transmission detection information of the third data stream. Alternatively, the first network node may send the third reporting message to the controller after the end of each detection cycle of the first data stream. Each time the first network node sends the third reporting message to the controller, it includes the third stream identifier and the transmission detection information of the third data stream obtained by the first network node in the previous detection cycle (referring to the detection cycle of the first data stream). This embodiment of the application does not limit this approach.

[0228] Optionally, the first network node may send third reporting information to the controller via BGP, NETCONF, PCEP or other proprietary protocols. This application does not limit the protocol used by the first network node to send the third reporting information to the controller.

[0229] It should be noted that S409b to S412b described above are merely exemplary. In other embodiments, the first network node acts as the head node, and the first network node may not execute S409b to S412b. The first network node can carry the transmission detection information of the first data stream obtained by the first network node to the tail node through the detection message of the first data stream. The tail node then uniformly determines the transmission detection information of the second data stream based on the transmission detection information of the first data stream obtained by the network nodes (including the head node) along the first data stream and the association relationship between the first stream identifier and the second stream identifier, and reports the transmission detection information of the second data stream to the controller. And / or, the tail node uniformly determines the transmission detection information of the third data stream based on the transmission detection information of the first data stream obtained by the network nodes along the first data stream and the association relationship between the first stream identifier and the third stream identifier, and reports the transmission detection information of the third data stream to the controller. This application embodiment does not limit this.

[0230] In summary, the transmission detection method provided in this application, since the first stream identifier is associated with both the second stream identifier and the third stream identifier, allows the first network node to determine the transmission detection information of the second data stream based on the transmission detection information of the first data stream and the association between the first stream identifier and the second stream identifier, and to send second reporting information including the second stream identifier and the transmission detection information of the second data stream to the controller. Alternatively, the first network node can determine the transmission detection information of the third data stream based on the transmission detection information of the first data stream and the association between the first stream identifier and the third stream identifier, and to send second reporting information including the third stream identifier and the transmission detection information of the third data stream to the controller. This facilitates the controller in determining the transmission quality of the second data stream based on the transmission detection information of the second data stream, and / or in determining the transmission quality of the third data stream based on the transmission detection information of the third data stream. In other words, by associating detailed stream identifiers (e.g., first stream identifiers) with single stream identifiers (e.g., second stream identifiers and third stream identifiers), this application enables network nodes to determine the transmission detection information of single data streams (e.g., second data streams and third data streams) after obtaining the transmission detection information of detailed data streams (e.g., first data streams) and the association relationship between detailed stream identifiers and single stream identifiers. This ensures more comprehensive transmission detection information and better detection performance of single data streams.

[0231] Prior to S409b above, the first network node can obtain the association relationship between the first flow identifier and the second flow identifier. Prior to S411b above, the first network node can obtain the association relationship between the first flow identifier and the third flow identifier. Optionally, the first network node obtains a first association relationship, which includes the association relationship between the first flow identifier and the second and third flow identifiers. In this embodiment, the first association relationship can be generated by the first network node (i.e., the head node) or by the controller. Therefore, the first network node obtaining the first association relationship can include: the first network node generating the first association relationship, or the first network node receiving the first association relationship sent by the controller.

[0232] In one optional embodiment, the first association is generated by a first network node. Since a first flow identifier indicates a first data flow, a second flow identifier indicates a second data flow, and a third flow identifier indicates a third data flow, and the first data flow matches both the first and second matching strategies, the second data flow matches the first matching strategy but does not match the second matching strategy, and the third data flow matches the second matching strategy but does not match the first matching strategy, the first network node can generate the first association based on the first flow identifier, the second flow identifier, the third flow identifier, and the matching strategies matched by the first, second, and third data flows. Alternatively, the first network node can generate the first association based on configuration information input by the user, which includes the association between the first flow identifier and the second and third flow identifiers. Alternatively, the user can input the first association to the first network node via a command line, and the first network node obtains the user-inputted first association. After generating the first association, the first network node can send the first association to the controller. For example, the first network node can send the first association to the controller via BGP, NETCONF, PCEP, or other proprietary protocols. The first network node can also send a first association to at least one network node, for example, the first network node sends the first association to at least one network node via BGP. The at least one network node may include at least one of an intermediate node and a tail node.

[0233] In another alternative embodiment, the first association is generated by the controller. After generating the first association, the controller can send the first association to the first network node. For example, the controller sends the first association to at least one network node, including a head node, intermediate nodes, and a tail node. The controller can send the first association to the network node via BGP, NETCONF, PCEP, or other proprietary protocols.

[0234] In summary, the transmission detection method provided in this application allows the first network node to determine the transmission quality information of the second data stream based on the transmission detection information of the first data stream and the first association relationship, and / or to determine the transmission quality information of the third data stream based on the transmission detection information of the first data stream and the first association relationship. That is, it facilitates the network node in determining the transmission detection information of a single data stream based on the transmission detection information of the detailed data stream and the association relationship between the detailed stream identifier and the single stream identifier, ensuring that the transmission detection information of the single data stream is more comprehensive.

[0235] Please refer to Figure 8The diagram illustrates a flowchart of another transmission detection method provided in an embodiment of this application. This transmission detection method can be applied to a second network node, which can be a tail node (the network node that ends monitoring the first data stream) or an intermediate node between the head node (the network node that starts monitoring the first data stream) and the tail node. For example... Figure 1 As shown, network node 101 is the head node, network node 102 is the intermediate node, and network node 103 is the tail node. The second network node can be either network node 102 or network node 103. See also Figure 8 The method includes the following steps S801 to S802.

[0236] S801. The second network node receives a detection message for the first data stream. The detection message includes a detection header, which includes a first stream identifier. The first stream identifier is associated with a second stream identifier and a third stream identifier. The first stream identifier is used to indicate the first data stream, the second stream identifier is used to indicate the second data stream, and the third stream identifier is used to indicate the third data stream. The first data stream matches both the first and second matching strategies. The second data stream matches the first matching strategy but does not match the second matching strategy. The third data stream matches the second matching strategy but does not match the first matching strategy.

[0237] The second network node can receive the detection message of the first data stream from its upstream node. The upstream node of the first network node can be a network node, for example, the upstream node of the first network node is the first network node itself.

[0238] The detection message of the first data stream includes a detection header. For example, the aforementioned second and fourth messages are both detection messages of the first data stream. The detection header of the first data stream detection message includes a first stream identifier for indicating the first data stream, and may also include at least one of the following: action indication information, period indication information, and type indication information. The action indication information indicates the detection action of the first data stream, the period indication information indicates the detection period of the first data stream, and the type indication information indicates the detection type of the first data stream.

[0239] S802. The second network node obtains the transmission detection information of the first data stream based on the detection message of the first data stream.

[0240] The second network node can obtain the transmission detection information of the first data stream based on the detection header included in the detection message of the first data stream. Taking an example where the detection header of the first data stream detection message includes a first stream identifier, action indication information, period indication information, and type indication information, the second network node can determine the detection type of the first data stream based on the type indication information included in the detection header, determine the detection action of the first data stream based on the action indication information included in the detection header, and determine the detection period of the first data stream based on the period indication information included in the detection header. Within each detection period of the first data stream, the second network node executes the detection action of the first data stream according to the detection type of the first data stream to obtain the transmission detection information of the first data stream. For example, the detection action of the first data stream includes a latency detection action and a packet loss detection action. Within each detection period of the first data stream, the second network node obtains the latency detection information of the first data stream by executing the latency detection action, and obtains the packet loss detection information of the first data stream by executing the packet loss detection action.

[0241] In one optional embodiment, the second network node is an intermediate node. If the second network node determines that the detection type of the first data stream is hop-by-hop detection, the second network node acquires the transmission detection information of the first data stream in each detection cycle of the first data stream. In each detection cycle of the first data stream, the latency detection information acquired by the second network node may include: the reception timestamp of the detection packets of the first data stream received by the second network node in each detection cycle, and / or, the transmission timestamp of the detection packets of the first data stream sent by the second network node in each detection cycle. The packet loss detection information acquired by the second network node may include: the number of detection packets of the first data stream received by the second network node in each detection cycle, and / or, the number of detection packets of the first data stream sent by the second network node in each detection cycle. Optionally, if the second network node determines that the detection type of the first data stream is E2E detection, as an intermediate node, the second network node can directly forward the detection packets of the first data stream without acquiring the transmission detection information of the first data stream. This embodiment does not limit this.

[0242] In another optional embodiment, the second network node is a tail node. After receiving the detection message of the first data stream, the second network node strips the detection header of the detection message to obtain the data packet and forwards the data packet. Within each detection period of the first data stream, the latency detection information of the first data stream obtained by the second network node may include: the reception timestamp of the detection messages of the first data stream received by the second network node within each detection period, and may also include: the transmission timestamp of the data packets of the first data stream sent by the second network node within each detection period. The packet loss detection information of the first data stream obtained by the second network node may include: the number of detection messages of the first data stream received by the second network node within each detection period, and may also include: the number of data packets of the first data stream sent by the second network node within each detection period. This embodiment does not limit this aspect.

[0243] In summary, the transmission detection method provided in this application matches both the first and second matching strategies with the first data stream. The detection packet of the first data stream includes a detection header, which includes a first stream identifier for indicating the first data stream. The second network node can detect the first data stream based on the detection header included in the detection packet to obtain the transmission detection information of the first data stream. Therefore, the transmission detection information of the first data stream can cover both the first and second matching strategies. The transmission detection information of the first data stream can include the detection results corresponding to the first and second matching strategies. The detection results of the first data stream are more comprehensive, have higher detection accuracy, and better detection effect. Furthermore, this application only needs to add a detection header to the data packet of the first data stream to achieve the detection of the first data stream according to the first and second matching strategies. Therefore, it will not increase the overhead of the data packet of the first data stream, avoid consuming additional network bandwidth resources, and improve the utilization rate of network bandwidth resources.

[0244] After the second network node obtains the transmission detection information of the first data stream, in one implementation of this application, please refer to... Figure 8 The transmission detection method applied to the second network node also includes the following step S803a.

[0245] S803a. The second network node sends a first reporting information to the controller, the first reporting information including a first stream identifier and transmission detection information of the first data stream.

[0246] The implementation process of S803a can be referred to the implementation process of S409a, and will not be repeated here.

[0247] It should be noted that if the second network node is an intermediate node, it may not need to execute S803a. The second network node can carry the transmission detection information of the first data stream obtained by the second network node to the tail node through the detection message of the first data stream, and the tail node will then report the transmission detection information of the first data stream to the controller. If the second network node is a tail node, then in S803a, the first reporting information sent by the second network node to the controller may include the first stream identifier and the transmission detection information of the first data stream obtained by the network nodes along the first data stream, or it may only include the first stream identifier and the transmission detection information of the first data stream obtained by the first network node. This embodiment does not limit this.

[0248] In another implementation of this application, please refer to Figure 9 The transmission detection method applied to the second network node further includes the following steps S803b to S804b, and / or S805b to S806b.

[0249] S803b. The second network node determines the transmission detection information of the second data stream based on the transmission detection information of the first data stream and the association relationship between the first stream identifier and the second stream identifier.

[0250] S804b. The second network node sends a second reporting message to the controller, the second reporting message including the second stream identifier and the transmission detection information of the second data stream.

[0251] S805b. The second network node determines the transmission detection information of the third data stream based on the transmission detection information of the first data stream and the association between the first stream identifier and the third stream identifier.

[0252] S806b. The second network node sends a third reporting message to the controller, which includes a third stream identifier and transmission detection information of the third data stream.

[0253] The implementation process of S803b to S806b can be referred to the implementation process of S409b to S412b, and will not be repeated here.

[0254] It should be noted that the second network node can also transmit packets of the second data stream (i.e., packets that match the first matching strategy but do not match the second matching strategy). During the transmission of packets of the second data stream, the second network node can obtain transmission detection information for the second data stream based on these packets. The second network node can merge the first transmission detection information of the second data stream (i.e., the transmission detection information of the second data stream determined by the second network node based on the transmission detection information of the first data stream and the association between the first and second stream identifiers) and the second transmission detection information of the second data stream (i.e., the transmission detection information of the second data stream obtained by the second network node based on the packets of the second data stream) to obtain the final transmission detection information of the second data stream. The first network node may choose not to merge the first and second transmission detection information of the second data stream. Similarly, the second network node can also transmit packets of the third data stream (i.e., packets that match the second matching strategy but do not match the first matching strategy). During the transmission of packets of the third data stream, the second network node can obtain transmission detection information for the third data stream based on these packets. The second network node can merge the first transmission detection information of the third data stream (i.e., the transmission detection information of the third data stream determined by the second network node based on the transmission detection information of the first data stream and the association between the first stream identifier and the third stream identifier) ​​and the second transmission detection information of the third data stream (i.e., the transmission detection information of the third data stream obtained by the second network node based on the packets of the third data stream) to obtain the final transmission detection information of the third data stream. The first network node may also choose not to merge the first and second transmission detection information of the third data stream. It is understandable that if the second network node does not determine the transmission detection information of the second data stream (i.e., the first transmission detection information of the second data stream) based on the transmission detection information of the first data stream and the association between the first stream identifier and the second stream identifier, then the final transmission detection information of the second data stream only includes the second transmission detection information and does not include the first transmission detection information, resulting in an incomplete final transmission detection information for the second data stream. In this embodiment, the second network node determines the transmission detection information of the second data stream based on the transmission detection information of the first data stream and the association between the first stream identifier and the second stream identifier, making the final transmission detection information of the second data stream more comprehensive. Similarly, if the second network node does not determine the transmission detection information of the third data stream (i.e., the first transmission detection information of the third data stream) based on the transmission detection information of the first data stream and the association between the first stream identifier and the third stream identifier, then the final transmission detection information of the third data stream only includes the second transmission detection information and does not include the first transmission detection information, resulting in insufficiently comprehensive final transmission detection information for the third data stream.In this embodiment, the transmission detection information of the third data stream determined by the second network node based on the transmission detection information of the first data stream and the association between the first stream identifier and the third stream identifier can make the final transmission detection information of the third data stream more comprehensive.

[0255] It should also be noted that if the second network node is an intermediate node, the second network node may not need to execute S803b to S806b. The second network node can carry the transmission detection information of the first data stream obtained by the second network node to the tail node through the detection message of the first data stream. The tail node then uniformly determines the transmission detection information of the second data stream based on the transmission detection information of the first data stream obtained by the network nodes along the first data stream and the association relationship between the first stream identifier and the second stream identifier, and reports the transmission detection information of the second data stream to the controller. And / or, the tail node uniformly determines the transmission detection information of the third data stream based on the transmission detection information of the first data stream obtained by the network nodes along the first data stream and the association relationship between the first stream identifier and the third stream identifier, and reports the transmission detection information of the second data stream to the controller. This application does not limit this.

[0256] Prior to S803b, the second network node could obtain the association relationship between the first-flow identifier and the second-flow identifier. Prior to S805b, the second network node could obtain the association relationship between the first-flow identifier and the third-flow identifier. Optionally, the second network node obtains the first association relationship, which includes the association relationship between the first-flow identifier and the second-flow identifier and the third-flow identifier.

[0257] In this embodiment, the first association can be generated by the first network node or by the controller. Therefore, the second network node obtaining the first association may include: the second network node receiving the first association sent by the controller, or the second network node receiving the first association sent by the first network node.

[0258] Please refer to Figure 10 The diagram illustrates a flowchart of yet another transmission detection method provided in an embodiment of this application. This transmission detection method can be applied to a controller. See also... Figure 10 The method includes the following steps S1001 to S1002.

[0259] S1001. The controller receives first reporting information sent by at least one network node. The first reporting information includes a first flow identifier and transmission detection information of a first data flow. The first flow identifier is associated with a second flow identifier and a third flow identifier. The first flow identifier is used to indicate the first data flow, the second flow identifier is used to indicate the second data flow, and the third flow identifier is used to indicate the third data flow. The first data flow matches both the first and second matching strategies. The second data flow matches the first matching strategy but does not match the second matching strategy. The third data flow matches the second matching strategy but does not match the first matching strategy.

[0260] At least one network node sends a first report to the controller, and the controller can receive the first report sent by the at least one network node. The at least one network node may include at least one of a head node, an intermediate node, and a tail node. The at least one network node varies depending on the reporting mechanism of the first data stream.

[0261] In one optional embodiment, the reporting mechanism for the first data stream is a hop-by-hop reporting mechanism. The at least one network node includes a head node, an intermediate node, and a tail node. The first reporting information sent by each of the at least one network node to the controller may include a first stream identifier and transmission detection information of the first data stream obtained by each network node.

[0262] In another optional embodiment, the reporting mechanism for the first data stream is a tail node reporting mechanism. The at least one network node is a network node (i.e., a tail node). The first reporting information sent by the tail node to the controller may include the first stream identifier and the transmission detection information of the first data stream obtained by network nodes along the path of the first data stream (e.g., including the head node, tail node, and possibly intermediate nodes).

[0263] S1002. The controller determines the transmission detection information of the second data stream based on the transmission detection information of the first data stream and the association between the first stream identifier and the second stream identifier.

[0264] The implementation process of S1002 can be referred to the implementation process of S409b, and will not be repeated here. It should be noted that the "transmission detection information of the first data stream" in S409b refers to the transmission detection information of the first data stream obtained by the first network node, while the "transmission detection information of the first data stream" in S1002 includes the transmission detection information of the first data stream obtained by network nodes along the path of the first network node (such as the head node, tail node, and possibly intermediate nodes).

[0265] In optional embodiments, please continue to refer to Figure 10 The transmission detection method further includes the following step S1003.

[0266] S1003. The controller determines the transmission detection information of the third data stream based on the transmission detection information of the first data stream and the association between the first stream identifier and the third stream identifier.

[0267] The implementation process of S1003 can be referred to the implementation process of S411b, and will not be repeated here. It should be noted that the "transmission detection information of the first data stream" in S411b refers to the transmission detection information of the first data stream obtained by the first network node, while the "transmission detection information of the first data stream" in S1003 includes the transmission detection information of the first data stream obtained by network nodes along the path of the first network node (such as the head node, tail node, and possibly intermediate nodes).

[0268] Prior to S1002, the controller can obtain the association relationship between the first-flow identifier and the second-flow identifier. Prior to S1003, the controller can obtain the association relationship between the first-flow identifier and the third-flow identifier. Optionally, the controller obtains the first association relationship, which includes the association relationship between the first-flow identifier and the second-flow identifier and the third-flow identifier.

[0269] In this embodiment, the first association can be generated by the controller or by the first network node (i.e., the head node). Therefore, the controller obtaining the first association may include: the controller generating the first association, or the controller receiving the first association sent by the first network node.

[0270] In an optional embodiment, the controller generates a first association relationship based on configuration information input by the user. This configuration information includes the association relationship between a first flow identifier and second and third flow identifiers. After generating the first association relationship, the controller can send the first association relationship to at least one network node. For example, the controller sends the first association relationship to the network node via BGP, NETCONF, PCEP, or other proprietary protocols. The at least one network node includes the first network node. The process by which the first network node generates the first association relationship can be referred to the foregoing embodiments and will not be repeated here.

[0271] In an optional embodiment, after receiving the first reporting information sent by at least one network node, the controller can determine the transmission quality of the first data stream based on the transmission detection information of the first data stream. For example, the transmission detection information of the first data stream includes latency detection information. The controller can determine the transmission latency of the first data stream based on the latency detection information, which may include: end-to-end transmission latency (e.g., transmission latency from the head node to the tail node), hop-by-hop transmission latency, transmission latency of the link between two network nodes, transmission latency of the first data stream within a certain network node, etc. As another example, the transmission detection information of the first data stream includes packet loss detection information. The controller can determine the packet loss rate (or packet loss amount) of the first data stream based on the packet loss detection information, which may include: end-to-end packet loss rate (e.g., packet loss rate from the head node to the tail node), hop-by-hop packet loss rate, packet loss rate of the link between two network nodes, packet loss rate of the first data stream within a certain network node, etc. After the controller determines the transmission quality of the first data stream, the controller can display (e.g., show) the transmission quality of the first data stream. The controller can also control the transmission of the first data stream according to the transmission quality of the first data stream, such as switching the transmission path of the first data stream. This application embodiment does not limit this.

[0272] In an optional embodiment, after the controller determines the transmission detection information of the second data stream, it can determine the transmission quality of the second data stream based on the transmission detection information. The controller can also display (e.g., show) the transmission quality of the second data stream and perform transmission control on the second data stream based on its transmission quality. After the controller determines the transmission detection information of the third data stream, it can determine the transmission quality of the third data stream based on the transmission detection information. The controller can also display (e.g., show) the transmission quality of the third data stream and perform transmission control on the second data stream based on its transmission quality. The implementation process of the controller determining the transmission quality of the second and third data streams can refer to the implementation process of the controller determining the transmission quality of the first data stream, and will not be elaborated here.

[0273] To help readers better understand the technical solution of this application, the transmission detection method of this application is introduced below in conjunction with the interaction process of different network nodes and the interaction process between network nodes and controllers.

[0274] Please refer to Figure 11The diagram illustrates a flowchart of another transmission detection method provided in an embodiment of this application. This transmission detection method is applied to a communication network, which includes a controller and multiple network nodes. These network nodes include a head node, intermediate nodes, and a tail node. The head node is the network node that begins monitoring a first data stream, the tail node is the network node that ends monitoring the first data stream, and the intermediate nodes are located between the head node and the tail node. The method includes the following steps S1101 to S1112.

[0275] S1101. The head node receives the data packets of the first data stream.

[0276] S1102. The head node obtains the detection message of the first data stream based on the data packets of the first data stream. The detection message includes a detection header, which includes a first stream identifier. The first stream identifier is associated with the second stream identifier and the third stream identifier.

[0277] The first stream identifier is used to indicate the first data stream, the second stream identifier is used to indicate the second data stream, and the third stream identifier is used to indicate the third data stream. The first data stream matches both the first and second matching strategies. The second data stream matches the first matching strategy but does not match the second matching strategy. The third data stream matches the second matching strategy but does not match the first matching strategy.

[0278] S1103. The head node forwards the detection message of the first data stream to the intermediate node.

[0279] S1104. The head node obtains the transmission detection information of the first data stream based on the detection message of the first data stream.

[0280] The transmission detection information of the first data stream includes the transmission detection information corresponding to the first matching strategy and the transmission detection information corresponding to the second matching strategy.

[0281] S1105. The head node sends the first reporting information to the controller. The first reporting information includes the first stream identifier and the transmission detection information of the first data stream.

[0282] S1106. The intermediate node forwards the detection message of the first data stream to the tail node.

[0283] S1107. The intermediate node obtains the transmission detection information of the first data stream based on the detection message of the first data stream.

[0284] The transmission detection information of the first data stream includes the transmission detection information corresponding to the first matching strategy and the transmission detection information corresponding to the second matching strategy.

[0285] S1108. The intermediate node sends the first reporting information to the controller. The first reporting information includes the first stream identifier and the transmission detection information of the first data stream.

[0286] S1109. The tail node obtains the transmission detection information of the first data stream based on the detection message of the first data stream.

[0287] The transmission detection information of the first data stream includes the transmission detection information corresponding to the first matching strategy and the transmission detection information corresponding to the second matching strategy.

[0288] S1110. The tail node sends the first reporting information to the controller. The first reporting information includes the first stream identifier and the transmission detection information of the first data stream.

[0289] S1111. The controller determines the transmission detection information of the second data stream based on the transmission detection information of the first data stream and the association between the first stream identifier and the second stream identifier, and determines the transmission detection information of the third data stream based on the transmission detection information of the first data stream and the association between the first stream identifier and the third stream identifier.

[0290] For example, the controller determines the transmission detection information corresponding to the first matching strategy in the transmission detection information of the first data stream as the transmission detection information of the second data stream, and the controller determines the transmission detection information corresponding to the second matching strategy in the transmission detection information of the first data stream as the transmission detection information of the third data stream.

[0291] S1112. The controller determines the transmission quality of the second data stream based on the transmission detection information of the second data stream, and determines the transmission quality of the third data stream based on the transmission detection information of the third data stream.

[0292] The implementation process of S1101 can refer to the implementation process of S401 or S405. The implementation process of S1102 can refer to the implementation process of S402 or S406. The implementation processes of S1103 and S1106 can refer to the implementation process of S403 or S407. The implementation process of S1104 can refer to the implementation process of S408. The implementation processes of S1105, S1108, and S1110 can refer to the implementation process of S409a. The implementation processes of S1107 and S1109 can refer to the implementation process of S802. The implementation process of S1111 can refer to the implementation processes of S1002 and S1003. The implementation processes described above will not be repeated here.

[0293] Please refer to Figure 12The diagram illustrates a flowchart of another transmission detection method provided in an embodiment of this application. This transmission detection method is applied to a communication network, which includes a controller and multiple network nodes. These network nodes include a head node, intermediate nodes, and a tail node. The head node is the network node that begins monitoring a first data stream, the tail node is the network node that ends monitoring the first data stream, and the intermediate nodes are located between the head node and the tail node. The method includes the following steps S1201 to S1214.

[0294] S1201. The head node receives the data packets of the first data stream.

[0295] S1202. The head node obtains the detection message of the first data stream based on the data packets of the first data stream. The detection message includes a detection header, which includes a first stream identifier. The first stream identifier is associated with the second stream identifier and the third stream identifier.

[0296] The first stream identifier is used to indicate the first data stream, the second stream identifier is used to indicate the second data stream, and the third stream identifier is used to indicate the third data stream. The first data stream matches both the first and second matching strategies. The second data stream matches the first matching strategy but does not match the second matching strategy. The third data stream matches the second matching strategy but does not match the first matching strategy.

[0297] S1203. The head node forwards the detection message of the first data stream to the intermediate node.

[0298] S1204. The head node obtains the transmission detection information of the first data stream based on the detection message of the first data stream.

[0299] The transmission detection information of the first data stream includes the transmission detection information corresponding to the first matching strategy and the transmission detection information corresponding to the second matching strategy.

[0300] S1205. The head node determines the transmission detection information of the second data stream based on the transmission detection information of the first data stream and the association between the first stream identifier and the second stream identifier, and determines the transmission detection information of the third data stream based on the transmission detection information of the first data stream and the association between the first stream identifier and the third stream identifier.

[0301] For example, the head node determines the transmission detection information corresponding to the first matching strategy in the transmission detection information of the first data stream as the transmission detection information of the second data stream, and the head node determines the transmission detection information corresponding to the second matching strategy in the transmission detection information of the first data stream as the transmission detection information of the third data stream.

[0302] S1206. The head node sends a second reporting information and a third reporting information to the controller. The second reporting information includes the second stream identifier and the transmission detection information of the second data stream. The third reporting information includes the third stream identifier and the transmission detection information of the third data stream.

[0303] S1207. The intermediate node forwards the detection message of the first data stream to the tail node.

[0304] S1208. The intermediate node obtains the transmission detection information of the first data stream based on the detection message of the first data stream.

[0305] The transmission detection information of the first data stream includes the transmission detection information corresponding to the first matching strategy and the transmission detection information corresponding to the second matching strategy.

[0306] S1209. The intermediate node determines the transmission detection information of the second data stream based on the transmission detection information of the first data stream and the association between the first stream identifier and the second stream identifier, and determines the transmission detection information of the third data stream based on the transmission detection information of the first data stream and the association between the first stream identifier and the third stream identifier.

[0307] For example, the intermediate node determines the transmission detection information corresponding to the first matching strategy in the transmission detection information of the first data stream as the transmission detection information of the second data stream, and the intermediate node determines the transmission detection information corresponding to the second matching strategy in the transmission detection information of the first data stream as the transmission detection information of the third data stream.

[0308] S1210. The intermediate node sends a second reporting information and a third reporting information to the controller. The second reporting information includes the second stream identifier and the transmission detection information of the second data stream. The third reporting information includes the third stream identifier and the transmission detection information of the third data stream.

[0309] S1211. The tail node obtains the transmission detection information of the first data stream based on the detection message of the first data stream.

[0310] The transmission detection information of the first data stream includes the transmission detection information corresponding to the first matching strategy and the transmission detection information corresponding to the second matching strategy.

[0311] S1212. The tail node determines the transmission detection information of the second data stream based on the transmission detection information of the first data stream and the association between the first stream identifier and the second stream identifier, and determines the transmission detection information of the third data stream based on the transmission detection information of the first data stream and the association between the first stream identifier and the third stream identifier.

[0312] For example, the tail node determines the transmission detection information corresponding to the first matching strategy in the transmission detection information of the first data stream as the transmission detection information of the second data stream, and the tail node determines the transmission detection information corresponding to the second matching strategy in the transmission detection information of the first data stream as the transmission detection information of the third data stream.

[0313] S1213. The tail node sends a second reporting information and a third reporting information to the controller. The second reporting information includes the second stream identifier and the transmission detection information of the second data stream. The third reporting information includes the third stream identifier and the transmission detection information of the third data stream.

[0314] S1214. The controller determines the transmission quality of the second data stream based on the transmission detection information of the second data stream, and determines the transmission quality of the third data stream based on the transmission detection information of the third data stream.

[0315] The implementation process of S1201 can refer to the implementation process of S401 or S405. The implementation process of S1202 can refer to the implementation process of S402 or S406. The implementation processes of S1203 and S1207 can refer to the implementation process of S403 or S407. The implementation process of S1204 can refer to the implementation process of S408. The implementation process of S1208 can refer to the implementation process of S802. The implementation processes of S1205, S1209, and S1212 can refer to the implementation processes of S409b and S411b. The implementation processes of S1206, S1210, and S1213 can refer to the implementation processes of S410b and S412b. The implementation processes of the above will not be described in detail here.

[0316] The above is a description of the method embodiments of this application. The following describes the apparatus embodiments of this application, which can be used to execute the methods of this application. For details not disclosed in the apparatus embodiments, please refer to the method embodiments.

[0317] Please refer to Figure 13 The diagram illustrates a structural schematic of a transmission detection device 1300 provided in an embodiment of this application. The transmission detection device 1300 is applied to a first network node. The transmission detection device 1300 includes a receiving module 1310, a processing module 1320, and a sending module 1330.

[0318] The receiving module 1310 is used to receive a first message, which is a data message of the first data stream. The functional implementation of the receiving module 1310 can be referred to the relevant description in S401 above.

[0319] Processing module 1320 is used to obtain a second message based on a first message. The second message includes a detection header, which includes a first stream identifier. The first stream identifier is associated with a second stream identifier and a third stream identifier. The first stream identifier indicates a first data stream, the second stream identifier indicates a second data stream, and the third stream identifier indicates a third data stream. The second data stream matches the first matching strategy but does not match the second matching strategy. The third data stream matches the second matching strategy but does not match the first matching strategy. The first message matches both the first and second matching strategies. The functional implementation of processing module 1320 can be referred to the relevant description in S402 above.

[0320] The sending module 1330 is used to forward the second message. The functional implementation of the sending module 1330 can be found in the relevant description in S403 above.

[0321] Optionally, the first matching strategy is associated with the first detection action, and the second matching strategy is associated with the second detection action. The processing module 1320 is further configured to determine the detection action of the first data stream based on the first detection action and the second detection action. The detection header also includes action indication information, which is used to indicate the detection action of the first data stream.

[0322] Optionally, the detection action of the first data stream includes at least one of a first detection action and a second detection action.

[0323] Optionally, the first matching strategy is associated with the first detection period, and the second matching strategy is associated with the second detection period. The processing module 1320 is further configured to determine the detection period of the first data stream based on the first detection period and the second detection period. The detection header also includes period indication information, which is used to indicate the detection period of the first data stream.

[0324] Optionally, the detection period of the first data stream is the minimum of the first detection period and the second detection period.

[0325] Optionally, the first matching strategy is associated with the first detection type, and the second matching strategy is associated with the second detection type. The processing module 1320 is further configured to determine the detection type of the first data stream based on the first detection type and the second detection type. The detection header also includes type indication information, which is used to indicate the detection type of the first data stream.

[0326] Optionally, the detection type of the first data stream can be one of the first detection type and the second detection type.

[0327] Optionally, the first detection type is E2E detection, the second detection type is hop-by-hop detection, and the detection type of the first data stream is the second detection type.

[0328] Optionally, the processing module 1320 is also used to generate a first flow table, which includes the message information of the first message and the first flow identifier. The functional implementation of the processing module 1320 can also be found in the relevant description in S404 above.

[0329] Optionally, the first flow table may further include at least one of the following: action indication information, period indication information, and type indication information; wherein the action indication information is used to indicate the detection action of the first data flow, the period indication information is used to indicate the detection period of the first data flow, and the type indication information is used to indicate the detection type of the first data flow.

[0330] Optionally, the receiving module 1310 is also used to receive a third message, which is a data message of the first data stream. The functional implementation of the receiving module 1310 can also be found in the relevant description in S405 above.

[0331] The processing module 1320 is also used to obtain a fourth message based on the third message. The third message matches the first flow table, and the fourth message includes a detection header, which includes a first flow identifier. The functional implementation of the processing module 1320 can also be found in the relevant description in S406 above.

[0332] The sending module 1330 is also used to forward the fourth message. The functional implementation of the sending module 1330 can be found in the relevant description in S407 above.

[0333] Optionally, the detection header of the fourth message may further include at least one of the following: action indication information, period indication information, and type indication information; wherein the action indication information is used to indicate the detection action of the first data stream, the period indication information is used to indicate the detection period of the first data stream, and the type indication information is used to indicate the detection type of the first data stream.

[0334] Optionally, the processing module 1320 is also used to determine that the number of hits of the first flow table within a specified time period is not greater than a preset number, and to age the first flow table.

[0335] Optionally, the processing module 1320 is further configured to obtain transmission detection information of the first data stream based on the detection message of the first data stream, wherein the detection message of the first data stream includes the second message. The functional implementation of the processing module 1320 can also be found in the relevant description in S408 above.

[0336] Optionally, the sending module 1330 is further configured to send first reporting information to the controller, the first reporting information including a first stream identifier and transmission detection information of the first data stream. The functional implementation of the sending module 1330 can also be found in the relevant description in S409a above.

[0337] Optionally, the processing module 1320 is further configured to determine the transmission detection information of the second data stream based on the transmission detection information of the first data stream and the association relationship between the first stream identifier and the second stream identifier. The functional implementation of the processing module 1320 can also be found in the relevant description in S409b above.

[0338] The sending module 1330 is also used to send second reporting information to the controller, the second reporting information including the second stream identifier and the transmission detection information of the second data stream. The functional implementation of the sending module 1330 can also be found in the relevant description in S410b above.

[0339] Optionally, the processing module 1320 is further configured to determine the transmission detection information of the third data stream based on the transmission detection information of the first data stream and the association relationship between the first stream identifier and the third stream identifier. The functional implementation of the processing module 1320 can also be found in the relevant description in S411b above.

[0340] The sending module 1330 is also used to send third reporting information to the controller. The third reporting information includes a third stream identifier and transmission detection information of the third data stream. The functional implementation of the sending module 1330 can also be found in the relevant description in S412b above.

[0341] Optionally, the processing module 1320 is also used to generate a first association relationship, which includes the association relationship between the first stream identifier and the second stream identifier and the third stream identifier.

[0342] Optionally, the sending module 1330 is also used to send the first association relationship to the controller.

[0343] Optionally, the receiving module 1310 is also used to receive a first association relationship sent by the controller, the first association relationship including the association relationship between the first stream identifier and the second stream identifier and the third stream identifier.

[0344] Optionally, the sending module 1330 is also used to send the first association relationship to the second network node.

[0345] Optionally, the detection header includes an IFIT header.

[0346] Optionally, the first network node is the head node.

[0347] In summary, the transmission detection apparatus provided in this application embodiment allows a first network node to receive a first message of a first data stream, obtain a second message based on the first message, and forward the second message. The second message includes a detection header, which includes a first stream identifier for indicating the first data stream. The first data stream matches both the first matching strategy and the second matching strategy. Therefore, network nodes on the transmission path of the first data stream can detect the first data stream based on the detection header included in the second message. This allows for the detection of the first data stream based on the first and second matching strategies. The detection results of the first data stream can cover both the first and second matching strategies. The detection results of the first data stream include the detection results corresponding to the first and second matching strategies. The detection results of the first data stream are more comprehensive, resulting in higher detection accuracy and better detection effect. Furthermore, the second message can include only one detection header. That is, this application can add a detection header to the data message of the first data stream to realize the transmission detection of the first data stream according to the first matching strategy and the second matching strategy. Therefore, it will not increase the overhead of the data message of the first data stream, avoid consuming additional network bandwidth resources, and improve the utilization rate of network bandwidth resources.

[0348] Please refer to Figure 14 This diagram illustrates the structure of another transmission detection device 1400 provided in this embodiment. The transmission detection device 1400 is applied to a second network node. The transmission detection device 1400 includes a receiving module 1410 and a processing module 1420.

[0349] The receiving module 1410 is used to receive a detection message of a first data stream. The detection message includes a detection header, which includes a first stream identifier. The first stream identifier is associated with both a second stream identifier and a third stream identifier. The first stream identifier indicates the first data stream, the second stream identifier indicates the second data stream, and the third stream identifier indicates the third data stream. The first data stream matches both the first and second matching strategies. The second data stream matches the first matching strategy but does not match the second matching strategy. The third data stream matches the second matching strategy but does not match the first matching strategy. The functional implementation of the receiving module 1410 can also be found in the relevant description in S801 above.

[0350] The processing module 1420 is used to obtain the transmission detection information of the first data stream based on the detection message of the first data stream. The functional implementation of the processing module 1420 can also be found in the relevant description in S802 above.

[0351] Optionally, the detection header also includes action indication information, which is used to indicate the detection action of the first data stream. The processing module 1420 is also used to determine the detection action of the first data stream based on the action indication information.

[0352] Optionally, the detection header also includes period indication information, which is used to indicate the detection period of the first data stream. The processing module 1420 is also used to determine the detection period of the first data stream based on the period indication information.

[0353] Optionally, the detection header also includes type indication information, which is used to indicate the detection type of the first data stream. The processing module 1420 is also used to determine the detection type of the first data stream based on the type indication information.

[0354] Optionally, the transmission detection device 1400 further includes a sending module 1430, used to send first reporting information to the controller, the first reporting information including a first stream identifier and transmission detection information of the first data stream. The functional implementation of the sending module 1430 can also be found in the relevant description in S803a above.

[0355] Optionally, the processing module 1420 is further configured to determine the transmission detection information of the second data stream based on the transmission detection information of the first data stream and the association relationship between the first stream identifier and the second stream identifier. The functional implementation of the processing module 1420 can also be found in the relevant description in S803b above.

[0356] The sending module 1430 is also used to send second reporting information to the controller, the second reporting information including the second stream identifier and the transmission detection information of the second data stream. The functional implementation of the sending module 1430 can also be found in the relevant description in S804b above.

[0357] Optionally, the processing module 1420 is further configured to determine the transmission detection information of the third data stream based on the transmission detection information of the first data stream and the association relationship between the first stream identifier and the third stream identifier. The functional implementation of the processing module 1420 can also be found in the relevant description in S805b above.

[0358] The sending module 1430 is also used to send third reporting information to the controller. The third reporting information includes a third stream identifier and transmission detection information of the third data stream. The functional implementation of the sending module 1430 can also be found in the relevant description in S806b above.

[0359] Optionally, the receiving module 1410 is also used to receive a first association relationship, which includes the association relationship between the first stream identifier and the second stream identifier and the third stream identifier.

[0360] Optionally, the detection header includes an IFIT header.

[0361] Optionally, the second network node can be an intermediate node or a tail node.

[0362] In summary, the transmission detection device provided in this application matches both the first data stream and the second matching strategy. The detection message of the first data stream includes a detection header, which includes a first stream identifier for indicating the first data stream. The second network node can detect the first data stream based on the detection header included in the detection message to obtain the transmission detection information of the first data stream. Therefore, the transmission detection information of the first data stream can cover both the first and second matching strategies. The transmission detection information of the first data stream can include the detection results corresponding to the first and second matching strategies. The detection results of the first data stream are more comprehensive, have higher detection accuracy, and better detection effect. Furthermore, this application only needs to add a detection header to the data message of the first data stream to achieve the detection of the first data stream according to the first and second matching strategies. Therefore, it will not increase the overhead of the data message of the first data stream, avoid consuming additional network bandwidth resources, and improve the utilization rate of network bandwidth resources.

[0363] Please refer to Figure 15 This illustration shows a schematic diagram of another transmission detection device 1500 provided in an embodiment of this application. The transmission detection device 1500 is applied to a second network node. The transmission detection device 1500 includes a receiving module 1510 and a processing module 1520.

[0364] The receiving module 1510 is configured to receive first reporting information sent by at least one network node. The first reporting information includes a first stream identifier and transmission detection information of a first data stream. The first stream identifier is associated with both a second stream identifier and a third stream identifier. The first stream identifier indicates the first data stream, the second stream identifier indicates the second data stream, and the third stream identifier indicates the third data stream. The first data stream matches both the first and second matching strategies. The second data stream matches the first matching strategy but does not match the second matching strategy. The third data stream matches the second matching strategy but does not match the first matching strategy. The functional implementation of the receiving module 1510 can also be referenced from the relevant description in S1001 above.

[0365] Processing module 1520 is used to determine the transmission detection information of the second data stream based on the transmission detection information of the first data stream and the association relationship between the first stream identifier and the second stream identifier. The functional implementation of processing module 1520 can also be found in the relevant description in S1002 above.

[0366] Optionally, the processing module 1520 is further configured to determine the transmission detection information of the third data stream based on the transmission detection information of the first data stream and the association relationship between the first stream identifier and the third stream identifier. The functional implementation of the processing module 1520 can also be found in the relevant description in S1003 above.

[0367] Optionally, the processing module 1520 is also used to generate a first association relationship, which includes the association relationship between the first stream identifier and the second stream identifier and the third stream identifier.

[0368] Optionally, the transmission detection device 1500 further includes a sending module 1530 for sending a first association relationship to at least one network node.

[0369] Optionally, the receiving module 1510 is also used to receive a first association relationship sent by the first network node, the first association relationship including the association relationship between the first flow identifier and the second flow identifier and the third flow identifier.

[0370] Optionally, the first network node is the head node.

[0371] Optionally, the at least one network node includes at least one of a head node, an intermediate node, and a tail node.

[0372] In summary, the transmission detection device provided in this application embodiment uses a first stream identifier to indicate a first data stream. The first data stream matches both the first matching strategy and the second matching strategy. The detection message of the first data stream includes a detection header, which includes the first stream identifier. Network nodes can obtain the transmission detection information of the first data stream based on the detection message. Therefore, the detection of the first data stream can be achieved according to the first and second matching strategies. The detection result of the first data stream can cover both the first and second matching strategies. The detection result of the first data stream can include the detection result corresponding to the first and second matching strategies, making the detection result of the first data stream more comprehensive. Therefore, the detection accuracy of the first data stream is higher, and the detection effect is better. Furthermore, the detection message of the first data stream can include only one detection header. That is, this application can achieve the transmission detection of the first data stream according to the first and second matching strategies simply by adding a detection header to the data message of the first data stream. Therefore, it will not increase the overhead of the data message of the first data stream, avoid consuming additional network bandwidth resources, and improve the utilization rate of network bandwidth resources.

[0373] The transmission detection device provided in this application embodiment can also be implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD can be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof. The transmission detection method provided in the above method embodiment can also be implemented in software. When the transmission detection method provided in the above method embodiment is implemented in software, each module in the transmission detection device can also be a software module.

[0374] Please refer to Figure 16 This illustration shows a structural schematic diagram of another transmission detection device 1600 provided in an embodiment of this application. The transmission detection device 1600 is a network node or a functional component within a network node. The transmission detection device 1600 includes: a main control board 1610, an interface board 1630, and an interface board 1640. In the case of multiple interface boards, it also includes a switching network board (…). Figure 16 (Not shown in the image), the switching network board is used to complete the data exchange between interface boards (interface boards are also called line cards or service boards).

[0375] The main control board 1610 is used to perform functions such as system management, node maintenance, and protocol processing. Interface boards 1630 and 1640 provide various service interfaces (e.g., POS interface, GE interface, ATM interface, etc.) and implement message forwarding. The main control board 1610 mainly has three types of functional units: system management control unit, system clock unit, and system maintenance unit. The main control board 1610, interface board 1630, and interface board 1640 communicate with each other via a system bus connected to the system backplane. Interface board 1630 includes one or more processors 1631. Processor 1631 controls and manages interface board 1630 and communicates with the central processing unit 1612 on the main control board 1610. The memory 1632 on interface board 1630 stores flow identifiers, flow identifier associations, matching strategies, flow tables, etc. Interface board 1630 includes one or more network interfaces 1633 for receiving and sending messages. Figure 16 As shown, the main control board 1610 also includes a memory 1614, which is used to store system management information, protocols, etc. This application embodiment does not limit this.

[0376] like Figure 16As shown, this embodiment includes multiple interface boards and adopts a distributed forwarding mechanism. Under this mechanism, the operation on interface board 1640 is basically similar to the operation on interface board 1630. For example, interface board 1640 includes one or more network interfaces 1643 for receiving and sending packets, a memory 1642 for storing flow identifiers, flow identifier associations, matching strategies, flow tables, etc., and a processor 1641 for controlling and managing interface board 1640 and communicating with the central processing unit 1612 on main control board 1610.

[0377] Figure 16 The processor 1631 in interface board 1630 and / or the processor 1641 in interface board 1640 can be dedicated hardware or chips, such as network processors or application-specific integrated circuits (ASICs), to implement the above functions. This implementation method is commonly referred to as using dedicated hardware or chips for the forwarding plane. In another embodiment, the processor 1631 in interface board 1630 and / or the processor 1641 in interface board 1640 can also be a general-purpose processor, such as a central processing unit (CPU).

[0378] Furthermore, it should be noted that there may be one or more main control boards, including a primary main control board and a backup main control board. There may also be one or more interface boards; the stronger the data processing capability of a network node, the more interface boards it provides. With multiple interface boards, these boards can communicate through one or more switching network boards, enabling load sharing and redundancy backup. In a centralized forwarding architecture, network nodes may not need switching network boards; the interface boards handle the processing of the entire system's business data. In a distributed forwarding architecture, network nodes include multiple interface boards, which can exchange data with each other through switching network boards, providing high-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of network nodes in a distributed architecture are greater than those in a centralized architecture. The specific architecture adopted depends on the network deployment scenario and is not limited here.

[0379] In optional embodiments, memory 1632 and / or memory 1642 may be read-only memory (ROM) or other types of static storage devices capable of storing static information and instructions, random access memory (RAM) or other types of dynamic storage devices capable of storing information and instructions. It may also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disks or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto. Memory 1632 may exist independently and be connected to processor 1631 via a communication bus, or it may be integrated with processor 1631. The memory 1642 can exist independently, be connected to the processor 1641 via a communication bus, or be integrated with the processor 1641.

[0380] The memory 1632 stores program code, which is executed under the control of the processor 1631 to perform some or all of the steps of the method provided in the above embodiments. The processor 1631 executes the program code stored in the memory 1632. The program code may include one or more software modules. These one or more software modules can be the methods described above. Figure 13 and Figure 14 The memory 1642 can also be used to store program code, which is controlled by the processor 1641 to execute some or all of the steps of the method provided in the above embodiments. Similarly, the memory 1614 can also be used to store program code, which is controlled by the central processing unit 1612 to execute some or all of the steps of the method provided in the above embodiments.

[0381] In optional embodiments, network interface 1633 and network interface 1643 are devices that use any transceiver type for communicating with other nodes, devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area network (WLAN), etc.

[0382] Please refer to Figure 17This illustration shows a schematic diagram of another transmission detection device 1700 provided in an embodiment of this application. The transmission detection device 1700 can be a network node or a functional component within a network node, or it can be a controller or a functional component within a controller. See also... Figure 17 The transmission detection device 1700 includes a processor 1702, a memory 1704, a communication interface 1706, and a bus 1708. The processor 1702, the memory 1704, and the communication interface 1706 are connected to each other via the bus 1708. Figure 17 The connection method between the processor 1702, memory 1704 and communication interface 1706 shown is merely exemplary. In actual implementation, the processor 1702, memory 1704 and communication interface 1706 can also be connected in a way other than bus 1708.

[0383] Memory 1704 is used to store computer program 17042, which may include instructions and data. Memory 1704 can be various types of storage media, such as RAM, ROM, non-volatile RAM (NVRAM), programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), flash memory, optical memory, and registers.

[0384] Processor 1702 can be a general-purpose processor, which is a processor that performs specific steps and / or operations by reading and executing a computer program stored in memory (e.g., memory 1704). During the execution of these steps and / or operations, the general-purpose processor may use data stored in memory (e.g., memory 1704). The stored computer program can, for example, be executed to implement the relevant functions of the aforementioned processing module. The general-purpose processor can be a CPU. Processor 1702 can also be a dedicated processor, which is a processor specifically designed to perform specific steps and / or operations. A dedicated processor can be a digital signal processor (DSP), ASIC, or FPGA, etc. Processor 1702 can also be a combination of multiple processors, such as a multi-core processor. Processor 1702 includes at least one circuit to perform all or part of the steps of the transmission detection method provided in the above embodiments.

[0385] The communication interface 1706 may include input / output (I / O) interfaces, physical interfaces, and logical interfaces for interconnecting devices within the transmission detection device 1700, as well as interfaces for interconnecting the transmission detection device 1700 with other devices (e.g., network nodes, controllers). The physical interface may be a gigabit Ethernet (GE) interface, which can be used to interconnect the transmission detection device 1700 with other nodes. The logical interface is an internal interface of the transmission detection device 1700, which can be used to interconnect devices within the transmission detection device 1700. It is easy to understand that the communication interface 1706 can be used for communication between the transmission detection device 1700 and other nodes. For example, the communication interface 1706 is used for sending and receiving messages between the transmission detection device 1700 and other nodes. The communication interface 1706 can implement the relevant functions of the aforementioned receiving module and sending module. The communication interface 1706 may also include a transceiver for sending and receiving messages, which can also implement the relevant functions of the aforementioned receiving module and sending module.

[0386] The bus 1708 can be any type of communication bus used to interconnect the processor 1702, memory 1704 and communication interface 1706, such as a system bus.

[0387] The aforementioned devices can be disposed on separate chips, or at least partially or entirely on the same chip. Whether to dispose of the devices independently on different chips or integrate them on one or more chips often depends on the needs of the product design. This application does not limit the specific implementation of the aforementioned devices.

[0388] Figure 17 The transmission detection device 1700 shown is merely exemplary. In the implementation process, the transmission detection device 1700 may also include other components, which will not be listed one by one in this article. Figure 17 The transmission detection device 1700 shown performs data stream transmission detection by executing all or part of the steps of the method provided in the above embodiments.

[0389] This application provides a transmission detection system, which includes a controller and multiple network nodes. At least one of the multiple network nodes includes, as described above... Figure 13 , Figure 14 , Figure 16 or Figure 17 The transmission detection device shown includes a controller as follows: Figure 15 or Figure 17 The transmission detection device shown.

[0390] Optionally, the plurality of network nodes includes a head node, intermediate nodes, and a tail node. For example, this transmission detection system... Figure 3 As shown, the head node can be network node 101, the middle node can be network node 102, and the tail node can be network node 103.

[0391] This application provides a computer-readable storage medium storing a computer program that, when executed (e.g., by a network node, controller, one or more processors, etc.), implements all or part of the steps of the method provided in the above method embodiments.

[0392] This application provides a computer program product that includes a program or code. When the program or code is executed (e.g., by a network node, controller, one or more processors, etc.), it implements all or part of the steps of the method provided in the above method embodiments.

[0393] This application provides a chip that includes programmable logic circuitry and / or program instructions. When the chip is run, it is used to implement all or part of the steps of the method provided in the above method embodiments.

[0394] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented entirely or partially as a computer program product, which includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of this application are generated entirely or partially. The computer can be a general-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium, or a semiconductor medium (e.g., solid-state drive), etc.

[0395] It should be understood that the term "at least one" in this application refers to one or more, and "multiple" refers to two or more. In this application, unless otherwise stated, the symbol " / " generally means "or," for example, A / B can mean A or B. The term "and / or" in this application is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, for clarity, the terms "first," "second," and "third" are used in this application to distinguish identical or similar items with substantially the same function and effect. Those skilled in the art will understand that the terms "first," "second," and "third" do not limit the quantity or order of execution.

[0396] The method embodiments and device embodiments provided in this application can be referenced interchangeably, and this application does not limit them. The order of operations in the method embodiments provided in this application can be appropriately adjusted, and operations can be added or removed as needed. Any variations that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the protection scope of this application, and therefore will not be elaborated further.

[0397] In the corresponding embodiments provided in this application, it should be understood that the disclosed devices, etc., can be implemented through other configurations. For example, the device embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between devices or units may be electrical or other forms.

[0398] The units described as separate components may or may not be physically separate. The components described as units may or may not be physical units; they may be located in one place or distributed across multiple network devices. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0399] The above description is merely an exemplary embodiment of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and such modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method of transmission detection, characterized in that, The method comprises: The first network node receives a first message, the first message being a data message of a first data flow; The first network node obtains a second message based on the first message, the second message comprising a detection header, the detection header comprising a first flow identifier, the first flow identifier being associated with a second flow identifier and a third flow identifier, the first flow identifier being used to indicate the first data flow, the second flow identifier being used to indicate a second data flow, the third flow identifier being used to indicate a third data flow, the second data flow matching a first matching policy and the second data flow not matching a second matching policy, the third data flow matching the second matching policy and the third data flow not matching the first matching policy, the first message matching both the first matching policy and the second matching policy; The first network node forwards the second message.

2. The method of claim 1, wherein, The first matching policy is associated with a first detection action, and the second matching policy is associated with a second detection action, and the method further comprises: The first network node determines a detection action of the first data flow according to the first detection action and the second detection action, and the detection header further comprises action indication information, the action indication information being used to indicate the detection action of the first data flow.

3. The method of claim 1, wherein, The first matching policy is associated with a first detection period, and the second matching policy is associated with a second detection period, and the method further comprises: The first network node determines a detection period of the first data flow according to the first detection period and the second detection period, and the detection header further comprises period indication information, the period indication information being used to indicate the detection period of the first data flow.

4. The method according to any one of claims 1 to 3, characterized in that, The method further comprises: The first network node generates a first flow table, the first flow table comprising message information of the first message and the first flow identifier.

5. The method of claim 4, wherein, The method further comprises: The first network node receives a third message, the third message being a data message of the first data flow; The first network node obtains a fourth message based on the third message, the third message matching the first flow table, the fourth message comprising a detection header, the detection header comprising the first flow identifier; The first network node forwards the fourth message.

6. The method according to any one of claims 1 to 3, 5, characterized in that, The method further comprises: The first network node acquires transmission detection information of the first data flow according to the detection message of the first data flow, the detection message of the first data flow comprising the second message.

7. The method of claim 6, wherein, The method further comprises: The first network node sends first reporting information to a controller, the first reporting information comprising the first flow identifier and the transmission detection information of the first data flow.

8. The method of claim 6, wherein, The method further comprises: The first network node determines transmission detection information of the second data flow according to the transmission detection information of the first data flow and an association relationship between the first flow identifier and the second flow identifier; The first network node sends second reporting information to the controller, the second reporting information comprising the second flow identifier and the transmission detection information of the second data flow.

9. The method of claim 6, wherein, The method further comprises: The first network node determines the transmission detection information of the third data flow according to the transmission detection information of the first data flow and the association relationship between the first flow identifier and the third flow identifier. The first network node sends third reporting information to the controller, and the third reporting information includes the third flow identifier and the transmission detection information of the third data flow.

10. The method of claim 1, wherein, The method further includes: The first network node generates a first association relationship, and the first association relationship includes the association relationship between the first flow identifier and the second flow identifier and the third flow identifier.

11. The method of claim 10, wherein, The method further includes: The first network node sends the first association relationship to the controller.

12. The method of claim 1, wherein, The method further includes: The first network node receives the first association relationship sent by the controller, and the first association relationship includes the association relationship between the first flow identifier and the second flow identifier and the third flow identifier.

13. The method according to any one of claims 10 to 12, characterized in that, The method further includes: The first network node sends the first association relationship to the second network node.

14. The method of any of claims 1-3, 5, 7-12, wherein The detection header includes an in-flow information detection (IFIT) header.

15. The method of any of claims 1-3, 5, 7-12, wherein The first network node is a head node.

16. A method of transmission detection, the method comprising: The method includes: The second network node receives a detection packet of a first data flow, the detection packet includes a detection header, the detection header includes a first flow identifier, the first flow identifier is associated with a second flow identifier and a third flow identifier, the first flow identifier is used to indicate the first data flow, the second flow identifier is used to indicate a second data flow, the third flow identifier is used to indicate a third data flow, the first data flow matches a first matching policy and a second matching policy, the second data flow matches the first matching policy and does not match the second matching policy, and the third data flow matches the second matching policy and does not match the first matching policy. The second network node obtains transmission detection information of the first data flow according to the detection packet of the first data flow.

17. The method of claim 16, wherein, The method further includes: The second network node sends first reporting information to the controller, and the first reporting information includes the first flow identifier and the transmission detection information of the first data flow.

18. The method of claim 16, wherein, The method further includes: The second network node determines transmission detection information of the second data flow according to the transmission detection information of the first data flow and the association relationship between the first flow identifier and the second flow identifier. The second network node sends second reporting information to the controller, and the second reporting information includes the second flow identifier and the transmission detection information of the second data flow.

19. The method of claim 16, wherein, The method further includes: The second network node determines transmission detection information of the third data flow according to the transmission detection information of the first data flow and the association relationship between the first flow identifier and the third flow identifier. The second network node sends third report information to the controller, the third report information comprising the third flow identifier and transmission detection information of the third data flow.

20. The method according to any one of claims 16 to 19, characterized in that, The method further comprises: The second network node receives a first association relationship, the first association relationship comprising an association relationship between the first flow identifier and the second flow identifier and the third flow identifier.

21. The method of any of claims 16-20, wherein The detection header comprises an in-flow information detection (IFIT) header.

22. The method of any of claims 16-20, wherein The second network node is an intermediate node or a tail node.

23. A method of transmission detection, the method comprising: The method comprises: The controller receives first report information sent by at least one network node, the first report information comprising a first flow identifier and transmission detection information of a first data flow, the first flow identifier being associated with a second flow identifier and a third flow identifier, the first flow identifier being used to indicate the first data flow, the second flow identifier being used to indicate a second data flow, the third flow identifier being used to indicate a third data flow, the first data flow matching a first matching policy and a second matching policy, the second data flow matching the first matching policy and not matching the second matching policy, the third data flow matching the second matching policy and not matching the first matching policy; The controller determines transmission detection information of the second data flow according to the transmission detection information of the first data flow and an association relationship between the first flow identifier and the second flow identifier.

24. The method of claim 23, wherein, The method further comprises: The controller determines transmission detection information of the third data flow according to the transmission detection information of the first data flow and an association relationship between the first flow identifier and the third flow identifier.

25. The method of claim 23, wherein, The method further comprises: The controller generates a first association relationship, the first association relationship comprising an association relationship between the first flow identifier and the second flow identifier and the third flow identifier.

26. The method of claim 25, wherein, The method further comprises: The controller sends the first association relationship to at least one network node.

27. The method of claim 23, wherein, The method further comprises: The controller receives a first association relationship sent by a first network node, the first association relationship comprising an association relationship between the first flow identifier and the second flow identifier and the third flow identifier.

28. The method of claim 27, wherein The first network node is a head node.

29. The method of any of claims 23-28, wherein The at least one network node comprises at least one of a head node, an intermediate node and a tail node.

30. A transmission detection apparatus, characterized by comprising: comprising a memory and a processor; the memory is configured to store a computer program; the processor is configured to execute the computer program stored in the memory to cause the transmission detection apparatus to perform the transmission detection method of any of claims 1-22.

31. A transmission detection apparatus, characterized by comprising: comprising a memory and a processor; the memory is configured to store a computer program; The processor is configured to execute a computer program stored in the memory to cause the transmission detection apparatus to perform the transmission detection method of any one of claims 23 to 29.

32. A transmission detection system characterized by, comprising a controller and a plurality of network nodes; at least one of the plurality of network nodes comprises the transmission detection apparatus of claim 30; the controller comprises the transmission detection apparatus of claim 31.

33. A computer-readable storage medium, comprising: The computer readable storage medium stores a computer program which, when executed, implements the transmission detection method of any one of claims 1 to 29.

34. A computer program product, characterised in that, The computer program product comprises a program or code which, when executed, implements the transmission detection method of any one of claims 1 to 29.

Citation Information

Patent Citations

  • Data flow detection method and device

    CN105591836A

  • Network performance detection method and device and network equipment

    CN113328902A