Stream-following detection method and device
By using the Traffic Class field to carry flow detection information in the IP bearer network, it solves the problems in the existing technology that equipment does not support and the entire network is difficult to upgrade, realizes unified flow detection of IPv4 and IPv6 services, and simplifies equipment upgrades. , improving detection efficiency and flexibility.
Patent Information
- Application Number
- CN202310259592.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-13
- Publication Date
- 2024-09-13
AI Technical Summary
Existing flow-based detection technology has problems such as unsupported equipment and difficulty in upgrading the entire network in existing network applications, making it difficult to implement it quickly.
By using the Traffic Class field in the outer packet header of the service flow to carry flow detection information, the flow detection of naked IP services is realized. Only the head and tail node equipment need to be upgraded to avoid occupying other fields, and IPv4 and IPv6 services are realized. Unified flow detection.
It realizes the rapid implementation of the flow-based detection solution, reduces the complexity of equipment upgrades, is suitable for end-to-end and point-by-point scenarios, and improves detection efficiency and flexibility.
Smart Images

Figure CN118646672A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a flow detection method and device. Background Art
[0002] As an IP (Internet Protocol) bearer network that connects services and users / customers, it can meet diverse SLA (Service-Level Agreement) requirements, such as ultra-large bandwidth, low latency, etc., according to the different characteristics of the services and the different demands of users / customers. With the advent of the 5G era, the large-scale application of edge cloud requires flexible and fast dynamic perception of the transmission of services in IP networks and timely optimization of traffic. However, only using traditional means such as NQA (Network Quality Analysis) or TWAMP (Tow-Way Active Measurement Protocol) can only monitor the path itself, and cannot accurately perceive the service flow path, so it is impossible to accurately and quickly perform optimization and flow adjustment.
[0003] In the network, in order to accurately obtain the actual forwarding path quality information of the service, the corresponding detection information needs to be carried and forwarded together with the service message, and the path quality needs to be monitored during the forwarding process, that is, flow detection. Generally, the flow detection technology is to carry the detection information in the extension header of the message, or to multiplex some fields of the service message. For the extension header solution, DOH (destination options header) or HBH (hop-by-hop options header) and other methods are currently commonly used. Since there are many old hardware devices in the actual existing network that do not support this solution, a large number of existing network hardware devices need to be replaced, that is, the end-to-end flow detection solution requires the upgrade of the entire network equipment, which has certain difficulties and complexities in the existing network application, which is not conducive to the rapid implementation of the flow detection solution. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a flow detection method and device, which can realize the rapid implementation of the flow detection solution.
[0005] On the one hand, an embodiment of the present invention provides a flow detection method, which is applied to a head node device in an IP bearer network, including:
[0006] Determine whether the service flow needs to be detected according to the information of the service flow to be forwarded and the pre-configuration information;
[0007] If yes, encapsulate the service flow with an outer message header to obtain a first service message, wherein a service class Traffic Class field of the outer message header carries the flow detection information;
[0008] Forward the first service message.
[0009] In some embodiments, the accompanying flow detection information occupies 2 bits.
[0010] In some embodiments, when an AND operation is performed according to the encoding of the accompanying flow detection information, when the result is 0, it indicates that the first service message needs to be subjected to packet loss detection; when the result is 1, it indicates that the first service message needs to be subjected to packet loss detection and delay detection.
[0011] In some embodiments, when packet loss detection needs to be performed on the first service message, the encoding of the accompanying flow detection information is different in the first service messages of adjacent detection periods.
[0012] The embodiment of the present invention further provides a flow detection method, which is applied to an intermediate node device in an IP bearer network. The method includes:
[0013] Receiving a first service message;
[0014] Acquire the traffic detection information of the service class Traffic Class field in the outer header of the first service message, and collect target data according to the traffic detection information;
[0015] Forward the first service message.
[0016] In some embodiments, the accompanying flow detection information occupies 2 bits.
[0017] In some embodiments, collecting target data according to the accompanying flow detection information includes:
[0018] An AND operation is performed according to the coding of the accompanying flow detection information. When the result is 0, packet loss detection is performed and packet loss detection data is collected; when the result is 1, packet loss detection and delay detection are performed and packet loss detection data and delay detection data are collected.
[0019] The embodiment of the present invention further provides a flow detection method, which is applied to an end node device in an IP bearer network. The method includes:
[0020] Receiving a first service message;
[0021] Acquire the traffic detection information of the service class Traffic Class field in the outer packet header of the first service packet, collect target data according to the traffic detection information, and report the target data to the software defined network SDN controller;
[0022] Unpack the outer message header of the first service message to obtain the original service flow, and forward the original service flow.
[0023] In some embodiments, the accompanying flow detection information occupies 2 bits.
[0024] In some embodiments, collecting target data according to the accompanying flow detection information includes:
[0025] An AND operation is performed according to the coding of the accompanying flow detection information. When the result is 0, packet loss detection is performed and packet loss detection data is collected; when the result is 1, packet loss detection and delay detection are performed and packet loss detection data and delay detection data are collected.
[0026] The embodiment of the present invention also provides a flow detection device, which is applied to a head node device in an IP bearer network, and includes a transceiver and a processor.
[0027] The processor is used to determine whether the service flow needs to be detected according to the information of the service flow to be forwarded and the pre-configuration information; if yes, encapsulate the outer message header for the service flow to obtain a first service message, and the service category Traffic Class field of the outer message header carries the detection information;
[0028] The transceiver is used to forward the first service message.
[0029] The embodiment of the present invention also provides a flow detection device, which is applied to an intermediate node device in an IP bearer network, and includes a transceiver and a processor.
[0030] The transceiver is used to receive a first service message;
[0031] The processor is used to obtain the traffic detection information of the service class Traffic Class field in the outer packet header of the first service packet, and collect the target data according to the traffic detection information;
[0032] The transceiver is also used to forward the first service message.
[0033] The embodiment of the present invention also provides a flow detection device, which is applied to a tail node device in an IP bearer network, and includes a transceiver and a processor.
[0034] The transceiver is used to receive a first service message;
[0035] The processor is used to obtain the traffic detection information of the service class Traffic Class field in the outer packet header of the first service packet, collect target data according to the traffic detection information, and report the target data to the software defined network SDN controller;
[0036] The transceiver is further used to decapsulate the outer message header of the first service message, obtain the original service flow, and forward the original service flow.
[0037] An embodiment of the present invention further provides a flow detection device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor; when the processor executes the program, the flow detection method as described above is implemented.
[0038] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the above-mentioned flow detection method are implemented.
[0039] The embodiments of the present invention have the following beneficial effects:
[0040] In the above scheme, the outer packet header encapsulated outside the service flow carries the flow detection information to implement the flow detection of the naked IP service. This embodiment can adopt a unified scheme to implement the flow detection of IPv4 and IPv6 services; this embodiment can omit the separate flow detection identification bit, and only use the Traffic Class field in the packet header to implement the flow detection without occupying additional fields. In the end-to-end flow detection scenario, only the head and tail node devices can be upgraded, which solves the problem that the end-to-end flow detection requires the upgrade of the entire network due to the occupation of other fields such as the Flow label field, and can realize the rapid implementation of the flow detection solution. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 It is a flow chart of a method for following-the-flow detection on the head node device side according to an embodiment of the present invention;
[0042] Figure 2 It is a flow chart of a flow detection method on the side of an intermediate node device according to an embodiment of the present invention;
[0043] Figure 3 Schematic diagram of a flow chart of a method for following-the-flow detection on the tail node device side according to an embodiment of the present invention;
[0044] Figure 4 This is a schematic diagram of the original service message header;
[0045] Figure 5 A schematic diagram of an outer message header according to an embodiment of the present invention;
[0046] Figure 6 It is a schematic diagram of Native IP service flow detection according to a specific embodiment of the present invention;
[0047] Figure 7 It is a flow chart of Native IP service flow detection in a specific embodiment of the present invention;
[0048] Figure 8 It is a schematic diagram of detecting the outer packet header along with the flow according to a specific embodiment of the present invention;
[0049] Fig. 9 It is a structural schematic diagram of a flow detection device according to an embodiment of the present invention;
[0050] Fig.10 It is a schematic diagram of the composition of the flow detection device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0051] In order to make the technical problems, technical solutions and advantages to be solved by the embodiments of the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0052] The existing flow detection technology is to carry the flow detection information in the extension header of the message, or to reuse some fields of the service message. For the extension header solution, DOH or HBH is currently often used. Since there are many old hardware devices in the actual network that do not support this solution, a large number of existing network hardware devices need to be replaced, which does not take advantage of open source and cost saving. If the original message of the service message is encapsulated with an outer message header and the outer encapsulation header is modified, due to the stagnation of the IPv4 standard, the existing reserved fields are difficult to support the flow detection needs; the IPv6 standard is currently being continuously promoted, but the commonly used multiplexing field method to achieve flow detection will prompt even the end-to-end flow detection solution to upgrade the entire network equipment in actual implementation. This has certain difficulties and complexities in the existing network application, which is not conducive to the rapid implementation of the flow detection solution. For example, the commonly used flow detection mechanism is based on the cross-staining mechanism. For example, packet loss detection means that in a certain detection cycle, the packet loss flag is set to 1, and in the next cycle it is set to 0. This alternation of 0 and 1 can distinguish adjacent cycles, so that the detection operation can be performed without interfering with each other. However, this solution requires a total of 3 bits for "packet loss", "delay", and "flow detection enable flag", which makes the existing fields overloaded; or it occupies other bits (such as the Flow label field) to realize the flow detection function, which requires the entire network equipment to be upgraded for adaptation.
[0053] The embodiments of the present invention provide a flow detection method and device, which can realize the rapid implementation of the flow detection solution.
[0054] The embodiment of the present invention provides a flow detection method, which is applied to the head node device in the IP bearer network, such as Figure 1 As shown, including:
[0055] Step 101: Determine whether the service flow needs to be detected according to the information of the service flow to be forwarded and the pre-configuration information;
[0056] Step 102: If yes, encapsulate the service flow into an outer message header to obtain a first service message, wherein the service class Traffic Class field of the outer message header carries the flow detection information;
[0057] Step 103: Forward the first service message.
[0058] In this embodiment, the flow detection information is carried by the outer packet header encapsulated outside the service flow to implement the flow detection of the bare IP service. This embodiment can adopt a unified solution to implement the flow detection of IPv4 and IPv6 services. This embodiment can omit a separate flow detection identification bit and implement the flow detection only by using the Traffic Class field in the packet header without occupying additional fields. In the end-to-end flow detection scenario, only the head and tail node devices can be upgraded, which solves the problem that the end-to-end flow detection requires the upgrade of the entire network due to the occupation of other fields such as the Flow label field, and can realize the rapid implementation of the flow detection solution.
[0059] In this embodiment, pre-configuration information is stored in the first node device, and the pre-configuration information indicates which routes or service flows of which service categories need to be detected with the flow. After receiving the service flow, the first node device can obtain the information of the service flow, including the route and service category of the service flow; the first node device determines whether the service flow needs to be detected with the flow according to the information of the service flow and the pre-configuration information. For example, the pre-configuration information indicates that route 1 (from node A to node C via node B) needs to be detected with the flow, and route 2 (from node A directly to node C) does not need to be detected with the flow. When the information of the service flow indicates route 1, the service flow needs to be detected with the flow; when the information of the service flow indicates route 2, the service flow does not need to be detected with the flow. For another example, the pre-configuration information indicates that service category A needs to be detected with the flow, and service category B does not need to be detected with the flow. When the information of the service flow indicates that the service category of the service flow is A, the service flow needs to be detected with the flow; when the information of the service flow indicates that the service category of the service flow is B, the service flow does not need to be detected with the flow.
[0060] In some embodiments, the accompanying flow detection information occupies 2 bits. Figure 4This is a schematic diagram of the original service message header, which includes fields such as version number (Ver), service category (Traffic Class), flow label, payload length (PayloadLength), next transmission control protocol header (Next HDR TCP), hop limit (Hop Limit), source address (Source Address), and destination address (Destination Address); Figure 5 Schematic diagram of the outer header of an embodiment of the present invention, including fields such as version number (Ver), traffic class (Traffic Class), flow label, payload length (Payload Length), next header (Next HDR), hop limit (Hop Limit), source address (SourceAddress), and destination address (Destination Address). Figure 5 As shown, the outer packet header of this embodiment can be an IPv6 outer encapsulation header, in which the Traffic Class field occupies 8 bits, and 2 bits of them can be used to carry flow detection information. In addition, the outer packet header of this embodiment is not limited to the IPv6 outer encapsulation header, and can also be SRv6 (Segment Routing v6, segment routing based on IPv6 forwarding plane) BE, SRv6 policy outer encapsulation header, etc.
[0061] In some embodiments, when an AND operation is performed according to the encoding of the accompanying flow detection information, when the result is 0, it indicates that the first service message needs to be subjected to packet loss detection; when the result is 1, it indicates that the first service message needs to be subjected to packet loss detection and delay detection.
[0062] In some cases, it is not necessary to perform on-stream detection on the service flow, but for business needs, it is necessary to encapsulate the outer message header of the service flow. In this case, the 2-bit code can be set to 00, indicating that the service flow does not need to perform on-stream detection; the 2-bit code can have a total of four coding formats: 00, 01, 10, and 11. In actual applications, on-stream detection is implemented by the "or" method, and packet loss detection is enabled by default, that is, when the 2-bit code is "or" and then "1", it means that the service message needs to perform packet loss detection in the on-stream detection; delay detection is implemented by the "and" method, that is, when the 2-bit code is "and" and then "1", it means that the service message is a message carrying timestamp information, and delay detection should be performed (packet loss detection is also performed at the same time).
[0063] In some embodiments, when packet loss detection is required for the first service message, the encoding of the accompanying flow detection information is different in the first service messages of adjacent detection cycles. Each detection cycle may include M first service messages, where M is an integer greater than 1, and the value of M can be set according to actual needs. When performing packet loss detection, the intermediate node device calculates the packet loss rate based on the number of first service messages received in each detection cycle. For example, within a detection cycle, the intermediate node device receives m first service messages, and the packet loss rate is (Mm) / M. In order to distinguish adjacent detection cycles, the encoding of the accompanying flow detection information is different in the first service messages of adjacent detection cycles. For example, in the first detection cycle, the encoding of the accompanying flow detection information is 01; in the second detection cycle, the encoding of the accompanying flow detection information is 10; in the third detection cycle, the encoding of the accompanying flow detection information is 01; in the fourth detection cycle, the encoding of the accompanying flow detection information is 10, and so on.
[0064] Specifically, the meanings of the four encoding formats 00, 01, 10, and 11 are as follows:
[0065] 00: indicates that the flow detection is not enabled and the service message is processed according to the normal forwarding process;
[0066] 01 and 10: appear alternately with the detection cycle as the time unit, indicating that the flow detection function is enabled and detecting the packet loss of the service message during the forwarding process; for example, the current detection cycle code is 01, indicating that the flow detection is enabled and packet loss detection is performed, then in the next adjacent detection cycle, the 2-bit code is changed to 10. Such repeated alternating changes can distinguish two adjacent detection cycles and avoid misjudgment due to the inability to confirm the detection cycle of the service message.
[0067] 11: In units of detection cycles, each detection cycle only occurs once. When the 2-bit code is 11, not only the packet loss information should be collected, but the service message should also carry the corresponding timestamp information; and each hop device should report the flow detection data or only record it until the tail node reports it to the SDN controller as needed.
[0068] Through the above 4 formats of 2-bit encoding, it is possible to identify the enablement of flow detection with only 2 bits. The above 2-bit encoding, except for 00, indicates that the flow detection has been started; in some embodiments, when delay detection is not required or due to certain conditions, such as clock synchronization is difficult to achieve, only packet loss detection is performed, the "11" encoding can be selected, that is, the state where the result of the 2-bit encoding "AND" is 1 can be selected.
[0069] The embodiment of the present invention also provides a flow detection method, which is applied to an intermediate node device in an IP bearer network, such as Figure 2 As shown, the method includes:
[0070] Step 201: receiving a first service message;
[0071] Step 202: Acquire the traffic detection information of the service class Traffic Class field in the outer header of the first service message, and collect target data according to the traffic detection information;
[0072] Step 203: Forward the first service message.
[0073] In this embodiment, the flow detection information is carried by the outer packet header encapsulated outside the service flow to implement the flow detection of the bare IP service. This embodiment can adopt a unified solution to implement the flow detection of IPv4 and IPv6 services. This embodiment can omit a separate flow detection identification bit and implement the flow detection only by using the Traffic Class field in the packet header without occupying additional fields. In the end-to-end flow detection scenario, only the head and tail node devices can be upgraded, which solves the problem that the end-to-end flow detection requires the upgrade of the entire network due to the occupation of other fields such as the Flow label field, and can realize the rapid implementation of the flow detection solution.
[0074] In some embodiments, the accompanying flow detection information occupies 2 bits. Figure 4 This is a schematic diagram of the original service message header, which includes fields such as version number (Ver), service category (Traffic Class), flow label, payload length (PayloadLength), next transmission control protocol header (Next HDR TCP), hop limit (Hop Limit), source address (Source Address), and destination address (Destination Address); Figure 5 Schematic diagram of the outer header of an embodiment of the present invention, including fields such as version number (Ver), traffic class (Traffic Class), flow label, payload length (Payload Length), next header (Next HDR), hop limit (Hop Limit), source address (SourceAddress), and destination address (Destination Address). Figure 5 As shown, the outer packet header of this embodiment may be an IPv6 outer encapsulation header, in which the Traffic Class field occupies 8 bits, 2 bits of which may be used to carry the flow detection information.
[0075] In some embodiments, collecting target data according to the accompanying flow detection information includes:
[0076] An AND operation is performed according to the coding of the accompanying flow detection information. When the result is 0, packet loss detection is performed and packet loss detection data is collected; when the result is 1, packet loss detection and delay detection are performed and packet loss detection data and delay detection data are collected.
[0077] After collecting the target data, the intermediate node device can report it to the SDN controller; or it can not report it to the SDN controller, but pass the target data along with the service message to the tail node device, and the tail node device will uniformly report the target data to the SDN controller.
[0078] The embodiment of the present invention also provides a flow detection method, which is applied to an end node device in an IP bearer network, such as Figure 3 As shown, the method includes:
[0079] Step 301: receiving a first service message;
[0080] Step 302: Obtaining the traffic detection information of the service class Traffic Class field in the outer header of the first service message, collecting target data according to the traffic detection information, and reporting the target data to the software defined network SDN controller;
[0081] Step 303: decapsulate the outer message header of the first service message, obtain the original service flow, and forward the original service flow.
[0082] In this embodiment, the flow detection information is carried by the outer packet header encapsulated outside the service flow to implement the flow detection of the bare IP service. This embodiment can adopt a unified solution to implement the flow detection of IPv4 and IPv6 services. This embodiment can omit a separate flow detection identification bit and implement the flow detection only by using the Traffic Class field in the packet header without occupying additional fields. In the end-to-end flow detection scenario, only the head and tail node devices can be upgraded, which solves the problem that the end-to-end flow detection requires the upgrade of the entire network due to the occupation of other fields such as the Flow label field, and can realize the rapid implementation of the flow detection solution.
[0083] In some embodiments, the accompanying flow detection information occupies 2 bits. Figure 4 This is a schematic diagram of the original service message header, which includes fields such as version number (Ver), service category (Traffic Class), flow label, payload length (PayloadLength), next transmission control protocol header (Next HDR TCP), hop limit (Hop Limit), source address (Source Address), and destination address (Destination Address); Figure 5Schematic diagram of the outer header of an embodiment of the present invention, including fields such as version number (Ver), traffic class (Traffic Class), flow label, payload length (Payload Length), next header (Next HDR), hop limit (Hop Limit), source address (SourceAddress), and destination address (Destination Address). Figure 5 As shown, the outer packet header of this embodiment may be an IPv6 outer encapsulation header, in which the Traffic Class field occupies 8 bits, 2 bits of which may be used to carry the flow detection information.
[0084] In some embodiments, collecting target data according to the accompanying flow detection information includes:
[0085] An AND operation is performed according to the coding of the accompanying flow detection information. When the result is 0, packet loss detection is performed and packet loss detection data is collected; when the result is 1, packet loss detection and delay detection are performed and packet loss detection data and delay detection data are collected.
[0086] In this embodiment, the 2-bit encoding can well realize the carrying of flow detection information, thereby realizing flow detection. This embodiment is applicable to both point-by-point and end-to-end flow detection scenarios. In the end-to-end scenario, since only the 2 bits reserved by Traffic Class are used, the reuse of fields such as Flow label is not superimposed, and only the head and tail node devices need to support the flow detection function, and the intermediate node devices only need to support ordinary IPv6 forwarding, which greatly reduces the difficulty of implementing flow detection. In the point-by-point scenario, since each node device needs to enable the flow detection function, although it is not possible to enable the flow detection function only for the head and tail node devices as in the end-to-end solution, the reuse of Flow label field is not superimposed, and the existing forwarding logic is maintained, which complies with the existing protocol standards.
[0087] Taking point-by-point detection as an example, each device node of the flow detection reports the flow detection related information by itself. The flow detection of Native IP services based on the outer layer encapsulation is as follows: Figure 6 As shown in the figure, A and B represent the 2 bits reserved by Traffic Class. A and B are in units of detection cycles. "01" and "10" appear alternately to enable flow detection and packet loss detection. The "11" code appears only once in each detection cycle to identify flow detection, and delay and packet loss detection are performed at the same time.
[0088] The logical flow chart of Native IP flow detection is as follows: Figure 7As shown in the figure, the network edge side device of the IP bearer network, that is, the first node device of the flow detection, determines whether the service flow needs to be detected according to the service requirements and pre-configuration information. If necessary, the service flow is directed into the outer tunnel. At this time, the outer layer of the original service message will be encapsulated with the outer IPv6 header. The outer encapsulation tunnel header of the flow detection message is as follows: Figure 8 As shown in the figure, the flow detection code in the Traffic Class field is not in the "00" state. It should be noted that Figure 8 This is just one of the coding diagrams.
[0089] The intermediate node device of the flow detection collects relevant data according to the flow detection information carried by the service message and sends it to the SDN controller.
[0090] As the service flow is forwarded, when the service message reaches the other side of the IP bearer network, that is, the tail node device for flow detection, the tail node device will not only perform flow detection processing based on the 2-bit encoding status; it will also strip off the outer IPv6 message header encapsulated in the first node device and perform subsequent forwarding based on the forwarding information of the inner original message.
[0091] After collecting the detection data carried together with the service messages, the SDN controller can perform in-flight detection on specific service flows through corresponding calculations.
[0092] This embodiment encapsulates a raw IP service message with an outer message header, uses the Traffic class field in the outer message header, and uses 2-bit flexible coding to implement flow detection based on the Native IP bearer network.
[0093] The embodiment of the present invention also provides a flow detection device, which is applied to the head node device in the IP bearer network, such as Fig. 9 As shown, it includes a transceiver 21 and a processor 22,
[0094] The processor 22 is used to determine whether the service flow needs to be detected according to the information of the service flow to be forwarded and the pre-configuration information; if yes, encapsulate the outer message header for the service flow to obtain a first service message, and the service class Traffic Class field of the outer message header carries the detection information;
[0095] The transceiver 21 is used to forward the first service message.
[0096] In some embodiments, the accompanying flow detection information occupies 2 bits.
[0097] In some embodiments, when an AND operation is performed according to the encoding of the accompanying flow detection information, when the result is 0, it indicates that the first service message needs to be subjected to packet loss detection; when the result is 1, it indicates that the first service message needs to be subjected to packet loss detection and delay detection.
[0098] In some embodiments, when packet loss detection needs to be performed on the first service message, the encoding of the accompanying flow detection information is different in the first service messages of adjacent detection periods.
[0099] The embodiment of the present invention also provides a flow detection device, which is applied to an intermediate node device in an IP bearer network, such as Fig. 9 As shown, it includes a transceiver 21 and a processor 22,
[0100] The transceiver 21 is used to receive a first service message;
[0101] The processor 22 is used to obtain the traffic detection information of the service class TrafficClass field in the outer header of the first service message, and collect target data according to the traffic detection information;
[0102] The transceiver 21 is further configured to forward the first service message.
[0103] In some embodiments, the accompanying flow detection information occupies 2 bits.
[0104] The processor 22 is used to perform an AND operation according to the encoding of the flow detection information. When the result is 0, packet loss detection is performed and packet loss detection data is collected; when the result is 1, packet loss detection and delay detection are performed and packet loss detection data and delay detection data are collected.
[0105] The embodiment of the present invention also provides a flow detection device, which is applied to an end node device in an IP bearer network, such as Fig. 9 As shown, it includes a transceiver 21 and a processor 22,
[0106] The transceiver 21 is used to receive a first service message;
[0107] The processor 22 is used to obtain the traffic detection information of the service class TrafficClass field in the outer header of the first service message, collect target data according to the traffic detection information, and report the target data to the software defined network SDN controller;
[0108] The transceiver 21 is further configured to decapsulate the outer message header of the first service message, obtain the original service flow, and forward the original service flow.
[0109] In some embodiments, the accompanying flow detection information occupies 2 bits.
[0110] In some embodiments, the processor 22 is used to perform an AND operation based on the encoding of the flow detection information. When the result is 0, packet loss detection is performed and packet loss detection data is collected; when the result is 1, packet loss detection and delay detection are performed and packet loss detection data and delay detection data are collected.
[0111] The embodiment of the present invention also provides a flow detection device, such as Fig.10 As shown, it includes a memory 31, a processor 32, and a computer program stored in the memory 31 and executable on the processor 32; when the processor 32 executes the program, the above-mentioned flow detection method is implemented, which will not be repeated here.
[0112] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the above-mentioned flow detection method are implemented.
[0113] Computer readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage terminal devices to be detected or any other non-transmission media that can be used to store information that can be accessed by the computer terminal device to be detected. As defined in this article, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carriers.
[0114] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A flow detection method, It is characterized in that The first node equipment used in the IP bearer network includes: Determine whether the service flow needs to be detected according to the information of the service flow to be forwarded and the pre-configuration information; If yes, encapsulate the service flow with an outer message header to obtain a first service message, wherein the service class Traffic Class field of the outer message header carries the flow detection information; Forward the first service message.
2. The flow detection method according to claim 1, It is characterized in that The accompanying flow detection information occupies 2 bits.
3. The flow detection method according to claim 2, It is characterized in that When an AND operation is performed according to the encoding of the accompanying flow detection information, if the result is 0, it indicates that the first service message needs to be subjected to packet loss detection; and if the result is 1, it indicates that the first service message needs to be subjected to packet loss detection and delay detection.
4. The flow detection method according to claim 3, It is characterized in that When packet loss detection needs to be performed on the first service message, the encoding of the flow detection information in the first service messages of adjacent detection periods is different.
5. A flow detection method, It is characterized in that Applied to an intermediate node device in an IP bearer network, the method comprises: Receiving a first service message; Acquire the traffic detection information of the service class Traffic Class field in the outer header of the first service message, and collect target data according to the traffic detection information; Forward the first service message.
6. The flow detection method according to claim 5, It is characterized in that The accompanying flow detection information occupies 2 bits.
7. The flow detection method according to claim 6, It is characterized in that The collecting target data according to the flow detection information comprises: An AND operation is performed according to the coding of the accompanying flow detection information. When the result is 0, packet loss detection is performed and packet loss detection data is collected; when the result is 1, packet loss detection and delay detection are performed and packet loss detection data and delay detection data are collected.
8. A flow detection method, It is characterized in that Applied to an end node device in an IP bearer network, the method comprises: Receiving a first service message; Acquire the traffic detection information of the service class Traffic Class field in the outer packet header of the first service packet, collect target data according to the traffic detection information, and report the target data to the software defined network SDN controller; Unpack the outer message header of the first service message to obtain the original service flow, and forward the original service flow.
9. The flow detection method according to claim 8, It is characterized in that The accompanying flow detection information occupies 2 bits.
10. The flow detection method according to claim 9, It is characterized in that The collecting target data according to the flow detection information comprises: An AND operation is performed according to the coding of the accompanying flow detection information. When the result is 0, packet loss detection is performed and packet loss detection data is collected; when the result is 1, packet loss detection and delay detection are performed and packet loss detection data and delay detection data are collected.
11. A flow detection device, It is characterized in that The first node equipment used in IP bearer network, including transceiver and processor, The processor is used to determine whether the service flow needs to be detected according to the information of the service flow to be forwarded and the pre-configuration information; if yes, encapsulate the outer message header for the service flow to obtain a first service message, and the service category Traffic Class field of the outer message header carries the detection information; The transceiver is used to forward the first service message.
12. A flow detection device, It is characterized in that Applied to the intermediate node equipment in IP bearer network, including transceiver and processor, The transceiver is used to receive a first service message; The processor is used to obtain the traffic detection information of the service class Traffic Class field in the outer packet header of the first service packet, and collect the target data according to the traffic detection information; The transceiver is also used to forward the first service message.
13. A flow detection device, It is characterized in that The tail node equipment used in IP bearer network includes transceiver and processor. The transceiver is used to receive a first service message; The processor is used to obtain the traffic detection information of the service class Traffic Class field in the outer packet header of the first service packet, collect target data according to the traffic detection information, and report the target data to the software defined network SDN controller; The transceiver is further used to decapsulate the outer message header of the first service message, obtain the original service flow, and forward the original service flow.
14. A flow detection device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor; It is characterized in that When the processor executes the program, the accompanying flow detection method according to any one of claims 1 to 10 is implemented.
15. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the steps in the accompanying flow detection method as described in any one of claims 1 to 10 are implemented.
