Method, device, equipment, medium and product for detecting on-stream detection capability

By constructing probe packets containing iFIT information, the flow detection capability of the device to be probed can be determined, which solves the problem that the device capability cannot be detected in the existing technology and improves network stability.

CN118802647BActive Publication Date: 2026-01-23CHINA MOBILE GROUP DESIGN INST +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410746751.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2026-01-23
Estimated Expiration
2044-06-11

AI Technical Summary

Technical Problem

Existing technologies cannot effectively detect whether a device has the capability for flow detection, resulting in the inability to forward service packets normally.

Method used

By constructing a probe message containing iFIT information and sending it to the device to be probed, the device's flow detection capability is determined based on the feedback message, including encapsulating the probe information in the SR or MPLS extension header or directly encapsulating it in the data packet.

Benefits of technology

This avoids service interruptions caused by devices lacking flow detection capabilities, reduces invalid traffic in the network, and improves network stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802647B_ABST
    Figure CN118802647B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method, device, equipment, medium and product for detecting in-stream detection capability, the method comprising: determining a to-be-detected device and a to-be-sent packet corresponding to the to-be-detected device; wherein the to-be-sent packet at least contains iFIT information and a data packet; constructing a detection packet for the to-be-detected device based on the iFIT information in the to-be-sent packet; sending the detection packet to the to-be-detected device; obtaining a feedback packet sent by the to-be-detected device based on the detection packet, and determining the in-stream detection capability of the to-be-detected device based on the feedback packet. The present disclosure can predict the in-stream detection capability of the to-be-detected device in advance, thereby improving the stability of the network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of communication technology, and in particular to a method, apparatus, device, medium, and product for detecting flow detection capability. Background Technology

[0002] iFIT (In-situ Flow Information Telemetry) is a detection technology that directly detects network performance indicators by marking the features of real network traffic flows. It can directly measure traffic packets to obtain the real packet loss rate, latency, and other performance indicators of the IP network. Compared with out-of-band detection methods that periodically send simulated traffic packets, iFIT is more accurate.

[0003] However, since iFIT technology is a relatively new technology, the support capabilities of devices for iFIT vary. When iFIT is required, existing technologies cannot detect whether the current device has iFIT capabilities. If the current device does not have iFIT capabilities, it will cause service packets to fail to be forwarded normally. Summary of the Invention

[0004] This disclosure provides a method, apparatus, equipment, medium, and product for detecting in-flow detection capability.

[0005] According to a first aspect of this disclosure, a method for detecting flow-following detection capability is provided, applied to a detection initiation device, the method comprising:

[0006] Identify the device to be detected and the corresponding message to be sent; wherein the message to be sent contains at least iFIT information and a data packet;

[0007] A probe message is constructed for the device to be probed based on the iFIT information in the message to be sent.

[0008] The detection message is sent to the device to be detected;

[0009] Obtain the feedback message sent by the device under test based on the detection message, and determine the flow detection capability of the device under test based on the feedback message.

[0010] Further, constructing a probe message for the device to be probed based on the iFIT information in the message to be sent includes:

[0011] The detection information of the device to be detected is obtained based on the iFIT information; wherein, the detection information includes the type information, length information, and message identifier of the detection message corresponding to the device to be detected;

[0012] The detection information is inserted into the message to be sent to obtain the detection message of the device to be detected.

[0013] Further, the step of inserting the detection information into the message to be sent to obtain the detection message of the device to be detected includes:

[0014] If the message to be sent contains an SR extension header, the probe information is encapsulated in the SR extension header to obtain the probe message;

[0015] or

[0016] If the message to be sent contains an MPLS extension header, the probe information is encapsulated in the MPLS extension header to obtain the probe message;

[0017] or

[0018] The detection information is encapsulated in the data packet to obtain the detection packet.

[0019] Further, sending the probe message to the device to be probed includes:

[0020] The address information of the device to be detected is obtained based on the iFIT information;

[0021] Based on the address information and the detection direction of at least one device to be detected, the detection path of the device to be detected is determined, and the detection message is sent to the device to be detected according to the detection path.

[0022] Further, determining the flow detection capability of the device to be detected based on the feedback message includes:

[0023] Extract the iFIT probe response information from the feedback message;

[0024] The flow detection capability of the device to be detected is determined based on the iFIT detection response information.

[0025] Further, determining the flow detection capability of the device to be detected based on the iFIT detection response information includes:

[0026] The iFIT probe response information and the probe information of the device to be probed are compared to obtain the comparison result; the probe information includes the type information, length information, and message identifier of the probe message corresponding to the device to be probed;

[0027] If the comparison results are consistent, it is determined that the device to be detected has the ability to detect along the flow.

[0028] If the comparison results are inconsistent, it is determined that the device to be detected does not have the ability to detect along the flow.

[0029] According to a second aspect of this disclosure, a method for detecting flow-following detection capability is provided, applied to a device to be detected, the method comprising:

[0030] Acquire a probe message sent by the probe initiating device; wherein the probe message is determined by the probe initiating device using the method described in the first aspect above;

[0031] A feedback message is generated based on the probe message, and the feedback message is sent back to the probe initiating device.

[0032] Further, the step of generating a feedback message based on the probe message includes:

[0033] iFIT detection response information is generated based on the detection information of the device to be detected in the detection message;

[0034] The iFIT probe response information is inserted into the probe message to obtain the feedback message.

[0035] According to a third aspect of this disclosure, a detection device with flow-following detection capability is provided, disposed in a detection initiation device, the device comprising:

[0036] The first determining module is used to determine the device to be detected and the corresponding message to be sent; wherein the message to be sent includes at least iFIT information and data packets;

[0037] The construction module is used to construct a probe message for the device to be probed based on the iFIT information in the message to be sent;

[0038] The first sending module is used to send the detection message to the device to be detected;

[0039] The second determining module is used to obtain the feedback message sent by the device under test based on the detection message, and to determine the flow detection capability of the device under test based on the feedback message.

[0040] According to a fourth aspect of this disclosure, a detection device for in-flow detection capability is provided, disposed on a device to be detected, the device comprising:

[0041] An acquisition module is used to acquire a probe message sent by a probe initiating device; wherein the probe message is determined by the probe initiating device through the method described in the first aspect above;

[0042] The second sending module is used to generate a feedback message based on the probe message and send the feedback message back to the probe initiating device.

[0043] According to a fifth aspect of this disclosure, an electronic device is provided. The electronic device includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the program to implement the method described above.

[0044] According to a sixth aspect of this disclosure, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the methods described above.

[0045] According to a seventh aspect of this disclosure, a computer program product is provided. The computer program product includes a computer program that, when executed by a processor, implements the methods described above.

[0046] This disclosure provides a method, apparatus, device, medium, and product for detecting flow-following detection capability. First, a probe initiating device determines a device to be detected and a corresponding message to be sent; wherein the message to be sent includes at least iFIT information and a data packet; then, the probe initiating device constructs a probe message for the device to be detected based on the iFIT information in the message to be sent; subsequently, the probe initiating device sends the probe message to the device to be detected; finally, the probe initiating device obtains a feedback message sent by the device to be detected based on the probe message, and determines the flow-following detection capability of the device to be detected based on the feedback message.

[0047] As described above, before sending a message to be sent, the probe initiating device can construct a probe message for the device to be probed using the iFIT information in the message to be sent, and then send the probe message to the device to be probed. By receiving the feedback message sent by the device to be probed, the probe initiating device can predict in advance whether the device to be probed has the ability to follow the flow for detection, thereby avoiding service interruption caused by the device to be probed not having the ability to follow the flow for detection, and reducing invalid and unresolved traffic in the network, thereby improving network stability. Attached Figure Description

[0048] Further details, features, and advantages of this disclosure are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:

[0049] Figure 1 A flowchart of a method for detecting in-flow detection capability provided as an exemplary embodiment of this disclosure;

[0050] Figure 2 A schematic diagram of the format of a message to be sent provided for an exemplary embodiment of this disclosure;

[0051] Figure 3 A schematic diagram of a detection path provided for an exemplary embodiment of this disclosure;

[0052] Figure 4A schematic diagram of a response path provided for an exemplary embodiment of this disclosure;

[0053] Figure 5 A schematic diagram illustrating the format of a probe message provided for an exemplary embodiment of this disclosure;

[0054] Figure 6 A flowchart of a method for detecting flow detection capability provided as another exemplary embodiment of this disclosure;

[0055] Figure 7 A schematic diagram illustrating the format of a feedback message provided for an exemplary embodiment of this disclosure;

[0056] Figure 8 A flowchart of a method for detecting flow detection capability provided as another exemplary embodiment of this disclosure;

[0057] Figure 9 A schematic block diagram of the functional modules of a detection apparatus for flow detection capability provided in an exemplary embodiment of the present disclosure;

[0058] Figure 10 A schematic block diagram of the functional modules of a detection apparatus for flow detection capability provided in another exemplary embodiment of this disclosure;

[0059] Figure 11 A structural block diagram of an electronic device provided as an exemplary embodiment of this disclosure;

[0060] Figure 12 A block diagram of a computer system provided for an exemplary embodiment of this disclosure. Detailed Implementation

[0061] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.

[0062] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.

[0063] The term "comprising" and its variations as used herein are open-ended, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc., used in this disclosure are only used to distinguish different devices, modules, or units, and are not intended to limit the order of functions performed by these devices, modules, or units or their interdependencies.

[0064] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0065] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0066] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.

[0067] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.

[0068] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device. It is understood that the above notification and user authorization process is merely illustrative and does not constitute a limitation on the implementation of this disclosure; other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.

[0069] In one embodiment, such as Figure 1 As shown, a method for detecting flow-following capabilities is provided, applied to a detection initiation device, and includes the following steps:

[0070] Step 101: Determine the device to be detected and the corresponding message to be sent.

[0071] Before sending the message to be sent, the probe initiating device determines the device to be probed and the message to be sent corresponding to the device to be probed. The message to be sent contains at least iFIT information and data packets.

[0072] In one possible embodiment, the probe initiating device can determine the message to be sent corresponding to the device to be probed before sending the message to be sent. For example... Figure 2 As shown, Figure 2 An exemplary diagram of the format of the message to be sent is shown. The format of the message to be sent can be Multi-Protocol Label Switching (MPLS) encapsulation or Segment Routing (SR) encapsulation. When the format of the message to be sent is MPLS encapsulation, the message to be sent includes a Layer 2 header, an MPLS header, an MPLS extension header, a Layer 3 header, and message data, wherein the iFIT information is encapsulated in the MPLS extension header. When the format of the message to be sent is SR encapsulation, the message to be sent includes a Layer 2 header, a Layer 3 header, an SR extension header, and message data, wherein the iFIT information is encapsulated in the SR extension header. It should be noted that the format of the message to be sent can also be other formats, and the format of the message to be sent is not limited here.

[0073] Step 102: Construct a probe message for the device to be probed based on the iFIT information in the message to be sent.

[0074] Here, after the probe initiating device determines the device to be probed and the corresponding message to be sent, a probe message can be constructed for the device to be probed based on the iFIT information in the message to be sent.

[0075] In one possible embodiment, constructing a probe message for the device to be probed based on the iFIT information in the message to be sent includes the following steps:

[0076] Obtain detection information of the device to be detected based on iFIT information;

[0077] Insert the detection information into the message to be sent to obtain the detection message of the device to be detected.

[0078] Specifically, after determining the device to be probed and the corresponding message to be sent, the probe initiating device obtains the probe information of the device to be probed based on iFIT information. This probe information includes the type, length, and message identifier of the probe message corresponding to the device to be probed. For example, when the probe initiating device determines that the message to be sent is in SR encapsulation format, it obtains iFIT information from the SR extension header and, based on the iFIT information, obtains the probe information of the device to be probed. This probe information includes the type, length, and message identifier of the probe message corresponding to the device to be probed. The type information can be the type (Type) of the iFIT probe message, the length information can be the length (Length) of the iFIT probe message, and the message identifier can be the message sequence number, service flow code, timestamp, etc., of the iFIT probe message. It should be noted that the probe information may also include other content; the content of the probe information is not limited here. After obtaining the probe information of the device to be probed, the probe initiating device inserts the probe information into the message to be sent, thus obtaining the probe message of the device to be probed.

[0079] Step 103: Send the probe message to the device to be probed.

[0080] Here, after the probe initiating device constructs a probe message for the device to be probed based on the iFIT information in the message to be sent, the probe initiating device sends the probe message to the device to be probed.

[0081] In one possible embodiment, sending a probe message to the device to be probed includes the following steps:

[0082] Obtain the address information of the device to be detected based on iFIT information;

[0083] Based on the address information and the detection direction of at least one device to be detected, the detection path of the device to be detected is determined, and the detection message is sent to the device to be detected according to the detection path.

[0084] Specifically, after the probe initiating device constructs a probe packet for the target device based on the iFIT information in the packet to be sent, the probe initiating device obtains the address information of the target device based on the iFIT information. For example, when the format of the packet to be sent is SR encapsulation, the probe initiating device obtains the iFIT information from the SR extension header of the packet to be sent, and obtains the address information of the target device based on the iFIT information. After obtaining the address information of the target device based on the iFIT information, the probe initiating device determines the probe path for the target device based on the address information and the probe direction for at least one target device, and sends the probe packet to the target device according to the probe path. For example, as shown... Figure 3 As shown, Figure 3An exemplary schematic diagram of the probe path is shown. The probe initiating device is located at the head node in the network, and the device to be probed is located at the middle node or tail node in the network. When the probe initiating device determines that the address information of the device to be probed is the tail node and determines the probe direction of the tail node, the probe initiating device can determine the probe path of the device to be probed and send probe packets to the device to be probed according to the probe path.

[0085] Step 104: Obtain the feedback message sent by the device under test based on the detection message, and determine the flow detection capability of the device under test based on the feedback message.

[0086] Here, after the probe initiating device sends the probe message to the device to be probed, the probe initiating device obtains the feedback message sent by the device to be probed based on the probe message, and determines the flow detection capability of the device to be probed based on the feedback message.

[0087] In one possible embodiment, such as Figure 4 As shown, Figure 4 An exemplary response path diagram is shown. After the probe initiating device at the head node sends the probe message to the device to be probed at the tail node, the probe initiating device obtains the feedback message sent by the device to be probed based on the probe message through the response path. After obtaining the feedback message, the probe initiating device determines the flow detection capability of the device to be probed through the feedback message.

[0088] This disclosure provides a method, apparatus, device, medium, and product for detecting flow-following detection capability. First, a probe initiating device determines a device to be detected and a corresponding message to be sent; wherein the message to be sent includes at least iFIT information and a data packet; then, the probe initiating device constructs a probe message for the device to be detected based on the iFIT information in the message to be sent; subsequently, the probe initiating device sends the probe message to the device to be detected; finally, the probe initiating device obtains a feedback message sent by the device to be detected based on the probe message, and determines the flow-following detection capability of the device to be detected based on the feedback message.

[0089] As described above, before sending a message to be sent, the probe initiating device can construct a probe message for the device to be probed using the iFIT information in the message to be sent, and then send the probe message to the device to be probed. By receiving the feedback message sent by the device to be probed, the probe initiating device can predict in advance whether the device to be probed has the ability to follow the flow for detection, thereby avoiding service interruption caused by the device to be probed not having the ability to follow the flow for detection, and reducing invalid and unresolved traffic in the network, thereby improving network stability.

[0090] In one embodiment, step 102, which involves constructing a probe message for the device to be probed based on the iFIT information in the message to be sent, further includes the following steps:

[0091] If the message to be sent contains an SR extension header, the probe information is encapsulated in the SR extension header to obtain a probe message;

[0092] If the message to be sent contains an MPLS extension header, the probe information is encapsulated in the MPLS extension header to obtain a probe message;

[0093] The probe information is encapsulated in a data packet to obtain the probe packet.

[0094] Specifically, in one possible embodiment, after the probe initiating device obtains the probe information of the device to be probed based on iFIT information, it inserts the probe information into the message to be sent to obtain the probe message of the device to be probed. For example, as shown below... Figure 5 As shown, Figure 5 An exemplary schematic diagram of the probe message format is shown. When the message to be sent is in SR encapsulation format, the message to be sent contains an SR extension header. The probe information is encapsulated in the SR extension header of the message to be sent to obtain a probe message containing the probe information.

[0095] In another possible embodiment, when the message to be sent is encapsulated in MPLS format, the message to be sent includes an MPLS extension header. The probe information is encapsulated in the MPLS extension header of the message to be sent, resulting in a probe message containing the probe information.

[0096] In another possible embodiment, the probe information can also be encapsulated in the data packet of the message to be sent using the Internet Control Message Protocol (ICMP) to obtain a probe message. It should be noted that, in addition to the methods described in the three embodiments above, other methods can also be used to encapsulate the probe information. The specific encapsulation method is not limited here, and the method that can be implemented is the standard.

[0097] In this embodiment, after obtaining the probe information of the device to be probed based on iFIT information, the probe initiating device obtains a probe packet containing the probe information by inserting the probe information into the SR extension header or MPLS extension header of the packet to be sent, or by encapsulating the probe information in the data packet of the packet to be sent. The probe initiating device can select an appropriate encapsulation form to encapsulate the probe information according to the actual situation, making the flow detection method applicable to more scenarios and improving the flexibility of the detection method.

[0098] In one embodiment, such as Figure 6As shown, step 104, which determines the flow detection capability of the device to be detected based on the feedback message, also includes the following steps:

[0099] Step 601: Extract the iFIT probe response information from the feedback message.

[0100] After the probe initiating device obtains the feedback message sent by the device to be probed based on the probe message, it extracts the iFIT probe response information from the feedback message.

[0101] In one possible embodiment, exemplarily, such as Figure 7 As shown, Figure 7 An exemplary schematic diagram of the feedback message format is shown. The probe initiating device obtains the feedback message. The SR extension header of the feedback message contains iFIT probe response information. The probe initiating device extracts the iFIT probe response information contained in the SR extension header.

[0102] Step 602: Determine the flow detection capability of the device to be detected based on the iFIT detection response information.

[0103] After the probe initiating device extracts the iFIT probe response information from the feedback message, it determines the flow detection capability of the device to be probed based on the iFIT probe response information.

[0104] In one possible embodiment, determining the flow detection capability of the device to be detected based on iFIT probe response information includes the following steps:

[0105] The iFIT detection response information is compared with the detection information of the device to be detected to obtain the comparison results;

[0106] If the comparison results are consistent, it is determined that the device to be detected has the ability to detect along the flow.

[0107] If the comparison results are inconsistent, it is determined that the device to be detected does not have the ability to detect along with the flow.

[0108] Specifically, after the probe initiating device extracts the iFIT probe response information from the feedback message, it compares the iFIT probe response information with the probe information of the device to be probed, and obtains the comparison result. The probe information includes the type information, length information, and message identifier of the probe message corresponding to the device to be probed. If the comparison results of the type information, length information, and message identifier of the iFIT probe response information and the type information, length information, and message identifier of the probe message are consistent, then it is determined that the device to be probed has the capability for flow-following detection, the detection process is completed, and the probe initiating device subsequently executes normal iFIT detection. The FIT message sending process: If the comparison results of the type information, length information, and message identifier of the iFIT probe response information and the type information, length information, and message identifier of the probe message are inconsistent, it is determined that the device to be probed does not have the ability to perform flow-following detection. Subsequently, depending on whether the network service is in end-to-end detection (E2E) mode or hop-by-hop (Trace) detection mode, it is determined whether the device without iFIT capability affects the iFIT service. If it does not affect the service, the probe initiating device continues to perform normal iFIT message sending; if it does affect the service, it can report warnings to upstream devices or network management systems.

[0109] In this embodiment, firstly, the probe initiating device extracts the iFIT probe response information from the feedback message. Then, the probe initiating device obtains the comparison result by comparing the iFIT probe response information with the probe information of the device to be probed. Finally, the probe initiating device determines the flow detection capability of the device to be probed based on the comparison result, thereby improving the reliability of the flow detection capability detection method.

[0110] In one embodiment, such as Figure 8 As shown, a method for detecting flow-following capabilities is provided, applied to the device to be detected, and includes the following steps:

[0111] Step 801: Obtain the probe message sent by the probe initiating device.

[0112] Here, the probe initiating device constructs a probe message for the device to be probed based on the iFIT information in the message to be sent, and sends the probe message to the device to be probed according to the probe path. The device to be probed then obtains the probe message sent by the probe initiating device. The probe message is determined by a detection method applied to the flow detection capability of the probe initiating device; the process of obtaining the probe message will not be described in detail here.

[0113] Step 802: Generate a feedback message based on the probe message and send the feedback message back to the probe initiating device.

[0114] Here, after the device to be probed receives the probe message sent by the probe initiating device, the device to be probed generates a feedback message based on the probe message and sends the feedback message back to the probe initiating device.

[0115] In one possible embodiment, generating a feedback message based on the probe message includes the following steps:

[0116] iFIT probe response information is generated based on the probe information of the device to be probed in the probe message;

[0117] Insert the iFIT probe response information into the probe message to obtain the feedback message.

[0118] Specifically, after the device to be probed receives the probe message sent by the probe initiating device, the device to be probed parses the probe message and generates iFIT probe response information based on the probe information in the probe message. After generating the iFIT probe response information, the device to be probed inserts the iFIT probe response information into the probe message to obtain a feedback message. For example, as follows... Figure 7 As shown, Figure 7 An exemplary schematic diagram of the feedback message format is shown. After the device to be probed generates iFIT probe response information, it inserts the iFIT probe response information into the SR extension header of the probe message. The iFIT probe response information includes the type information, length information, and message identifier of the probe message corresponding to the device to be probed. After the device to be probed receives the feedback message, it sends the feedback message back to the probe initiating device. The probe initiating device can determine the flow detection capability of the device to be probed based on the iFIT probe response information in the feedback message.

[0119] In this embodiment, the device under test acquires the probe message sent by the probe initiating device, then the device under test generates a feedback message based on the probe message and sends the feedback message back to the probe initiating device. The feedback message is used by the probe initiating device to determine the flow detection capability of the device under test based on the iFIT probe response information in the feedback message. This allows the probe initiating device to know in advance whether the device under test has flow detection capability, thereby avoiding service interruption caused by the device under test not having flow detection capability. It can also reduce invalid and unresolved traffic in the network, thereby improving network stability.

[0120] In the case of dividing each functional module according to its corresponding functions, this disclosure provides a detection device for flow detection capability, which is set in the detection initiation device. The detection device for flow detection capability can be a server or a chip applied to a server. Figure 9 This is a schematic block diagram of the functional modules of a detection apparatus for flow-following detection capability provided as an exemplary embodiment of this disclosure. For example... Figure 9 As shown, the detection device for this flow-fed detection capability includes:

[0121] The first determining module 901 is used to determine the device to be detected and the corresponding message to be sent; wherein the message to be sent includes at least iFIT information and data packets;

[0122] Construction module 902 is used to construct a probe message for the device to be probed based on the iFIT information in the message to be sent;

[0123] The first sending module 903 is used to send the detection message to the device to be detected;

[0124] The second determining module 904 is used to obtain the feedback message sent by the device under test based on the detection message, and to determine the flow detection capability of the device under test based on the feedback message.

[0125] In one embodiment, the construction module 902 includes:

[0126] The first acquisition unit is used to acquire the detection information of the device to be detected based on the iFIT information; wherein, the detection information includes the type information, length information, and message identifier of the detection message corresponding to the device to be detected;

[0127] The second acquisition unit is used to insert the detection information into the message to be sent to obtain the detection message of the device to be detected.

[0128] In one embodiment, the construction module 902 includes:

[0129] The first encapsulation unit is used to encapsulate the probe information in the SR extension header if the message to be sent contains an SR extension header, thereby obtaining the probe message;

[0130] The second encapsulation unit is used to encapsulate the probe information in the MPLS extension header if the message to be sent contains an MPLS extension header, thereby obtaining the probe message.

[0131] The third encapsulation unit is used to encapsulate the detection information in the data packet to obtain the detection packet.

[0132] In one embodiment, the first transmitting module 903 includes:

[0133] The third acquisition unit is used to acquire the address information of the device to be detected based on the iFIT information;

[0134] The sending unit is configured to determine the detection path of the device to be detected based on the address information and the detection direction of at least one device to be detected, and send the detection message to the device to be detected according to the detection path.

[0135] In one embodiment, the second determining module 904 includes:

[0136] Extraction unit, used to extract iFIT probe response information from the feedback message;

[0137] The first determining unit is used to determine the flow detection capability of the device to be detected based on the iFIT detection response information.

[0138] In one embodiment, the second determining module 904 includes:

[0139] The comparison unit is used to compare the iFIT probe response information with the probe information of the device to be probed, and obtain the comparison result; the probe information includes the type information, length information, and message identifier of the probe message corresponding to the device to be probed;

[0140] The second determining unit is used to determine that the device to be detected has the ability to detect along the flow if the comparison results are consistent.

[0141] The third determining unit is used to determine that the device to be detected does not have the ability to detect along the flow if the comparison results are inconsistent.

[0142] In the case of dividing each functional module according to its corresponding functions, this disclosure also provides a detection device for flow detection capability, which is disposed on the device to be detected. The detection device for flow detection capability can be a server or a chip applied to a server. Figure 10 This is a schematic block diagram of the functional modules of a detection apparatus for flow-following detection capability provided as an exemplary embodiment of this disclosure. For example... Figure 10 As shown, the detection device for this flow-fed detection capability includes:

[0143] The acquisition module 1001 is used to acquire the probe message sent by the probe initiating device; wherein the probe message is determined by the probe initiating device through a detection method applied to the flow detection capability of the probe initiating device;

[0144] The second sending module 1002 is used to generate a feedback message based on the probe message and send the feedback message back to the probe initiating device.

[0145] In one embodiment, the second transmitting module 1002 includes:

[0146] The generation unit is used to generate iFIT detection response information based on the detection information of the device to be detected in the detection message;

[0147] The fourth acquisition unit is used to insert the iFIT probe response information into the probe message to obtain the feedback message.

[0148] This disclosure also provides an electronic device, including: at least one processor; a memory for storing processor-executable instructions; wherein the at least one processor is configured to execute the instructions to implement the methods disclosed in this disclosure.

[0149] Figure 11 This is a schematic diagram of the structure of an electronic device provided as an exemplary embodiment of this disclosure. For example... Figure 11 As shown, the electronic device 1100 includes at least one processor 1101 and a memory 1102 coupled to the processor 1101. The processor 1101 can perform the corresponding steps in the methods disclosed in the embodiments of this disclosure.

[0150] The processor 1101 described above can also be called a central processing unit (CPU), which can be an integrated circuit chip with signal processing capabilities. Each step in the method disclosed in this embodiment can be implemented by the integrated logic circuitry in the processor 1101 or by software instructions. The processor 1101 can be a general-purpose processor, a digital signal processor (DSP), an ASIC, a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this embodiment can be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules can be located in the memory 1102, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The processor 1101 reads information from the memory 1102 and, in conjunction with its hardware, completes the steps of the method described above.

[0151] Furthermore, various operations / processes according to this disclosure, implemented via software and / or firmware, can be transmitted from a storage medium or network to a computer system with a dedicated hardware architecture, such as... Figure 12 The computer system 1200 shown is equipped with the programs that constitute the software. When various programs are installed, the computer system is able to perform various functions, including functions such as those described above. Figure 12 A block diagram of a computer system provided for an exemplary embodiment of this disclosure.

[0152] Computer system 1200 is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0153] like Figure 12 As shown, the computer system 1200 includes a computing unit 1201, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1202 or a computer program loaded from a storage unit 1208 into a random access memory (RAM) 1203. The RAM 1203 may also store various programs and data required for the operation of the computer system 1200. The computing unit 1201, ROM 1202, and RAM 1203 are interconnected via a bus 1204. An input / output (I / O) interface 1205 is also connected to the bus 1204.

[0154] Multiple components in the computer system 1200 are connected to the I / O interface 1205, including: an input unit 1206, an output unit 1207, a storage unit 1208, and a communication unit 1209. The input unit 1206 can be any type of device capable of inputting information into the computer system 1200. The input unit 1206 can receive input numerical or character information and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 1207 can be any type of device capable of presenting information and may include, but is not limited to, a monitor, speaker, video / audio output terminal, vibrator, and / or printer. The storage unit 1208 may include, but is not limited to, a hard disk and an optical disk. The communication unit 1209 allows the computer system 1200 to exchange information / data with other devices via a network such as the Internet, and may include, but is not limited to, a modem, network card, infrared communication device, wireless communication transceiver, and / or chipset, such as Bluetooth™ device, WiFi device, WiMax device, cellular communication device, and / or the like.

[0155] The computing unit 1201 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 1201 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 1201 performs the various methods and processes described above. For example, in some embodiments, the methods disclosed in this disclosure can be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 1208. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 1100 via ROM 1202 and / or communication unit 1209. In some embodiments, the computing unit 1201 can be configured to perform the methods disclosed in this disclosure by any other suitable means (e.g., by means of firmware).

[0156] This disclosure also provides a computer-readable storage medium, wherein when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is able to perform the methods disclosed in this disclosure.

[0157] The computer-readable storage medium in this disclosure can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. The aforementioned computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specifically, the aforementioned computer-readable storage medium may include electrical connections based on one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0158] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0159] This disclosure also provides a computer program product, including a computer program, wherein the computer program, when executed by a processor, implements the methods disclosed in the embodiments of this disclosure.

[0160] In embodiments of this disclosure, computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof. These programming languages ​​include, but are not limited to, object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network (including a local area network (LAN) or a wide area network (WAN)), or it can be connected to an external computer.

[0161] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0162] The modules, components, or units described in the embodiments of this disclosure can be implemented in software or hardware. The names of the modules, components, or units do not necessarily constitute a limitation on the module, component, or unit itself.

[0163] The functions described above in this document can be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary hardware logic components that can be used include: field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), and so on.

[0164] The above description is merely an embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

[0165] While specific embodiments of this disclosure have been described in detail by way of example, those skilled in the art should understand that the examples are for illustrative purposes only and not intended to limit the scope of this disclosure. Those skilled in the art should understand that modifications can be made to the above embodiments without departing from the scope and spirit of this disclosure. The scope of this disclosure is defined by the appended claims.

Claims

1. A method for detecting in-flow detection capability, characterized in that, Applied to a detection initiation device, the method includes: Identify the device to be detected and the corresponding message to be sent; wherein the message to be sent contains at least iFIT information and a data packet; A probe message is constructed for the device to be probed based on the iFIT information in the message to be sent. The detection message is sent to the device to be detected; Obtain the feedback message sent by the device under test based on the detection message, and determine the flow detection capability of the device under test based on the feedback message; The step of determining the flow detection capability of the device to be detected based on the feedback message includes: Extract the iFIT probe response information from the feedback message; The iFIT probe response information is compared with the probe information of the device to be probed; the probe information includes the type information, length information, and message identifier of the probe message corresponding to the device to be probed; If the comparison result between the iFIT detection response information and the detection information is consistent, then it is determined that the device to be detected has the ability to detect along the flow. If the comparison results between the iFIT detection response information and the detection information are inconsistent, it is determined that the device to be detected does not have the ability to detect along the flow.

2. The method according to claim 1, characterized in that, The step of constructing a probe message for the device to be probed based on the iFIT information in the message to be sent includes: The detection information of the device to be detected is obtained based on the iFIT information; wherein, the detection information includes the type information, length information, and message identifier of the detection message corresponding to the device to be detected; The detection information is inserted into the message to be sent to obtain the detection message of the device to be detected.

3. The method according to claim 2, characterized in that, The step of inserting the detection information into the message to be sent to obtain the detection message of the device to be detected includes: If the message to be sent contains an SR extension header, the probe information is encapsulated in the SR extension header to obtain the probe message; or If the message to be sent contains an MPLS extension header, the probe information is encapsulated in the MPLS extension header to obtain the probe message; or The detection information is encapsulated in the data packet to obtain the detection packet.

4. The method according to claim 1, characterized in that, Sending the probe message to the device to be probed includes: The address information of the device to be detected is obtained based on the iFIT information; Based on the address information and the detection direction of at least one device to be detected, the detection path of the device to be detected is determined, and the detection message is sent to the device to be detected according to the detection path.

5. A method for detecting in-flow detection capability, characterized in that, Applied to the device to be detected, the method includes: Acquire a probe message sent by the probe initiating device; wherein the probe message is determined by the probe initiating device using the method described in any one of claims 1 to 4 above; A feedback message is generated based on the probe message, and the feedback message is sent back to the probe initiating device.

6. The method according to claim 5, characterized in that, The generation of a feedback message based on the probe message includes: iFIT detection response information is generated based on the detection information of the device to be detected in the detection message; The iFIT probe response information is inserted into the probe message to obtain the feedback message.

7. A device for detecting in-flow detection capability, characterized in that, The device, located in the detection initiation device, includes: The first determining module is used to determine the device to be detected and the corresponding message to be sent; wherein the message to be sent includes at least iFIT information and data packets; The construction module is used to construct a probe message for the device to be probed based on the iFIT information in the message to be sent; The first sending module is used to send the detection message to the device to be detected; The second determining module is used to obtain the feedback message sent by the device to be detected based on the detection message, and to determine the flow detection capability of the device to be detected based on the feedback message; The second determining module is further configured to: extract iFIT probe response information from the feedback message; The iFIT probe response information is compared with the probe information of the device to be probed; the probe information includes the type information, length information, and message identifier of the probe message corresponding to the device to be probed; If the comparison result between the iFIT detection response information and the detection information is consistent, then it is determined that the device to be detected has the ability to detect along the flow. If the comparison results between the iFIT detection response information and the detection information are inconsistent, it is determined that the device to be detected does not have the ability to detect along the flow.

8. A detection device for in-flow detection capability, characterized in that, The device, disposed on the device to be detected, includes: An acquisition module is used to acquire a probe message sent by a probe initiating device; wherein the probe message is determined by the probe initiating device using the method described in any one of claims 1 to 4. The second sending module is used to generate a feedback message based on the probe message and send the feedback message back to the probe initiating device.

9. An electronic device, characterized in that, include: At least one processor; Memory for storing the at least one processor-executable instruction; The at least one processor is configured to execute the instructions to implement the method as described in any one of claims 1-6.

10. A computer-readable storage medium, characterized in that, When the instructions in the computer-readable storage medium are executed by the processor of the electronic device, the electronic device is able to perform the method as described in any one of claims 1-6.

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

Citation Information

Patent Citations

  • Service quality detection method and device

    CN110191022A

  • Stream following detection method, device and system

    CN117527542A