CN117081967A - Transmission detection method, device and system - Google Patents

Transmission detection method, device and system Download PDF

Info

Publication number
CN117081967A
CN117081967A CN202210509300.7A CN202210509300A CN117081967A CN 117081967 A CN117081967 A CN 117081967A CN 202210509300 A CN202210509300 A CN 202210509300A CN 117081967 A CN117081967 A CN 117081967A
Authority
CN
China
Prior art keywords
detection
data stream
stream
network node
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210509300.7A
Other languages
Chinese (zh)
Inventor
钱国锋
夏阳
生绪博
辛方
杨平安
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202210509300.7A priority Critical patent/CN117081967A/en
Publication of CN117081967A publication Critical patent/CN117081967A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/12Network monitoring probes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A transmission detection method, device and system belong to the technical field of networks. After the first network node receives the first message of the 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 including a first flow identification, the first flow identification being associated with both the second flow identification and the third flow identification. The first flow identification is used to indicate a first data flow. The second stream identifier is used to indicate a second data stream. The third stream identifier is used to indicate a third data stream. The second data stream matches the first matching policy and the second data stream does not match the second matching policy. The third data stream matches the second matching policy and the third data stream does not match the first matching policy. The first message is matched with the first matching strategy and the second matching strategy. The application can realize the detection of the same data stream according to at least two matching strategies, and has better detection effect.

Description

Transmission detection method, device and system
Technical Field
The present application relates to the field of network technologies, and in particular, to a transmission detection method, device, and system.
Background
The on-stream information detection (in-situ flow information telemetry, IFIT) technique is a on-stream detection technique. The principle of the IFIT technology is: the network device as the head node inserts an IFIT header into the data packet, and the network node (e.g., at least one of the head node, the intermediate node, and the tail node) detects the data flow to which the data packet belongs according to the IFIT header.
Disclosure of Invention
The application provides a transmission detection method, a transmission detection device and a transmission detection system, which can realize the detection of the same data stream matched with at least two matching strategies according to the at least two matching strategies, wherein the detection result of the same data stream can cover the at least two matching strategies, and the detection result of the same data stream can comprise the detection results corresponding to the at least two matching strategies, so that the detection result of the same data stream is more comprehensive, the detection accuracy is higher, and the detection effect is better. In addition, when the same data stream matched with at least two matching strategies is detected according to the at least two matching strategies, only one detection header is needed to be added in the data message of the same data stream, the cost of the data message of the same data stream is not increased, the increase of a plurality of detection headers in the data message of the same data stream can be avoided, the consumption of extra network bandwidth resources is avoided, and the utilization rate of the network bandwidth resources is improved. The technical scheme of the application is as follows:
In a first aspect, a transmission detection method is provided, the method comprising: the first network node receives a first message, wherein the first message is a data message of a first data stream; the first network node obtains a second message based on the first message, the second message comprises a detection header, the detection header comprises 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 for indicating a first data stream, the second stream identifier is used for indicating a second data stream, the third stream identifier is used for indicating a third data stream, the second data stream is matched with a first matching strategy and the second data stream is not matched with a second matching strategy, the third data stream is matched with the second matching strategy and the third data stream is not matched with the first matching strategy, and the first message is matched with both the first matching strategy and the second matching strategy; the first network node forwards the second message. The second message is a detection message of the first data stream.
In current flow-along detection technologies, such as the IFIT technology, a head node may enable multiple matching strategies for detecting a data flow, and if a certain data packet received by the head node matches at least two matching strategies in the multiple matching strategies, the head node inserts a detection header (e.g., the IFIT header) into the data packet according to one matching strategy in the at least two matching strategies to obtain the detection packet. The head node then forwards the detection message to an intermediate (transit) node, and the intermediate node forwards the detection message to the tail node. And the tail node strips the detection header in the detection message to obtain the original data message. The detection header includes a flow identifier (flow id) of a data flow to which the data packet belongs, and in a process of transmitting the detection packet, at least one network node of the head node, the intermediate node and the tail node may detect the data flow to which the data packet belongs according to the detection header, so as to obtain transmission detection information of the data flow, and send the transmission detection information of the data flow to the controller, where the controller may determine transmission quality of the data flow according to the transmission detection information of the data flow. However, when the head node determines that a certain data packet is matched with at least two matching strategies, the head node inserts a detection header into the data packet according to only one matching strategy of the at least two matching strategies, which results in that the detection of the data stream to which the data packet belongs can only be performed according to the matching strategy of the data packet, the detection result of the data stream only comprises the detection result corresponding to the matching strategy of the data stream, the detection result of the data stream cannot cover the at least two matching strategies matched with the data stream, the detection result of the data stream is not comprehensive enough, and the detection effect is poor.
According to the technical scheme provided by the application, after the first network node receives the first message of the first data stream, the first network node obtains the second message based on the first message and forwards the second message, the detection header of the second message comprises the first stream identifier for indicating the first data stream, and the first data stream is matched with both the first matching strategy and the second matching strategy, so that the network node on the transmission path of the first data stream can detect the first data stream according to the detection header included in the second message, the first data stream can be detected according to the first matching strategy and the second matching strategy, the detection result of the first data stream can cover the first matching strategy and the second matching strategy, the detection result of the first data stream can comprise the detection result corresponding to the first matching strategy and the detection result corresponding to the second matching strategy, and the detection result of the first data stream is more comprehensive, so that the detection accuracy of the first data stream is higher, and the detection effect is better. In addition, the second message may only include one detection header, that is, the application adds one detection header in the data message of the first data stream to realize the detection of the first data stream according to the first matching strategy and the second matching strategy, so that the overhead of the data message of the first data stream is not increased, the increase of a plurality of detection headers in the data message of the first data stream is avoided, the consumption of extra network bandwidth resources is avoided, and the utilization rate of the network bandwidth resources is improved.
In addition, in the application, the first stream identifier is associated with the second stream identifier and the third stream identifier, the first stream identifier is used for indicating the first data stream, the second stream identifier is used for indicating the second data stream, the third stream identifier is used for indicating the third data stream, the first data stream is matched with the first matching strategy and the second matching strategy, the second data stream is matched with the first matching strategy and the second data stream is not matched with the second matching strategy, the third data stream is matched with the second matching strategy and the third data stream is not matched with the first matching strategy. After obtaining the detection results of the first data flow matched with both the first matching policy and the second matching policy, the detection result of the second data flow matched with the first matching policy and not matched with the second matching policy may be determined according to the detection result of the first data flow and the association relationship between the first flow identifier and the second flow identifier, for example, the detection result corresponding to the first matching policy in the detection results of the first data flow is determined as the detection result of the second data flow. And after obtaining the detection results of the first data stream matched with both the first matching policy and the second matching policy, determining the detection result of the third data stream matched with the second matching policy and not matched with the first matching policy according to the detection result of the first data stream and the association relation between the first stream identifier and the third stream identifier, for example, determining the detection result corresponding to the second matching policy in the detection results of the first data stream as the detection result of the third data stream. In this way, the detection result of the second data stream and the detection result of the third data stream are more comprehensive, and the detection effect of the second data stream and the detection effect of the third data stream are better. For example, in practical applications, the network node may also detect the second data flow according to the message that matches the first matching policy and does not match the second matching policy, and if the detection result of the second data flow is not determined according to the detection result of the first data flow and the association relationship between the first flow identifier and the second flow identifier, the final detection result of the second data flow only includes the detection result obtained by the network node detecting the second data flow according to the message that matches the first matching policy and does not match the second matching policy, and does not include the detection result obtained according to the portion of the message belonging to the first data flow (that is, the portion of the message that matches both the first matching policy and the second matching policy), that is, the final detection result of the second data flow only includes the portion of the detection result corresponding to the first matching policy, so that the detection result of the second data flow will lack a portion of content (for example, the portion of the detection result corresponding to the first matching policy in the detection result of the first data flow is missing), and the detection result of the second data flow is not comprehensive. Similarly, the network node may also detect the third data flow according to the message that matches the second matching policy and does not match the first matching policy, and if the detection result of the third data flow is not determined according to the detection result of the first data flow and the association relationship between the first flow identifier and the third flow identifier, the final detection result of the third data flow only includes the detection result obtained by the network node detecting the third data flow according to the message that matches the second matching policy and does not include the detection result obtained according to the portion of the message belonging to the first data flow (that is, the portion of the message that matches both the first matching policy and the second matching policy), that is, the final detection result of the third data flow only includes the portion of the detection result corresponding to the second matching policy, so that the detection result of the third data flow will lack a portion of content (for example, the portion of the detection result corresponding to the second matching policy in the detection result of the first data flow is missing), and the detection result of the third data flow is not comprehensive.
Optionally, in the present application, the type of the first matching policy is different from the type of the second matching policy. For example, the first matching policy is to hit a certain access control list (access control list, ACL) rule, the second matching policy is to be attributed to a certain virtual private network (virtual private network, VPN). For another example, the first matching policy is hit on a certain ACL rule and the second matching policy is transmitted through a certain tunnel.
Optionally, the first matching policy is associated with a first detection policy, the second matching policy is associated with a second detection policy, and the first network node may determine a detection policy of the first data flow according to the first detection policy and the second detection policy, and further obtain, according to the detection policy of the first data flow, a second packet based on the first packet. Wherein each of the first detection policy and the second detection policy may include at least one of a detection action, a detection period, and a detection type, and the detection policy of the first data flow may include at least one of a detection action, a detection period, and a detection type.
Optionally, the first detection policy includes a first detection action, the second detection policy includes a second detection action, the first matching policy is associated with the first detection action, the second matching policy is associated with the second detection action, the method further includes: the first network node determines a detection action of the first data flow based on the first detection action and the second detection action. Wherein the detection header further comprises action indication information for indicating a detection action of the first data stream.
According to the technical scheme provided by the application, the detection header of the detection message (such as the second message) of the first data stream comprises the action indication information, so that the network node which receives the detection message can conveniently determine the detection action of the first data stream according to the action indication information, and further execute the detection action of the first data stream to acquire the transmission detection information of the first data stream.
Optionally, the detecting action of the first data stream includes at least one of a first detecting action and a second detecting action. For example, the detecting action of the first data stream includes a first detecting action and a second detecting action.
According to the technical scheme provided by the application, the first network node overlaps the first detection action associated with the first matching strategy and the second detection action associated with the second matching strategy, and the first detection action is used as the detection action of the first data stream matched with both the first matching strategy and the second matching strategy, so that the network node on the transmission path of the first data stream can detect the first data stream according to the first matching strategy and the second matching strategy by executing the detection action of the first data stream, and the detection result of the first data stream can cover the first matching strategy and the second matching strategy, namely, the detection result of the first data stream can comprise the detection result corresponding to the first matching strategy and the detection result corresponding to the second matching strategy.
Optionally, the first detection policy includes a first detection period, the second detection policy includes a second detection period, the first matching policy is associated with the first detection period, the second matching policy is associated with the second detection period, the method further includes: the first network node determines a detection period of the first data stream based on the first detection period and the second detection period. Wherein the detection header further comprises period indication information for indicating a detection period of the first data stream.
According to the technical scheme provided by the application, the period indication information is included in the detection header of the detection message (such as the second message) of the first data stream, so that the network node which receives the detection message can conveniently determine the detection period of the first data stream according to the period indication information, and further the detection action of the first data stream is executed in the detection period of the first data stream.
Optionally, the detection period of the first data stream is the minimum period of the first detection period and the second detection period. Thus, the frequency of detecting the first data stream can be increased, and the accuracy of detecting the first data stream can be improved.
Optionally, the first detection policy includes a first detection type, the second detection policy includes a second detection type, the first matching policy is associated with the first detection type, the second matching policy is associated with the second detection type, the method further includes: the first network node determines a detection type of the first data flow according to the first detection type and the second detection type. Wherein the detection header further comprises type indication information for indicating a detection type of the first data stream.
According to the technical scheme provided by the application, the type indication information is included in the detection header of the detection message (such as the second message) of the first data stream, so that the network node which receives the detection message can conveniently determine the detection type of the first data stream according to the type indication information, and further, the transmission detection of the first data stream is executed according to the detection type of the first data stream.
Optionally, the detection type of the first data stream is one of a first detection type and a second detection type.
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.
According to the technical scheme provided by the application, under the condition that the first detection type is E2E detection and the second detection type is hop-by-hop detection, the first network node determines that the detection type of the first data stream is the second detection type (namely hop-by-hop detection), so that the first data stream can be ensured to be detected by the head node, the intermediate node and the tail node, and the detection result of the first data stream can be conveniently and flexibly obtained. For example, the transmission quality of the first data stream in a certain path segment can be flexibly obtained, and the transmission quality of the first data stream in a certain network node can be flexibly obtained.
Optionally, the method further comprises: the first network node generates a first flow table including message information of the first message and a first flow identifier. The first flow table is a flow table of the first data flow, the first message may be a first data message of the first data flow, and the message information of the first message may be tuple information of the first message, for example, a tuple, a triplet, and a quintuple.
According to the technical scheme provided by the application, the first network node generates the first flow table according to the first data message of the first data flow, so that after the first network node subsequently receives the data message of the first data flow, the first network node can acquire the detection message of the first data flow based on the data message of the first data flow according to the first flow table.
Optionally, the first flow table further comprises at least one of: action indication information, period indication information and type indication information. The action indication information is used for indicating the detection action of the first data stream, the period indication information is used for indicating the detection period of the first data stream, and the type indication information is used for indicating the detection type of the first data stream.
Optionally, the method further comprises: the first network node receives a third message, wherein the third message is a data message of the first data flow; the first network node obtains a fourth message based on a third message, the third message is matched with the first flow table, the fourth message comprises a detection header, and the detection header comprises a first flow identifier; the first network node forwards the fourth message.
According to the technical scheme provided by the application, the third message is the non-first data message of the first data stream, and 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 message of the first data stream according to the first stream table, so that 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 obtaining the detection message of the first data stream is improved.
Optionally, the detection header of the fourth packet further includes at least one of: action indication information, period indication information and type indication information. Wherein the action indication information is used for indicating the detection action of the first data stream; the period indication information is used for indicating the detection period of the first data stream; the type indication information is used to indicate a detection type of the first data stream.
Optionally, the method further comprises: the first network node determines that the hit number of the first flow table within the specified duration is not more than the preset number of times, and the first network node ages the first flow table. In this way, the overhead of streaming resources may be reduced.
Optionally, the method further comprises: the first network node obtains transmission detection information of the first data stream according to the detection message of the first data stream, wherein the detection message of the first data stream comprises a second message. For example, the detection message of the first data stream includes a detection header, the detection header including the action indication information, and the first network node obtains transmission detection information of the first data stream by performing a detection action indicated by the action indication information.
Optionally, the method further comprises: the first network node sends first reporting information to the controller, wherein the first reporting information comprises a first flow identifier and transmission detection information of a first data flow.
According to the technical scheme provided by the application, the first network node sends the transmission detection information of the first data stream to the controller, so that the controller can conveniently determine the transmission detection information of the second data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the second stream identifier, and/or determine the transmission detection information of the third data stream according to the transmission detection information of the first data stream and the association relation 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.
Optionally, the method further comprises: the first network node determines transmission detection information of the second data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the second stream identifier; the first network node sends second reporting information to the controller, the second reporting information including a second stream identification and transmission detection information of a second data stream.
According to the technical scheme provided by the application, the first network node determines the transmission detection information of the second data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the second stream identifier, so that the transmission detection information of the second data stream is more comprehensive. The first network node sends the transmission detection information of the second data stream to the controller, so that the controller can conveniently determine the transmission quality of the second data stream according to the transmission detection information of the second data stream, and the obtained transmission quality of the second data stream is more accurate.
Optionally, the method further comprises: the first network node determines transmission detection information of a third data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the third stream identifier; the first network node sends third reporting information to the controller, wherein the third reporting information comprises a third stream identifier and transmission detection information of a third data stream.
According to the technical scheme provided by the application, the first network node determines the transmission detection information of the third data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the third stream identifier, so that the transmission detection information of the third data stream is more comprehensive. The first network node sends the transmission detection information of the third data stream to the controller, so that the controller can conveniently determine the transmission quality of the third data stream according to the transmission detection information of the third data stream, and the obtained transmission quality of the third data stream is more accurate.
Optionally, the method further comprises: the first network node generates a first association relationship, wherein the first association relationship comprises association relationships of the first stream identifier, the second stream identifier and the third stream identifier.
Optionally, the method further comprises: the first network node sends the first association to the controller.
Optionally, the method further comprises: the first network node receives a first association relation sent by the controller, wherein the first association relation comprises association relations of a first stream identifier, a second stream identifier and a third stream identifier.
Optionally, the method further comprises: the first network node sends the first association to the second network node.
According to the technical scheme provided by the application, the first network node can conveniently determine the transmission detection information of the second data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the second stream identifier by acquiring (e.g. generating or receiving) the first association relation, and/or can conveniently determine the transmission detection information of the third data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the third stream identifier.
Optionally, the detection header includes an IFIT header.
Optionally, the first network node is a head node.
In a second aspect, a transmission detection method is provided, the method comprising: the second network node receives a detection message of the first data flow, the detection message comprises a detection header, the detection header comprises 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 for indicating the first data flow, the second flow identifier is used for indicating the second data flow, the third flow identifier is used for indicating the third data flow, the first data flow is matched with a first matching strategy and a second matching strategy, the second data flow is matched with the first matching strategy and the second data flow is not matched with the second matching strategy, the third data flow is matched with the second matching strategy and the third data flow is not matched with the first matching strategy; and the second network node acquires transmission detection information of the first data stream according to the detection message of the first data stream.
Optionally, the detection header further includes action indication information, where the action indication information is used to indicate a detection action of the first data stream. The second network node may determine a detection action of the first data stream according to the action indication information, and further execute the detection action of the first data stream to obtain transmission detection information of the first data stream.
Optionally, the detection header further includes period indication information, where the period indication information is used to indicate a detection period of the first data stream. The second network node may determine a detection period of the first data stream according to the period indication information, and further execute a detection action of the first data stream in the detection period of the first data stream, so as to implement periodic detection of the first data stream.
Optionally, the detection header further includes type indication information, where the type indication information is used to indicate a detection type of the first data stream. The second network node may determine a detection type of the first data stream according to the type indication information, and further perform transmission detection of the first data stream according to the detection type of the first data stream, so as to obtain transmission detection information of the first data stream.
Optionally, the method further comprises: the second network node sends first reporting information to the controller, wherein the first reporting information comprises a first flow identifier and transmission detection information of a first data flow.
Optionally, the method further comprises: the second network node determines transmission detection information of the second data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the second stream identifier; the second network node sends second reporting information to the controller, the second reporting information including a second stream identification and transmission detection information of a second data stream.
Optionally, the method further comprises: the second network node determines transmission detection information of the third data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the third stream identifier; the second network node sends third reporting information to the controller, wherein the third reporting information comprises a third stream identifier and transmission detection information of a third data stream.
Optionally, the second network node receives a first association relationship, where the first association relationship includes an association relationship between the first stream identifier and the second stream identifier, and between the first stream identifier and the third stream identifier.
Optionally, the detection header includes an IFIT header.
Optionally, the second network node is an intermediate node or a tail node.
In a third aspect, a transmission detection method is provided, the method comprising: the controller receives first reporting information sent by at least one network node, wherein the first reporting information comprises 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 for indicating the first data stream, the second stream identifier is used for indicating the second data stream, the third stream identifier is used for indicating the third data stream, the first data stream is matched with a first matching strategy and a second matching strategy, the second data stream is matched with the first matching strategy and the second data stream is not matched with the second matching strategy, the third data stream is matched with the second matching strategy and the third data stream is not matched with the first matching strategy; the controller determines the transmission detection information of the second data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the second stream identifier.
Optionally, the method further comprises: the controller determines transmission detection information of the third data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the third stream identifier.
Optionally, the method further comprises: the controller generates a first association relation, wherein the first association relation comprises association relations of the first stream identifier, the second stream identifier and the third stream identifier.
Optionally, the method further comprises: the controller sends the first association to at least one network node.
Optionally, the method further comprises: the controller receives a first association relation sent by a first network node, wherein the first association relation comprises association relations of a first stream identifier, a second stream identifier and a third stream identifier.
Optionally, the first network node is a head node.
Optionally, the at least one network node comprises at least one of a head node, an intermediate node and a tail node.
In a fourth aspect, a transmission detection apparatus is provided, for application to a first network node, the apparatus comprising:
the receiving module is used for receiving a first message, wherein the first message is a data message of a first data stream;
a processing module, configured to obtain a second packet based on the first packet, where the second packet includes a detection header, where the detection header includes a first flow identifier, where the first flow identifier is associated with both a second flow identifier and a third flow identifier, where the first flow identifier is used to indicate the first data flow, the second flow identifier is used to indicate a second data flow, where the third flow identifier is used to indicate a third data flow, where the second data flow matches a first matching policy and the second data flow does not match a second matching policy, where the third data flow matches the second matching policy and the third data flow does not match the first matching policy, and where the first packet matches both the first matching policy and the second matching policy;
And the sending module is used for forwarding the second message.
Optionally, the first matching policy is associated with a first detection action, the second matching policy is associated with a second detection action, the processing module is further configured to determine a detection action of the first data flow according to the first detection action and the second detection action, and the detection header further includes action indication information, where the action indication information is used to indicate the detection action of the first data flow.
Optionally, the detecting action of the first data stream includes at least one of the first detecting action and the second detecting action.
Optionally, the first matching policy is associated with a first detection period, the second matching policy is associated with a second detection period, the processing module is further configured to determine a detection period of the first data stream according to the first detection period and the second detection period, and the detection header further includes period indication information, where the period indication information is used to indicate the detection period of the first data stream.
Optionally, the detection period of the first data stream is the minimum period of the first detection period and the second detection period.
Optionally, the first matching policy is associated with a first detection type, the second matching policy is associated with a second detection type, the processing module is further configured to determine a detection type of the first data flow according to the first detection type and the second detection type, and the detection header further includes type indication information, where the type indication information is used to indicate the detection type of the first data flow.
Optionally, the detection type of the first data stream is one of a first detection type and a second detection type.
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.
Optionally, the processing module is further configured to generate a first flow table, where the first flow table includes message information of the first message and the first flow identifier.
Optionally, the first flow table further includes at least one of: action indication information, period indication information and type indication information; wherein the action indication information is used for indicating a detection action of the first data stream; the period indication information is used for indicating the detection period of the first data stream; the type indication information is used for indicating the detection type of the first data stream.
Optionally, the receiving module is further configured to receive a third packet, where the third packet is a data packet of the first data stream;
the processing module is further configured to obtain a fourth packet based on the third packet, where the third packet is matched with the first flow table, the fourth packet includes a detection header, and the detection header includes the first flow identifier;
the sending module is further configured to forward the fourth packet.
Optionally, the detection header of the fourth packet further includes at least one of: action indication information, period indication information and type indication information; wherein the action indication information is used for indicating a detection action of the first data stream; the period indication information is used for indicating the detection period of the first data stream; the type indication information is used for indicating the detection type of the first data stream.
Optionally, the processing module is further configured to determine that the hit number of the first flow table is not greater than a preset number of times within a specified duration, and age the first flow table.
Optionally, the processing module is further configured to obtain transmission detection information of the first data stream according to a detection packet of the first data stream, where the detection packet of the first data stream includes the second packet.
Optionally, the sending module is further configured to send first report information to the controller, where the first report information includes the first flow identifier and transmission detection information of the first data flow.
Optionally, the processing module is further configured to determine transmission detection information of the second data stream according to the transmission detection information of the first data stream and an association relationship between the first stream identifier and the second stream identifier;
the sending module is further configured to send second reporting information to the controller, where the second reporting information includes the second flow identifier and transmission detection information of the second data flow.
Optionally, the processing module is further configured to determine transmission detection information of the third data stream according to the transmission detection information of the first data stream and an association relationship between the first stream identifier and the third stream identifier;
the sending module is further configured to send third reporting information to a controller, where the third reporting information includes the third stream identifier and transmission detection information of the third data stream.
Optionally, the processing module is further configured to generate a first association relationship, where the first association relationship includes an association relationship between the first stream identifier and the second stream identifier, and the third stream identifier.
Optionally, the sending module is further configured to send the first association relationship to a controller.
Optionally, the receiving module is further configured to receive a first association relationship sent by the controller, where the first association relationship includes an association relationship between the first stream identifier and the second stream identifier, and between the first stream identifier and the third stream identifier.
Optionally, the sending module is further configured to send the first association relationship to a second network node.
Optionally, the detection header includes an IFIT header.
Optionally, the first network node is a head node.
In a fifth aspect, a transmission detection apparatus is provided for use in a second network node, the apparatus comprising:
a receiving module, configured to receive a detection packet of a first data stream, where the detection packet includes a detection header, and the detection header includes a first stream identifier, where the first stream identifier is associated with a second stream identifier and a third stream identifier, where the first stream identifier is used to indicate the first data stream, the second stream identifier is used to indicate a second data stream, and the third stream identifier is used to indicate a third data stream, where the first data stream is matched with both a first matching policy and a second matching policy, the second data stream is matched with the first matching policy and the second data stream is not matched with the second matching policy, and the third data stream is matched with the second matching policy and the third data stream is not matched with the first matching policy;
And the processing module is used for acquiring transmission detection information of the first data stream according to the detection message of the first data stream.
Optionally, the detection header further includes action indication information, where the action indication information is used to indicate a detection action of the first data stream, and the processing module is further configured to determine the detection action of the first data stream according to the action indication information.
Optionally, the detection header further includes period indication information, where the period indication information is used to indicate a detection period of the first data stream, and the processing module is further configured to determine the detection period of the first data stream according to the period indication information.
Optionally, the detection header further includes type indication information, where the type indication information is used to indicate a detection type of the first data stream, and the processing module is further configured to determine the detection type of the first data stream according to the type indication information.
Optionally, the apparatus further includes: and the sending module is used for sending first reporting information to the controller, wherein the first reporting information comprises the first flow identifier and transmission detection information of the first data flow.
Optionally, the processing module is further configured to determine transmission detection information of the second data stream according to the transmission detection information of the first data stream and an association relationship between the first stream identifier and the second stream identifier;
The sending module is further configured to send second reporting information to the controller, where the second reporting information includes the second flow identifier and transmission detection information of the second data flow.
Optionally, the processing module is further configured to determine transmission detection information of the third data stream according to the transmission detection information of the first data stream and an association relationship between the first stream identifier and the third stream identifier;
the sending module is further configured to send third reporting information to a controller, where the third reporting information includes the third stream identifier and transmission detection information of the third data stream.
Optionally, the receiving module is further configured to receive a first association relationship, where the first association relationship includes an association relationship between the first stream identifier and the second stream identifier, and the third stream identifier.
Optionally, the detection header includes an IFIT header.
Optionally, the second network node is an intermediate node or a tail node.
In a sixth aspect, there is provided a transmission detection apparatus for use in a controller, the apparatus comprising:
a receiving module, configured to receive first reporting information sent by at least one network node, where the first reporting information includes a first flow identifier and transmission detection information of a first data flow, where the first flow identifier is associated with a second flow identifier and a third flow identifier, where the first flow identifier is used to indicate the 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, where the first data flow is matched with both a first matching policy and a second matching policy, the second data flow is matched with the first matching policy and the second data flow is not matched with the second matching policy, and the third data flow is matched with the second matching policy and the third data flow is not matched with the first matching policy;
And the processing module is used for determining the transmission detection information of the second data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the second stream identifier.
Optionally, the processing module is further configured to determine transmission detection information of the third data stream according to the transmission detection information of the first data stream and an association relationship between the first stream identifier and the third stream identifier.
Optionally, the processing module is further configured to generate a first association relationship, where the first association relationship includes an association relationship between the first stream identifier and the second stream identifier, and the third stream identifier.
Optionally, the apparatus further includes: and the sending module is used for sending the first association relation to at least one network node.
Optionally, the receiving module is further configured to receive a first association relationship sent by a first network node, where the first association relationship includes an association relationship between the first flow identifier and the second flow identifier, and between the first flow identifier and the third flow identifier.
Optionally, the first network node is a head node.
Optionally, the at least one network node comprises at least one of a head node, an intermediate node and a tail node.
The modules in the fourth to sixth aspects described above may be implemented based on software, hardware, or a combination of software and hardware, and the modules may be arbitrarily combined or divided based on specific implementations.
In a seventh aspect, a transmission detection apparatus is provided, including a memory and a processor;
the memory is used for storing 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 as provided in the first aspect or any of the alternatives of the first aspect or to perform the transmission detection method as provided in the second aspect or any of the alternatives of the second aspect.
In an eighth aspect, a transmission detection apparatus is provided, including a memory and a processor;
the memory is used for storing 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 as provided in the third aspect or any of the optional manners of the third aspect.
In a ninth aspect, a transmission detection system is provided, comprising a controller and a plurality of network nodes;
at least one of the plurality of network nodes comprises the transmission detection apparatus as provided in any of the alternatives of the fourth or fourth aspect, or comprises the transmission detection apparatus as provided in any of the alternatives of the fifth or fifth aspect, or comprises the transmission detection apparatus as provided in the seventh aspect;
The controller comprises a transmission detection device as provided in the sixth aspect or any of the optional modes of the sixth aspect, or comprises a transmission detection device as provided in the eighth aspect.
In a tenth aspect, there is provided a computer readable storage medium having stored therein a computer program which, when executed, implements the transmission detection method as provided in the above-described first aspect or any of the alternatives of the first aspect, or implements the transmission detection method as provided in the above-described second aspect or any of the alternatives of the second aspect, or implements the transmission detection method as provided in the above-described third aspect or any of the alternatives of the third aspect.
In an eleventh aspect, there is provided a computer program product comprising a program or code which, when executed, implements a transmission detection method as provided in any of the above first aspect or the first aspect, or implements a transmission detection method as provided in any of the above second aspect or the second aspect, or implements a transmission detection method as provided in any of the above third aspect or the third aspect.
In a twelfth aspect, there is provided a chip comprising programmable logic and/or program instructions, the chip being operative to: a transmission detection method as provided in the first aspect or any of the alternatives of the first aspect is implemented, or a transmission detection method as provided in the second aspect or any of the alternatives of the second aspect is implemented, or a transmission detection method as provided in the third aspect or any of the alternatives of the third aspect is implemented.
The technical effects of the second aspect to the twelfth aspect described above may refer to the first aspect, and thus are not described in detail.
The technical scheme provided by the application has the beneficial effects that:
according to the transmission detection method, device and system provided by the application, after the first network node receives the first message of the first data stream, the first network node obtains the second message based on the first message and forwards the second message, the second message comprises the detection header, the detection header comprises the first stream identifier, the first stream identifier is used for indicating the first data stream, and the first data stream is matched with the first matching strategy and the second matching strategy, so that the network node on the transmission path of the first data stream can detect the first data stream according to the detection header included in the second message, the detection of the first data stream can be realized according to the first matching strategy and the second matching strategy, the detection result of the first data stream can cover the first matching strategy and the second matching strategy, the detection result of the first data stream is more comprehensive, the detection accuracy is higher, and the detection effect is better. In addition, the second message may include only one detection header, that is, one detection header is added to the data message of the first data stream, so that the detection of the first data stream can be realized according to the first matching strategy and the second matching strategy, so that the overhead of the data message of the first data stream is not increased, the increase of a plurality of detection headers in the data message of the first data stream is avoided, the consumption of additional network bandwidth resources is avoided, and the utilization rate of the network bandwidth resources is improved.
In addition, the first stream identifier is associated with both the second stream identifier and the third stream identifier, the second stream identifier is used for indicating the second data stream, the third stream identifier is used for indicating the third data stream, the second data stream is matched with the first matching strategy and the second data stream is not matched with the second matching strategy, the third data stream is matched with the second matching strategy and the third data stream is not matched with the first matching strategy. After the detection result of the first data stream is obtained, the detection result of the second data stream which is matched with the first matching strategy and is not matched with the second matching strategy can be determined according to the detection result of the first data stream and the association relation between the first stream identifier and the second stream identifier, and the detection result of the third data stream which is matched with the second matching strategy and is not matched with the first matching strategy can be determined according to the detection result of the first data stream and the association relation between the first stream identifier and the third stream identifier. The detection result of the second data stream and the detection result of the third data stream are more comprehensive, and the detection effect of the second data stream and the detection effect of the third data stream are better.
Drawings
Fig. 1 is a schematic structural diagram of an IFIT header according to an embodiment of the present application;
FIG. 2 is a schematic structural diagram of an IFIT message provided in an embodiment of the present application;
fig. 3 is a schematic diagram of an application scenario provided in an embodiment of the present application;
fig. 4 is a flowchart of a transmission detection method according to an embodiment of the present application;
fig. 5 is a flowchart of another transmission detection method according to an embodiment of the present application;
fig. 6 is a flowchart of still another transmission detection method according to an embodiment of the present application;
fig. 7 is a flowchart of yet another transmission detection method according to an embodiment of the present application;
fig. 8 is a flowchart of yet another transmission detection method according to an embodiment of the present application;
fig. 9 is a flowchart of yet another transmission detection method according to an embodiment of the present application;
fig. 10 is a flowchart of yet another transmission detection method according to an embodiment of the present application;
fig. 11 is a flowchart of yet another transmission detection method according to an embodiment of the present application;
fig. 12 is a flowchart of yet another transmission detection method according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of a transmission detection apparatus according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of another transmission detection apparatus according to an embodiment of the present application;
fig. 15 is a schematic structural diagram of still another transmission detection apparatus according to an embodiment of the present application;
Fig. 16 is a schematic structural view of another transmission detection apparatus according to an embodiment of the present application;
fig. 17 is a schematic structural diagram of another transmission detection apparatus according to an embodiment of the present application.
Detailed Description
Embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The stream following detection technology takes the data message as a carrier to detect the transmission quality of the data stream, and the transmission quality of the data stream detected based on the stream following detection technology can reflect the actual transmission performance of the data stream. The principle of the flow following detection technology is as follows: the head node inserts a detection header into the data message according to the characteristics of the data message, and the network node (such as at least one of the head node, the middle node and the tail node) detects the data stream to which the data message belongs according to the detection header so as to acquire transmission detection information of the data stream to which the data message belongs. Wherein the characteristics of the data message, such as hit a certain ACL rule, belong to a certain VPN, pass through a certain tunnel, etc.
In the current flow-following detection technology, the head node may enable a plurality of matching strategies for data flow detection, each matching strategy is associated with at least one detection action, at least two of the plurality of matching strategies are different in type, different in priority, and different in priority. For example, the plurality of matching strategies includes: hit ACL rule 1, belong to VPN1, transmit through tunnel 1, ACL rule, VPN, tunnel are the type of matching policy, three types of matching policy of "hit ACL rule 1", "belong to VPN1", "transmit through tunnel 1" are different. Typically, the priority of an ACL rule is typically highest (i.e., the priority of a matching policy of the type ACL rule is highest). After receiving the data message, the head node respectively matches the data message with the plurality of matching strategies according to the characteristics of the data message. If the head node determines that the data packet matches at least two of the plurality of matching policies, in order to save packet overhead, the head node generally selects one of the at least two matching policies according to priority, and inserts a detection header into the data packet according to the selected one matching policy to obtain a detection packet (if the data packet is detected according to the at least two matching policies, at least two detection headers need to be inserted into the data packet, resulting in increased packet overhead and reduced bandwidth utilization of the transmission link). And the head node forwards the detection message to the intermediate node, the intermediate node forwards the detection message to the tail node, and the tail node strips the detection header in the detection message to obtain the original data message. The detection header includes a detection flag (for example, a packet loss detection flag, a delay detection flag) and a flowID of a data flow to which the data packet belongs, where the detection flag is used to indicate a detection action of the data flow. In the process of transmitting the detection message, at least one network node of the head node, the intermediate node and the tail node acquires transmission detection information of the data stream according to the flowID and the detection mark in the detection header, and reports the transmission detection information of the data stream to the controller, and the controller can determine the transmission quality of the data stream according to the transmission detection information of the data stream. For example, the detection header includes a packet loss detection flag, at least one network node of the head node, the intermediate node and the tail node may obtain packet loss detection information of the data flow according to the flowID and the packet loss detection flag in the detection header, and the controller may determine a packet loss rate of the data flow according to the packet loss detection information of the data flow. For another example, the detection header includes a delay detection flag, at least one network node of the head node, the intermediate node, and the tail node may obtain delay detection information of the data stream according to the flowID and the delay detection flag in the detection header, and the controller may determine a transmission delay of the data stream according to the delay detection information of the data stream.
However, in the current flow-following detection technology, when the head node determines that a certain data packet is matched with at least two matching strategies, the head node inserts a detection header into the data packet according to only one of the at least two matching strategies, which results in that the data flow to which the data packet belongs can only be detected according to only one of the at least two matching strategies, the detection result of the data flow only includes the detection result corresponding to the one matching strategy matched with the data flow, the detection result of the data flow cannot cover the at least two matching strategies matched with the data flow, the detection result of the data flow is not comprehensive enough, the detection effect is poor, and the user requirement is difficult to be satisfied. For example, the user requirements are: the detection of transmission of a certain data stream is performed by the tunnel 1, and when the transmission quality of the data stream transmitted through the tunnel 1 does not meet the requirement, tunnel switching (or tunnel switching, for example, switching the data stream to the tunnel 2 transmission) is performed. When the data stream is detected, if the head node determines that the data stream hits a certain ACL rule and the data stream is transmitted through the tunnel 1, according to the current stream following detection technology, the head node only detects the data stream based on the ACL rule, so that the detection result cannot meet the requirement of a user.
As can be seen from the foregoing description, in the flow-following detection technology, a network node detects a data flow based on a detection header included in a detection message, so as to obtain transmission detection information of the data flow. The on-stream detection technology may include an IFIT technology, an in-band operation management maintenance (in-suitoam operations administration and maintenance, IOAM) technology, and other on-stream detection technologies. In different on-stream detection techniques, the detection header and the detection message may be referred to differently. For example, in the IFIT technique, the detection header may be referred to as an IFIT header or an IFIT detection header, and the detection message may be referred to as an IFIT message or an IFIT detection message. In the IOAM technology, the detection header may be referred to as an IOAM header or an IOAM detection header, and the detection message may be referred to as an IOAM message or an IOAM detection message. In other flow-following detection technologies, other names may be used for detecting the header and the detection message. Regardless of the flow-following detection technique, a flow identification may be included in the detection header for indicating the data flow to be detected, as embodiments of the present application are not limited in this regard.
In the following, the structure of the detection header and the structure of the detection message are described by taking the IFIT technology as an example, and the structure of the IFIT header is usually different and the structure of the detection message is usually different in different network scenarios. The following is presented by way of example in the scenario of the segment routing internet protocol version 6 (segment routing internet protocol version, srv 6).
Referring to fig. 1, a schematic structure diagram of an IFIT header according to an embodiment of the present application is shown. The IFIT header is the IFIT header in the SRv scene. The IFIT header includes: a stream instruction indication (flow instruction indicator, FII), a stream instruction header (flow instruction header, FIH) and a stream instruction extension header (flow instruction extension header, FIEH), FIEH being an optional part of the IFIT header. The FII includes a type (type) field, a length (length) field, and a reserved field. The value of the type field may be 130 to indicate the IFIT header. The length field is used to indicate the total length of FIH and FIEH. The FIH includes a flow identification field, an L field, a D field, a reserved (R) field, and a header type indication (header type indicator, HTI) field. The flow identification field is used to record the flow identification. The L field is used for recording a packet loss dyeing mark (the L field is also called a packet loss mark field or a packet loss mark bit). The D field is used for recording a delay dyeing mark (the D field is also called a delay flag field or a delay flag bit). The HTI field is used to record the type of FIH, the value of the HTI field may be 0, 1, 2, 3 or 4,0 is a reserved value, 1 and 3 each indicate that FIH is E2E FIH and FIEH is not valid when the value of the HTI field is 1, FIEH is valid when the value of the HTI field is 3, 2 and 4 indicate that FIH is hop-by-hop FIH and FIEH is not valid when the value of the HTI field is 2, and FIEH is valid when the value of the HTI field is 4. FIEH includes a flow id Ext field, a V field, a P field, a destination internet protocol (destination internet protocol, DIP) mask (mask) field, a source internet protocol (Source internet protocol, SIP) mask field, and a reserved field. The flow identification extension field is used to record the flow identification (i.e., extended flow identification). The V field is used to record the reverse flow learning enable flag. The P field is used for recording a detection period (or reporting period of a detection result), the value of the P field may be 0, 1, 2, 3, 4 or 5, where 0 and 1 are all reserved values, 2 represents that the detection period is 10 seconds, 3 represents that the detection period is 30 seconds, 4 represents that the detection period is 60 seconds, and 5 represents that the detection period is 300 seconds. The DIP mask field is used to record the DIP mask length of automatic reverse flow learning. The SIP mask field is used to record the SIP mask length for automatic reverse flow learning. The reserved field is used to support future extensions.
Referring to fig. 2, a schematic structural diagram of an IFIT packet according to an embodiment of the present application is shown. The IFIT message is an IFIT message in the SRv scene. The IFIT message includes: payload (payload), segment routing protocol header (segment routing head, SRH), IFIT header, segment list (segment list), SRH base header (basic header), and ethernet header (ETH). The IFIT header is inserted by the head node in the data message, the contents of which may be as described with reference to fig. 1. The contents of the SRH, segment list, and SRH base header are not described in detail herein.
It should be noted that fig. 1 and fig. 2 are only examples, and are not intended to limit the technical solution of the present application. In practical application, the content, format and the like of the IFIT header and the IFIT message can be flexibly adjusted according to the requirement. For example, in the IFIT packet shown in fig. 2, the IFIT header is located in the header SRv, and in other implementations, the IFIT header may be independent of the header SRv, e.g., the IFIT header may be located in a hop-by-hop header (hop by hop header, HBH), as embodiments of the present application are not limited in this respect. In addition, the structure of the IOAM header, the structure of the IOAM message, and the structure of other detection headers, and the structure of the detection message may refer to related standard protocols, which are not described herein.
The technical scheme of the application is described below, and the application scene of the application is described first.
Fig. 3 is a schematic diagram of an application scenario provided by an embodiment of the present application. The application scenario provides a communication network, which may also be referred to as a communication system. The communication network is for example a data center network (data center network, DCN), a metropolitan area network, a wide area network or a campus network, etc.
As shown in fig. 3, the communication network comprises a controller 100 and a plurality of network nodes 101-103. The controller 100 is connected to network nodes 101 to 103, respectively, and the network nodes 101 to 103 are connected in sequence. Network nodes 101-103 may perform message forwarding under the control of controller 100. For example, the network nodes 101 to 103 include edge network nodes and core network nodes, the edge network nodes are located at edges of the communication network, the edge network nodes are used for accessing the communication network by the workstation, the core network nodes are connected between different edge network nodes, and the core network nodes are used for forwarding messages between different edge network nodes. By way of example, the edge network node may be a Provider Edge (PE) node and the core network node may be a provider (P) node.
Wherein the controller 100 integrates functions of network management, traffic control, network analysis, and the like. The controller 100 may be a functional module deployed in a server, or a server cluster formed by a plurality of servers, or a cloud computing service center, or other devices or modules with network control functions. Each of network nodes 101-103 may be a switch, a router, a virtual switch, a virtual router, or the like. The embodiment of the present application is described by taking network nodes 101 to 103 as network devices, and in one possible case, network nodes 101 to 103 are the same network devices, for example, network nodes 101 to 103 are routers. In another possible scenario, at least two of network nodes 101-103 are different network devices, e.g., one of network nodes 101-103 is a router and the other is a switch. The workstation accessing the communication network may be a host, a server, a base station, a Virtual Machine (VM), etc., and the host may be a smart phone, a tablet computer, a desktop computer, or an internet of things (internet of things, ioT) device, etc., which is not limited in the embodiment of the present application.
A communication network typically includes a transmission path for a data stream, which may include a plurality of network nodes. The plurality of network nodes may include a head node, a tail node, and at least one intermediate node located between the head node and the tail node, depending on a transmission direction of the data stream. The data stream flows into the transmission path through the head node and out of the transmission path through the tail node. The number of intermediate nodes is different according to the length of the transmission path, or the transmission path only includes the head node and the tail node, but does not include the intermediate node. In some implementations, the network node is also referred to as a network device, gateway device, routing node, or routing device; the head node is also called head node device, ingress node, ingress device, head node device; the intermediate node is also called a transit node, transit equipment and intermediate equipment; the tail nodes are also called tail node devices, egress nodes, egress devices; the transmission path is also called a forwarding path, a communication tunnel, or the like. For example, as shown in fig. 1, the communication network comprises a transmission path P, the network node 101 may be a head node, the network node 103 may be a tail node, and the network node 102 may be an intermediate node.
In an embodiment of the present application, the head node (e.g. the network node 101) may enable multiple matching policies, which may each be used for data flow matching during transmission detection, at least two of the multiple matching policies may be of different types or of the same type. After receiving a data message of a certain data stream, the head node respectively matches the data message with the plurality of matching strategies, and obtains a detection message of the data stream based on the data message according to a matching result, wherein the detection message comprises a detection header (such as an IFIT header or an IOAM header) and the detection header comprises a stream identifier for indicating the data stream. The head node then forwards the detection message to the next-hop node of the head node, which may be an intermediate node or a tail node, here illustrated as the next-hop node of the head node being an intermediate node (e.g., network node 102). After the intermediate node receives the detection message, the intermediate node forwards the detection message to a next-hop node of the intermediate node, which may be an intermediate node or a tail node, where the example is described in which the next-hop node of the intermediate node is the tail node (e.g., network node 103). After the tail node receives the detection message, the tail node can strip a detection header included in the detection message to obtain an original data message. In the process of transmitting the detection message of the data stream, at least one network node of the head node, the middle node and the tail node can acquire transmission detection information of the data stream according to the detection message of the data stream. For convenience of description, in the present application, a data stream that matches a single matching policy (i.e., one matching policy) is referred to as a single data stream (or an original data stream), a stream identifier for indicating the single data stream (or the original data stream) is referred to as a single stream identifier (or an original stream identifier), a data stream that matches at least two matching policies is referred to as a detail data stream (or an integrated data stream, an aggregate data stream), and a stream identifier for indicating the detail data stream (or the integrated data stream, the aggregate data stream) is referred to as a detail stream identifier (or an integrated stream identifier, an aggregate stream identifier). The network node can acquire the transmission detection information of the detail data stream according to the detection message of the detail data stream, the transmission detection information of the detail data stream can comprise the transmission detection information corresponding to at least two matching strategies matched with the detail data stream, the transmission detection information of the detail data stream can cover at least two matching strategies matched with the detail data stream, and the transmission detection information of the detail data stream is more comprehensive, so that the detection accuracy of the detail data stream is higher, and the detection effect is better.
In addition, in the present application, the detail flow identifier may be associated with the single flow identifier, and after the network node obtains the transmission detection information of the detail data flow, the network node may determine the transmission detection information of the single data flow according to the transmission detection information of the detail data flow and the association relationship between the detail flow identifier and the single flow identifier, for example, the network node determines, as the transmission detection information of the single data flow, the transmission detection information corresponding to the matching policy matched with the single data flow in the transmission detection information of the detail data flow. The network node may also send transmission detection information of the single data stream to the controller, and the controller may determine transmission quality of the single data stream according to the transmission detection information of the single data stream. Or after the network node obtains the transmission detection information of the detail data stream, the network node may send the transmission detection information of the detail data stream to the controller, and the controller may determine the transmission detection information of the single data stream according to the transmission detection information of the detail data stream and the association relationship between the detail stream identifier and the single stream identifier, for example, the controller determines, in the transmission detection information of the detail data stream, the transmission detection information corresponding to the matching policy matched with the single data stream as the transmission detection information of the single data stream, and the controller may determine the transmission quality of the single data stream according to the transmission detection information of the single data stream. In the application, the transmission detection information of the single data stream can be determined according to the transmission detection information of the detail data stream and the association relation between the detail stream identification and the single stream identification, so the determined transmission detection information of the single data stream is more comprehensive, and the single data stream detection effect is better.
By way of example, the plurality of matching policies enabled by the head node include matching policy 1, matching policy 2, and matching policy 3.flowID1 is used to indicate a data flow that matches matching policy 1 and does not match both matching policy 2 and matching policy 3 (this data flow is simply referred to as data flow 1). flowID2 is used to indicate a data flow that matches matching policy 2 and does not match both matching policy 1 and matching policy 3 (this data flow is simply referred to as data flow 2). flowID3 is used to indicate a data flow that matches matching policy 3 and does not match both matching policy 1 and matching policy 2 (this data flow is simply referred to as data flow 3). flowID12 is used to indicate a data flow that matches both matching policy 1 and matching policy 2 and that does not match matching policy 3 (this data flow is simply referred to as data flow 12). flowID23 is used to indicate a data flow that matches both matching policy 2 and matching policy 3 and that does not match matching policy 1 (this data flow is simply referred to as data flow 23). flowID13 is used to indicate a data flow that matches both matching policy 1 and matching policy 3 and that does not match matching policy 2 (this data flow is simply referred to as data flow 13). flowID123 is used to indicate the data flow that matches each of matching policy 1, matching policy 2, and matching policy 3 (this data flow is simply referred to as data flow 123). Data flow 1, data flow 2, and data flow 3 may each be referred to as a single data flow (or original data flow), and flowID1, flowID2, and flowID3 may each be referred to as a single flow identification (or original flow identification). Data flow 12, data flow 13, data flow 23, and data flow 123 may each be referred to as a detail data flow, and flowID12, flowID13, flowID23, and flowID123 may each be referred to as a detail flow identification. FlowID12 is associated with FlowID1, flowID2, flowID13 is associated with FlowID1, flowID3, flowID23 is associated with FlowID2, flowID3, flowID123 is associated with FlowID1, flowID2, flowID 3.
Taking the data stream 12 as an example, in the process of transmitting the detection message of the data stream 12, at least one network node of the head node, the middle node and the tail node can acquire the transmission detection information of the data stream 12 according to the detection message of the data stream 12, and because the data stream 12 is matched with both the matching strategy 1 and the matching strategy 2, the transmission detection information of the data stream 12 can comprise the transmission detection information corresponding to the matching strategy 1 and the transmission detection information corresponding to the matching strategy 2, the transmission detection information of the data stream 12 is more comprehensive, the detection accuracy is higher, and the detection effect is better. Further, since the flowID12 is associated with the flowID1, the flowID2, the transmission detection information of the data flow (i.e., the data flow 1) which matches the matching policy 1 and does not match both the matching policy 2 and the matching policy 3 may be determined based on the transmission detection information of the data flow 12, and the transmission detection information of the data flow (i.e., the data flow 2) which matches the matching policy 2 and does not match both the matching policy 1 and the matching policy 3 may be determined based on the transmission detection information of the data flow 12. For example, after the at least one network node obtains the transmission detection information of the data flow 12, the at least one network node may determine the transmission detection information of the data flow 1 according to the transmission detection information of the data flow 12 and the association relationship between the flowID12 and the flowID1 (for example, determine the transmission detection information corresponding to the matching policy 1 in the transmission detection information of the data flow 12 as the transmission detection information of the data flow 1), and the at least one network node may determine the transmission detection information of the data flow 2 according to the transmission detection information of the data flow 12 and the association relationship between the flowID12 and the flowID2 (for example, determine the transmission detection information corresponding to the matching policy 2 in the transmission detection information of the data flow 12 as the transmission detection information of the data flow 2); the at least one network node may send both the transmission detection information of data stream 1 and the transmission detection information of data stream 2 to the controller, the controller may determine the transmission quality of data stream 1 based on the transmission detection information of data stream 1, and the controller may determine the transmission quality of data stream 2 based on the transmission detection information of data stream 2. Alternatively, after the at least one network node obtains the transmission detection information of the data stream 12, the at least one network node may send the transmission detection information of the data stream 12 to the controller; the controller may determine transmission detection information of the data stream 1 according to the transmission detection information of the data stream 12 and the association relationship between the flowID12 and the flowID1 (for example, determine transmission detection information corresponding to the matching policy 1 in the transmission detection information of the data stream 12 as transmission detection information of the data stream 1), and determine transmission quality of the data stream 1 according to the transmission detection information of the data stream 1; and, the controller may determine transmission detection information of the data flow 2 according to the transmission detection information of the data flow 12 and the association relationship between the flowID12 and the flowID2 (for example, determine transmission detection information corresponding to the matching policy 2 in the transmission detection information of the data flow 12 as transmission detection information of the data flow 2), and determine transmission quality of the data flow 2 according to the transmission detection information of the data flow 2. Therefore, the transmission detection information of the data stream 1 and the transmission detection information of the data stream 2 are more comprehensive, and the detection effect of the data stream 1 and the data stream 2 is better.
It should be noted that the above definitions of the head node and the tail node are only exemplary, and in practical application, the head node may be a network node that starts monitoring traffic, and the tail node may be a network node that ends monitoring traffic. For example, for a data stream, a head node may be a network node that begins to detect the transmission quality of the data stream (or a start node that detects the data stream), and a tail node may be a network node that ends to detect the transmission quality of the data stream (or an end node that detects the data stream). It is understood that any network node in the communication network may act as a head node and/or a tail node. For example, as shown in fig. 1, if it is required to detect the transmission quality of a certain data stream from the network node 102 to the network node 103, the network node 102 may be a head node and the network node 103 may be a tail node; network node 103 may be a head node and network node 101 may be a tail node if it is desired to detect the quality of transmission of another data stream from network node 103 to network node 101.
It should also be noted that the above references to single data streams and detail data streams are only presented for convenience of description, and the single data stream and the detail data stream are defined by taking a matching policy as granularity, the single data stream is an abbreviation of a data stream matching a single matching policy, and the detail data stream is an abbreviation of a data stream matching at least two matching policies. The single data stream may be one data stream (or referred to as a traffic stream), or may be a data stream group formed by a plurality of data streams (or referred to as traffic streams). For example, if one of the single data streams is a data stream identified by a five-tuple, for example, the data stream a identified by the five-tuple a matches the matching policy 1 and does not match both the matching policy 2 and the matching policy 3, the data stream a may be the data stream 1 (i.e., the single data stream). For another example, one single data stream may be a data stream group formed by using multiple data streams identified by five-tuple, for example, if the data stream B identified by five-tuple B and the data stream C identified by five-tuple C are both matched with the matching policy 2 and are not matched with the matching policy 1 and the matching policy 3, the data stream B and the data stream C together form the data stream 2 (i.e., the single data stream), that is, the data stream 2 includes the data stream B and the data stream C. The original data stream is the same as the single data stream, and the combined data stream and the aggregate data stream are the same as the detail data stream, and are not repeated here.
It should be further noted that the application scenario shown in fig. 1 is only used as an example, and is not used to limit the technical scheme of the present application. In an implementation, the controller may also be integrated in the network node, e.g. the controller is integrated in the head node. The communication network may include more or fewer network nodes than shown in fig. 1, and the number of network nodes and the number of controllers may be configured as desired, which is not limited by the embodiments of the present application.
The above is an introduction to the application scenario of the present application, and the following describes an embodiment of the transmission detection method of the present application.
Referring to fig. 4, a flowchart of a transmission detection method according to an embodiment of the present application is shown. The transmission detection method is applied to a first network node, which may be a head node (network node starting to monitor the first data flow). For example, as shown in fig. 1, network node 101 may be a network node that begins monitoring a first data flow, and the first network node may be network node 101. Referring to fig. 4, the method includes the following steps S401 to S403.
S401, a first network node receives a first message, wherein the first message is a data message of a first data stream.
The first network node may receive a first message from a last hop node of the first network node. The last hop node of the first network node may be a network node or a workstation accessing the first network node.
S402, the first network node obtains a second message based on the first message, the second message comprises a detection header, the detection header comprises a first stream identifier, the first stream identifier is associated with the second stream identifier and a third stream identifier, the first stream identifier is used for indicating a first data stream, the second stream identifier is used for indicating a second data stream, the third stream identifier is used for indicating a third data stream, the second data stream is matched with a first matching strategy and the second data stream is not matched with the second matching strategy, the third data stream is matched with the second matching strategy and the third data stream is not matched with the first matching strategy, and the first message is matched with both the first matching strategy and the second matching strategy.
In the embodiment of the application, the first network node can enable a plurality of matching strategies, wherein the plurality of matching strategies comprise a first matching strategy and a second matching strategy, and the types of the first matching strategy and the second matching strategy can be different or the same. In the present application, a data flow that matches both the first matching policy and the second matching policy is referred to as a first data flow, a data flow that matches the first matching policy and does not match the second matching policy is referred to as a second data flow (e.g., the second data flow is a data flow that matches only the first matching policy), and a data flow that matches the second matching policy and does not match the first matching policy is referred to as a third data flow (e.g., the third data flow is a data flow that matches only the second matching policy). After the first network node receives the first packet, the first network node may match the first packet with the plurality of matching policies, respectively. The first network node may determine that the first packet matches both the first matching policy and the second matching policy. Thereafter, the first network node obtains a second message based on the first message, comprising a detection header, the detection header comprising a first flow identity for indicating the first data flow. Optionally, the first network node first acquires 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 stream identifier is associated with both a second stream identifier and a third stream identifier, the second stream identifier is used for indicating the second data stream, and the third stream identifier is used for indicating the third data stream. In the present application, a message including a detection header is referred to as a detection message, and the second message may be a detection message of the first data stream.
In the embodiment of the present application, the first flow identifier may be generated by the first network node when receiving the first data packet of the first data flow, or may be pre-allocated before the transmission of the first data flow. After the first network node determines that the first packet is matched with both the first matching policy and the second matching policy, the first network node may acquire a first flow identifier allocated in advance. Or, the first packet is the first data packet of the first data flow, and after the first network node determines that the first packet is matched with both the first matching policy and the second matching policy, the first network node generates the first flow identifier, which is not limited in the embodiment of the present application.
The following will exemplify that the first stream identifier is pre-assigned. In an alternative embodiment, the first network node allocates the flow identifier according to a plurality of matching policies enabled by the first network node, and establishes a correspondence between the matching policies and the flow identifier, and when the first network node actually transmits the data flow, the first network node determines the corresponding flow identifier according to the matching policies matched with the data flow so as to generate the detection header. For convenience of description, a data stream matching a single matching policy is referred to as a single data stream, a stream identifier for indicating the single data stream is referred to as a single stream identifier, a data stream matching at least two matching policies is referred to as a detail data stream, and a stream identifier for indicating the detail data stream is referred to as a detail stream identifier. Each matching policy may correspond to a single flow identifier, where the single flow identifiers corresponding to any two matching policies are different, and each single flow identifier corresponding to each matching policy is used to indicate a data flow (i.e., a single data flow) matched with the matching policy; and, each at least two of the plurality of matching policies may collectively correspond to a detail flow identifier, and the detail flow identifier that each at least two matching policies collectively corresponds to is used to indicate a data flow (i.e., a detail data flow) that matches each at least two matching policies. The first network node may obtain the first flow identifier according to a first matching policy and a second matching policy that match the first packet, and a correspondence between the matching policy and the flow identifier. As an example, the plurality of matching policies enabled by the first network node include matching policy 1, matching policy 2, and matching policy 3, matching policy 1 corresponding to flowID1, matching policy 2 corresponding to flowID2, matching policy 3 corresponding to flowID3, matching policy 1 and matching policy 2 collectively corresponding to flowID12, matching policy 1 and matching policy 3 collectively corresponding to flowID13, matching policy 2 and matching policy 3 collectively corresponding to flowID23, and matching policy 1, matching policy 2, and matching policy 3 collectively corresponding to flowID123. Assuming that the first matching policy is a matching policy 1 and the second matching policy is a matching policy 2, the first network node determines that the first flow identifier is a flowID12 according to the first matching policy and the second matching policy matched with the first packet and the corresponding relation between the matching policy and the flow identifier, and the first flow identifier is a detail flow identifier.
In an alternative embodiment, the first matching policy is associated with a first detection policy, the second matching policy is associated with a second detection policy, after the first network node determines that the first packet is matched with both the first matching policy and the second matching policy, the first network node may determine the detection policy of the first data flow according to the first detection policy and the second detection policy, further generate a detection header according to the first flow identifier and the detection policy of the first data flow, and add the detection header to the first packet to obtain the second packet. Wherein each of the first detection policy and the second detection policy may include at least one of a detection action, a detection period, and a detection type, and the detection policy of the first data flow may include at least one of a detection action, a detection period, and a detection type.
In an alternative embodiment, the first detection policy includes a first detection action, the second detection policy includes a second detection action, the first matching policy is associated with the first detection action, the second matching policy is associated with the second detection action, and determining the detection policy of the first data flow by the first network node according to the first detection policy and the second detection policy may include: the first network node determines a detection action of the first data flow based on the first detection action and the second detection action. Wherein the detecting act of the first data stream comprises at least one of a first detecting act and a second detecting act, e.g., the detecting act of the first data stream comprises a first detecting act and a second detecting act. The detection header of the second message may further include action indication information for indicating a detection action of the first data stream. The application includes the action indication information in the detection header of the second message, which can facilitate the network node obtaining the second message to execute the corresponding detection action according to the action indication information so as to obtain the transmission detection information of the first data stream. For example, one of the first detection action and the second detection action is a delay detection action, the other is a packet loss detection action (e.g., the first detection action is a delay detection action, and the second detection action is a packet loss detection action), and the action indication information of the first data stream may include delay detection indication information and packet loss detection indication information. The delay detection indication information is used for indicating a delay detection action, and the network node obtaining the second message may obtain delay detection information of the first data stream according to the delay detection indication information included in a detection header of the second message, where the delay detection information may include: the network node receives a reception timestamp of the second message and/or the network node sends a transmission timestamp of the second message. The packet loss detection indication information is used for indicating a packet loss detection action, and the network node obtaining the second message can obtain packet loss detection information of the first data stream according to the packet loss detection indication information included in a detection header of the second message, where the packet loss detection information can include: the network node receives the number of messages (e.g., detection messages) of the first data stream and/or the network node transmits the number of messages (e.g., detection messages) of the first data stream. The delay detection indication information may also be referred to as a delay dyeing mark, and the packet loss detection indication information may also be referred to as a packet loss dyeing mark. The delay detection information and the packet loss detection information are collectively referred to as transmission detection information.
In an alternative embodiment, the first detection policy includes a first detection period, the second detection policy includes a second detection period, the first matching policy is associated with the first detection period, the second matching policy is associated with the second detection period, and determining the detection policy of the first data flow by the first network node according to the first detection policy and the second detection policy may include: the first network node determines a detection period of the first data stream based on the first detection period and the second detection period. The detection period of the first data stream is the minimum period of the first detection period and the second detection period. The detection header of the second message may further include period indication information for indicating a detection period of the first data stream. The application includes the period indication information in the detection header of the second message, which can facilitate the network node obtaining the second message to determine the detection period of the first data stream, and further obtain the transmission detection information of the first data stream in the detection period of the first data stream.
In an alternative embodiment, the first detection policy includes a first detection type, the second detection policy includes a second detection type, the first matching policy is associated with the first detection type, the second matching policy is associated with the second detection type, and determining the detection policy of the first data flow by the first network node according to the first detection policy and the second detection policy may include: the first network node determines a detection type of the first data flow according to the first detection type and the second detection type. Wherein the detection type of the first data stream comprises one of a first detection type and a second detection type. The first detection type is, for example, end-to-end detection, the second detection type is hop-by-hop detection, and the first data stream detection type is the second detection type (i.e., hop-by-hop detection). The detection header of the second message may further include type indication information for indicating a detection type of the first data stream. The application includes the type indication information in the detection header of the second message, so that the network node which can conveniently acquire the second message can determine the detection type of the first data stream according to the type indication information, and then detect the first data stream according to the detection type of the first data stream so as to acquire the transmission detection information of the first data stream. For example, the detection type of the first data stream is hop-by-hop detection, and the head node, the intermediate node and the tail node can detect the first data stream to obtain transmission detection information of the first data stream. For another example, the detection type of the first data stream is end-to-end detection, the head node and the tail node may detect the first data stream to obtain transmission detection information of the first data stream, and the intermediate node may not detect the first data stream.
In an alternative embodiment, the detection header is an IFIT header, the first flow identifier may be carried in a flow identifier field of the IFIT header, the delay detection indication information may be carried in a D field of the IFIT header, the packet loss detection indication information may be carried in an L field of the IFIT header, the period indication information may be carried in a P field of the IFIT header, and the type indication information may be carried in an HTI field of the IFIT header. In addition to the first flow identifier, the action indication information, the period indication information, and the type indication information, the detection header may further include other information related to transmission detection, which is not described herein. In addition, the detection header is an IFIT header, and in other embodiments, the detection header may be other flow-following detection headers, for example, the detection header may be an IOAM header, which is not limited by the embodiment of the present application.
S403, the first network node forwards the second message.
The first network node may forward the second message to a next hop node of the first network node. The next-hop node of the first network node may be an intermediate node or a tail node. For example, as shown in fig. 1, 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 may be an intermediate node.
In summary, in the transmission detection method provided by the embodiment of the present application, after the first network node receives the first packet of the first data stream, the first network node obtains the second packet based on the first packet and forwards the second packet, where the second packet includes a detection header, the detection header includes a first stream identifier for indicating the first data stream, and the first data stream is matched with both the first matching policy and the second matching policy, so that the network node on the transmission path of the first data stream can detect the first data stream according to the detection header included in the second packet, thereby implementing detection of the first data stream according to the first matching policy and the second matching policy, the detection result of the first data stream can cover the first matching policy and the second matching policy, the detection result of the first data stream can include a detection result corresponding to the first matching policy and a detection result corresponding to the second matching policy, and the detection result of the first data stream is more comprehensive, so that the detection accuracy of the first data stream is higher, and the detection effect is better.
In addition, the second message may only include one detection header, that is, the application adds one detection header in the data message of the first data stream to realize the detection of the first data stream according to the first matching strategy and the second matching strategy, so that the overhead of the data message of the first data stream is not increased, the increase of a plurality of detection headers in the data message of the first data stream is avoided, the consumption of extra network bandwidth resources is avoided, and the utilization rate of the network bandwidth resources is improved.
In addition, the first stream identifier is associated with the second stream identifier and the third stream identifier, the first stream identifier is used for indicating the first data stream, the second stream identifier is used for indicating the second data stream, the third stream identifier is used for indicating the third data stream, the first data stream is matched with the first matching strategy and the second matching strategy, the second data stream is matched with the first matching strategy and the second data stream is not matched with the second matching strategy, the third data stream is matched with the second matching strategy and the third data stream is not matched with the first matching strategy. After the detection results of the first data flow matched with both the first matching policy and the second matching policy are obtained, the detection results of the second data flow matched with the first matching policy and not matched with the second matching policy may be determined according to the detection results of the first data flow and the association relationship between the first flow identifier and the second flow identifier, and the detection results of the third data flow matched with the second matching policy and not matched with the first matching policy may be determined according to the detection results of the first data flow and the association relationship between the first flow identifier and the third flow identifier. In this way, the detection result of the second data stream and the detection result of the third data stream are more comprehensive, and the detection effect of the second data stream and the detection effect of the third data stream are better.
In the embodiment of the present application, the first packet may be a first data packet of the first data flow, and after the first network node determines that the first packet is matched with both the first matching policy and the second matching policy, for example, after the first network node forwards the second packet obtained based on the first packet, the first network node may generate a flow table of the first data flow according to the packet information and the first flow identifier of the first packet. As an example, please refer to fig. 5, which illustrates a flowchart of another transmission detection method provided in an embodiment of the present application. As shown in fig. 5, the transmission detection method applied to the first network node further includes the following step S404.
S404, the first network node generates a first flow table, wherein the first flow table comprises message information of a first message and a first flow identifier.
The first flow table is a flow table of the first data flow, the first flow table includes message information of the first message, and the message information of the first flow identifying the first message may be tuple information included in the first message, for example, a tuple, a triplet, a quintuple and the like included in the first message. Optionally, the first flow table further comprises at least one of: action indication information, period indication information and type indication information. The action indication information is used for indicating the detection action of the first data stream, the period indication information is used for indicating the detection period of the first data stream, and the type indication information is used for indicating the detection type of the first data stream.
For example, the first network node generates a first flow table according to 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.
In an alternative embodiment, after the first network node generates the first flow table, the first network node may determine whether the hit number of the first flow table in the specified duration is greater than a preset number, and if the first network node determines that the hit number of the first flow table in the specified duration is not greater than the preset number, the first network node may age the first flow table, so that the overhead of the flow resource may be reduced. For example, the first network node periodically detects the hit number of the first flow table, and if the hit number of the first flow table is not greater than the preset number in a certain period, the first network node ages the first flow table, for example, deletes the first flow table. In a specific embodiment, the first network node starts counting the hit number of the first flow table at the start time of each aging period (for example, the duration of the aging period is equal to the specified duration), and ends counting the hit number of the first flow table at the end time of each aging period; if the hit number of the first flow table counted by the first network node is not more than the preset number at the end time of each aging period, the first network node ages the first flow table; if the hit number of the first flow table counted by the first network node is not less than the preset number at the end time of each aging period, the first network node clears the preset number counted by the aging period and starts counting the next aging period. The preset number of times may be set as needed, for example, the preset number of times is 0.
After the first network node generates the flow table of the first data flow, the first network node can obtain the detection message of the first data flow according to the flow table of the first data flow and the data message for the subsequent data message of the first data flow, so as to perform transmission detection of the first data flow. With continued reference to fig. 5, the transmission detection method applied to the first network node further includes the following steps S405 to S407.
S405, the first network node receives a third message, wherein the third message is a data message of the first data flow.
S406, the first network node obtains a fourth message based on a third message, the third message is matched with the first flow table, the fourth message comprises a detection header, and the detection header comprises a first flow identifier.
The first network node may 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 determines that the third message matches the first flow table. Further, the first network node obtains a fourth message comprising a detection header based on the third message.
In the embodiment of the present application, the detection header of the fourth packet includes the first flow identifier in the first flow table. And, the detection header of the fourth message may further include at least one of: action indication information, period indication information and type indication information. The action indication information is used for indicating the detection action of the first data stream, the period indication information is used for indicating the detection period of the first data stream, and the type indication information is used for indicating the detection type of the first data stream.
For example, the first network node generates a detection header according to the first flow identifier, the action indication information, the period indication information and the type indication information included in the first flow table, and adds the detection header to the third message to obtain a fourth message.
S407, the first network node forwards the fourth message.
In summary, according to the transmission detection method provided by the embodiment of the present application, the first network node may generate the flow table of the first data flow according to the first data packet of the first data flow, and after the subsequent first network node receives the data packet of the first data flow, the first network node obtains the detection packet of the first data flow according to the flow table of the first data flow based on the data packet of the first data flow, so that the process of the first network node obtaining the detection packet of the first data flow can be simplified, and the efficiency of the first network node obtaining the detection packet of the first data flow is improved.
In the process of transmitting the message of the first data stream, the first network node may acquire transmission detection information of the first data stream according to the message of the first data stream. The messages of the first data stream include data messages of the first data stream and/or detection messages of the first data stream. The detection message of the first data stream is obtained based on the data message of the first data stream, and the detection message of the first data stream comprises a detection header carrying a first stream identifier. For example, the first message and the third message are both data messages of the first data stream, and the second message and the fourth message are both detection messages of the first data stream.
The following describes an example in which the first network node obtains transmission detection information of the first data stream according to the detection message of the first data stream. With continued reference to fig. 4 and fig. 5, the transmission detection method applied to the first network node further includes the following step S408.
S408, the first network node obtains transmission detection information of the first data stream according to the detection message of the first data stream.
Optionally, the first network node obtains transmission detection information of the first data stream according to a detection header included in the detection message of the first data stream. As can be seen from the foregoing description, the detection header of the detection packet of the first data flow includes the first flow identifier, and may further include at least one of the following: action indication information, period indication information and type indication information.
Taking the detection header of the detection message of the first data stream as an example, the detection header comprises a first stream identifier, action indication information, period indication information and type indication information. The first network node may determine a detection type of the first data flow according to type indication information included in a detection header of the detection packet of the first data flow, determine a detection action of the first data flow according to action indication information included in the detection header of the detection packet of the first data flow, and determine a detection period of the first data flow according to period indication information included in the detection header of the detection packet of the first data flow. And in 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 so as to acquire the transmission detection information of the first data stream. The detecting actions of the first data stream include a delay detecting action and a packet loss detecting action, and in each detecting period of the first data stream, the first network node obtains delay detecting information of the first data stream by executing the delay detecting action, and the first network node obtains packet loss detecting information of the first data stream by executing the packet loss detecting action.
The first network node may be a head node, and in each detection period of the first data stream, delay detection information of the first data stream acquired by the first network node includes: the transmission time stamp of the detection message of the first data stream sent by the first network node in each detection period may further include a reception time stamp of the data message of the first data stream received by the first network node in each detection period. The packet loss detection information of the first data stream acquired by the first network node includes: the number of detection messages of the first data stream sent by the first network node in each detection period may also include the number of data messages of the first data stream received by the first network node in each detection period, which is not limited in the embodiment of the present application.
After the first network node obtains the transmission detection information of the first data stream, in an implementation manner of the present application, please continue to refer to fig. 4 and fig. 5, the transmission detection method applied to the first network node further includes the following step S409a.
S409a, the first network node sends first report information to the controller, wherein the first report information comprises a first flow identifier and transmission detection information of a first data flow.
The first network node may send the first reporting information to the controller after each detection period of the first data stream has ended. The first report information sent by the first network node to the controller each time may include a first flow identifier and transmission detection information of a first data flow acquired by the first network node in a last detection period, for example, including: and the first network node acquires the time delay detection information and the packet loss detection information of the first data stream in the last detection period.
Optionally, the first network node sends the first report information to the controller through a border gateway protocol (border gateway protocol, BGP), a network configuration protocol (network configuration protocol, netcon), a path computation element communication protocol (path computation element communication protocol, PCEP), or other private protocol, and the protocol adopted by the embodiment of the present application for sending the first report information to the controller by the first network node is not limited.
It should be noted that S409a is merely exemplary, and in other embodiments, the first network node may serve as a head node, and the first network node may not perform S409a. The first network node may carry the transmission detection information of the first data stream acquired by the first network node to the tail node through the detection packet of the first data stream, and the tail node reports the transmission detection information of the first data stream acquired by the network nodes along the first data stream to the controller.
In summary, in the transmission detection method provided by the embodiment of the present application, since the first stream identifier is associated with the second stream identifier and the third stream identifier, the first network node sends the first stream identifier and the transmission detection information of the first data stream to the controller, so that the controller can determine the transmission detection information of the second data stream according to the transmission detection information of the first data stream and the association relationship between the first stream identifier and the second stream identifier, and further determine the transmission quality of the second data stream according to the transmission detection information of the second data stream, and/or can determine the transmission detection information of the third data stream according to the transmission detection information of the first data stream and the association relationship between the first stream identifier and the third stream identifier, and further determine the transmission quality of the third data stream according to the transmission detection information of the third data stream. That is, in the application, by associating the detail flow identifier (for example, the first flow identifier) with the single flow identifier (for example, the second flow identifier and the third flow identifier), after the network node obtains the transmission detection information of the detail data flow, the controller can determine the transmission detection information of the single data flow (for example, the second data flow and the third data flow) according to the transmission detection information of the detail data flow (for example, the first data flow) and the association relation between the detail flow identifier and the single flow identifier, thereby ensuring that the transmission detection information of the single data flow is more comprehensive and the detection effect of the single data flow is better.
After the first network node obtains the transmission detection information of the first data stream, in another implementation manner of the present application, please refer to fig. 6 to fig. 7, the transmission detection method applied to the first network node further includes the following steps S409b to S410b, and/or S411b to S412b.
S409b, the first network node determines the transmission of the second data stream according to the transmission detection information of the first data stream and the association relationship between the first stream identifier and the second stream identifier
And outputting detection information.
In the embodiment of the application, 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 comprises 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 and the second data stream is not matched with the second matching strategy, and 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 according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the second stream identifier.
In the embodiment of the present application, the detection action of the second data flow is a detection action associated with the first matching policy (i.e., a first detection action), and the first network node may determine, according to the detection action of the second data flow, transmission detection information corresponding to the first matching policy in the transmission detection information of the first data flow, and further determine the portion of the transmission detection information as the transmission detection information of the second data flow. For example, the first network node determines the transmission detection information of the second data stream according to 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 example that the transmission detection information of the first data stream includes packet loss detection information and delay detection information as the example, in an alternative embodiment, the detection action of the second data stream is the packet loss detection action, and 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 policy in the transmission detection information of the first data stream, and further determines the packet loss detection information as the transmission detection information of the second data stream. In another alternative embodiment, the detecting action of the second data stream is a delay detecting action, and the first network node determines delay detecting information included in the transmission detecting information of the first data stream as transmission detecting information corresponding to the first matching policy in the transmission detecting information of the first data stream, and further determines the delay detecting information as transmission detecting information of the second data stream. In still another alternative embodiment, the detecting action of the second data stream is a packet loss detecting action and a delay detecting action, and the first network node determines the packet loss detecting information and the delay detecting information included in the transmission detecting information of the first data stream as the transmission detecting information corresponding to the first matching policy in the transmission detecting information of the first data stream, and further determines the packet loss detecting information and the delay detecting information as the transmission detecting information of the second data stream.
In an alternative embodiment, the first network node further transmits a packet of the second data stream (i.e. a packet that matches the first matching policy and does not match the second matching policy), and in the process of transmitting the packet of the second data stream, the first network node may obtain the transmission detection information of the second data stream according to the packet of the second data stream. In order to facilitate the distinction, the transmission detection information of the second data stream determined according to 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 first transmission detection information of the second data stream, the transmission detection information obtained from the packet of the second data stream (that is, the packet that is matched with the first matching policy and not matched with the second matching policy) is referred to as second transmission detection information of the second data stream, and after the first network node obtains the first transmission detection information of the second data stream and the second transmission detection information of the second data stream, the first network node may fuse the first transmission detection information of the second data stream with the second transmission detection information of the second data stream to obtain final transmission detection information of the second data stream. The first network node may not merge the first transmission detection information of the second data stream and the second transmission detection information of the second data stream, which is not limited in the embodiment of the present application.
In an alternative embodiment, the first network node is a network node (i.e. a head node) that starts monitoring the second data flow, after the first network node receives the data packet of the second data flow, the first network node determines that the second data flow is matched with the first matching policy and that the second data flow is not matched with the second matching policy, and the first network node generates a detection header including detection indication information of the second data flow according to a single flow identifier (i.e. a second flow identifier) corresponding to the first matching policy and a first detection policy (including at least one of a first detection action, a first detection period and a first detection type) associated with the first matching policy, and adds the detection header to the data packet of the second data flow to obtain the detection packet of the second data flow. In the process of transmitting the detection message of the second data stream, at least one network node (for example, including the first network node) may acquire the second transmission detection information of the second data stream according to the detection message of the second data stream, and an implementation process of acquiring the second transmission detection information of the second data stream by the network node is similar to an implementation process of acquiring the transmission detection information of the first data stream by the network node, which is not described herein again. Wherein the detection indication information of the second data stream includes a second stream identifier, and may further include at least one of the following: action indication information of the second data stream, period indication information of the second data stream, type indication information of the second data stream. The action indication information of the second data stream is used for indicating the detection action (i.e. the first detection action) of the second data stream, the period indication information of the second data stream is used for indicating the detection period (i.e. the first detection period) of the second data stream, and the type indication information of the second data stream is used for indicating the detection type (i.e. the first detection type) of the second data stream. Optionally, the detection header of the detection packet of the second data stream further includes other information related to transmission detection, which is not described herein. The detection header may be an IFIT header or other flow-following detection header, such as an IOAM header, among others.
As can be understood from the description of 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) according to the transmission detection information of the first data stream and the association relationship between the first stream identifier and the second stream identifier, the final transmission detection information of the second data stream includes only the second transmission detection information, and does not include the first transmission detection information, and the final transmission detection information of the second data stream is not comprehensive enough. In the embodiment of the application, the first network node can make the final transmission detection information of the second data stream more comprehensive according to the transmission detection information of the first data stream and the transmission detection information of the second data stream determined by the association relation between the first stream identifier and the second stream identifier.
S410b, the first network node sends second reporting information to the controller, wherein the second reporting information comprises a second stream identifier and transmission detection information of a second data stream.
Optionally, after each detection period of the second data stream is finished, the first network node sends second reporting information to the controller, where each second reporting information sent by the first network node to the controller includes the second stream identifier and transmission detection information of the second data stream acquired by the first network node in a previous detection period (referred to as a detection period of the second data stream). The transmission detection information of the second data stream may be first transmission detection information of the second data stream, and may also include first transmission detection information of the second data stream and second transmission detection information of the second data stream. The first network node may also send second report information to the controller after each detection period of the first data stream is over, where each second report information sent by the first network node to the controller includes the second stream identifier and transmission detection information of the second data stream acquired by the first network node in the previous detection period (referred to as the detection period of the first data stream).
Optionally, the first network node sends the second report information to the controller through BGP, NETCONF, PCEP or other private protocols, and the protocol adopted by the first network node for sending the second report information to the controller is not limited in the application.
S4117 b, the first network node determines the transmission detection information of the third data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the third stream identifier.
In the embodiment of the application, 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 comprises the transmission detection information corresponding to the first matching strategy and the transmission detection information corresponding to the second matching strategy, the third data stream is matched with the second matching strategy and the third data stream is not matched with the first matching strategy, and 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 according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the third stream identifier.
In the embodiment of the present application, the detection action of the third data flow is a detection action associated with the second matching policy (i.e., the second detection action), and the first network node may determine, according to the detection action of the third data flow, transmission detection information corresponding to the second matching policy in the transmission detection information of the first data flow, and further determine the portion of the transmission detection information as the transmission detection information of the third data flow. For example, the first network node determines the transmission detection information of the third data stream according to 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 example that the transmission detection information of the first data stream includes the packet loss detection information and the time delay detection information as the example, in an alternative embodiment, the detection action of the third data stream is the packet loss detection action, and 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 policy in the transmission detection information of the first data stream, and further determines the packet loss detection information as the transmission detection information of the third data stream. In another alternative embodiment, the detecting action of the third data stream is a delay detecting action, and the first network node determines delay detecting information included in the transmission detecting information of the first data stream as transmission detecting information corresponding to the second matching policy in the transmission detecting information of the first data stream, and further determines the delay detecting information as transmission detecting information of the third data stream. In still another alternative embodiment, the detecting action of the third data stream is a packet loss detecting action and a delay detecting action, and the first network node determines the packet loss detecting information and the delay detecting information included in the transmission detecting information of the first data stream as the transmission detecting information corresponding to the second matching policy in the transmission detecting information of the first data stream, and further determines the packet loss detecting information and the delay detecting information as the transmission detecting information of the third data stream.
In an alternative embodiment, the first network node further transmits a packet of the third data stream (i.e. a packet that matches the second matching policy and does not match the first matching policy), and in the process of transmitting the packet of the third data stream, the first network node may obtain the transmission detection information of the third data stream according to the packet of the third data stream. In order to facilitate the distinction, the transmission detection information of the third data stream determined according to 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 first transmission detection information of the third data stream, the transmission detection information obtained according to the packet of the third data stream (that is, the packet that is matched with the second matching policy and is not matched with the first matching policy) is referred to as second transmission detection information of the third data stream, and after the first network node obtains the first transmission detection information of the third data stream and the second transmission detection information of the third data stream, the first network node may fuse the first transmission detection information of the third data stream with the second transmission detection information of the third data stream to obtain final transmission detection information of the third data stream. The first network node may not merge the first transmission detection information of the third data stream and the second transmission detection information of the third data stream, which is not limited in the embodiment of the present application.
In an alternative embodiment, the first network node is a network node (i.e. a head node) that starts monitoring the third data flow, after the first network node receives the data packet of the third data flow, the first network node determines that the third data flow is matched with the second matching policy and that the third data flow is not matched with the first matching policy, and the first network node generates a detection header including detection indication information of the third data flow according to a single flow identifier (i.e. a third flow identifier) corresponding to the second matching policy and a second detection policy (including at least one of a second detection action, a second detection period and a second detection type) associated with the second matching policy, and adds the detection header to the data packet of the third data flow to obtain the detection packet of the third data flow. In the process of transmitting the detection message of the third data stream, at least one network node (for example, including the first network node) may acquire the second transmission detection information of the third data stream according to the detection message of the third data stream, and an implementation process of acquiring the second transmission detection information of the third data stream by the network node is similar to an implementation process of acquiring the transmission detection information of the first data stream by the network node, which is not described herein again. The detection indication information of the third data stream includes a third stream identifier, and may further include at least one of the following: action indication information of the third data stream, period indication information of the third data stream, type indication information of the third data stream. The action indication information of the third data stream is used for indicating the detection action (i.e. the second detection action) of the third data stream, the period indication information of the third data stream is used for indicating the detection period (i.e. the second detection period) of the third data stream, and the type indication information of the third data stream is used for indicating the detection type (i.e. the second detection type) of the third data stream. Optionally, the detection header of the detection packet of the third data stream further includes other information related to transmission detection, which is not described herein. The detection header may be an IFIT header or other flow-following detection header, such as an IOAM header, among others.
As can be understood from the description of 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) according to the transmission detection information of the first data stream and the association relationship between the first stream identifier and the third stream identifier, the final transmission detection information of the third data stream includes only the second transmission detection information and does not include the first transmission detection information, and the final transmission detection information of the third data stream is not comprehensive enough. In the embodiment of the application, the first network node can make the final transmission detection information of the third data stream more comprehensive according to the transmission detection information of the first data stream and the transmission detection information of the third data stream determined by the association relation between the first stream identifier and the third stream identifier.
S412b, the first network node sends third reporting information to the controller, wherein the third reporting information comprises a third stream identifier and transmission detection information of a third data stream.
Optionally, after each detection period of the third data stream is finished, the first network node sends third reporting information to the controller, where each third reporting information sent by the first network node to the controller includes the third stream identifier and transmission detection information of the third data stream acquired by the first network node in the last detection period (referred to as a detection period of the third data stream). The transmission detection information of the third data stream may be first transmission detection information of the third data stream, and may also include the first transmission detection information of the third data stream and second transmission detection information of the third data stream. The first network node may also send third reporting information to the controller after each detection period of the first data stream is ended, where each third reporting information sent by the first network node to the controller includes the third stream identifier and transmission detection information of the third data stream acquired by the first network node in the previous detection period (referred to as a detection period of the first data stream).
Optionally, the first network node sends the third reporting information to the controller through BGP, NETCONF, PCEP or other private protocols, and the protocol adopted by the first network node for sending the third reporting information to the controller is not limited in the application.
It should be noted that the above S409b to S412b are merely exemplary, and in other embodiments, the first network node may not perform S409b to S412b as the head node. The first network node may carry the transmission detection information of the first data stream acquired by the first network node to the tail node through the detection packet of the first data stream, the tail node determines the transmission detection information of the second data stream according to the transmission detection information of the first data stream acquired by the network node (including the head node) along the first data stream and the association relation 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 determines the transmission detection information of the third data stream according to the transmission detection information of the first data stream acquired by the network node along the first data stream and the association relation between the first stream identifier and the third stream identifier, and reports the transmission detection information of the third data stream to the controller.
In summary, in the transmission detection method provided by the embodiment of the present application, since the first stream identifier is associated with the second stream identifier and the third stream identifier, the first network node may determine the transmission detection information of the second data stream according to the transmission detection information of the first data stream and the association relationship between the first stream identifier and the second stream identifier, and send the second reporting information including the second stream identifier and the transmission detection information of the second data stream to the controller, and/or the first network node may determine the transmission detection information of the third data stream according to the transmission detection information of the first data stream and the association relationship between the first stream identifier and the third stream identifier, and send the second reporting information including the third stream identifier and the transmission detection information of the third data stream to the controller, so that the controller may determine the transmission quality of the second data stream according to the transmission detection information of the second data stream, and/or determine the transmission quality of the third data stream according to the transmission detection information of the third data stream. That is, the present application associates the detail flow identifier (e.g. the first flow identifier) with the single flow identifier (e.g. the second flow identifier and the third flow identifier), so that after the network node obtains the transmission detection information of the detail data flow, the network node can determine the transmission detection information of the single data flow (e.g. the second data flow and the third data flow) according to the transmission detection information of the detail data flow (e.g. the first data flow) and the association relation between the detail flow identifier and the single flow identifier, thereby ensuring that the transmission detection information is more comprehensive and the detection effect of the single data flow is better.
Before S409b, the first network node may acquire an association relationship between the first flow identifier and the second flow identifier. Before S411b described above, the first network node may obtain an association between the first flow identifier and the third flow identifier. Optionally, the first network node obtains a first association relationship, where the first association relationship includes association relationships of the first stream identifier, the second stream identifier, and the third stream identifier. In the embodiment of the present application, the first association relationship may be generated by the first network node (i.e., the head node) or may be generated by the controller. Thus, the first network node obtaining the first association may comprise: the first network node generates a first association relation, or the first network node receives the first association relation sent by the controller.
In an alternative embodiment, the first association is generated by the first network node, and since the first flow identifier is used to indicate the first data flow, the second flow identifier is used to indicate the second data flow, the third flow identifier is used to indicate the third data flow, and the first data flow is matched with the first matching policy and the second matching policy, the second data flow is matched with the first matching policy and the second data flow is not matched with the second matching policy, the first network node may generate the first association according to the first flow identifier, the second flow identifier, the third flow identifier, and the matching policies matched by the first data flow, the second data flow, and the third data flow. Or the first network node may generate the first association relationship according to configuration information input by the user, where the configuration information includes association relationships between the first flow identifier and the second flow identifier and between the first flow identifier and the third flow identifier. Or the user can input the first association relation to the first network node through the command line, and the first network node acquires the first association relation input by the user. After the first network node generates the first association, the first network node may send the first association to the controller. For example, the first network node sends the first association to the controller via BGP, NETCONF, PCEP or other proprietary protocol. The first network node may also send the first association to the at least one network node, e.g., the first network node sends the first association to the at least one network node via BGP. Wherein the at least one network node may comprise at least one of an intermediate node and a tail node.
In another alternative embodiment, the first association is generated by the controller, and after the controller generates the first association, the controller may send the first association to the first network node. For example, the controller sends a first association to at least one network node including a first network node, the at least one network node including a head node, an intermediate node, and a tail node. The controller may send the first association to the network node via BGP, NETCONF, PCEP or other proprietary protocol.
In summary, according to the transmission detection method provided by the embodiment of the present application, the first network node may determine the transmission quality information of the second data stream according to the transmission detection information of the first data stream and the first association relationship, and/or determine the transmission quality information of the third data stream according to the transmission detection information of the first data stream and the first association relationship by acquiring the first association relationship. That is, the network node is convenient to determine the transmission detection information of the single data stream according to the transmission detection information of the detail data stream and the association relation between the detail stream identification and the single stream identification, and the transmission detection information of the single data stream is ensured to be more comprehensive.
Referring to fig. 8, a flowchart of another transmission detection method according to an embodiment of the application is shown. The transmission detection method may be applied to a second network node, which may be a tail node (a network node ending monitoring the first data stream) or an intermediate node between a head node (a network node starting monitoring the first data stream) and the tail node. For example, as shown in fig. 1, network node 101 is a head node, network node 102 is an intermediate node, network node 103 is a tail node, and the second network node may be network node 102 or network node 103. Referring to fig. 8, the method includes the following steps S801 to S802.
S801, a second network node receives a detection message of a first data stream, wherein the detection message comprises a detection header, the detection header comprises 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 for indicating the first data stream, the second stream identifier is used for indicating the second data stream, the third stream identifier is used for indicating the third data stream, the first data stream is matched with a first matching strategy and a second matching strategy, the second data stream is matched with the first matching strategy and the second data stream is not matched with the second matching strategy, the third data stream is matched with the second matching strategy and the third data stream is not matched with the first matching strategy.
The second network node may receive a detection message of the first data flow from a last hop node of the second network node. The last hop node of the first network node may be a network node, e.g. the last hop node of the first network node is the first network node.
The detection message of the first data stream includes a detection header, for example, the aforementioned second message and fourth message are both detection messages of the first data stream. The detection header of the detection packet of the first data flow includes a first flow identifier for indicating the first data flow, and 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 for indicating the detection action of the first data stream, the period indication information is used for indicating the detection period of the first data stream, and the type indication information is used for indicating the detection type of the first data stream.
S802, the second network node obtains transmission detection information of the first data stream according to the detection message of the first data stream.
The second network node may obtain transmission detection information of the first data stream according to a detection header included in the detection packet of the first data stream. Taking the detection header of the detection message of the first data stream as an example, the detection header comprises a first stream identifier, action indication information, period indication information and type indication information. The second network node may determine the detection type of the first data flow according to the type indication information included in the detection header of the detection packet of the first data flow, determine the detection action of the first data flow according to the action indication information included in the detection header of the detection packet of the first data flow, and determine the detection period of the first data flow according to the period indication information included in the detection header of the detection packet of the first data flow. And in 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 so as to acquire the transmission detection information of the first data stream. The detecting actions of the first data stream include a delay detecting action and a packet loss detecting action, and in each detecting period of the first data stream, the second network node obtains delay detecting information of the first data stream by executing the delay detecting action, and the second network node obtains packet loss detecting information of the first data stream by executing the packet loss detecting action.
In an alternative embodiment, the second network node is an intermediate node, and if the second network node determines that the detection type of the first data stream is hop-by-hop detection, the second network node obtains transmission detection information of the first data stream in each detection period of the first data stream. In each detection period of the first data stream, the delay detection information of the first data stream acquired by the second network node may include: and the second network node receives the receiving time stamp of the detection message of the first data stream in each detection period and/or sends the sending time stamp of the detection message of the first data stream sent out by the second network node in each detection period. The packet loss detection information of the first data stream acquired by the second network node may include: the number of detection messages of the first data stream received by the second network node in each detection period and/or the number of detection messages of the first data stream sent by the second network node in each detection period. Optionally, if the second network node determines that the detection type of the first data stream is E2E detection, the second network node may serve as an intermediate node, and the second network node may directly forward the detection packet of the first data stream without acquiring transmission detection information of the first data stream.
In another alternative embodiment, the second network node is a tail node, and after the second network node receives the detection message of the first data flow, the second network node strips a detection header of the detection message to obtain a data message and forwards the data message. In each detection period of the first data stream, the delay detection information of the first data stream acquired by the second network node may include: the receiving time stamp of the detection message of the first data stream received by the second network node in each detection period may further include: the second network node transmits a transmission time stamp of the data message of the first data stream transmitted in each detection period. The packet loss detection information of the first data stream acquired by the second network node may include: the number of detection messages of the first data stream received by the second network node in each detection period may further include the number of data messages of the first data stream sent by the second network node in each detection period, which is not limited in the embodiment of the present application.
In summary, in the transmission detection method provided by the embodiment of the present application, the first data stream is matched with both the first matching policy and the second matching policy, the detection packet of the first data stream includes a detection header, the detection header includes a first stream identifier for indicating the first data stream, and the second network node may detect the first data stream according to the detection header included in the detection packet of the first data stream, so as to obtain transmission detection information of the first data stream, so that the transmission detection information of the first data stream may cover the first matching policy and the second matching policy, and the transmission detection information of the first data stream may include a detection result corresponding to the first matching policy and a detection result corresponding to the second matching policy, where the detection result of the first data stream is more comprehensive, the detection accuracy is higher, and the detection effect is better. In addition, the application adds a detection header in the data message of the first data stream to realize the detection of the first data stream according to the first matching strategy and the second matching strategy, so that the overhead of the data message of the first data stream is not increased, the consumption of extra network bandwidth resources is avoided, and the utilization rate of the network bandwidth resources is improved.
After the second network node obtains the transmission detection information of the first data stream, in an implementation manner of the present application, please continue to refer to fig. 8, the transmission detection method applied to the second network node further includes the following step S803a.
S803a, the second network node sends first reporting information to the controller, wherein the first reporting information comprises a first flow identifier and transmission detection information of a first data flow.
The implementation procedure of S803a may refer to the implementation procedure of S409a, which is not described herein.
Note that if the second network node is an intermediate node, the second network node may not execute S803a. The second network node can carry the transmission detection information of the first data stream acquired by the second network node to the tail node through the detection message of the first data stream, and the tail node reports the transmission detection information of the first data stream to the controller. If the second network node is the tail node, in S803a, the second network node sends the first report information to the controller, which may include the first flow identifier and the transmission detection information of the first data flow acquired by the network node along the first data flow, or may include only the first flow identifier and the transmission detection information of the first data flow acquired by the first network node.
In another implementation manner of the present application, please refer to fig. 9, the transmission detection method applied to the second network node further includes the following steps S803b to S804b, and/or S805b to S806b.
S803b, the second network node determines the transmission detection information of the second data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the second stream identifier.
S804b, the second network node sends second report information to the controller, wherein the second report information comprises a second stream identifier and transmission detection information of a second data stream.
S805b, the second network node determines transmission detection information of the third data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the third stream identifier.
S806b, the second network node sends third reporting information to the controller, wherein the third reporting information comprises a third stream identifier and transmission detection information of a third data stream.
The implementation procedures of S803b to S806b may refer to the implementation procedures of S409b to S412b, and will not be described here again.
It should be noted that, the second network node may also transmit a packet of the second data stream (i.e., a packet that matches the first matching policy and does not match the second matching policy), and in a process of transmitting a packet of the second data stream, the second network node may obtain transmission detection information of the second data stream according to the packet of the second data stream. The second network node may fuse the first transmission detection information of the second data stream (that is, the transmission detection information of the second data stream determined by the second network node according to the transmission detection information of the first data stream and the association relationship between the first stream identifier and the second stream identifier) with the second transmission detection information of the second data stream (that is, the transmission detection information of the second data stream acquired by the second network node according to the message of the second data stream), to obtain final transmission detection information of the second data stream. The first network node may not merge the first transmission detection information of the second data stream and the second transmission detection information of the second data stream. Similarly, the second network node may also transmit a packet of the third data stream (i.e. a packet that matches the second matching policy and does not match the first matching policy), and in the process of transmitting the packet of the third data stream, the second network node may obtain transmission detection information of the third data stream according to the packet of the third data stream. The second network node may combine the first transmission detection information of the third data stream (that is, the transmission detection information of the third data stream determined by the second network node according to the transmission detection information of the first data stream and the association relationship between the first stream identifier and the third stream identifier) with the second transmission detection information of the third data stream (that is, the transmission detection information of the third data stream acquired by the second network node according to the packet of the third data stream), to obtain final transmission detection information of the third data stream. The first network node may not merge the first transmission detection information of the third data stream and the second transmission detection information of the third data stream. It will be appreciated 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) according to the transmission detection information of the first data stream and the association relationship between the first stream identifier and the second stream identifier, the final transmission detection information of the second data stream only includes the second transmission detection information, but does not include the first transmission detection information, and the final transmission detection information of the second data stream is not comprehensive enough. In the embodiment of the application, the second network node can make the final transmission detection information of the second data stream more comprehensive according to the transmission detection information of the first data stream and the transmission detection information of the second data stream determined by the association relation between the first stream identifier and the second stream identifier. Similarly, if the second network node does not determine the transmission detection information of the third data stream according to the transmission detection information of the first data stream and the association relationship between the first stream identifier and the third stream identifier (i.e., the first transmission detection information of the third data stream), the final transmission detection information of the third data stream only includes the second transmission detection information, but does not include the first transmission detection information, and the final transmission detection information of the third data stream is not comprehensive enough. In the embodiment of the application, the second network node can make the final transmission detection information of the third data stream more comprehensive according to the transmission detection information of the first data stream and the transmission detection information of the third data stream determined by the association relation between the first stream identifier and the third stream identifier.
It should be noted that if the second network node is an intermediate node, the second network node may not execute S803b to S806b. The second network node may carry the transmission detection information of the first data stream acquired by the second network node to the tail node through the detection packet of the first data stream, the tail node determines the transmission detection information of the second data stream according to the transmission detection information of the first data stream acquired by the network node along the first data stream and the association relation 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 determines the transmission detection information of the third data stream according to the transmission detection information of the first data stream acquired by the network node along the first data stream and the association relation between the first stream identifier and the third stream identifier, and reports the transmission detection information of the second data stream to the controller.
Prior to S803b, the second network node may obtain an association of the first flow identity with the second flow identity. Prior to S805b, the second network node may obtain an association of the first flow identity with the third flow identity. Optionally, the second network node acquires a first association relationship, where the first association relationship includes association relationships of the first stream identifier, the second stream identifier, and the third stream identifier.
In the embodiment of the present application, the first association relationship may be generated by the first network node or may be generated by the controller. Thus, the second network node obtaining the first association may comprise: the second network node receives the first association relation sent by the controller, or the second network node receives the first association relation sent by the first network node.
Fig. 10 is a flowchart of another transmission detection method according to an embodiment of the present application. The transmission detection method may be applied to a controller. Referring to fig. 10, the method includes the following steps S1001 to S1002.
S1001, a controller receives first reporting information sent by at least one network node, wherein the first reporting information comprises 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 for indicating the first data stream, the second stream identifier is used for indicating the second data stream, the third stream identifier is used for indicating the third data stream, the first data stream is matched with a first matching strategy and a second matching strategy, the second data stream is matched with the first matching strategy and the second data stream is not matched with the second matching strategy, the third data stream is matched with the second matching strategy and the third data stream is not matched with the first matching strategy.
The controller may receive the first reporting information sent by the at least one network node, corresponding to the at least one network node sending the first reporting information to the controller. Wherein the at least one network node may comprise at least one of a head node, an intermediate node and a tail node. The at least one network node is different according to the reporting mechanism of the first data flow.
In an optional embodiment, the reporting mechanism of the first data flow is a hop-by-hop reporting mechanism, the at least one network node includes a head node, an intermediate node and a tail node, and the first reporting information sent by each network node in the at least one network node to the controller may include a first flow identifier and transmission detection information of the first data flow acquired by each network node.
In another alternative embodiment, the reporting mechanism of the first data flow is a tail node reporting mechanism, and the at least one network node is a network node (i.e. a tail node), and the first reporting information sent by the tail node to the controller may include the first flow identifier and transmission detection information of the first data flow acquired by the network nodes along the first data flow (including, for example, a head node, a tail node, and possibly an intermediate node).
S1002, the controller determines transmission detection information of the second data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the second stream identifier.
The implementation process of S1002 may refer to the implementation process of S409b, which is not described herein. The "transmission detection information of the first data stream" in S409b is transmission detection information of the first data stream acquired by the first network node, and the "transmission detection information of the first data stream" in S1002 includes transmission detection information of the first data stream acquired by a network node (e.g., a head node, a tail node, and possibly an intermediate node) along the first network node.
In an alternative embodiment, please continue with fig. 10, the transmission detection method further includes the following step S1003.
S1003, the controller determines transmission detection information of a third data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the third stream identifier.
The implementation process of S1003 may refer to the implementation process of S411b, and will not be described here. The "transmission detection information of the first data stream" in S411b is transmission detection information of the first data stream acquired by the first network node, and the "transmission detection information of the first data stream" in S1003 includes transmission detection information of the first data stream acquired by a network node (e.g., a head node, a tail node, and possibly an intermediate node) along the first network node.
Prior to S1002, the controller may acquire an association relationship of the first stream identifier and the second stream identifier. Prior to S1003, the controller may acquire an association relationship of the first stream identifier and the third stream identifier. Optionally, the controller acquires a first association relationship, where the first association relationship includes association relationships of the first stream identifier, the second stream identifier, and the third stream identifier.
In the embodiment of the present application, the first association relationship may be generated by the controller or may be generated by the first network node (i.e., the head node). Thus, the controller obtaining the first association relationship may include: the controller generates a first association relation, or the controller receives the first association relation sent by the first network node.
In an alternative embodiment, the controller generates the first association relationship according to configuration information input by a user, wherein the configuration information comprises the association relationship between the first stream identifier, the second stream identifier and the third stream identifier. After the controller generates the first association, the controller may send the first association to at least one network node. The controller sends the first association to the network node, for example, via BGP, NETCONF, PCEP or other proprietary protocol. Wherein the at least one network node comprises a first network node. The implementation process of the first network node generating the first association relationship may refer to the foregoing embodiment, and will not be described herein.
In an alternative embodiment, after the controller receives the first report information sent by the at least one network node, the controller may determine the transmission quality of the first data stream according to the transmission detection information of the first data stream. For example, the transmission detection information of the first data stream includes delay detection information, and the controller determines a transmission delay of the first data stream according to the delay detection information of the first data stream, and may include: end-to-end transmission delay (e.g., head-to-tail), hop-by-hop transmission delay, transmission delay of a link between two network nodes, transmission delay of a first data stream within a network node, etc. For another example, the transmission detection information of the first data stream includes packet loss detection information, and the controller determines a packet loss rate (or packet loss amount) of the first data stream according to the packet loss detection information of the first data stream, and may include: end-to-end packet loss (e.g., head node to tail node packet loss), hop-by-hop packet loss, packet loss of a link between two network nodes, packet loss of a first data stream within a network node, etc. After the controller determines the transmission quality of the first data stream, the controller may display (e.g. display) the transmission quality of the first data stream, and the controller may further perform transmission control on the first data stream according to the transmission quality of the first data stream, for example, switch a transmission path of the first data stream, which is not limited in the embodiment of the present application.
In an alternative embodiment, after the controller determines the transmission detection information of the second data stream, the controller may determine the transmission quality of the second data stream according to the transmission detection information of the second data stream. The controller may also present (e.g., display) a transmission quality of the second data stream, control transmission of the second data stream based on the transmission quality of the second data stream, etc. After the controller determines the transmission detection information of the third data stream, the controller may determine the transmission quality of the third data stream according to the transmission detection information of the third data stream. The controller may also present (e.g., display) a transmission quality of the third data stream, control transmission of the second data stream based on the transmission quality of the third data stream, etc. The implementation process of determining the transmission quality of the second data stream and the transmission quality of the third data stream by the controller may refer to the implementation process of determining the transmission quality of the first data stream by the controller, which is not described herein.
In order to facilitate readers to understand the technical scheme of the application more clearly, the transmission detection method of the application is introduced below by combining the interaction process of different network nodes and the interaction process of the network nodes and the controller.
Referring to fig. 11, a flowchart of another transmission detection method according to an embodiment of the present application is shown. The transmission detection method is applied to a communication network, the communication network comprises a controller and a plurality of network nodes, the plurality of network nodes comprise a head node, an intermediate node and a tail node, the head node is a network node for starting monitoring the first data flow, the tail node is a network node for ending monitoring the first data flow, and the intermediate node is positioned between the head node and the tail node. The method includes the following steps S1101 to S1112.
S1101, the head node receives a data message of the first data stream.
S1102, the head node obtains a detection message of a first data stream based on the data message of the first data stream, wherein the detection message comprises a detection header, the detection header comprises a first stream identifier, and the first stream identifier is associated with a second stream identifier and a third stream identifier.
The first stream identifier is used for indicating a first data stream, the second stream identifier is used for indicating a second data stream, the third stream identifier is used for indicating a third data stream, the first data stream is matched with both the first matching strategy and the second matching strategy, the second data stream is matched with the first matching strategy and the second data stream is not matched with the second matching strategy, the third data stream is matched with the second matching strategy and the third data stream is not matched with the first matching strategy.
S1103, the head node forwards the detection message of the first data stream to the intermediate node.
S1104, the head node acquires transmission detection information of the first data stream according to the detection message of the first data stream.
The transmission detection information of the first data stream comprises transmission detection information corresponding to the first matching strategy and transmission detection information corresponding to the second matching strategy.
S1105. the head node sends first report information to the controller, where the first report information includes a first flow identifier and transmission detection information of the first data flow.
S1106, the intermediate node forwards the detection message of the first data flow to the tail node.
S1107, the intermediate node acquires transmission detection information of the first data stream according to the detection message of the first data stream.
The transmission detection information of the first data stream comprises transmission detection information corresponding to the first matching strategy and transmission detection information corresponding to the second matching strategy.
S1108, the intermediate node sends first report information to the controller, wherein the first report information comprises a first flow identifier and transmission detection information of a first data flow.
S1109, the tail node acquires transmission detection information of the first data stream according to the detection message of the first data stream.
The transmission detection information of the first data stream comprises transmission detection information corresponding to the first matching strategy and transmission detection information corresponding to the second matching strategy.
S1110, the tail node sends first reporting information to the controller, wherein the first reporting information comprises a first stream identifier and transmission detection information of a first data stream.
S1111, the controller determines transmission detection information of the second data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the second stream identifier, and determines transmission detection information of the third data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the third stream identifier.
For example, the controller determines transmission detection information corresponding to the first matching policy among the transmission detection information of the first data stream as transmission detection information of the second data stream, and the controller determines transmission detection information corresponding to the second matching policy among the transmission detection information of the first data stream as transmission detection information of the third data stream.
S1112, the controller determines the transmission quality of the second data stream according to the transmission detection information of the second data stream, and determines the transmission quality of the third data stream according to the transmission detection information of the third data stream.
The implementation procedure of S1101 may refer to the implementation procedure of S401 or S405. The implementation procedure of S1102 may refer to the implementation procedure of S402 or S406. The implementation procedures of S1103 and S1106 may refer to the implementation procedures of S403 or S407. The implementation of S1104 may refer to the implementation of S408. The implementation procedures of S1105, S1108, and S1110 may refer to the implementation procedure of S409 a. The implementation procedure of S1107, S1109 may refer to the implementation procedure of S802. The implementation procedure of S1111 can refer to the implementation procedures of S1002 and S1003. The above implementation process is not described herein.
Fig. 12 is a flowchart of another transmission detection method according to an embodiment of the present application. The transmission detection method is applied to a communication network, the communication network comprises a controller and a plurality of network nodes, the plurality of network nodes comprise a head node, an intermediate node and a tail node, the head node is a network node for starting monitoring the first data flow, the tail node is a network node for ending monitoring the first data flow, and the intermediate node is positioned between the head node and the tail node. The method includes the following steps S1201 to S1214.
S1201, the head node receives a data message of a first data stream.
S1202, the head node obtains a detection message of the first data stream based on the data message of the first data stream, wherein the detection message comprises a detection header, the detection header comprises a first stream identifier, and the first stream identifier is associated with both the second stream identifier and the third stream identifier.
The first stream identifier is used for indicating a first data stream, the second stream identifier is used for indicating a second data stream, the third stream identifier is used for indicating a third data stream, the first data stream is matched with both the first matching strategy and the second matching strategy, the second data stream is matched with the first matching strategy and the second data stream is not matched with the second matching strategy, the third data stream is matched with the second matching strategy and the third data stream is not matched with the first matching strategy.
S1203, forwarding a detection message of the first data flow to an intermediate node by the head node.
S1204, the head node acquires transmission detection information of the first data stream according to the detection message of the first data stream.
The transmission detection information of the first data stream comprises transmission detection information corresponding to the first matching strategy and transmission detection information corresponding to the second matching strategy.
S1205, the head node determines transmission detection information of the second data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the second stream identifier, and determines transmission detection information of the third data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the third stream identifier.
For example, the head node determines transmission detection information corresponding to the first matching policy from among transmission detection information of the first data stream as transmission detection information of the second data stream, and determines transmission detection information corresponding to the second matching policy from among transmission detection information of the first data stream as transmission detection information of the third data stream.
S1206, the head node sends second reporting information and third reporting information to the controller, wherein the second reporting information comprises a second stream identifier and transmission detection information of a second data stream, and the third reporting information comprises a third stream identifier and transmission detection information of a third data stream.
S1207, the intermediate node forwards the detection message of the first data stream to the tail node.
S1208, the intermediate node acquires transmission detection information of the first data stream according to the detection message of the first data stream.
The transmission detection information of the first data stream comprises transmission detection information corresponding to the first matching strategy and transmission detection information corresponding to the second matching strategy.
S1209, the intermediate node determines transmission detection information of the second data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the second stream identifier, and determines transmission detection information of the third data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the third stream identifier.
For example, the intermediate node determines, as the transmission detection information of the second data stream, the transmission detection information corresponding to the first matching policy from among the transmission detection information of the first data stream, and determines, as the transmission detection information of the third data stream, the transmission detection information corresponding to the second matching policy from among the transmission detection information of the first data stream.
S1210, the intermediate node sends second reporting information and third reporting information to the controller, wherein the second reporting information comprises a second stream identifier and transmission detection information of a second data stream, and the third reporting information comprises a third stream identifier and transmission detection information of a third data stream.
S1211, the tail node obtains transmission detection information of the first data stream according to the detection message of the first data stream.
The transmission detection information of the first data stream comprises transmission detection information corresponding to the first matching strategy and transmission detection information corresponding to the second matching strategy.
S1212, the tail node determines transmission detection information of the second data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the second stream identifier, and determines transmission detection information of the third data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the third stream identifier.
For example, the tail node determines transmission detection information corresponding to the first matching policy from among transmission detection information of the first data stream as transmission detection information of the second data stream, and the tail node determines transmission detection information corresponding to the second matching policy from among transmission detection information of the first data stream as transmission detection information of the third data stream.
S1213, the tail node sends second reporting information and third reporting information to the controller, wherein the second reporting information comprises a second stream identifier and transmission detection information of a second data stream, and the third reporting information comprises a third stream identifier and transmission detection information of a third data stream.
S1214, the controller determines the transmission quality of the second data stream according to the transmission detection information of the second data stream, and determines the transmission quality of the third data stream according to the transmission detection information of the third data stream.
The implementation procedure of S1201 may refer to the implementation procedure of S401 or S405. The implementation procedure of S1202 may refer to the implementation procedure of S402 or S406. The implementation procedures of S1203 and S1207 may refer to the implementation procedures of S403 or S407. The implementation procedure of S1204 may refer to the implementation procedure of S408. The implementation procedure of S1208 may refer to the implementation procedure of S802. The implementation procedures of S1205, S1209, and S1212 can refer to the implementation procedures of S409b and S411 b. The implementation procedures of S1206, S1210, and S1213 can refer to the implementation procedures of S410b and S412 b. The above implementation process is not described herein.
The above is an introduction to the method embodiments of the present application. The following describes embodiments of the apparatus of the present application which may be used to perform the method of the present application. For details not disclosed in the device embodiments, please refer to the method embodiments.
Fig. 13 is a schematic diagram illustrating a transmission detection apparatus 1300 according to an embodiment of the application. The transmission detection apparatus 1300 is applied to a first network node. The transmission detection apparatus 1300 includes: a receiving module 1310, a processing module 1320, and a transmitting module 1330.
The receiving module 1310 is configured to receive a first packet, where the first packet is a data packet of the first data stream. The functional implementation of the receiving module 1310 may refer to the relevant description in S401 above.
The processing module 1320 is configured to obtain a second packet based on the first packet, where the second packet includes a detection header, the detection header includes a first flow identifier, the first flow identifier is associated with both the 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, the third flow identifier is used to indicate a third data flow, the second data flow matches the first matching policy and the second data flow does not match the second matching policy, the third data flow matches the second matching policy and the third data flow does not match the first matching policy, and the first packet matches both the first matching policy and the second matching policy. The functional implementation of the processing module 1320 may refer to the relevant description in S402 above.
The sending module 1330 is configured to forward the second packet. The functional implementation of the transmitting module 1330 may refer to the related description in S403 described above.
Optionally, the first matching policy is associated with a first detection action, the second matching policy is associated with a second detection action, and the processing module 1320 is further configured to determine a detection action of the first data flow according to the first detection action and the second detection action, and the detection header further includes action indication information, where the action indication information is used to indicate the detection action of the first data flow.
Optionally, the detecting action of the first data stream includes at least one of a first detecting action and a second detecting action.
Optionally, the first matching policy is associated with a first detection period, the second matching policy is associated with a second detection period, and the processing module 1320 is further configured to determine a detection period of the first data stream according to the first detection period and the second detection period, and the detection header further includes period indication information, where the period indication information is used to indicate the detection period of the first data stream.
Optionally, the detection period of the first data stream is the minimum period of the first detection period and the second detection period.
Optionally, the first matching policy is associated with a first detection type, the second matching policy is associated with a second detection type, the processing module 1320 is further configured to determine a detection type of the first data flow according to the first detection type and the second detection type, and the detection header further includes type indication information, where the type indication information is used to indicate the detection type of the first data flow.
Optionally, the detection type of the first data stream is one of a first detection type and a second detection type.
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.
Optionally, the processing module 1320 is further configured to generate a first flow table, where the first flow table includes message information of the first message and a first flow identifier. The functional implementation of the processing module 1320 may also refer to the relevant description in S404 above.
Optionally, the first flow table further comprises at least one of: action indication information, period indication information and type indication information; the action indication information is used for indicating the detection action of the first data stream, the period indication information is used for indicating the detection period of the first data stream, and the type indication information is used for indicating the detection type of the first data stream.
Optionally, the receiving module 1310 is further configured to receive a third packet, where the third packet is a data packet of the first data stream. The functional implementation of the receiving module 1310 may also refer to the relevant description in S405 above.
The processing module 1320 is further configured to obtain a fourth packet based on the third packet, where the third packet matches the first flow table, and the fourth packet includes a detection header, where the detection header includes the first flow identifier. The functional implementation of the processing module 1320 may also refer to the relevant description in S406 above.
The sending module 1330 is further configured to forward the fourth packet. The functional implementation of the transmitting module 1330 may refer to the related description in S407 described above.
Optionally, the detection header of the fourth packet further includes at least one of: action indication information, period indication information and type indication information; the action indication information is used for indicating the detection action of the first data stream, the period indication information is used for indicating the detection period of the first data stream, and the type indication information is used for indicating the detection type of the first data stream.
Optionally, the processing module 1320 is further configured to determine that the hit number of the first flow table is not greater than the preset number of times within the specified duration, and age the first flow table.
Optionally, the processing module 1320 is further configured to obtain transmission detection information of the first data stream according to a detection packet of the first data stream, where the detection packet of the first data stream includes the second packet. The functional implementation of the processing module 1320 may also refer to the relevant description in S408 above.
Optionally, the sending module 1330 is further configured to send first report information to the controller, where the first report information includes the first flow identifier and transmission detection information of the first data flow. The function implementation of the transmitting module 1330 may also refer to the related description in S409a described above.
Optionally, the processing module 1320 is further configured to determine transmission detection information of the second data stream according to 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 may also refer to the relevant description in S409b above.
The sending module 1330 is further configured to send second reporting information to the controller, where the second reporting information includes a second stream identifier and transmission detection information of the second data stream. The functional implementation of the transmitting module 1330 may also refer to the related description in S410b above.
Optionally, the processing module 1320 is further configured to determine transmission detection information of the third data stream according to 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 may also refer to the relevant description in S411b above.
The sending module 1330 is further configured to send third reporting information to the controller, where the third reporting information includes a third stream identifier and transmission detection information of a third data stream. The function implementation of the transmitting module 1330 may also refer to the related description in S412b above.
Optionally, the processing module 1320 is further configured to generate a first association relationship, where the first association relationship includes an association relationship between the first stream identifier and the second stream identifier, and the third stream identifier.
Optionally, the sending module 1330 is further configured to send the first association relationship to the controller.
Optionally, the receiving module 1310 is further configured to receive a first association relationship sent by the controller, where the first association relationship includes an association relationship between the first stream identifier and the second stream identifier, and between the first stream identifier and the third stream identifier.
Optionally, the sending module 1330 is further configured to send the first association relationship to the second network node.
Optionally, the detection header includes an IFIT header.
Optionally, the first network node is a head node.
In summary, in the transmission detection device provided by the embodiment of the present application, after the first network node receives the first packet of the first data stream, the first network node obtains the second packet based on the first packet and forwards the second packet, where the second packet includes a detection header, the detection header includes a first stream identifier for indicating the first data stream, and the first data stream is matched with both the first matching policy and the second matching policy, so that the network node on the transmission path of the first data stream can detect the first data stream according to the detection header included in the second packet, thereby implementing detection of the first data stream according to the first matching policy and the second matching policy, the detection result of the first data stream can cover the first matching policy and the second matching policy, the detection result of the first data stream includes a detection result corresponding to the first matching policy and a detection result corresponding to the second matching policy, and the detection result of the first data stream is more comprehensive, so that the detection accuracy of the first data stream is higher, and the detection effect is better. In addition, the second message can only comprise one detection header, that is, the application adds one detection header in 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, so that the overhead of the data message of the first data stream is not increased, the consumption of extra network bandwidth resources is avoided, and the utilization rate of the network bandwidth resources is improved.
Referring to fig. 14, a schematic diagram of another transmission detection apparatus 1400 according to an embodiment of the application is shown. The transmission detection apparatus 1400 is applied to a second network node. The transmission detection apparatus 1400 includes: a receiving module 1410 and a processing module 1420.
The receiving module 1410 is configured to receive a detection packet of a first data stream, where the detection packet includes a detection header, the detection header 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, the third stream identifier is used to indicate the third data stream, the first data stream is matched with a first matching policy and a second matching policy, the second data stream is matched with the first matching policy and the second data stream is not matched with the second matching policy, the third data stream is matched with the second matching policy and the third data stream is not matched with the first matching policy. The functional implementation of the receiving module 1410 may also refer to the related description in S801 above.
The processing module 1420 is configured to obtain transmission detection information of the first data stream according to the detection packet of the first data stream. The functional implementation of the processing module 1420 may also be described with reference to the correlation in S802 above.
Optionally, the detection header further includes action indication information, where the action indication information is used to indicate a detection action of the first data stream, and the processing module 1420 is further configured to determine the detection action of the first data stream according to the action indication information.
Optionally, the detection header further includes period indication information, where the period indication information is used to indicate a detection period of the first data stream, and the processing module 1420 is further configured to determine the detection period of the first data stream according to the period indication information.
Optionally, the detection header further includes type indication information, where the type indication information is used to indicate a detection type of the first data stream, and the processing module 1420 is further configured to determine the detection type of the first data stream according to the type indication information.
Optionally, the transmission detection apparatus 1400 further includes: the sending module 1430 is configured to send first report information to the controller, where the first report information includes the first flow identifier and transmission detection information of the first data flow. The function implementation of the transmission module 1430 may also refer to the related description in S803a described above.
Optionally, the processing module 1420 is further configured to determine transmission detection information of the second data stream according to 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 may also be described with reference to the correlation in S803b above.
The sending module 1430 is further configured to send second reporting information to the controller, where the second reporting information includes a second stream identifier and transmission detection information of the second data stream. The function implementation of the transmission module 1430 may also refer to the related description in S804b described above.
Optionally, the processing module 1420 is further configured to determine transmission detection information of the third data stream according to 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 may also be described with reference to the correlation in S805b above.
The sending module 1430 is further configured to send third reporting information to the controller, where the third reporting information includes a third stream identifier and transmission detection information of a third data stream. The function implementation of the transmission module 1430 may also refer to the related description in S806b described above.
Optionally, the receiving module 1410 is further configured to receive a first association relationship, where the first association relationship includes an association relationship between the first stream identifier and the second stream identifier, and between the first stream identifier and the third stream identifier.
Optionally, the detection header includes an IFIT header.
Optionally, the second network node is an intermediate node or a tail node.
In summary, in the transmission detection apparatus provided in the embodiment of the present application, the first data stream is matched with both the first matching policy and the second matching policy, the detection packet of the first data stream includes a detection header, the detection header includes a first stream identifier for indicating the first data stream, and the second network node may detect the first data stream according to the detection header included in the detection packet of the first data stream, so as to obtain transmission detection information of the first data stream, so that the transmission detection information of the first data stream may cover the first matching policy and the second matching policy, and the transmission detection information of the first data stream may include a detection result corresponding to the first matching policy and a detection result corresponding to the second matching policy. In addition, the application adds a detection header in the data message of the first data stream to realize the detection of the first data stream according to the first matching strategy and the second matching strategy, so that the overhead of the data message of the first data stream is not increased, the consumption of extra network bandwidth resources is avoided, and the utilization rate of the network bandwidth resources is improved.
Referring to fig. 15, a schematic structural diagram of still another transmission detection apparatus 1500 according to an embodiment of the present application is shown. The transmission detection apparatus 1500 is applied to a second network node. The transmission detection apparatus 1500 includes: a receiving module 1510 and a processing module 1520.
The receiving module 1510 is configured to receive first reporting information sent by at least one network node, where 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 both the 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, the third flow identifier is used to indicate the third data flow, the first data flow is matched with both the first matching policy and the second matching policy, the second data flow is matched with the first matching policy and the second data flow is not matched with the second matching policy, the third data flow is matched with the second matching policy and the third data flow is not matched with the first matching policy. The functional implementation of the receiving module 1510 may also refer to the relevant description in S1001 above.
A processing module 1520, configured to determine transmission detection information of the second data stream according to 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 1520 may also refer to the related description in S1002 above.
Optionally, the processing module 1520 is further configured to determine transmission detection information of the third data stream according to 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 may also refer to the related description in S1003 above.
Optionally, the processing module 1520 is further configured to generate a first association relationship, where the first association relationship includes an association relationship between the first stream identifier and the second stream identifier, and the third stream identifier.
Optionally, the transmission detection apparatus 1500 further includes: a sending module 1530, configured to send the first association relationship to at least one network node.
Optionally, the receiving module 1510 is further configured to receive a first association sent by the first network node, where the first association includes an association of the first flow identifier with the second flow identifier and the third flow identifier.
Optionally, the first network node is a head node.
Optionally, the at least one network node comprises at least one of a head node, an intermediate node and a tail node.
In summary, in the transmission detection device provided by the embodiment of the present application, the first flow identifier is used to indicate the first data flow, the first data flow is matched with the first matching policy and the second matching policy, the detection packet of the first data flow includes the detection header, the detection header includes the first flow identifier, and the network node may obtain the transmission detection information of the first data flow according to the detection packet of the first data flow, so that the detection of the first data flow may be implemented according to the first matching policy and the second matching policy, the detection result of the first data flow may cover the first matching policy and the second matching policy, the detection result of the first data flow may include the detection result corresponding to the first matching policy and the detection result corresponding to the second matching policy, and the detection result of the first data flow is more comprehensive, so that the detection accuracy of the first data flow is higher, and the detection effect is better. In addition, the detection message of the first data stream can only comprise one detection header, that is, the application adds one detection header in 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, so that the overhead of the data message of the first data stream is not increased, the consumption of extra network bandwidth resources is avoided, and the utilization rate of the network bandwidth resources is improved.
The transmission detection apparatus provided by the embodiment of the application can also be implemented by an application-specific integrated circuit (ASIC-specific integrated circuit) or a programmable logic device (programmable logic device, PLD). The PLD may be a complex program logic device (complex programmable logical device, CPLD), a field-programmable gate array (field-programmable gate array, FPGA), general-purpose array logic (generic array logic, GAL), or any combination thereof. The transmission detection method provided by the method embodiment may also be implemented by software, and when the transmission detection method provided by the method embodiment is implemented by software, each module in the transmission detection apparatus may also be a software module.
Fig. 16 is a schematic diagram illustrating a transmission detection apparatus 1600 according to another embodiment of the application. The transmission detection apparatus 1600 is a network node or a functional component in a network node. The transmission detection apparatus 1600 includes: a main control board 1610, an interface board 1630, and an interface board 1640. The plurality of interface boards also comprises, in the case of a plurality of interface boards, a switching network board (not shown in fig. 16) for completing the data exchange between the interface boards (interface boards are also called line cards or service boards).
The main control board 1610 is used for performing functions such as system management, node maintenance, protocol processing, etc. The interface board 1630 and the interface board 1640 are used to provide various service interfaces (e.g., POS interface, GE interface, ATM interface, etc.) and to implement message forwarding. The main control board 1610 mainly comprises 3 types of functional units: the system comprises a system management control unit, a system clock unit and a system maintenance unit. The main control board 1610, the interface board 1630 and the interface board 1640 are connected with the system back board through a system bus to realize intercommunication. The interface board 1630 includes one or more processors 1631 thereon. The processor 1631 is configured to control and manage the interface board 1630 and communicate with the central processor 1612 on the main control board 1610. The memory 1632 on the interface board 1630 is used to store flow identifications, associations of flow identifications, matching policies, flow tables, etc. The interface board 1630 includes one or more network interfaces 1633 for receiving and transmitting messages. As shown in fig. 16, the main control board 1610 further includes a memory 1614, where the memory 1614 is used to store system management information, protocols, and the like, which is not limited by the embodiment of the present application.
As shown in fig. 16, this embodiment includes multiple interface boards, and uses a distributed forwarding mechanism, where the operations on the interface board 1640 are substantially similar to the operations of the interface board 1630. For example, the interface board 1640 includes one or more network interfaces 1643 for receiving and transmitting messages, memory 1642 for storing flow identifications, associations of flow identifications, matching policies, flow tables, etc., and a processor 1641 for controlling and managing the interface board 1640 and communicating with the central processor 1612 on the main control board 1610.
The processor 1631 in the interface board 1630 and/or the processor 1641 in the interface board 1640 in fig. 16 may be dedicated hardware or chips, such as network processors or application specific integrated circuits, for performing the functions described above, i.e., the so-called forwarding plane uses dedicated hardware or chip processing. In other embodiments, the processor 1631 in the interface board 1630 and/or the processor 1641 in the interface board 1640 may also employ a general purpose processor, such as a central processing unit (central processing unit, CPU).
In addition, it should be noted that the master control board may have one or more pieces, and the master control board may include a main master control board and a standby master control board when there are more pieces. The interface boards may have one or more blocks, the more data processing capabilities the network nodes are, the more interface boards are provided. Under the condition of a plurality of interface boards, the interface boards can communicate through one or a plurality of exchange network boards, and load sharing redundancy backup can be realized jointly when a plurality of interface boards exist. Under the centralized forwarding architecture, the network node may not need to exchange network boards, and the interface board bears the processing function of the service data of the whole system. Under the distributed forwarding architecture, the network node comprises a plurality of interface boards, and data exchange among the plurality of interface boards can be realized through the exchange network board, so that high-capacity data exchange and processing capacity are provided. Therefore, the data access and processing power of the network nodes of the distributed architecture is greater than that of the network nodes of the centralized architecture. Which architecture is specifically adopted depends on the networking deployment scenario, and no limitation is made here.
In alternative embodiments, memory 1632 and/or Memory 1642 is read-only Memory (ROM) or other type of static storage device that may store static information and instructions, random access Memory (random access Memory, RAM) or other type of dynamic storage device that may store information and instructions, but may also be, without limitation, electrically erasable programmable read-only Memory (electrically erasable programmable read-only Memory, EEPROM), compact disc read-only Memory (compact disc read-only Memory, CD-ROM) or other optical disk storage, optical disk storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory 1632 may be implemented separately and coupled to the processor 1631 via a communication bus or may be integrated with the processor 1631. The memory 1642 may be provided separately, coupled to the processor 1641 via a communication bus, or may be integrated with the processor 1641.
The memory 1632 is used for storing program codes and is controlled to be executed by the processor 1631 to perform part or all of the steps of the method provided by the above embodiment. Processor 1631 is configured to execute program code stored in memory 1632. One or more software modules may be included in the program code. The one or more software modules may be the functional modules described above in fig. 13 and 14. Memory 1642 may also be used for storing program codes and be controlled by processor 1641 to perform part or all of the steps of the methods provided by the embodiments described above. Similarly, the memory 1614 may also be used for storing program codes and executed under the control of the central processor 1612 to perform part or all of the steps of the methods provided by the above embodiments.
In alternative embodiments, network interface 1633, network interface 1643 is a device using any transceiver or the like for communicating with other nodes, devices or communication networks, such as ethernet, radio access network (radio access network, RAN), wireless local area network (wireless local area networks, WLAN), etc.
Referring to fig. 17, a schematic diagram of another transmission detection apparatus 1700 according to an embodiment of the present application is shown. The transmission detection apparatus 1700 may be a network node or a functional component in a network node, or may be a controller or a functional component in a controller. Referring to fig. 17, the transmission detecting apparatus 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 being communicatively connected by the bus 1708. The connections between the processor 1702, memory 1704 and communication interface 1706 shown in fig. 17 are merely exemplary, and in actual implementation, the processor 1702, memory 1704 and communication interface 1706 may be connected in other ways than by a bus 1708.
The memory 1704 is used to store a computer program 17042, which can include instructions and data 17042. The memory 1704 may be various types of storage media such as RAM, ROM, nonvolatile RAM (NVRAM), programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (electrically erasable PROM, EEPROM), flash memory, optical memory, registers, and the like.
The processor 1702 may be a general-purpose processor, which is a processor that performs certain steps and/or operations by reading and executing computer programs stored in a memory (e.g., the memory 1704), and which may utilize data stored in the memory (e.g., the memory 1704) in performing the steps and/or operations described above. The stored computer program may for example be executed to implement the relevant functions of the aforementioned processing modules. The general purpose processor may be a CPU. The processor 1702 may also be a special purpose processor, which is a specially designed processor for performing certain steps and/or operations, which may be a digital signal processor (digital signal processor, DSP), ASIC, FPGA, or the like. The processor 1702 may also be a combination of multiple processors, such as a multi-core processor. The processor 1702 includes at least one circuit to perform all or part of the steps of the transmission detection method provided by the above embodiments.
The communication interface 1706 may include an input/output (I/O) interface, a physical interface, a logical interface, and the like for realizing interconnection of devices inside the transmission detection apparatus 1700, and an interface for realizing interconnection of the transmission detection apparatus 1700 with other apparatuses (e.g., network nodes, controllers). The physical interface may be Gigabit Ethernet (GE) which may be used to implement the interconnection of the transmission detection apparatus 1700 with other nodes, and the logical interface is an interface inside the transmission detection apparatus 1700 which may be used to implement the interconnection of devices inside the transmission detection apparatus 1700. It is to be understood that the communication interface 1706 may be used for the transmission detection apparatus 1700 to communicate with other nodes, for example, the communication interface 1706 is used for sending and receiving messages between the transmission detection apparatus 1700 and other nodes, and the communication interface 1706 may implement the foregoing functions related to the receiving module and the sending module. The communication interface 1706 may also include a transceiver to receive and transmit messages, which may also perform the functions associated with the aforementioned receiving and transmitting modules.
Wherein the bus 1708 may be any type of communication bus, such as a system bus, that interconnects the processor 1702, the memory 1704, and the communication interface 1706.
The above devices may be provided on separate chips, or may be provided at least partially or entirely on the same chip. Whether the individual devices are independently disposed on different chips or integrally disposed on one or more chips is often dependent on the needs of the product design. The embodiment of the application does not limit the specific implementation form of the device.
The transmission detection apparatus 1700 shown in fig. 17 is merely exemplary, and in implementation, the transmission detection apparatus 1700 may also include other components, which are not specifically listed herein. The transmission detection apparatus 1700 shown in fig. 17 performs transmission detection of a data stream by performing all or part of the steps of the method provided by the above-described embodiments.
The embodiment of the application provides a transmission detection system, which comprises a controller and a plurality of network nodes. At least one of the plurality of network nodes comprises a transmission detection means as shown in fig. 13, 14, 16 or 17 and the controller comprises a transmission detection means as shown in fig. 15 or 17.
Optionally, the plurality of network nodes includes a head node, an intermediate node, and a tail node. For example, as shown in fig. 3, the transmission detection system may be a head node 101, an intermediate node may be a network node 102, and a tail node may be a network node 103.
Embodiments of the present application provide a computer readable storage medium having stored therein a computer program which, when executed (e.g., by a network node, a controller, one or more processors, etc.), performs all or part of the steps of a method as provided by the method embodiments described above.
Embodiments of the present application provide a computer program product comprising a program or code which, when executed (e.g. by a network node, a controller, one or more processors, etc.), implements all or part of the steps of a method as provided by the method embodiments described above.
Embodiments of the present application provide a chip comprising programmable logic circuits and/or program instructions, which when executed is adapted to carry out all or part of the steps of the method as provided by the method embodiments described above.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be embodied in whole or in part in the form of a computer program product comprising one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a network of computers, or other programmable devices. The computer instructions may be stored in or transmitted from one computer readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means from one website, computer, server, or data center. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device including one or more servers, data centers, etc. that can be integrated with the available medium. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium, or a semiconductor medium (e.g., solid state disk), etc.
It should be understood that the term "at least one" in the present application means one or more, and "a plurality" means two or more. In the present application, the symbol "/" generally means or unless otherwise indicated, for example, a/B may represent a or B. The term "and/or" in the present application is merely an association relation describing the association object, and means that three kinds of relations may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, for the purpose of clarity of description, the words "first," "second," "third," and the like are used herein to distinguish between identical or similar items that have substantially the same function and effect. Those skilled in the art will appreciate that the words "first," "second," "third," etc. do not limit the number and order of execution.
Different types of embodiments, such as a method embodiment and a device embodiment, provided by the embodiment of the present application may be referred to each other, and the embodiment of the present application is not limited to this. The sequence of the operations of the method embodiment provided by the embodiment of the application can be properly adjusted, the operations can also be increased or decreased according to the situation, and any method which is easily conceivable to be changed by a person skilled in the art within the technical scope of the disclosure of the application is covered in the protection scope of the application, so that the description is omitted.
In the corresponding embodiments provided in the present application, it should be understood that the disclosed apparatus and the like may be implemented by other structural means. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of elements is merely a logical functional division, and there may be additional divisions of actual implementation, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, or may be in electrical or other forms.
The elements illustrated as separate elements may or may not be physically separate, and elements described as elements may or may not be physically located, or may be distributed over a plurality of network devices. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
While the application has been described with reference to exemplary embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made without departing from the spirit and scope of the application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (34)

1. A transmission detection method, the method comprising:
the method comprises the steps that a first network node receives a first message, wherein the first message is a data message of a first data stream;
the first network node obtains a second message based on the first message, the second message comprises a detection header, the detection header comprises a first flow identifier, the first flow identifier is associated with both a second flow identifier and a third flow identifier, the first flow identifier is used for indicating the first data flow, the second flow identifier is used for indicating the second data flow, the third flow identifier is used for indicating the third data flow, the second data flow is matched with a first matching policy and the second data flow is not matched with a second matching policy, the third data flow is matched with the second matching policy and the third data flow is not matched with the first matching policy, and the first message is matched with 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, the method further comprising:
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, wherein the action indication information is used for indicating the detection action of the first data flow.
3. The method of claim 1 or 2, wherein the first matching policy is associated with a first detection period and the second matching policy is associated with a second detection period, the method further comprising:
the first network node determines a detection period of the first data stream according to the first detection period and the second detection period, and the detection header further comprises period indication information, wherein the period indication information is used for indicating the detection period of the first data stream.
4. A method according to any one of claims 1 to 3, further comprising:
the first network node generates a first flow table, wherein the first flow table comprises message information of the first message and the first flow identifier.
5. The method according to claim 4, wherein the method further comprises:
the first network node receives a third message, wherein the third message is a data message of the first data flow;
The first network node obtains a fourth message based on the third message, wherein the third message is matched with the first flow table, the fourth message comprises a detection header, and the detection header comprises the first flow identifier;
the first network node forwards the fourth message.
6. The method according to any one of claims 1 to 5, further comprising:
the first network node obtains transmission detection information of the first data stream according to the detection message of the first data stream, wherein the detection message of the first data stream comprises the second message.
7. The method of claim 6, wherein the method further comprises:
the first network node sends first report information to a controller, wherein the first report information comprises the first flow identifier and transmission detection information of the first data flow.
8. The method according to claim 6 or 7, characterized in that the method further comprises:
the first network node determines the transmission detection information of the second data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the second stream identifier;
The first network node sends second reporting information to the controller, wherein the second reporting information comprises the second stream identifier and transmission detection information of the second data stream.
9. The method according to any one of claims 6 to 8, further comprising:
the first network node determines the transmission detection information of the third data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the third stream identifier;
and the first network node sends third reporting information to the controller, wherein the third reporting information comprises the third stream identifier and transmission detection information of the third data stream.
10. The method according to any one of claims 1 to 9, further comprising:
the first network node generates a first association relation, wherein the first association relation comprises association relations among the first stream identifier, the second stream identifier and the third stream identifier.
11. The method according to claim 10, wherein the method further comprises:
the first network node sends the first association relationship to a controller.
12. The method according to any one of claims 1 to 9, further comprising:
the first network node receives a first association relation sent by a controller, wherein the first association relation comprises association relations among the first stream identifier, the second stream identifier and the third stream identifier.
13. The method according to any one of claims 10 to 12, further comprising:
the first network node sends the first association to a second network node.
14. The method according to any one of claims 1 to 13, wherein,
the detection header includes an detection IFIT header with flow information.
15. The method according to any one of claims 1 to 14, wherein,
the first network node is a head node.
16. A transmission detection method, the method comprising:
a second network node receives a detection message of a first data stream, wherein the detection message comprises a detection header, the detection header comprises 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 for indicating the first data stream, the second stream identifier is used for indicating a second data stream, the third stream identifier is used for indicating a third data stream, the first data stream is matched with a first matching strategy and a second matching strategy, the second data stream is matched with the first matching strategy and the second data stream is not matched with the second matching strategy, and the third data stream is matched with the second matching strategy and the third data stream is not matched with the first matching strategy;
And the second network node acquires transmission detection information of the first data stream according to the detection message of the first data stream.
17. The method of claim 16, wherein the method further comprises:
the second network node sends first reporting information to a controller, wherein the first reporting information comprises the first flow identifier and transmission detection information of the first data flow.
18. The method according to claim 16 or 17, characterized in that the method further comprises:
the second network node determines the transmission detection information of the second data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the second stream identifier;
and the second network node sends second reporting information to the controller, wherein the second reporting information comprises the second stream identifier and transmission detection information of the second data stream.
19. The method according to any one of claims 16 to 18, further comprising:
the second network node determines the transmission detection information of the third data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the third stream identifier;
And the second network node sends third reporting information to the controller, wherein the third reporting information comprises the third stream identifier and transmission detection information of the third data stream.
20. The method according to any one of claims 16 to 19, further comprising:
the second network node receives a first association relationship, wherein the first association relationship comprises association relationships among the first stream identifier, the second stream identifier and the third stream identifier.
21. The method according to any one of claims 16 to 20, wherein,
the detection header includes an detection IFIT header with flow information.
22. The method according to any one of claims 16 to 21, wherein,
the second network node is an intermediate node or a tail node.
23. A transmission detection method, the method comprising:
the controller receives first reporting information sent by at least one network node, wherein the first reporting information comprises 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 for indicating the first data stream, the second stream identifier is used for indicating a second data stream, the third stream identifier is used for indicating a third data stream, the first data stream is matched with a first matching strategy and a second matching strategy, the second data stream is matched with the first matching strategy and the second data stream is not matched with the second matching strategy, and the third data stream is matched with the second matching strategy and the third data stream is not matched with the first matching strategy;
And the controller determines the transmission detection information of the second data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the second stream identifier.
24. The method of claim 23, wherein the method further comprises:
and the controller determines the transmission detection information of the third data stream according to the transmission detection information of the first data stream and the association relation between the first stream identifier and the third stream identifier.
25. The method according to claim 23 or 24, characterized in that the method further comprises:
the controller generates a first association relation, wherein the first association relation comprises association relation among the first stream identifier, the second stream identifier and the third stream identifier.
26. The method of claim 25, wherein the method further comprises:
the controller sends the first association to at least one network node.
27. The method according to claim 23 or 24, characterized in that the method further comprises:
the controller receives a first association relation sent by a first network node, wherein the first association relation comprises association relations among the first stream identifier, the second stream identifier and the third stream identifier.
28. The method of claim 27, wherein the step of determining the position of the probe is performed,
the first network node is a head node.
29. The method according to any one of claims 23 to 28, wherein,
the at least one network node includes at least one of a head node, an intermediate node, and a tail node.
30. A transmission detection apparatus comprising a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to execute a computer program stored in the memory to cause the transmission detection apparatus to execute the transmission detection method according to any one of claims 1 to 22.
31. A transmission detection apparatus comprising a memory and a processor;
the memory is used for storing 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 according to any one of claims 23 to 29.
32. A transmission detection system comprising a controller and a plurality of network nodes;
at least one of the plurality of network nodes comprising the transmission detection apparatus of claim 30;
The controller comprising the transmission detecting device according to claim 31.
33. A computer readable storage medium, wherein a computer program is stored in the computer readable storage medium, which when executed, implements the transmission detection method according to any one of claims 1 to 29.
34. A computer program product, characterized in that the computer program product comprises a program or code which, when executed, implements the transmission detection method according to any one of claims 1 to 29.
CN202210509300.7A 2022-05-10 2022-05-10 Transmission detection method, device and system Pending CN117081967A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210509300.7A CN117081967A (en) 2022-05-10 2022-05-10 Transmission detection method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210509300.7A CN117081967A (en) 2022-05-10 2022-05-10 Transmission detection method, device and system

Publications (1)

Publication Number Publication Date
CN117081967A true CN117081967A (en) 2023-11-17

Family

ID=88701065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210509300.7A Pending CN117081967A (en) 2022-05-10 2022-05-10 Transmission detection method, device and system

Country Status (1)

Country Link
CN (1) CN117081967A (en)

Similar Documents

Publication Publication Date Title
KR102579059B1 (en) Packet processing methods and devices, devices, and systems
CN110995583B (en) Path detection method, path detection device and computer storage medium
US20220182315A1 (en) Service Packet Transmission Method and Device
US20170310581A1 (en) Communication Network, Communication Network Management Method, and Management System
US20220278925A1 (en) Method for Delivering OAM Configuration Information and Control Node
US20240048479A1 (en) Packet Forwarding Method and Apparatus, Network Device, and Storage Medium
CN113055293A (en) Routing method and device in software defined wide area network and communication system
US20230318970A1 (en) Packet Processing Method and Apparatus
CN115134282A (en) Route processing method and network equipment
CN113765800A (en) Method, device, system, equipment and readable storage medium for transmitting message
CN117081967A (en) Transmission detection method, device and system
CN115242713A (en) IPV 6-based segmented routing message forwarding method, configuration method and equipment
CN109995606B (en) Virtualization deep packet inspection vDPI flow control method and network element equipment
CN117527618A (en) Transmission detection method, device and system
CN115150320B (en) Message transmission method, device and system
WO2023109672A1 (en) Service processing method, apparatus, and system
WO2022253190A1 (en) Service flow performance testing method and apparatus, and communication network
WO2022253194A1 (en) Packet forwarding method and apparatus, and communication network
WO2022253192A1 (en) Message forwarding method and apparatus, and communication network
CN117097633A (en) Message transmission method, transmission control method, device and system
CN117176627A (en) Transmission detection method, device and system
WO2023213216A1 (en) Packet processing method and related device
CN117640791A (en) Service processing method, device and system
CN114915518A (en) Message transmission method, system and equipment
CN116938719A (en) Deterministic service method, equipment and medium for realizing network bottom layer resource perception

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication