CN115174449B - Method, system, device and storage medium for transmitting stream-following detection information - Google Patents

Method, system, device and storage medium for transmitting stream-following detection information Download PDF

Info

Publication number
CN115174449B
CN115174449B CN202210602155.7A CN202210602155A CN115174449B CN 115174449 B CN115174449 B CN 115174449B CN 202210602155 A CN202210602155 A CN 202210602155A CN 115174449 B CN115174449 B CN 115174449B
Authority
CN
China
Prior art keywords
message
detection information
protocol
stream
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.)
Active
Application number
CN202210602155.7A
Other languages
Chinese (zh)
Other versions
CN115174449A (en
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.)
Hangzhou Cncr Information Technology Co ltd
Original Assignee
Hangzhou Cncr Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Cncr Information Technology Co ltd filed Critical Hangzhou Cncr Information Technology Co ltd
Priority to CN202210602155.7A priority Critical patent/CN115174449B/en
Publication of CN115174449A publication Critical patent/CN115174449A/en
Application granted granted Critical
Publication of CN115174449B publication Critical patent/CN115174449B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/12Network monitoring probes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols

Abstract

The application relates to a method, a system, a device and a storage medium for transmitting stream following detection information, wherein the method comprises the following steps: the Ingress PE node performs dyeing marking on the data stream according to the configured detection rule to generate stream-following detection information, and encapsulates the stream-following detection information to obtain message data; corresponding custom packaging structures are set according to different bearer protocols, message data are packaged and unpacked in different nodes through the custom packaging structures, different message data are obtained, wherein different message data can transmit flow-following detection information in different nodes, flow in from an Ingress PE node, flow through a Transit P node, and finally flow out of a detection domain from an Ingress PE node. According to the method and the device, the problem that the flow-following detection information is lost when the message is packaged and unpacked due to the fact that the bearing protocols of the data flow are different in the forwarding process is solved, and the integrity of the flow-following detection information in the whole transmission process is guaranteed.

Description

Method, system, device and storage medium for transmitting stream-following detection information
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method, a system, an apparatus, and a storage medium for transmitting stream-following detection information.
Background
The flow following detection technology is an important fault positioning and performance detection technology in the field of data communication, and is used for performing performance detection aiming at the actual flow of clients, and has the characteristics of good real-time performance and high precision.
In the actual flow-following detection, each detection point needs to obtain flow-following detection information in a detection domain, however, multiple different bearer protocols may be deployed in the detection domain, and the different bearer protocols encapsulate, decapsulate and repackage the data packet. Therefore, a solution is urgently needed to solve the problem of loss of the detection information with the stream.
At present, aiming at the problem of stream following detection information loss caused when a message is packaged and unpacked due to different bearer protocols in the forwarding process of a data stream in the related technology, no effective solution is proposed yet.
Disclosure of Invention
The embodiment of the application provides a method, a system, a device and a storage medium for transmitting stream-following detection information, which at least solve the problem of stream-following detection information loss caused when a message is packaged and unpacked due to different bearing protocols in the forwarding process of a data stream in the related technology.
In a first aspect, an embodiment of the present application provides a method for delivering on-stream detection information, which is applied in an on-stream detection domain, where a network element node in the detection domain includes an Ingress PE node, a Transit P node, and an Egress PE node, and the method includes:
the Ingress PE node performs dyeing marking on the data stream according to the configured detection rule to generate stream following detection information;
corresponding custom packaging structures are set according to different bearer protocols, the flow-following detection information is packaged and unpacked in different nodes through the custom packaging structures to obtain different message data, wherein the different message data can transmit the flow-following detection information in different nodes, flow in from the Ingress PE node, flow through the Transit P node and finally flow out of a detection domain from the Ingress PE node.
In some of these embodiments, the bearer protocol comprises: IPv4 protocol, IPv6 protocol, MPLS protocol, SRv protocol, GRE protocol.
In some embodiments, the setting the corresponding custom package structure according to different bearer protocols includes:
when the bearing protocol is an IPv4 protocol, adding an IPv4 Option in the IPv4Header to obtain an encapsulation structure corresponding to the IPv4 protocol, and encapsulating the stream following detection information through the encapsulation structure;
when the bearing protocol is an IPv6 protocol, an IPv6 objective Option expansion head is added in the packaging structure, an Option is added in Options of the IPv6 objective Option expansion head, a packaging structure corresponding to the IPv6 protocol is obtained, and stream following detection information is packaged through the packaging structure;
when the bearing protocol is an MPLS protocol, the flow following detection information is encapsulated behind an MPLS Header and in front of a Payload;
when the bearer protocol is SRv protocol, the flow-following detection information is encapsulated behind the route extension header and before the Payload.
In some of these embodiments, encapsulating the flow-along detection information by the encapsulation structure includes:
and packaging and determining stream following detection information through the Option Type and the TLV Type in the packaging structure, extracting the stream following detection information after confirming no error, and de-packaging corresponding content.
In a second aspect, an embodiment of the present application provides a system for delivering on-stream detection information, which is applied in an on-stream detection domain, where network element nodes in the detection domain include an Ingress PE node, a Transit P node, and an Egress PE node, and the system includes:
the generating module is used for carrying out dyeing marking on the data stream according to the configured detection rule by the Ingress PE node to generate stream following detection information;
the data transmission module is used for setting corresponding self-defined packaging structures according to different bearer protocols, packaging and unpacking the flow-following detection information in different nodes through the self-defined packaging structures to obtain different message data, wherein the different message data can transmit the flow-following detection information in different nodes, flow in from the Ingress PE node, flow through the Transit P node and finally flow out of the detection domain from the Ingress PE node.
In some of these embodiments, the bearer protocol comprises: IPv4 protocol, IPv6 protocol, MPLS protocol, SRv protocol, GRE protocol.
In some of these embodiments, the system further comprises a packaging module,
the encapsulation module is used for adding an IPv4 Option in the IPv4Header to obtain an encapsulation structure corresponding to the IPv4 protocol when the bearing protocol is the IPv4 protocol, encapsulating the stream following detection information through the encapsulation structure,
when the bearer protocol is an IPv6 protocol, an IPv6 destination Option extension head is added in the encapsulation structure, an Option is added in the Options of the IPv6 destination Option extension head to obtain an encapsulation structure corresponding to the IPv6 protocol, the stream following detection information is encapsulated by the encapsulation structure,
when the bearer protocol is an MPLS protocol, the flow-following detection information is encapsulated after the MPLS Header, before the Payload,
when the bearer protocol is SRv protocol, the flow-following detection information is encapsulated behind the route extension header and before the Payload.
In some embodiments, the encapsulation module is further configured to encapsulate and determine the flow-following detection information through the Option Type and the TLV Type in the encapsulation structure, extract the flow-following detection information after confirming that there is no error, and decapsulate the corresponding content.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements a method for transferring flow-along detection information as described in the first aspect above when the processor executes the computer program.
In a fourth aspect, embodiments of the present application provide a storage medium having stored thereon a computer program which, when executed by a processor, implements a method of communicating stream-following detection information as described in the first aspect above.
Compared with the related art, the method for transmitting the follow-up detection information is applied to a follow-up detection domain, and network element nodes in the detection domain comprise an Ingress PE node, a Transit P node and an Egress PE node. Specifically, according to configured detection rules, the Ingress PE node performs dyeing marking on the data stream to generate stream-following detection information, and encapsulates the stream-following detection information to obtain message data; corresponding custom packaging structures are set according to different bearer protocols, message data are packaged and unpacked in different nodes through the custom packaging structures, different message data are obtained, wherein different message data can transmit flow-following detection information in different nodes, flow in from an Ingress PE node, flow through a Transit P node, and finally flow out of a detection domain from an Ingress PE node.
According to the method and the device, corresponding custom packaging structures are set according to different bearer protocols, the flow-following detection information is packaged and unpacked in detection points of different nodes through the custom-set packaging structures, and data transmission is carried out, so that complete transmission of the flow-following detection information can be realized on the premise that original payloads of data messages on a data flow line are not changed, the problem that the flow-following detection information is lost when the messages are packaged and unpacked due to different bearer protocols in the forwarding process of the data flow is effectively solved, and the integrity of the flow-following detection information in the whole transmission process is guaranteed.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
FIG. 1 is a typical topology block diagram of a stream-along detection domain according to an embodiment of the present application;
FIG. 2 is a flow chart of a method of communicating on-stream detection information according to an embodiment of the present application;
FIG. 3 is a basic message encapsulation format for stream-following detection information according to an embodiment of the present application;
FIG. 4 is an encapsulation format of the flow-following detection information under the IPv4 protocol according to an embodiment of the present application;
FIG. 5 is an encapsulation format of the flow-following detection information under IPv6 protocol according to an embodiment of the present application;
fig. 6 is an encapsulation format of flow-following detection information under MPLS protocol according to an embodiment of the present application;
fig. 7 is a package format of the flow-following detection information under the SRv protocol according to an embodiment of the present application;
FIG. 8 is a block diagram of a system for communicating on-stream detection information according to an embodiment of the present application;
fig. 9 is a schematic diagram of an internal structure of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described and illustrated below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden on the person of ordinary skill in the art based on the embodiments provided herein, are intended to be within the scope of the present application. Moreover, it should be appreciated that while such a development effort might be complex and lengthy, it would nevertheless be a routine undertaking of design, fabrication, or manufacture for those of ordinary skill having the benefit of this disclosure, and thus should not be construed as having the benefit of this disclosure.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is to be expressly and implicitly understood by those of ordinary skill in the art that the embodiments described herein can be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar terms herein do not denote a limitation of quantity, but rather denote the singular or plural. The terms "comprising," "including," "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to only those steps or elements but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. The terms "connected," "coupled," and the like in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as used herein means greater than or equal to two. "and/or" describes an association relationship of an association object, meaning that there may be three relationships, e.g., "a and/or B" may mean: a exists alone, A and B exist together, and B exists alone. The terms "first," "second," "third," and the like, as used herein, are merely distinguishing between similar objects and not representing a particular ordering of objects.
The embodiment provides a method for transmitting detection information along with a stream, which is applied to a detection domain along with the stream, fig. 1 is a typical topology structure diagram of the detection domain along with the stream according to the embodiment of the application, as shown in fig. 1, network element nodes in the detection domain include an Ingress PE node, a Transit P node and an Ingress PE node, wherein the flow direction of a data stream is from left to right.
Fig. 2 is a flowchart of a method of communicating on-stream detection information according to an embodiment of the present application, as shown in fig. 2, the flowchart including the steps of:
step S201, the Ingress PE node performs dyeing marking on the data stream according to the configured detection rule to generate stream following detection information;
as shown in fig. 1, an Ingress PE node (first node) in the detection domain performs dyeing and marking on the data stream according to detection rule information configured by a user, and generates stream following detection information.
The generated stream following detection information includes a guide tag (FII), a stream instruction header (FIH), and a stream instruction extension header (FIEH). Fig. 3 is a basic packet format of the stream following detection information according to an embodiment of the present application, as shown in fig. 3, the basic packet information includes: FII (Flow Instruction Indicator) is a reserved label of 32bits and is used as a guide indication of FIH; FIH (Flow Instruction Header) for carrying basic information for Flow detection, including Flow ID (Flow ID), dye indication bit (L/D), type indication, etc.; FIEH (Flow Instruction Extension Header) is used to carry information supporting extension capabilities, and the extension fields include extension flow ID (Flow ID Ext), detection Period indication (Period), and the like.
Step S202, corresponding custom packaging structures are set according to different bearer protocols, flow-following detection data are packaged and unpacked in different nodes through the custom packaging structures, different message data are obtained, wherein the different message data transmit flow-following detection information in different nodes, flow in from an Ingress PE node, flow through a Transit P node, and finally flow out of a detection domain from an Ingress PE node.
Fig. 4 is a format of an encapsulation of the flow-following detection information under the IPv4 protocol according to an embodiment of the present application, fig. 5 is a format of an encapsulation of the flow-following detection information under the IPv6 protocol according to an embodiment of the present application, fig. 6 is a format of an encapsulation of the flow-following detection information under the MPLS protocol according to an embodiment of the present application, and fig. 7 is a format of an encapsulation of the flow-following detection information under the SRv protocol according to an embodiment of the present application. In this embodiment, corresponding custom encapsulation structures are set according to different bearer protocols, and the stream-following detection data are encapsulated and decapsulated in different nodes through the custom encapsulation structures to obtain different message data.
Preferably, as shown in fig. 4, when the bearer protocol is an IPv4 protocol, an IPv4 Option is added to the IPv4Header, so as to obtain a custom encapsulation structure corresponding to the IPv4 protocol, and the flow-following detection information is encapsulated by the encapsulation structure. When the flow-following detection information is encapsulated in IPv4 Options, the specific encapsulation and decapsulation operations are as follows: when in encapsulation, an IPv4 Option is added, the Option Type is 90, the TLV Type is 130, and the follow-up flow detection information is stored in the TLV Value; when the package is removed, the condition that the condition carries the flow-following detection information can be identified by taking the condition Type as 90, then the data in the TLV Value can be judged to be the flow-following detection information according to the TLV Type as 130, and the condition is removed after the condition that the flow-following detection information is confirmed to be correct.
As shown in fig. 5, when the bearer protocol is an IPv6 protocol, an IPv6 destination Option extension header (Destination Options Header, DOH) is added to the encapsulation structure, and an Option is added to Options of the IPv6 destination Option extension header (DOH), so as to obtain an encapsulation structure corresponding to the IPv6 protocol, and the flow-following detection information is encapsulated by the encapsulation structure. When the flow-following detection information is encapsulated in IPv6 Options, the specific encapsulation and decapsulation operations are as follows: when the package is carried out, the Option Type is 90, the TLV Type is 130, and the follow-up flow detection information is stored in the TLV Value; when the method is used for unpacking, the condition that the condition carries the stream following detection information can be identified through 90 of the condition Type in the DOH conditions, then the data in the TLV Value can be judged to be the stream following detection information according to 130 of the TLV Type, and after the error is confirmed, the stream following detection information is extracted, and then the DOH is unpacked.
As shown in fig. 6, when the bearer protocol is an MPLS protocol, the flow-following detection information is encapsulated after the MPLS Header and before the Payload. When encapsulating flow-following detection information in MPLS, the specific encapsulation and decapsulation operations are as follows: when in packaging, according to the basic message format of the stream following detection information in fig. 3, the stream following detection information is packaged after the MPLS Header and before the Payload; during unpacking, the stream-following detection information head is identified through the FII, and after FIH and FIEH information are extracted, the stream-following detection information head is unpacked.
As shown in fig. 7, when the bearer protocol is SRv protocol, the flow-following detection information is encapsulated after the route extension header and before the Payload. When the on-stream detection information is encapsulated in SRv6, the specific encapsulation and decapsulation operations are as follows: when in encapsulation, the stream following detection information is encapsulated after the route expansion header (Segment Routing Header, SRH) and before the Payload according to the stream following detection information basic message format of fig. 3; during unpacking, the stream-following detection information head is identified through the FII, and after FIH and FIEH information are extracted, the stream-following detection information head is unpacked.
The method for encapsulating and decapsulating the stream following data by the custom encapsulation structure under different bearer protocols is used for encapsulating different nodes for the stream following detection information generated in the step S201 to obtain different message data, the different message data can transmit the stream following detection information in different nodes, the stream following detection information flows in from the Ingress PE node, flows through the Transit P node, and finally flows out of the detection domain from the Ingress PE node.
As shown in fig. 1, the specific process is as follows:
s1, at an entrance of a first node, acquiring a data stream (a first message) encapsulated by a first bearer protocol. And encapsulating the generated data in the IP Options of the first message to form a second message, and forwarding the second message internally in the first node. The first bearer protocol may be an IPv4 protocol or an IPv6 protocol, and the generated first message and the generated second message may be IPv4 messages or IPv6 messages.
S2, after the second message Wen Jingdi is encapsulated in the first node equipment, a third message is formed and forwarded to an outlet of the first node. The second bearer protocol may be an MPLS protocol, a GRE protocol, a SRv protocol, etc., and the corresponding third packet may be an MPLS packet, a GRE packet, a SRv6 packet, etc.
S3, forwarding the third message at the outlet of the first node, extracting and decapsulating the stream following detection information in the third message IP Options by the device, and then repackaging the extracted stream following detection information into a message encapsulation header of the third message to form a fourth message. The first node then forwards the fourth message to the second node. It should be noted that the second bearer protocol is adopted at this time.
S4, at the entrance of the second node, a fourth message is received, the device extracts and de-encapsulates stream following detection information carried in a message encapsulation head of the fourth message, and then re-encapsulates the extracted stream following detection information into IP Options of the fourth message to form a fifth message, and forwarding inside the device is performed. It should be noted that the second bearer protocol is adopted at this time.
S5, in the second node equipment, the fifth message is encapsulated and decapsulated through the third bearer protocol to form a sixth message, and the sixth message is forwarded to an outlet of the second node. The third bearer protocol may be an MPLS protocol, a GRE protocol, a SRv protocol, etc., and the sixth packet may be an MPLS packet, a GRE packet, a SRv6 packet, etc.
And S6, forwarding the sixth message at the outlet of the second node, extracting and decapsulating the stream following detection information carried in the sixth message IP Options by the equipment, and encapsulating the extracted stream following detection information into a message encapsulation header of the sixth message again to form a seventh message. The second node then forwards the seventh message to the third node. In this case, the third bearer protocol is used.
S7, receiving a seventh message at the entrance of the third node, extracting and decapsulating stream-following detection information carried in a message encapsulation head of the seventh message by the equipment, and encapsulating the extracted stream-following detection information into IP Options of the seventh message again to form an eighth message, so as to forward the inside of the equipment. In this case, the third bearer protocol is used.
S8, in the third node equipment, the eighth message is unpacked through the fourth bearer protocol to form a ninth message, and the ninth message is forwarded to the third node outlet. The fourth bearer protocol may be an MPLS protocol, a GRE protocol, a SRv protocol, or the like, and after decapsulation, the ninth packet may be an IPv4 packet or an IPv6 packet, corresponding to the first packet.
And S9, forwarding the ninth message at the outlet of the third node, wherein the fifth bearer protocol is the same as the first bearer protocol, and the equipment extracts and decapsulates the stream-following detection information in the ninth message IP Options to form a tenth message. And the third node forwards the tenth message and leaves the detection domain.
S10, all detection points of three nodes in the detection domain can obtain the stream following detection information, the original payload of the data message on the line is not changed, and the whole stream following detection information transmission process is completed.
Through the steps S201 to S202, the embodiment sets corresponding custom encapsulation structures according to different bearer protocols, encapsulates and decapsulates the flow-following detection information in detection points of different nodes through the custom encapsulation structures, and transfers data, so that complete transfer of the flow-following detection information can be realized without changing the original payload of the data message on the data flow line, and the problem of loss of the flow-following detection information caused by different bearer protocols in the data flow forwarding process when the message is encapsulated and decapsulated is effectively solved, thereby guaranteeing the integrity of the flow-following detection information in the whole transfer process.
It should be noted that the steps illustrated in the above-described flow or flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order other than that illustrated herein.
The present embodiment also provides a system for transmitting the flow-following detection information, which is used for implementing the foregoing embodiments and the preferred embodiments, and is not described in detail. As used below, the terms "module," "unit," "sub-unit," and the like may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 8 is a block diagram of a system for delivering on-stream detection information according to an embodiment of the present application, and as shown in fig. 8, the system includes a generating module 81 and a data delivering module 82:
the generating module 81 is configured to perform dyeing marking on the data stream according to the configured detection rule by using the Ingress PE node, and generate stream following detection information; the data transfer module 82 is configured to set a corresponding custom encapsulation structure according to different bearer protocols, encapsulate and decapsulate the flow-following detection information in different nodes through the custom encapsulation structure to obtain different message data, where the different message data transfers the flow-following detection information in different nodes, flows in from the Ingress PE node, flows through the Transit P node, and finally flows out of the Ingress PE node from the detection domain.
Through the system, the corresponding custom packaging structure is set according to different bearer protocols, the flow-following detection information is packaged and unpacked in detection points of different nodes through the custom-set packaging structure, and data transmission is carried out, so that the complete transmission of the flow-following detection information can be realized on the premise that the original payload of a data message on a data flow line is not changed, the problem that the flow-following detection information is lost in the process of packaging and unpacking the message due to the different bearer protocols in the data flow forwarding process is effectively solved, and the integrity of the flow-following detection information in the whole transmission process is ensured.
It should be noted that, specific examples in this embodiment may refer to examples described in the foregoing embodiments and alternative implementations, and this embodiment is not repeated herein.
The above-described respective modules may be functional modules or program modules, and may be implemented by software or hardware. For modules implemented in hardware, the various modules described above may be located in the same processor; or the above modules may be located in different processors in any combination.
The present embodiment also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
In addition, in combination with the method for transmitting the on-stream detection information in the above embodiment, the embodiment of the application may be implemented by providing a storage medium. The storage medium has a computer program stored thereon; the computer program, when executed by a processor, implements a method of communicating on-stream detection information in any of the above embodiments.
In one embodiment, a computer device is provided, which may be a terminal. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of communicating on-stream detection information. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
In one embodiment, fig. 9 is a schematic diagram of an internal structure of an electronic device according to an embodiment of the present application, as shown in fig. 9, and an electronic device, which may be a server, may be provided, and an internal structure diagram thereof may be shown in fig. 9. The electronic device includes a processor, a network interface, an internal memory, and a non-volatile memory connected by an internal bus, where the non-volatile memory stores an operating system, computer programs, and a database. The processor is used for providing computing and control capabilities, the network interface is used for communicating with an external terminal through a network connection, the internal memory is used for providing an environment for the operation of an operating system and a computer program, the computer program is executed by the processor to realize a method for transmitting stream-following detection information, and the database is used for storing data.
It will be appreciated by those skilled in the art that the structure shown in fig. 9 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the electronic device to which the present application is applied, and that a particular electronic device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It should be understood by those skilled in the art that the technical features of the above-described embodiments may be combined in any manner, and for brevity, all of the possible combinations of the technical features of the above-described embodiments are not described, however, they should be considered as being within the scope of the description provided herein, as long as there is no contradiction between the combinations of the technical features.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (6)

1. A method for transmitting detection information along with flow, which is applied to a detection domain along with flow, wherein network element nodes in the detection domain comprise an Ingress PE node, a Transit P node and an Egress PE node, and the method is characterized in that the method comprises the following steps:
the Ingress PE node performs dyeing marking on the data stream according to the configured detection rule to generate stream following detection information;
setting corresponding custom packaging structures according to different bearer protocols, packaging and unpacking the flow-following detection information in different nodes through the custom packaging structures to obtain different message data, wherein the different message data can transmit the flow-following detection information in different nodes, flow in from the Ingress PE node, flow through the Transit P node and finally flow out of a detection domain from the Ingress PE node; the stream following detection domain is provided with a first bearing protocol, a second bearing protocol, a third bearing protocol, a fourth bearing protocol and a fifth bearing protocol;
the method comprises the steps of encapsulating and decapsulating the stream-following detection information in different nodes through the custom encapsulation structure to obtain different message data, wherein the method comprises the following steps:
at the Ingress PE
The method comprises the steps that an inlet of a node obtains a first message comprising the data flow, and the flow-following detection information is packaged in IP Options of the first message according to a first bearing protocol to form a second message;
at the Ingress PE
The second message is encapsulated in the node according to a second bearing protocol to obtain a third message;
extracting and decapsulating stream-following detection information in the third message at the outlet of the Ingress PE node, and repackaging the stream-following detection information into a message encapsulation header of the third message according to the second bearer protocol to form a fourth message;
extracting and decapsulating stream-following detection information in the fourth message at an entrance of the Transit P node, and repackaging the stream-following detection information into IP Options of the fourth message according to the second bearer protocol to form a fifth message;
in the Transit P node, the fifth message is unpacked and repackaged according to the third bearer protocol to form a sixth message;
extracting and decapsulating stream-following detection information in the sixth message at the exit of the Transit P node, and encapsulating the stream-following detection information into a message encapsulation header of the sixth message again according to the third bearer protocol to form a seventh message;
extracting and decapsulating stream-following detection information in the seventh message at an entry of the Egress PE node, and repackaging the stream-following detection information into IP Options of the seventh message according to the third bearer protocol to form an eighth message;
in the interior of the Egress PE node, the eighth message is decapsulated by the fourth bearer protocol to form a ninth message;
extracting and decapsulating stream-following detection information in the ninth message at the outlet of the Egress PE node, and repackaging the stream-following detection information into a message encapsulation header of the ninth message according to a fifth bearer protocol to form a tenth message;
the bearer protocol includes: IPv4 protocol, IPv6 protocol, MPLS protocol, SRv protocol, GRE protocol;
the setting of the corresponding custom packaging structure according to different bearer protocols includes:
when the bearing protocol is an IPv4 protocol, adding an IPv4 Option in the IPv4Header to obtain an encapsulation structure corresponding to the IPv4 protocol, and encapsulating the stream following detection information through the encapsulation structure;
when the bearing protocol is an IPv6 protocol, an IPv6 objective Option expansion head is added in the packaging structure, an Option is added in Options of the IPv6 objective Option expansion head, a packaging structure corresponding to the IPv6 protocol is obtained, and stream following detection information is packaged through the packaging structure;
when the bearing protocol is an MPLS protocol, the flow following detection information is encapsulated behind an MPLS Header and in front of a Payload;
when the bearer protocol is SRv protocol, the flow-following detection information is encapsulated behind the route extension header and before the Payload.
2. The method of claim 1, wherein encapsulating the flow-along detection information by the encapsulation structure comprises:
and packaging and determining stream following detection information through the Option Type and the TLV Type in the packaging structure, extracting the stream following detection information after confirming no error, and de-packaging corresponding content.
3. A system for delivering detection information along with a flow, which is applied in a detection domain along with the flow, wherein network element nodes in the detection domain comprise an Ingress PE node, a Transit P node and an Egress PE node, and the system is characterized in that the system comprises:
the generating module is used for carrying out dyeing marking on the data stream according to the configured detection rule by the Ingress PE node to generate stream following detection information;
the data transmission module is used for setting corresponding self-defined packaging structures according to different bearing protocols, packaging and unpacking the flow-following detection information in different nodes through the self-defined packaging structures to obtain different message data, wherein the different message data can transmit the flow-following detection information in different nodes, flow in from the Ingress PE node, flow through the Transit P node and finally flow out of a detection domain from the Ingress PE node;
the stream following detection domain is provided with a first bearing protocol, a second bearing protocol, a third bearing protocol, a fourth bearing protocol and a fifth bearing protocol;
the method comprises the steps of encapsulating and decapsulating the stream-following detection information in different nodes through the custom encapsulation structure to obtain different message data, wherein the method comprises the following steps:
at the Ingress PE
The method comprises the steps that an inlet of a node obtains a first message comprising the data flow, and the flow-following detection information is packaged in IP Options of the first message according to a first bearing protocol to form a second message;
at the Ingress PE
The second message is encapsulated in the node according to a second bearing protocol to obtain a third message;
extracting and decapsulating stream-following detection information in the third message at the outlet of the Ingress PE node, and repackaging the stream-following detection information into a message encapsulation header of the third message according to the second bearer protocol to form a fourth message;
extracting and decapsulating stream-following detection information in the fourth message at an entrance of the Transit P node, and repackaging the stream-following detection information into IP Options of the fourth message according to the second bearer protocol to form a fifth message;
in the Transit P node, the fifth message is unpacked and repackaged according to the third bearer protocol to form a sixth message;
extracting and decapsulating stream-following detection information in the sixth message at the exit of the Transit P node, and encapsulating the stream-following detection information into a message encapsulation header of the sixth message again according to the third bearer protocol to form a seventh message;
extracting and decapsulating stream-following detection information in the seventh message at an entry of the Egress PE node, and repackaging the stream-following detection information into IP Options of the seventh message according to the third bearer protocol to form an eighth message;
in the interior of the Egress PE node, the eighth message is decapsulated by the fourth bearer protocol to form a ninth message;
extracting and decapsulating stream-following detection information in the ninth message at the outlet of the Egress PE node, and repackaging the stream-following detection information into a message encapsulation header of the ninth message according to a fifth bearer protocol to form a tenth message;
the bearer protocol includes: IPv4 protocol, IPv6 protocol, MPLS protocol, SRv protocol, GRE protocol;
the system also comprises an encapsulation module, which is used for adding an IPv4 Option in the IPv4Header to obtain an encapsulation structure corresponding to the IPv4 protocol when the bearing protocol is the IPv4 protocol, encapsulating the stream following detection information through the encapsulation structure,
when the bearer protocol is an IPv6 protocol, an IPv6 destination Option extension head is added in the encapsulation structure, an Option is added in the Options of the IPv6 destination Option extension head to obtain an encapsulation structure corresponding to the IPv6 protocol, the stream following detection information is encapsulated by the encapsulation structure,
when the bearer protocol is an MPLS protocol, the flow-following detection information is encapsulated after the MPLS Header, before the Payload,
when the bearer protocol is SRv protocol, the flow-following detection information is encapsulated behind the route extension header and before the Payload.
4. The system of claim 3, wherein the system further comprises a controller configured to control the controller,
and the packaging module is also used for packaging and determining the stream following detection information through the Option Type and the TLV Type in the packaging structure, extracting the stream following detection information after confirming no error, and de-packaging corresponding content.
5. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the method of communicating stream-along detection information as claimed in any of claims 1 to 2.
6. A storage medium having stored therein a computer program, wherein the computer program is arranged to, when run, perform the method of communicating stream-along detection information of any of claims 1 to 2.
CN202210602155.7A 2022-05-30 2022-05-30 Method, system, device and storage medium for transmitting stream-following detection information Active CN115174449B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210602155.7A CN115174449B (en) 2022-05-30 2022-05-30 Method, system, device and storage medium for transmitting stream-following detection information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210602155.7A CN115174449B (en) 2022-05-30 2022-05-30 Method, system, device and storage medium for transmitting stream-following detection information

Publications (2)

Publication Number Publication Date
CN115174449A CN115174449A (en) 2022-10-11
CN115174449B true CN115174449B (en) 2024-03-26

Family

ID=83483763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210602155.7A Active CN115174449B (en) 2022-05-30 2022-05-30 Method, system, device and storage medium for transmitting stream-following detection information

Country Status (1)

Country Link
CN (1) CN115174449B (en)

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109412922A (en) * 2017-08-15 2019-03-01 华为技术有限公司 A kind of method of transmitting message, forwarding device, controller and system
CN109743340A (en) * 2019-04-04 2019-05-10 华为技术有限公司 The method and network equipment of Message processing
CN111953553A (en) * 2019-05-16 2020-11-17 华为技术有限公司 Message detection method, device and system
CN112019433A (en) * 2019-05-29 2020-12-01 华为技术有限公司 Message forwarding method and device
CN112672363A (en) * 2019-10-15 2021-04-16 华为技术有限公司 Method and device for confirming telemetry capability of stream information
WO2021093692A1 (en) * 2019-11-12 2021-05-20 中兴通讯股份有限公司 Network quality measurement method and device, server, and computer readable medium
CN113055294A (en) * 2020-12-29 2021-06-29 中兴通讯股份有限公司 Message encapsulation and decapsulation method and device, storage medium and electronic device
CN113271612A (en) * 2020-02-17 2021-08-17 华为技术有限公司 Reporting method and device for telemetering iFIT detection information along with flow information
CN113382437A (en) * 2020-03-10 2021-09-10 华为技术有限公司 Follow-up flow detection method and device
CN113556259A (en) * 2020-04-24 2021-10-26 华为技术有限公司 Message processing method and device based on flow detection
CN113660293A (en) * 2021-10-20 2021-11-16 北京工业大学 IOAM data release optimization method and system facing SRv6 cloud network
CN113765865A (en) * 2020-06-05 2021-12-07 华为技术有限公司 Message processing method, device and system
CN113824608A (en) * 2020-06-18 2021-12-21 华为技术有限公司 BIER OAM detection method, equipment and system
CN113949650A (en) * 2020-07-17 2022-01-18 华为技术有限公司 Stream following detection method and related equipment
CN114079621A (en) * 2020-08-14 2022-02-22 华为技术有限公司 OAM detection method, equipment and system
CN114301818A (en) * 2020-09-22 2022-04-08 中兴通讯股份有限公司 Service flow detection method, device, system, terminal and storage medium
CN114430386A (en) * 2020-10-14 2022-05-03 华为技术有限公司 Method and related device for detecting multicast service flow
CN114513429A (en) * 2020-10-27 2022-05-17 华为技术有限公司 Transmission method for detection message, and method and equipment for determining reverse path

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160036837A1 (en) * 2014-08-04 2016-02-04 Microsoft Corporation Detecting attacks on data centers

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109412922A (en) * 2017-08-15 2019-03-01 华为技术有限公司 A kind of method of transmitting message, forwarding device, controller and system
CN109743340A (en) * 2019-04-04 2019-05-10 华为技术有限公司 The method and network equipment of Message processing
CN111953553A (en) * 2019-05-16 2020-11-17 华为技术有限公司 Message detection method, device and system
CN112019433A (en) * 2019-05-29 2020-12-01 华为技术有限公司 Message forwarding method and device
CN112672363A (en) * 2019-10-15 2021-04-16 华为技术有限公司 Method and device for confirming telemetry capability of stream information
WO2021093692A1 (en) * 2019-11-12 2021-05-20 中兴通讯股份有限公司 Network quality measurement method and device, server, and computer readable medium
CN112866043A (en) * 2019-11-12 2021-05-28 中兴通讯股份有限公司 Network quality detection method, device, server and computer readable medium
CN113271612A (en) * 2020-02-17 2021-08-17 华为技术有限公司 Reporting method and device for telemetering iFIT detection information along with flow information
CN113382437A (en) * 2020-03-10 2021-09-10 华为技术有限公司 Follow-up flow detection method and device
CN113556259A (en) * 2020-04-24 2021-10-26 华为技术有限公司 Message processing method and device based on flow detection
CN113765865A (en) * 2020-06-05 2021-12-07 华为技术有限公司 Message processing method, device and system
CN113824608A (en) * 2020-06-18 2021-12-21 华为技术有限公司 BIER OAM detection method, equipment and system
CN113949650A (en) * 2020-07-17 2022-01-18 华为技术有限公司 Stream following detection method and related equipment
CN114079621A (en) * 2020-08-14 2022-02-22 华为技术有限公司 OAM detection method, equipment and system
CN114301818A (en) * 2020-09-22 2022-04-08 中兴通讯股份有限公司 Service flow detection method, device, system, terminal and storage medium
CN114430386A (en) * 2020-10-14 2022-05-03 华为技术有限公司 Method and related device for detecting multicast service flow
CN114513429A (en) * 2020-10-27 2022-05-17 华为技术有限公司 Transmission method for detection message, and method and equipment for determining reverse path
CN113055294A (en) * 2020-12-29 2021-06-29 中兴通讯股份有限公司 Message encapsulation and decapsulation method and device, storage medium and electronic device
CN113660293A (en) * 2021-10-20 2021-11-16 北京工业大学 IOAM data release optimization method and system facing SRv6 cloud network

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
5G承载网关键技术及发展;马培勇;《电信科学》;全文 *
Information fusion based agile streaming telemetry for intelligent traffic analytics of softwarized network;Taesang Choi;《2017 19th Asia-Pacific Network Operations and Management Symposium (APNOMS)》;20171109;全文 *
IPv6+和算力网络的探索与实践;薛强;《邮电设计技术》;20220430;全文 *
面向5G承载网络运维关键技术探讨与分析;尹远阳;《互联网天地》;20210731;全文 *
马培勇.5G承载网关键技术及发展.《电信科学》.2020,全文. *

Also Published As

Publication number Publication date
CN115174449A (en) 2022-10-11

Similar Documents

Publication Publication Date Title
US10412008B2 (en) Packet processing method, apparatus, and system
CN111510386B (en) Method and device for processing message
CN109688057A (en) The message forwarding method and device of section route network based on IPV6
CN113207192B (en) Message forwarding method and device
CN112019433B (en) Message forwarding method and device
CN107948077B (en) Method and device for forwarding data message
CN105337881A (en) Data message processing method, service node and stream guiding point
CN112787923A (en) Message processing method, device and system
CN113852550A (en) Method, device, network equipment, system and storage medium for sending message
CN107370654B (en) Pseudo wire data message encapsulation and decapsulation methods and related devices
CN105324961B (en) Gre tunneling implementation method, access point and gateway
CN114629836A (en) Data transmission method and device based on segmented routing
CN108390812A (en) Message forwarding method and device
CN115174449B (en) Method, system, device and storage medium for transmitting stream-following detection information
JP6222505B2 (en) Method and apparatus for generating input parameters
US20230216792A1 (en) Method for Generating Routing Information, Method for Sending Location Information, Method for Forwarding Packet, and Device
CN108156066B (en) Message forwarding method and device
CN112804129A (en) Message transmission method and system, VPN (virtual private network) equipment at sending end and GRE (generic routing encapsulation) splicing equipment
CN109218258B (en) Data packet transmission method and gateway equipment
CN108282404A (en) A kind of route generating method, apparatus and system
CN111010344B (en) Message forwarding method and device, electronic equipment and machine-readable storage medium
CN113055268A (en) Method, device, equipment and medium for tunnel traffic load balancing
CN113765794B (en) Data transmission method and device, electronic equipment and medium
EP4009608A1 (en) Segment routing-based data transmission method and apparatus
CN111835644B (en) Message forwarding method and switch

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
GR01 Patent grant
GR01 Patent grant