Search

CN-122027517-A - Detection method, device and equipment

CN122027517ACN 122027517 ACN122027517 ACN 122027517ACN-122027517-A

Abstract

The application provides a detection method, a device and equipment, the method comprises the steps of generating SBFD a message, collecting head node metadata, embedding the head node metadata into SBFD a message to obtain an IFA message, sending the IFA message to a reflecting end to enable all nodes supporting IFA except a home terminal on a loopback path to embed respective metadata into the IFA message, and sending the loopback IFA message to a collector to complete detection under the condition that the received loopback IFA message meets reporting conditions, wherein the loopback IFA message is a message which is transmitted to the reflecting end along the loopback path and reversely returned to the home terminal after being reflected by the reflecting end, and carries the head node metadata, the metadata of the reflecting end and the round trip metadata of all nodes supporting IFA between the home terminal and the reflecting end.

Inventors

  • HE DAN
  • LUO BIN
  • YANG YI

Assignees

  • 格创通信(浙江)有限公司

Dates

Publication Date
20260512
Application Date
20260410

Claims (13)

  1. 1. A method of detection comprising: Generating a seamless bidirectional forwarding detection SBFD message; Collecting head node metadata, embedding the head node metadata into the SBFD message to obtain an in-band flow analysis (IFA) message; sending the IFA message to a reflecting end so that all nodes supporting IFA except the home terminal on a loopback path embed respective metadata into the IFA message; And under the condition that the received loopback IFA message accords with the reporting condition, sending the loopback IFA message to a collector to finish detection, wherein the loopback IFA message is transmitted to the reflecting end along the loopback path and reversely returned to the local end after being reflected by the reflecting end, and the loopback IFA message carries the metadata of the head node, the metadata of the reflecting end and the round trip metadata of all nodes supporting IFA between the local end and the reflecting end.
  2. 2. The method of claim 1, wherein the SBFD message includes a destination IP, and the destination IP is a destination IP of the service message, wherein the destination IP of the service message is detected by a host CPU of the home terminal.
  3. 3. The method of claim 2, wherein the SBFD message further includes a forwarding type and an ingress interface index, wherein the header node metadata includes the ingress interface index; the collecting the head node metadata comprises taking the interface index as the head node metadata when the forwarding type is an IFA head node.
  4. 4. The method of claim 3, wherein the SBFD message further includes a next-hop entry index, wherein the next-hop entry index is obtained by a host CPU of the home terminal querying a home terminal routing table using the destination IP; The acquisition head node metadata further comprises obtaining an interface index by using the index query of the next-hop table entry.
  5. 5. The method according to any one of claim 1 to 4, wherein, The generation SBFD of the message comprises the steps of periodically generating SBFD of the message; The loopback IFA message meets the reporting condition, wherein the loopback IFA message meets the sampling ratio.
  6. 6. The method of claim 5, wherein the looped-back IFA message satisfies a sampling ratio comprising: Searching a packet receiving session table corresponding to the looped back IFA message, and adding 1 to a packet receiving counter in the packet receiving session table, wherein the packet receiving session table comprises the packet receiving counter, an IFA mark and a sampling factor; Judging whether the IFA mark represents association with IFA; if yes, the numerical value in the packet receiving counter is used for taking the remainder of the sampling factor, and if the remainder is 0, the loopback IFA message meets the sampling ratio.
  7. 7. A method of detection comprising: receiving an in-band flow analysis (IFA) message sent by an initiating terminal, wherein the IFA message is obtained by generating a Seamless Bidirectional Forwarding Detection (SBFD) message by the initiating terminal and embedding acquired head node metadata into the SBFD message; collecting tail node metadata, and embedding the tail node metadata into the IFA message to obtain an intermediate IFA message; Performing reflection operation on the intermediate IFA message; And returning the reflected intermediate IFA message to the initiating terminal, so that the initiating terminal sends the loopback IFA message to a collector to complete detection under the condition that the received loopback IFA message accords with the reporting condition, wherein the loopback IFA message is transmitted to the home terminal along a loopback path and reversely returns to the initiating terminal after being reflected by the home terminal, and the loopback IFA message carries the head node metadata, the tail node metadata and the round trip metadata of all nodes supporting IFA between the initiating terminal and the home terminal.
  8. 8. The method of claim 7, wherein the SBFD message includes a destination IP, the destination IP having a value that is a destination IP of the service message, and wherein the tail node metadata includes an outbound interface index and an outbound interface queue ID; The step of collecting the tail node metadata comprises the step of inquiring the destination IP in the IFA message to obtain an outbound interface index and an outbound interface queue ID.
  9. 9. The method of claim 7, wherein the SBFD message includes destination IP and source IP, destination port number and source port number, remote descriptor and local descriptor; The reflecting operation of the intermediate IFA message comprises the steps of exchanging the values of a destination IP and a source IP of the intermediate IFA message, exchanging the values of a destination port number and a source port number of the intermediate IFA message, and exchanging the values of a far-end descriptor and a local descriptor of the intermediate IFA message.
  10. 10. A transmission device, the device comprising: The generation module is configured to generate a seamless bidirectional forwarding detection SBFD message; an acquisition module configured to acquire header node metadata; The embedding module is configured to embed the head node metadata into the SBFD message to obtain an in-band flow analysis (IFA) message; the sending module is configured to send the IFA message to a reflecting end so that all nodes supporting IFA except the home end on a loopback path embed respective metadata into the IFA message; And the reporting module is configured to send the loopback IFA message to a collector to finish detection under the condition that the received loopback IFA message meets reporting conditions, wherein the loopback IFA message is transmitted to the reflecting end along the loopback path and reversely returns to the local end after being reflected by the reflecting end, and the loopback IFA message carries the head node metadata, the metadata of the reflecting end and the round trip metadata of all nodes supporting IFA between the local end and the reflecting end.
  11. 11. A transmission device, the device comprising: The receiving module is configured to receive an in-band flow analysis (IFA) message sent by an initiating terminal, wherein the IFA message is obtained by generating a Seamless Bidirectional Forwarding Detection (SBFD) message by the initiating terminal and embedding acquired head node metadata into the SBFD message; the acquisition module is configured to acquire tail node metadata; the embedding module is configured to embed the tail node metadata into the IFA message to obtain an intermediate IFA message; the reflecting module is configured to reflect the intermediate IFA message; The sending module is configured to return the reflected intermediate IFA message to the initiating terminal, so that the initiating terminal sends the loopback IFA message to a collector to finish detection under the condition that the received loopback IFA message meets the reporting condition, wherein the loopback IFA message is a message which is transmitted to the home terminal along a loopback path and reversely returns to the initiating terminal after being reflected by the home terminal, and the loopback IFA message carries the head node metadata, the tail node metadata and round trip metadata of all nodes supporting IFA between the initiating terminal and the home terminal.
  12. 12. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the detection method according to any of claims 1 to 9.
  13. 13. An apparatus comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the detection method of any one of claims 1 to 9 when the program is executed by the processor.

Description

Detection method, device and equipment Technical Field The present application relates to the field of data communication network detection technologies, and in particular, to a detection method, device, and equipment. Background Along with the rapid expansion of the network scale of the data center, it is important to accurately and timely acquire the state information of each node of the network in order to ensure the stable operation and the optimal performance of the network and to timely find and solve the potential problems. IFA (Inband flow analyzer, in-band flow analysis) is widely used in the industry as a network monitoring technology. By means of the technology, key data such as the input and output port and queue information of each device, the time stamp of the input and output device, the congestion state of the queue and the like on a message forwarding path can be detected. As shown IN fig. 1, a Customer Edge (CE) CE1 sends a service message to a CE2, where the service message passes from CE1 to CE2 through a head node IN, transit nodes TR1, TR2, and a tail node E. The head node IN recognizes the data flow to be monitored by means of ACL (Access Control List ), copies the service message according to the sampling ratio and completes the IFA encapsulation (namely, embedding the IFA header, the IFA metadata header and the head node metadata) to obtain the IFA message, the head node metadata IN the head node IN carries the remote sensing information of the head node, and the IFA message is transmitted along the forwarding path of the original service message. The transfer node TR1 recognizes the IFA message through the ACL, and the remote sensing information of the transfer node TR1 is carried through the metadata of the transfer node 1. The transfer node TR2 recognizes the IFA message through the ACL, and the remote sensing information of the transfer node TR2 is carried through the metadata of the transfer node 2. The tail node E identifies the IFA message to be terminated through the ACL, carries the remote sensing information of the tail node through the metadata of the tail node, and then encapsulates the tail node into a monitoring message to be sent to a designated Collector (Collector). The collector CL may be a tail node or an independent analysis device, and after receiving the monitoring message, the collector extracts Metadata (Metadata) information of each node to perform comprehensive analysis, so as to present the running state of the network, find potential problems, and so on. Disclosure of Invention The embodiment of the application provides a detection method, a detection device and detection equipment, which are used for solving the problem that network remote sensing information can be started to be measured only by triggering an actual service message. According to the first aspect of the embodiment of the application, a detection method is provided, which comprises the steps of generating a seamless bidirectional forwarding detection SBFD message, collecting head node metadata, embedding the head node metadata into SBFD message to obtain an in-band flow analysis IFA message, sending the IFA message to a reflecting end so that all nodes supporting IFA except a home terminal on a loopback path embed respective metadata into the IFA message, and sending the loopback IFA message to a collector to complete detection under the condition that the received loopback IFA message meets reporting conditions, wherein the loopback IFA message is a message which is transmitted to the reflecting end along a loopback path and reversely returned to the home terminal after being reflected by the reflecting end, and carries the head node metadata, the metadata of the reflecting end and round-trip metadata of all nodes supporting IFA between the home terminal and the reflecting end. According to a second aspect of the embodiment of the application, a detection method is provided, and the detection method comprises the steps of receiving an IFA message sent by an initiating terminal, generating SBFD messages by the initiating terminal, embedding collected head node metadata into SBFD messages to obtain tail node metadata, embedding the tail node metadata into the IFA message to obtain an intermediate IFA message, carrying out reflection operation on the intermediate IFA message, returning the reflected intermediate IFA message to the initiating terminal, and sending the looped back IFA message to a collector to complete detection under the condition that the received looped back IFA message meets reporting conditions, wherein the looped back IFA message is the message which is transmitted to the initiating terminal along a loop path and reversely returned to the initiating terminal after being reflected by the initiating terminal, and carries the head node metadata, the tail node metadata and round-trip metadata of all nodes supporting the IFA between the initiating terminal and the initiating