| CPC H04L 45/26 (2013.01) [H04L 45/124 (2013.01); H04L 45/24 (2013.01); H04L 43/0829 (2013.01); H04L 47/34 (2013.01)] | 9 Claims |

|
1. A method, comprising:
receiving, by a first node, a first detection packet comprising multipath detection indication information and detection data collection indication information, wherein the multipath detection indication information indicates that the first detection packet is used to detect a plurality of paths from a source node of a communications network to a destination node of the communications network, and wherein the detection data collection indication information indicates a type of to-be-collected detection data;
collecting, by the first node, based on the detection data collection indication information, first data corresponding to the type of to-be-collected detection data, wherein the first node has at least two next-hop nodes to the destination node of the first detection packet, and wherein the at least two next-hop nodes comprise a second node and a third node;
adding, to the first detection packet, a first identity of the first node, a second identity of an ingress interface for receiving the first detection packet, and a fourth identity of a first egress interface for sending a first modified detection packet;
sending, to the second node, the first modified detection packet to which the first identity, the second identity, and the fourth identity are added, wherein the first node is coupled to the second node through a first port identified by the fourth identity;
adding, to the first detection packet, the first identity, the second identity, and a fifth identity of a second egress interface for sending a second modified detection packet; and
sending, to the third node, the second modified detection packet to which the first identity, the second identity, and the fifth identity are added, wherein the first node is coupled to the third node through a second port identified by the fifth identity, wherein the first modified detection packet instructs the second node to collect second data corresponding to the type of to-be-collected detection data and add the second data to the first modified detection packet, wherein the second modified detection packet instructs the third node to collect third data corresponding to the type of to-be-collected detection data and add the third data to the second modified detection packet, and wherein the first node is one of one or more intermediate nodes in the communications network.
|