CN116032854A - Identification generation method, stream following detection method and communication equipment - Google Patents

Identification generation method, stream following detection method and communication equipment Download PDF

Info

Publication number
CN116032854A
CN116032854A CN202111248557.3A CN202111248557A CN116032854A CN 116032854 A CN116032854 A CN 116032854A CN 202111248557 A CN202111248557 A CN 202111248557A CN 116032854 A CN116032854 A CN 116032854A
Authority
CN
China
Prior art keywords
flow
stream
identifier
detection
following detection
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
CN202111248557.3A
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.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
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 China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN202111248557.3A priority Critical patent/CN116032854A/en
Priority to PCT/CN2022/127740 priority patent/WO2023072158A1/en
Publication of CN116032854A publication Critical patent/CN116032854A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/31Flow control; Congestion control by tagging of packets, e.g. using discard eligibility [DE] bits

Landscapes

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

Abstract

The application provides an identifier generation method, a stream following detection method and communication equipment, wherein the identifier generation method comprises the following steps: acquiring characteristic information of a first stream; generating a stream-following detection instance, a first stream identifier and a second stream identifier based on the characteristic information of the first stream; the first stream identifier is an identifier of a first stream sent from a first address to a second address, the stream following detection instance and the first stream identifier are used for a first device to acquire stream following detection data of the first stream, the second stream identifier is an identifier of a second stream sent from the second address to the first address, and the second stream identifier is used for a second device to acquire stream following detection data of the second stream. The present application may simplify on-stream detection.

Description

Identification generation method, stream following detection method and communication equipment
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method for generating an identifier, a method for detecting a flow along with the flow, and a communication device.
Background
The stream following performance detection object is a service stream, and can detect different two-layer or three-layer service streams. The prior art obtains client-side feature information by configuring stream learning at a device: such as MAC address (Media Access Control Address, medium access control address), IP (Internet Protocol ) quintuple, etc., and client side adjustment: such as base station adjustment, base station home change, UPF (User Plane Function, user oriented function) expansion, etc., and stream-following detection is performed for streams of source address and destination address. In the SPN network (Slicing Packet Network, slice packet network), a bidirectional flow is mainly used, when a bidirectional flow is detected for a flow of a source address and a destination address, detection examples need to be deployed at the same time at two ends of the bidirectional flow, and if the number of devices at any one end is large, interaction with all devices at two ends of the bidirectional flow is required to deploy corresponding flow-following detection examples, so that the implementation of flow-following detection is complex.
Disclosure of Invention
The application provides an identification generation method, a stream following detection method and communication equipment, so as to solve the problem of complex realization of stream following detection.
In a first aspect, an embodiment of the present application provides a method for generating a identifier, including:
acquiring characteristic information of a first stream;
generating a stream-following detection instance, a first stream identifier and a second stream identifier based on the characteristic information of the first stream;
the first stream identifier is an identifier of a first stream sent from a first address to a second address, the stream following detection instance and the first stream identifier are used for a first device to acquire stream following detection data of the first stream, the second stream identifier is an identifier of a second stream sent from the second address to the first address, and the second stream identifier is used for a second device to acquire stream following detection data of the second stream.
In a second aspect, embodiments of the present application further provide a method for detecting a flow, including:
and sending the characteristic information of the first flow to a flow following detection device, wherein the characteristic information of the first flow is used for the flow following detection device to generate a flow following detection instance, a first flow identifier and a second flow identifier, the first flow identifier is an identifier of the first flow sent by a first address to a second address, the flow following detection instance and the first flow identifier are used for the first device to acquire flow following detection data of the first flow, the second flow identifier is an identifier of the second flow sent by the second address to the first address, and the second flow identifier is used for the second device to acquire the flow following detection data of the second flow.
In a third aspect, embodiments of the present application further provide a flow-following detection apparatus, including:
the first acquisition module is used for acquiring the characteristic information of the first stream;
a first generation module, configured to generate a stream-following detection instance, a first stream identifier, and a second stream identifier based on characteristic information of the first stream;
the first stream identifier is an identifier of a first stream sent from a first address to a second address, the stream following detection instance and the first stream identifier are used for a first device to acquire stream following detection data of the first stream, the second stream identifier is an identifier of a second stream sent from the second address to the first address, and the second stream identifier is used for a second device to acquire stream following detection data of the second stream.
In a fourth aspect, embodiments of the present application further provide a first device, including:
the first sending module is configured to send, to a flow-following detection device, characteristic information of a first flow, where the characteristic information of the first flow is used by the flow-following detection device to generate a flow-following detection instance, a first flow identifier, and a second flow identifier, where the first flow identifier is an identifier of the first flow sent by a first address to a second address, the flow-following detection instance and the first flow identifier are used by the first device to obtain flow-following detection data of the first flow, the second flow identifier is an identifier of the second flow sent by the second address to the first address, and the second flow identifier is used by the second device to obtain flow-following detection data of the second flow.
In a fifth aspect, embodiments of the present application further provide a communication device, including: a transceiver, a memory, a processor, and a program stored on the memory and executable on the processor; the processor is configured to read a program in the memory to implement steps in the method according to the first aspect of the embodiment of the present application; or steps in a method according to the second aspect of the embodiments of the present application.
In a sixth aspect, embodiments of the present application further provide a readable storage medium storing a program, which when executed by a processor, implements the steps of the method according to the first aspect of embodiments of the present application; or steps in a method according to the second aspect of the embodiments of the present application.
In this embodiment of the present application, an on-stream detection instance, a first stream identifier, and a second stream identifier are generated based on feature information of the first stream, where the first stream identifier is an identifier of the first stream sent from a first address to a second address, the on-stream detection instance and the first stream identifier are used for a first device to obtain on-stream detection data of the first stream, the second stream identifier is an identifier of the second stream sent from the second address to the first address, and the second stream identifier is used for a second device to obtain on-stream detection data of the second stream. Therefore, the first stream identifier can be respectively allocated to the first stream sent from the first address to the second address based on the acquired characteristic information of the first stream, and the second stream identifier can be respectively allocated to the second stream sent from the second address to the first address, namely, the forward stream and the reverse stream in the bidirectional stream are respectively allocated with the stream identifier, so that the first device and the second device can respectively realize the follow-up detection of the bidirectional stream, and the follow-up detection at two ends of the bidirectional stream is simplified.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the following description will briefly introduce the drawings that are needed in the embodiments or the description of the prior art, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort to a person skilled in the art.
Fig. 1 is a schematic flow chart of a method for generating a label according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a flow-following detection method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a flow-along detection tag according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a flow-following detection device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a first device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a communication device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another communication device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The terms "first," "second," and the like in embodiments of the present application are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Furthermore, the use of "and/or" in this application means at least one of the connected objects, such as a and/or B and/or C, is meant to encompass the 7 cases of a alone, B alone, C alone, and both a and B, both B and C, both a and C, and both A, B and C.
Referring to fig. 1, fig. 1 is a flowchart of a method for generating a label according to an embodiment of the present application, as shown in fig. 1, including the following steps:
step 101, obtaining characteristic information of the first stream.
The method for generating the identifier may be applied to a flow-following detection device, where the first flow may be sent by the first device, the flow-following detection device may be a device for detecting the performance of opening the flow-following for the service to be detected, and in practical application, the flow-following detection device may be integrated with a network manager, a controller, etc. or may be a separate device for detecting the flow-following, etc., and then the characteristic information of the first flow acquired by the flow-following detection device may be sent by the first device. The flow-following detection device may be disposed in the first device, and the flow-following detection device may directly obtain the characteristic information of the first flow from the first device.
Optionally, before the step 101 of obtaining the feature information of the first stream, the method may further include the following steps:
transmitting a stream learning instruction to the first device, wherein the stream learning instruction is used for acquiring characteristic information of the first stream;
wherein the obtaining the characteristic information of the first stream includes:
and receiving characteristic information of the first stream fed back by the first equipment.
The flow learning instruction may enable the first device to perform flow learning, so that the first device obtains feature information of the first flow, and specifically may send a flow learning instruction to the first device to instruct the first device to record message information of an entry, so that the first device obtains some header feature information required by flow detection, and reports the feature information to the flow detection device. It will be appreciated that, for the two-layer service packet, the characteristic information of the first flow may include one or more of a physical port, a source MAC address, a destination MAC address, a VLAN (Virtual Local Area Network ), etc.; for three-layer traffic messages, the characteristic information of the first flow may include one or more of a destination IP address (Internet Protocol Address ), a source IP address, DSCP (Differentiated Services Code Point ), a source port, a destination port, a VLAN, etc. For example: the flow following detection device receives the characteristic information of the service flow 1 and the characteristic information of the service flow 2 sent by the first device, where the characteristic information of the service flow 1 includes: the source IP address is AAA, the destination IP address is BBB, DSCPXXX; the characteristic information of the service flow 2 includes: the source IP address is CCC, the destination IP address is DDD, DSCPXXX.
In some embodiments, the flow-following detection device may be configured to perform flow-following detection on a bidirectional flow, and the first flow identifier and the second flow identifier may identify a forward flow and a reverse flow in the bidirectional flow, respectively.
Step 102, generating a stream-following detection instance, a first stream identifier and a second stream identifier based on the characteristic information of the first stream;
the first stream identifier is an identifier of a first stream sent from a first address to a second address, the stream following detection instance and the first stream identifier are used for a first device to acquire stream following detection data of the first stream, the second stream identifier is an identifier of a second stream sent from the second address to the first address, and the second stream identifier is used for a second device to acquire stream following detection data of the second stream.
It is understood that the first stream is a forward stream, the second stream is a reverse stream, the first address is a source address of the forward stream, the second address is a destination address of the forward stream, the first address is a destination address of the reverse stream, and the second address is a source address of the reverse stream. After the flow following detection device receives the characteristic information of the first flow, the first flow can be used as a forward flow in a bidirectional flow, a first flow identifier is allocated to the first flow, and a second flow identifier is allocated to a reverse flow of the first flow. For example: the characteristic information of the first stream includes: the Flow following detection device may assign two Flow IDs (Flow ID, flow Identity Document) of a forward Flow and a reverse Flow to the bidirectional Flow, for example, the source IP address is AAA, and assign a first Flow ID 100 to the first Flow, and assign a second Flow ID 101 to the second Flow, that is, the reverse Flow of the first Flow (the source IP address is BBB, and the destination IP address is AAA).
The first device and the second device may be devices at two ends of a bidirectional stream, the first device may be a device that transmits the first stream, and the second device may be a device that transmits the second stream, for example: when the flow-following detection example is deployed in the 5G (5 th Generation Mobile Communication Technology, fifth-generation mobile communication technology) base station backhaul scene, the detection example can be deployed at the core network side docking entrance for detecting the downlink flow of the base station; for the detection of the uplink traffic of the base station, a detection instance may be deployed at the access point at the base station side, and the first device and the second device may correspond to the core network side and the base station side at will. That is, the first device may be the core network side, and the second device may be the base station side; alternatively, the first device may be the base station side, and the second device may be the core network side.
Under the condition that the follow-up detection device is deployed in the first device, the first device can directly acquire the follow-up detection instance, the first flow identifier and the second flow identifier generated by the follow-up detection device, so that follow-up detection data of the first flow can be acquired according to the follow-up detection instance and the first flow identifier, a follow-up detection tag can be generated according to the follow-up detection instance and the second flow identifier, and the follow-up detection tag is sent to the second device, so that the second device can acquire follow-up detection data of the second flow according to the received follow-up detection tag and the locally generated follow-up detection instance, and follow-up detection of the bidirectional flow is realized.
Optionally, after generating the on-stream detection instance, the first stream identifier, and the second stream identifier based on the characteristic information of the first stream in step 102, the method may further include the steps of:
and sending the flow-following detection instance, the first flow identifier and the second flow identifier to the first device, wherein the flow-following detection instance and the first flow identifier are used for the first device to acquire flow-following detection data of the first flow, the second flow identifier is used for the first device to generate a flow-following detection tag and send the flow-following detection tag to a second device, and the flow-following detection tag is used for the second device to acquire the second flow identifier.
In some embodiments, in a case where the on-stream detection device is not deployed in the first device, by sending the on-stream detection instance, the first flow identifier, and the second flow identifier to the first device by the on-stream detection device, the first device may obtain on-stream detection data of the first flow based on the on-stream detection instance and the first flow identifier, while the first device may generate the on-stream detection tag based on the second flow identifier, and send the on-stream detection tag to the second device, so that the second device may obtain on-stream detection data of the second flow based on the on-stream detection tag and the on-stream detection instance in the second device, to implement deployment of on-stream detection instances of the first device and the second device, and on-stream detection of bidirectional flows. Optionally, after the first device acquires the stream following detection data of the first stream, the stream following detection data of the first stream may be sent to the stream following detection device; after the second device acquires the stream following detection data of the second stream, the stream following detection data of the second stream may be sent to the stream following detection device. Specifically, the first device may generate an In-band OAM (In-band operation administration and maintenance) instance according to the on-stream detection instance and the first stream identifier, and acquire on-stream detection data of the first stream using the In-band OAM instance, where the on-stream detection data may include data such as a packet loss rate, a delay, and the like. The second device may also generate a reverse flow detection instance directly according to the flow detection instance and the second flow identifier, and acquire flow detection data of the second flow using the reverse flow detection instance.
The flow-following detection tag is generated by the first device based on the second flow identifier, so that after the second device receives the flow-following detection tag, the flow-following detection tag can be parsed to obtain the second flow identifier. Further, the second device may obtain the flow-following detection data of the second flow based on the locally generated flow-following detection instance and the second flow identifier.
It will be appreciated that the second device may obtain the flow-following detection data of the second flow based on the flow-following detection instance and the second flow identifier, and the flow-following detection instance and the second flow identifier obtained by the second device may be sent by the first device in a flow-following manner, thereby simplifying the configuration of flow-following detection.
In this embodiment, the flow-following detection instance, the first flow identifier, and the second flow identifier are sent to the first device, where the flow-following detection instance and the first flow identifier are used by the first device to obtain flow-following detection data of the first flow, the second flow identifier is used by the first device to generate a flow-following detection tag and send the flow-following detection tag to the second device, and the flow-following detection tag is used by the second device to obtain the second flow identifier. The flow-following detection device sends the flow-following detection instance, the first flow identifier and the second flow identifier to the first device, so that the first device can detect the flow of the first flow, the first device can send the flow-following detection tag to the second device along with the flow, the second device can analyze the received flow-following detection identifier to obtain the second flow identifier, and the flow-following detection of the second flow is realized through the generated flow-following detection instance, so that the flow-following detection process is further simplified.
Optionally, after generating the on-stream detection instance, the first stream identifier, and the second stream identifier based on the characteristic information of the first stream in step 102, the method may further include the steps of:
transmitting the flow-along detection instance and the first flow identification to the first device;
the flow-along detection instance and the second flow identification are transmitted to a second device.
As another embodiment, the flow-following detection device may send the corresponding flow identifier and the flow-following detection instance to the first device and the second device, respectively, so that the first device may obtain flow-following detection data of the first flow, and the second device may obtain flow-following detection data of the second flow.
In this embodiment, the flow-following detection instance and the first flow identifier may be sent to the first device, and the flow-following detection instance and the second flow identifier may be sent to the second device, so that the first device and the second device may implement flow-following detection of the first flow and the second flow, respectively.
Optionally, the on-stream detection instance includes an on-stream detection enable flag of the reverse stream;
The stream following detection enabling mark of the reverse stream is used for enabling the second device to carry out stream following detection so as to acquire stream following detection data of the second stream.
Wherein the stream-following detection instance and the stream-following detection tag may be transmitted by the first device to the second device along with the first stream.
In this embodiment, the deployment of the first device and the second device concurrent detection instance is implemented by sending the concurrent detection instance to the first device and sending, by the first device, the concurrent detection instance and the concurrent detection tag to the second device, where the concurrent detection enable flag of the reverse flow is used to enable the second device to perform concurrent detection, so as to obtain concurrent detection data of the reverse flow.
In this embodiment of the present application, an on-stream detection instance, a first stream identifier, and a second stream identifier are generated based on feature information of the first stream, where the first stream identifier is an identifier of the first stream sent from a first address to a second address, the on-stream detection instance and the first stream identifier are used for a first device to obtain on-stream detection data of the first stream, the second stream identifier is an identifier of the second stream sent from the second address to the first address, and the on-stream detection instance and the second stream identifier are used for a second device to obtain on-stream detection data of the second stream. Therefore, the first stream identifier can be respectively allocated to the first stream sent from the first address to the second address based on the acquired characteristic information of the first stream, and the second stream identifier can be respectively allocated to the second stream sent from the second address to the first address, namely, the forward stream and the reverse stream in the bidirectional stream are respectively allocated with the stream identifier, so that the first device and the second device can respectively realize the follow-up detection of the bidirectional stream, and the follow-up detection at two ends of the bidirectional stream is simplified.
Optionally, the on-stream detection instance further includes a detection period;
the detection period is used for enabling the first device to acquire the flow following detection data of the first flow according to the detection period, and is used for enabling the second device to acquire the flow following detection data of the second flow according to the detection period.
The detection period may be set according to a preset time interval, and specifically may be determined according to an actual requirement of flow detection.
In this embodiment, by issuing the flow-following detection instance, the first device may obtain flow-following detection data of the first flow according to the detection period, and the second device may obtain flow-following detection data of the second flow according to the detection period.
Optionally, after generating the on-stream detection instance, the first stream identifier, and the second stream identifier based on the characteristic information of the first stream in step 102, the method further includes:
acquiring reverse flow characteristic information of the first flow and characteristic information of a second flow sent by the second device, wherein the characteristic information of the second flow comprises a flow identifier of the second flow;
and if the flow identification of the second flow is consistent with the second flow identification, deleting the characteristic information of the first flow, the characteristic information of the second flow, the reverse flow characteristic information, the follow-up flow detection instance, the first flow identification and the second flow identification, and sending an information deleting instruction to the second device, wherein the information deleting instruction is used for instructing the second device to delete the follow-up flow detection instance and the follow-up flow detection tag.
For example: the characteristic information of the reverse flow generated by the flow following detection device comprises: the source IP address is DDD, the destination IP address is CCC, and a Flow ID 201 is allocated; the received characteristic information of the service flow N comprises: the source IP address is EEE, the destination IP address is FFF, and the Flow ID 201 indicates that the characteristic information of the reverse Flow is not matched with the characteristic information of the received service Flow N, and the Flow following detection device deletes the related Flow ID, the characteristic information and the detection instance.
It is understood that the reverse flow characteristic information is generated from the characteristic information of the first flow, that is, the source address in the reverse flow characteristic information is the destination address of the first flow, and the destination address in the reverse flow characteristic information is the source address of the first flow, and whether the flow following detection data of the second flow is accurate or not can be determined by comparing whether the reverse flow characteristic information matches the characteristic information of the second flow sent by the second device.
If the flow identifier of the second flow is consistent with the flow identifier of the second flow, and if the reverse flow characteristic information and the characteristic information of the second flow do not match, in some embodiments, if the first device and the second device have completed flow-following detection, that is, the flow-following detection device has acquired flow-following detection data of the first flow and flow-following detection data of the second flow, then the flow-following detection data of the first flow and the flow-following detection data of the second flow need to be deleted; correspondingly, the second device also needs to delete the stream following detection data of the second stream acquired by the second device based on the received information deleting instruction.
Optionally, if the flow identifier of the second flow is consistent with the flow identifier of the second flow, the second flow may be determined to be the reverse flow corresponding to the first flow if the reverse flow characteristic information is matched with the characteristic information of the second flow, so that the first device may obtain, based on the follow-up detection instance and the first flow identifier, follow-up detection data of the first flow, and the second device may obtain, based on the follow-up detection instance and the follow-up detection tag, follow-up detection data of the second flow, where the follow-up detection data of the second flow is the reverse flow follow-up detection data of the first flow, so as to implement follow-up detection of the first flow and the second flow. For example: the characteristic information of the reverse flow generated by the flow following detection device comprises: the source IP address is BBB, the destination IP address is AAA, and a Flow ID 101 is allocated; the received characteristic information of the service flow N comprises: the source IP address is BBB, the destination IP address is AAA, and the Flow ID 101 indicates that the characteristic information of the reverse Flow matches the characteristic information of the received traffic Flow N.
Referring to fig. 2, fig. 2 is a flow chart of a method for detecting a flow according to an embodiment of the present application, as shown in fig. 2, including the following steps:
Step 201, sending characteristic information of a first flow to a flow following detection device, where the characteristic information of the first flow is used by the flow following detection device to generate a flow following detection instance, a first flow identifier and a second flow identifier, the first flow identifier is an identifier of the first flow sent by a first address to a second address, the flow following detection instance and the first flow identifier are used by the first device to obtain flow following detection data of the first flow, the second flow identifier is an identifier of the second flow sent by the second address to the first address, and the second flow identifier is used by the second device to obtain flow following detection data of the second flow.
Optionally, after the sending the characteristic information of the first stream to the on-stream detection device in step 201, the method may further include the following steps:
acquiring the stream following detection instance, the first stream identifier and the second stream identifier;
stream-following detection data of the first stream is acquired based on the stream-following detection instance and the first stream identifier.
Optionally, after the acquiring the on-stream detection instance, the first flow identifier and the second flow identifier, the method may further include the following steps:
and generating a flow-following detection tag, and sending the flow-following detection tag to second equipment, wherein the flow-following detection tag comprises the second flow identifier.
Optionally, as another embodiment, optionally, after the sending, in step 201, the characteristic information of the first stream to the on-stream detection device, the method may further include the following steps:
acquiring the stream following detection instance and the first stream identifier sent by the stream following detection device;
stream-following detection data of the first stream is acquired based on the stream-following detection instance and the first stream identifier.
It may be understood that, in the case where the flow-following detection device sends the flow-following detection instance and the first flow identifier to the first device and sends the flow-following detection instance and the second flow identifier to the second device, respectively, the first device may directly obtain flow-following detection data of the first flow based on the flow-following detection instance and the first flow identifier, and correspondingly, the second device may directly obtain flow-following detection data of the second flow based on the flow-following detection instance and the second flow identifier.
Optionally, the flow-along detection tag includes a flow-along detection enable flag of the second flow;
the stream following detection enabling mark of the second stream is used for enabling the second device to carry out stream following detection so as to acquire stream following detection data of the second stream.
Optionally, the on-stream detection instance further includes a detection period;
the detection period is used for enabling the first device to acquire the flow following detection data of the first flow according to the detection period, and is used for enabling the second device to acquire the flow following detection data of the second flow according to the detection period.
Optionally, before the sending the characteristic information of the first stream to the on-stream detection device in step 201, the method may further include the following steps:
acquiring a stream learning instruction;
and acquiring the characteristic information of the first stream based on the stream learning instruction, and sending the characteristic information of the first stream to the stream following detection equipment.
It should be noted that, as an implementation manner of the first device corresponding to the embodiment shown in fig. 1, a specific implementation manner of the first device may refer to a related description in the embodiment shown in fig. 1, and in order to avoid repetition, a description is omitted here.
The various optional implementations described in the embodiments of the present application may be implemented in combination with each other without collision with each other, or may be implemented separately, which is not limited to the embodiments of the present application.
For ease of understanding, the specific embodiments are as follows:
the embodiment of the application provides a flow-following detection system, which comprises the following components: a flow-along detection device, an inlet device, and an outlet device, wherein the flow-along detection device may perform the steps of:
The flow following detection equipment has the capability of enabling flow learning at the equipment inlet, enables the inlet equipment to conduct flow learning, and receives service flow characteristic information reported by the inlet equipment;
for the two-layer service message, the characteristic information may include one or more of a physical port, a source MAC address, a destination MAC address, a VLAN, etc.; for three-layer traffic messages, the characteristic information may include one or more of destination IP address, source IP address, DSCP (Differentiated Services Code Point ), source port, destination port, VLAN, etc.
The stream following detection device decides to issue a stream following detection policy according to the service stream characteristic information reported by the inlet device, for example: for the strategy of extracting the source address and the destination address, the information of forward and reverse characteristics in the service Flow, such as the source MAC address, the destination MAC address, the source IP address, the destination IP address and the like, can be applied, and two Flow identifiers (Flow ID, flow Identity Document) of forward Flow identification and reverse Flow identification are allocated for the bidirectional Flow;
the on-stream detection device assigns a forward stream identifier and a reverse stream identifier to the ingress device and configures an on-stream detection instance. Examples of the stream following detection include a detection period, a detection object (packet loss detection or delay measurement), a detection policy, and the like, and a reverse stream following detection enable flag, a reverse stream detection object (packet loss detection or delay measurement), a reverse stream detection period, and the like.
Optionally, the flow following detection device may further verify consistency of the feature information reported by the outlet device and the generated reverse flow feature information according to key information in the feature information reported by the outlet device, where the generated reverse flow feature information is generated based on the feature information reported by the inlet device;
if the verification is successful, the stream following detection is normally carried out;
if the verification fails, deleting the local related flow identification, the related characteristic information and the detection instance, and sending an information deleting instruction to the outlet equipment to instruct the outlet equipment to delete the reverse flow identification and the reverse flow detection instance.
Wherein the inlet device may perform the steps of:
the method comprises the steps that an inlet device receives a stream learning command configured by a stream following detection device, and records some message header characteristic information required by stream following detection in message information of an inlet in response to the stream learning command;
the inlet device reports the characteristic information to the stream following detection device;
the ingress device receives a stream-following detection instance and two stream identifiers (a forward stream identifier and a reverse stream identifier) configured by the stream-following detection device, generates an In-band OAM instance on a forwarding plane of the ingress device according to the forward stream identifier, and generates a stream-following detection tag on a forwarding plane of the device, carrying a reverse stream-following related tag, wherein the reverse stream-following related tag comprises a reverse stream identifier, a reverse stream learning enabling mark, a period and the like. Transmitting the flow-following detection label to the outlet equipment along with the flow;
The ingress device obtains the downstream detection data of the forward flow based on the In-band OAM instance, and reports the downstream detection data of the forward flow to the downstream detection device.
Wherein the outlet device may perform the steps of:
the outlet equipment receives the stream-following detection label and analyzes the stream-following detection label to obtain a reverse stream identifier;
enabling flow learning of the outlet equipment through reverse flow identification, recording characteristic information, and reporting the characteristic information to the flow following detection equipment;
the outlet device enables the reverse flow detection instance through the reverse flow follow-up flow detection enabling mark to obtain follow-up flow detection data of the reverse flow, and reports the follow-up flow detection data of the reverse flow to the follow-up flow detection device.
Optionally, if the exit device receives the information deleting instruction sent by the stream detection device, the exit device responds to the information deleting instruction to delete the received reverse stream identifier, the reverse stream detection instance and the like.
In the embodiment of the application, the flow following detection device distributes forward flow identification, reverse flow identification and detection examples for the bidirectional flow according to the characteristic information reported by the inlet device, and sends the forward flow identification, the reverse flow identification and the detection examples to the inlet device, and the inlet device can carry out flow following detection according to the detection examples configured by the flow following detection device and the forward flow identification to obtain flow following detection data of the forward flow; meanwhile, the inlet device can send the detection instance and the flow following detection label generated based on the reverse flow identification to the outlet device, and the outlet device performs flow following detection according to the detection instance and the reverse flow identification obtained by analyzing the flow following detection label, so as to obtain flow following detection data of the reverse flow. The flow following detection device obtains flow following detection data of the bidirectional flow by obtaining flow following detection data of the forward flow reported by the inlet device and flow following detection data of the reverse flow reported by the outlet device.
As shown in fig. 3, the L and D bit marks of the stream instruction header and the extended stream instruction header (FIH extension) in the stream detection tag are packet loss measurement dye marks and delay measurement dye marks; the extended stream instruction header (FIH extension) carries reverse stream identification (Flow ID), L and D bits, reverse stream following stream detection enable flag, detection period, and the like.
Specifically, as shown in fig. 3, the expansion tag part includes:
the extension Label 15 (extension Label 15) is used for representing the follow-up extension head;
the guide tag (FII) section includes: the guide label MPLS (Multi-Protocol Label Switching, multiprotocol label switching) reserves labels (0-15), the content of the flow instruction head is shown later, and the TC (Traffic Control), S (Stack bottom) and TTL (Time to Live) fields of the guide label accord with the definition of the MPLS labels;
the stream instruction header (FIH) section includes:
the stream instruction head carries basic information for in-band stream detection, including information such as stream ID, dyeing indication bit, type indication, etc.:
flow identification (Flow ID): bits 0-19 (bit 0-19) for uniquely identifying a traffic stream, the Flow ID needs to be unique across the entire network within the detection domain. The SPN network element performs Flow identification based on the Flow ID.
Packet loss Flag (L Flag): loss Flag, packet Loss measurement staining marker.
Delay Flag (dflag): delay Flag, time Delay measurement dye Flag, 1 indicates that time Delay is required to be measured, and 0 indicates that time Delay is not required to be measured.
Reserved bit (R): bits are reserved.
S/R: if the guide label FII is the stack bottom, setting 1 for reserving R by default; if the boot label is a non-stack bottom, it is the S label.
Type indication (Next Header): this field indicates whether or not the extension header is carried, the use of the extension header, and the like.
The extended stream instruction header (FIH extension) section includes:
flow identification extension: bits 0-19 (bit 0-bit 19) for uniquely identifying a traffic stream, carrying a reverse traffic stream ID;
packet loss Flag (L Flag): loss Flag, packet Loss measurement staining mark;
delay Flag (dflag): delay Flag, time Delay measurement dyeing mark, 1 indicates that time Delay is required to be measured, and 0 indicates that time Delay is not required to be measured;
r: reserved bits;
S/R: if the guide label is the stack bottom, the guide label is reserved with R and default to be 1; if the guide label is at the non-stack bottom, the guide label is an S mark;
reserved (Reserved): bit reserved bit reserves future expansion use;
a bit28 (bit 28) indicating a reverse stream following stream detection enable flag;
period (Period): bits 29-31 (bits 29-31) represent the reverse stream detection period. For example, 0 indicates a reservation, 1 indicates 1s,2 indicates 10s, etc.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a flow-following detection device according to an embodiment of the present application. As shown in fig. 4, the follow-up flow detection apparatus 400 includes:
a first obtaining module 401, configured to obtain feature information of a first stream;
a first generating module 402, configured to generate a flow-following detection instance, a first flow identifier, and a second flow identifier based on the characteristic information of the first flow;
the first stream identifier is an identifier of a first stream sent from a first address to a second address, the stream following detection instance and the first stream identifier are used for a first device to acquire stream following detection data of the first stream, the second stream identifier is an identifier of a second stream sent from the second address to the first address, and the second stream identifier is used for a second device to acquire stream following detection data of the second stream.
Optionally, the flow-following detection apparatus 400 may further include:
the second sending module is configured to send the flow-following detection instance, the first flow identifier and the second flow identifier to the first device, where the second flow identifier is used for the first device to generate a flow-following detection tag and send the flow-following detection tag and the flow-following detection instance to the second device, and the flow-following detection instance and the flow-following detection tag are used for the second device to obtain the second flow identifier.
Optionally, the flow-following detection apparatus 400 may further include:
a third sending module, configured to send the flow-following detection instance and the first flow identifier to the first device;
and the fourth sending module is used for sending the stream following detection instance and the second stream identifier to the second equipment.
Optionally, the flow-following detection apparatus 400 may further include:
a first obtaining module, configured to obtain reverse flow characteristic information of the first flow, and characteristic information of a second flow sent by the second device, where the characteristic information of the second flow includes a flow identifier of the second flow;
the first deleting module is configured to delete, if the flow identifier of the second flow is consistent with the second flow identifier, the characteristic information of the first flow, the characteristic information of the second flow, the characteristic information of the reverse flow, the flow-following detection instance, the first flow identifier and the second flow identifier, and send an information deleting instruction to the second device, where the information deleting instruction is used to instruct the second device to delete the flow-following detection instance and the second flow identifier.
Optionally, the flow-along detection instance includes a flow-along detection enable flag of the second flow;
the stream following detection enabling mark of the second stream is used for enabling the second device to carry out stream following detection so as to acquire stream following detection data of the second stream.
Optionally, the on-stream detection instance further includes a detection period;
the detection period is used for enabling the first device to acquire the flow following detection data of the first flow according to the detection period, and is used for enabling the second device to acquire the flow following detection data of the second flow according to the detection period.
Optionally, the flow-following detection apparatus 400 may further include:
a fifth sending module, configured to send a stream learning instruction to the first device, where the stream learning instruction is used to obtain feature information of the first stream;
wherein the obtaining the characteristic information of the first stream includes:
and receiving characteristic information of the first stream fed back by the first equipment.
The flow following detection device 400 can implement each process of the method embodiment of fig. 1 in the embodiment of the present application, and achieve the same beneficial effects, and for avoiding repetition, a detailed description is omitted here.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a first device according to an embodiment of the present application. As shown in fig. 5, the first apparatus 500 includes:
A first sending module 501, configured to send, to a flow-following detection device, characteristic information of a first flow, where the characteristic information of the first flow is used by the flow-following detection device to generate a flow-following detection instance, a first flow identifier, and a second flow identifier, where the first flow identifier is an identifier of the first flow sent by a first address to a second address, the flow-following detection instance and the first flow identifier are used by the first device to obtain flow-following detection data of the first flow, and the second flow identifier is an identifier of the second flow sent by the second address to the first address, and the second flow identifier is used by the second device to obtain flow-following detection data of the second flow.
Optionally, the first device 500 may further include:
the first receiving module is used for acquiring the stream following detection instance, the first stream identifier and the second stream identifier;
and the second acquisition module is used for acquiring the stream following detection data of the first stream based on the stream following detection instance and the first stream identifier.
Optionally, the first device 500 may further include:
and the second generation module is used for generating a flow-following detection tag and sending the flow-following detection tag to second equipment, wherein the flow-following detection tag comprises the second flow identifier.
Optionally, the flow-along detection tag includes a flow-along detection enable flag of the second flow;
the stream following detection enabling mark of the second stream is used for enabling the second device to carry out stream following detection so as to acquire stream following detection data of the second stream.
Optionally, the flow-following detection tag further comprises a detection period;
the detection period is used for enabling the first device to acquire the flow following detection data of the first flow according to the detection period, and is used for enabling the second device to acquire the flow following detection data of the second flow according to the detection period.
Optionally, the first device 500 may further include:
the third receiving module is used for acquiring a stream learning instruction;
and a fourth acquisition module, configured to acquire the feature information of the first stream based on the stream learning instruction, and send the feature information of the first stream to the stream following detection device.
The first device 500 can implement the processes of the method embodiment of fig. 2 in the embodiment of the present application, and achieve the same beneficial effects, and for avoiding repetition, a detailed description is omitted here.
The embodiment of the application also provides communication equipment. Since the principle of the communication device for solving the problem is similar to that of the method for generating the identifier shown in fig. 1 in the embodiment of the present application, the implementation of the communication device may refer to the implementation of the method, and the repetition is not repeated. As shown in fig. 6, a communication device according to an embodiment of the present application includes: the first processor 600 is configured to read the program in the first memory 620, and perform the following procedures:
Acquiring characteristic information of a first stream;
generating a stream-following detection instance, a first stream identifier and a second stream identifier based on the characteristic information of the first stream;
the first stream identifier is an identifier of a first stream sent from a first address to a second address, the stream following detection instance and the first stream identifier are used for a first device to acquire stream following detection data of the first stream, the second stream identifier is an identifier of a second stream sent from the second address to the first address, and the second stream identifier is used for a second device to acquire stream following detection data of the second stream.
Wherein in fig. 6, a bus architecture may comprise any number of interconnected buses and bridges, and in particular one or more processors represented by first processor 600 and various circuits of a memory represented by first memory 620, are chained together. The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are well known in the art and, therefore, will not be described further herein. The bus interface provides an interface. The first transceiver 610 may be a plurality of elements, i.e., include a transmitter and a transceiver, providing a means for communicating with various other apparatus over a transmission medium. The first processor 600 is responsible for managing the bus architecture and general processing, and the first memory 620 may store data used by the first processor 600 in performing operations.
Optionally, the first processor 600 is further configured to read the program in the first memory 620, and perform the following steps:
transmitting, by a first transceiver 610, the on-stream detection instance, the first stream identification, and the second stream identification to the first device, the second stream identification for the first device to generate an on-stream detection tag and transmit the on-stream detection tag and the on-stream detection instance to a second device, the on-stream detection instance and the on-stream detection tag for the second device to obtain the second stream identification;
a first transceiver 610 for receiving and transmitting data under the control of the first processor 600.
Optionally, the first processor 600 is further configured to read the program in the first memory 620, and perform the following steps:
transmitting the flow-along detection instance and the first flow identification to the first device via a first transceiver 610;
the flow-along detection instance and the second flow identification are transmitted to a second device via the first transceiver 610.
Optionally, the first processor 600 is further configured to read the program in the first memory 620, and perform the following steps:
acquiring reverse flow characteristic information of the first flow and characteristic information of a second flow sent by the second device, wherein the characteristic information of the second flow comprises a flow identifier of the second flow;
And if the flow identifier of the second flow is consistent with the second flow identifier, deleting the characteristic information of the first flow, the characteristic information of the second flow, the reverse flow characteristic information, the follow-up flow detection instance, the first flow identifier and the second flow identifier, and sending an information deleting instruction to the second device through the first transceiver 610, wherein the information deleting instruction is used for instructing the second device to delete the follow-up flow detection instance and the second flow identifier.
Optionally, the flow-along detection instance includes a flow-along detection enable flag of the second flow;
the stream following detection enabling mark of the second stream is used for enabling the second device to carry out stream following detection so as to acquire stream following detection data of the second stream.
Optionally, the on-stream detection instance further includes a detection period;
the detection period is used for enabling the first device to acquire the flow following detection data of the first flow according to the detection period, and is used for enabling the second device to acquire the flow following detection data of the second flow according to the detection period.
Optionally, the first processor 600 is further configured to read the program in the first memory 620, and perform the following steps:
Transmitting, by the first transceiver 610, a stream learning instruction to the first device, the stream learning instruction being used to obtain feature information of the first stream;
wherein the obtaining the characteristic information of the first stream includes:
characteristic information of the first stream fed back by the first device is received by the first transceiver 610.
The communication device provided in the embodiment of the present application may execute the method embodiment shown in fig. 1, and its implementation principle and technical effects are similar, and this embodiment is not repeated here.
The embodiment of the application also provides communication equipment. Since the principle of the communication device for solving the problem is similar to that of the flow-following detection method shown in fig. 2 in the embodiment of the present application, the implementation of the communication device may refer to the implementation of the method, and the repetition is not repeated. As shown in fig. 7, a communication device according to an embodiment of the present application includes: the second processor 700 is configured to read the program in the second memory 720, and perform the following procedures:
transmitting, by the second transceiver 710, characteristic information of a first flow to a flow-following detection device, where the characteristic information of the first flow is used by the flow-following detection device to generate a flow-following detection instance, a first flow identifier, and a second flow identifier, where the first flow identifier is an identifier of the first flow transmitted by a first address to a second address, the flow-following detection instance and the first flow identifier are used by the first device to obtain flow-following detection data of the first flow, and the second flow identifier is an identifier of the second flow transmitted by the second address to the first address, and the second flow identifier is used by the second device to obtain flow-following detection data of the second flow;
A second transceiver 710 for receiving and transmitting data under the control of the second processor 700.
Wherein in fig. 7, the bus architecture may comprise any number of interconnected buses and bridges, and in particular one or more processors represented by the second processor 700 and various circuits of the memory represented by the second memory 720, are linked together. The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are well known in the art and, therefore, will not be described further herein. The bus interface provides an interface. The second transceiver 710 may be a plurality of elements, i.e. comprise a transmitter and a transceiver, providing a means for communicating with various other apparatus over a transmission medium. The second processor 700 is responsible for managing the bus architecture and general processing, and the second memory 720 may store data used by the second processor 700 in performing operations.
Optionally, the second processor 700 is further configured to read the program in the second memory 720, and perform the following steps:
acquiring the stream following detection instance, the first stream identifier and the second stream identifier;
stream-following detection data of the first stream is acquired based on the stream-following detection instance and the first stream identifier.
Optionally, the second processor 700 is further configured to read the program in the second memory 720, and perform the following steps:
a stream-on-stream detection tag is generated and transmitted to a second device via a second transceiver 710, the stream-on-stream detection tag including the second stream identification, and the stream-on-stream detection instance.
Optionally, the flow-along detection tag includes a flow-along detection enable flag of the second flow;
the stream following detection enabling mark of the second stream is used for enabling the second device to carry out stream following detection so as to acquire stream following detection data of the second stream.
Optionally, the flow-following detection tag further comprises a detection period;
the detection period is used for enabling the first device to acquire the flow following detection data of the first flow according to the detection period, and is used for enabling the second device to acquire the flow following detection data of the second flow according to the detection period.
Optionally, the second processor 700 is further configured to read the program in the second memory 720, and perform the following steps:
acquiring a stream learning instruction;
the characteristic information of the first stream is acquired based on the stream learning instruction, and is transmitted to the stream following detection apparatus through the second transceiver 710.
The communication device provided in the embodiment of the present application may execute the method embodiment shown in fig. 2, and its implementation principle and technical effects are similar, and this embodiment is not repeated here.
The embodiments of the present application further provide a readable storage medium, configured to store a program, where the program when executed by a processor implements each process of any one of the method embodiments shown in fig. 1 or fig. 2, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
In the several embodiments provided in this application, it should be understood that the disclosed methods and apparatus may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units 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, which may be in electrical, mechanical or other form.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may be physically included separately, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform part of the steps of the transceiving method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
While the foregoing is directed to the preferred embodiments of the present application, it should be noted that modifications and adaptations to those embodiments may occur to one skilled in the art and that such modifications and adaptations are intended to be comprehended within the scope of the present application without departing from the principles set forth herein.

Claims (17)

1. A method of generating a logo, comprising:
acquiring characteristic information of a first stream;
generating a stream-following detection instance, a first stream identifier and a second stream identifier based on the characteristic information of the first stream;
the first stream identifier is an identifier of a first stream sent from a first address to a second address, the stream following detection instance and the first stream identifier are used for a first device to acquire stream following detection data of the first stream, the second stream identifier is an identifier of a second stream sent from the second address to the first address, and the second stream identifier is used for a second device to acquire stream following detection data of the second stream.
2. The method of claim 1, wherein after generating the flow-along detection instance, the first flow identification, and the second flow identification based on the characteristic information of the first flow, the method further comprises:
and sending the flow-following detection instance, the first flow identifier and the second flow identifier to the first device, wherein the second flow identifier is used for the first device to generate a flow-following detection tag and send the flow-following detection tag to the second device, and the flow-following detection tag is used for the second device to acquire the second flow identifier.
3. The method of claim 1, wherein after generating the flow-along detection instance, the first flow identification, and the second flow identification based on the characteristic information of the first flow, the method further comprises:
transmitting the flow-along detection instance and the first flow identification to the first device;
the flow-along detection instance and the second flow identification are transmitted to a second device.
4. A method according to any one of claims 1 to 3, wherein after the generating a flow-along detection instance, a first flow identity and a second flow identity based on the characteristic information of the first flow, the method further comprises:
acquiring reverse flow characteristic information of the first flow and characteristic information of a second flow sent by the second device, wherein the characteristic information of the second flow comprises a flow identifier of the second flow;
and if the flow identification of the second flow is consistent with the second flow identification, deleting the characteristic information of the first flow, the characteristic information of the second flow, the reverse flow characteristic information, the follow-up flow detection instance, the first flow identification and the second flow identification if the characteristic information of the reverse flow is not matched with the characteristic information of the second flow, and sending an information deleting instruction to the second equipment, wherein the information deleting instruction is used for instructing the second equipment to delete the follow-up flow detection instance and the second flow identification.
5. A method according to any one of claims 1 to 3, wherein the flow-along detection instance comprises a flow-along detection enable flag of the second flow;
the stream following detection enabling mark of the second stream is used for enabling the second device to carry out stream following detection so as to acquire stream following detection data of the second stream.
6. The method of claim 5, wherein the on-stream detection instance further comprises a detection period;
the detection period is used for enabling the first device to acquire the flow following detection data of the first flow according to the detection period, and is used for enabling the second device to acquire the flow following detection data of the second flow according to the detection period.
7. A method according to any one of claims 1 to 3, wherein prior to said obtaining the characteristic information of the first stream, the method further comprises:
transmitting a stream learning instruction to the first device, wherein the stream learning instruction is used for acquiring characteristic information of the first stream;
wherein the obtaining the characteristic information of the first stream includes:
and receiving characteristic information of the first stream fed back by the first equipment.
8. A method of on-stream detection, comprising:
And sending the characteristic information of the first flow to a flow following detection device, wherein the characteristic information of the first flow is used for the flow following detection device to generate a flow following detection instance, a first flow identifier and a second flow identifier, the first flow identifier is an identifier of the first flow sent by a first address to a second address, the flow following detection instance and the first flow identifier are used for the first device to acquire flow following detection data of the first flow, the second flow identifier is an identifier of the second flow sent by the second address to the first address, and the second flow identifier is used for the second device to acquire the flow following detection data of the second flow.
9. The method of claim 8, wherein after the sending the characteristic information of the first stream to the on-stream detection device, the method further comprises:
acquiring the stream following detection instance, the first stream identifier and the second stream identifier;
stream-following detection data of the first stream is acquired based on the stream-following detection instance and the first stream identifier.
10. The method of claim 9, wherein after the obtaining the on-stream detection instance, the first stream identification, and the second stream identification, the method further comprises:
And generating a flow-following detection tag, and sending the flow-following detection tag to second equipment, wherein the flow-following detection tag comprises the second flow identifier.
11. The method of claim 10, wherein the flow-along detection tag comprises a flow-along detection enable flag of the second flow;
the stream following detection enabling mark of the second stream is used for enabling the second device to carry out stream following detection so as to acquire stream following detection data of the second stream.
12. The method of any of claims 8 to 11, wherein the on-stream detection tag further comprises a detection period;
the detection period is used for enabling the first device to acquire the flow following detection data of the first flow according to the detection period, and is used for enabling the second device to acquire the flow following detection data of the second flow according to the detection period.
13. The method of any of claims 8 to 11, wherein before the first device sends the characteristic information of the first stream, the method further comprises:
acquiring a stream learning instruction;
and acquiring the characteristic information of the first stream based on the stream learning instruction, and sending the characteristic information of the first stream to the stream following detection equipment.
14. A flow-along detection apparatus, comprising:
the first acquisition module is used for acquiring the characteristic information of the first stream;
a first generation module, configured to generate a stream-following detection instance, a first stream identifier, and a second stream identifier based on characteristic information of the first stream;
the first stream identifier is an identifier of a first stream sent from a first address to a second address, the stream following detection instance and the first stream identifier are used for a first device to acquire stream following detection data of the first stream, the second stream identifier is an identifier of a second stream sent from the second address to the first address, and the second stream identifier is used for a second device to acquire stream following detection data of the second stream.
15. A first device, comprising:
the first sending module is configured to send, to a flow-following detection device, characteristic information of a first flow, where the characteristic information of the first flow is used by the flow-following detection device to generate a flow-following detection instance, a first flow identifier, and a second flow identifier, where the first flow identifier is an identifier of the first flow sent by a first address to a second address, the flow-following detection instance and the first flow identifier are used by the first device to obtain flow-following detection data of the first flow, the second flow identifier is an identifier of the second flow sent by the second address to the first address, and the second flow identifier is used by the second device to obtain flow-following detection data of the second flow.
16. A communication device, comprising: a transceiver, a memory, a processor, and a computer program stored on the memory and executable on the processor; it is characterized in that the method comprises the steps of,
the processor for reading a program in a memory to implement the steps in the method of any of claims 1 to 7; or to carry out the steps of the method according to any one of claims 8 to 13.
17. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 7; or to carry out the steps of the method according to any one of claims 8 to 13.
CN202111248557.3A 2021-10-26 2021-10-26 Identification generation method, stream following detection method and communication equipment Pending CN116032854A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111248557.3A CN116032854A (en) 2021-10-26 2021-10-26 Identification generation method, stream following detection method and communication equipment
PCT/CN2022/127740 WO2023072158A1 (en) 2021-10-26 2022-10-26 Identifier generation method, in-situ flow detection method and communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111248557.3A CN116032854A (en) 2021-10-26 2021-10-26 Identification generation method, stream following detection method and communication equipment

Publications (1)

Publication Number Publication Date
CN116032854A true CN116032854A (en) 2023-04-28

Family

ID=86071057

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111248557.3A Pending CN116032854A (en) 2021-10-26 2021-10-26 Identification generation method, stream following detection method and communication equipment

Country Status (2)

Country Link
CN (1) CN116032854A (en)
WO (1) WO2023072158A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116668343B (en) * 2023-07-31 2023-10-31 新华三技术有限公司 Stream following detection method, device, equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3117334A4 (en) * 2014-03-11 2017-10-25 Vectra Networks, Inc. A method and system for generating durable host identifiers using network artifacts
US10389987B2 (en) * 2016-06-12 2019-08-20 Apple Inc. Integrated accessory control user interface
CN114553746A (en) * 2019-05-16 2022-05-27 华为技术有限公司 Message detection method, device and system

Also Published As

Publication number Publication date
WO2023072158A1 (en) 2023-05-04

Similar Documents

Publication Publication Date Title
US20220086073A1 (en) Data packet detection method, device, and system
CN101529811B (en) A method and system for verifying connectivity of multi- segment pseudo-wires by tracing
US7853832B2 (en) System and method for tracing cable interconnections between multiple systems
US20170324651A1 (en) Traceroute to return aggregated statistics in service chains
CN110326345B (en) Method, device and system for configuring network slice
CN105812197A (en) Bit-forwarding ingress router, bit-forwarding router and operation administration maintenance detection method
US20090003223A1 (en) Discovering configured tunnels between nodes on a path in a data communications network
CN106685903B (en) SDN-based data transmission method, SDN controller and SDN system
CN105765926A (en) Configurable service proxy mapping
CN101485163A (en) A method and system for optimizing resources for establishing pseudo-wires in a multiprotocol label switching network
CN106383736B (en) Ports-Extending method and apparatus
CN105592047B (en) A kind of transmission method and device of service message
EP4047888A1 (en) Method for issuing oam configuration information and control node
US20150288601A1 (en) Ip data packet sending method and label switching router
US20170310581A1 (en) Communication Network, Communication Network Management Method, and Management System
CN108965204A (en) A kind of method and device of automatic realization IOAM encapsulation
CN104954165B (en) A kind of method, equipment and the system of link analysis
CN110198229A (en) Network collocating method and device, storage medium and electronic device
WO2015184740A1 (en) Method and device for processing detection hierarchy information
CN116032854A (en) Identification generation method, stream following detection method and communication equipment
CN109729011B (en) Flow forwarding method, device and computer readable storage medium
US7668106B2 (en) Network management system, and network management method
CN107231321B (en) Method, equipment and network system for detecting forwarding path
CN110391961A (en) A kind of tunnel binding method, equipment and system
CN109150707B (en) Routing path analysis method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination