A network programming technology processing method, system and storage medium
By determining which packets to process based on the load status of the router node and inserting a task marker in the IPv6 extension header, the problem of inflexible node specification in network programming is solved, achieving more flexible execution node selection and better DDoS protection.
Patent Information
- Application Number
- CN202210546405.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-18
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2042-05-18
AI Technical Summary
In existing network programming, the specification of nodes for executing operations is not flexible enough, especially in the prevention of distributed denial-of-service attacks. Centralized scheduling leads to slow response, while distributed scheduling is inflexible due to fixed execution locations.
A distributed denial-of-service attack handling mechanism is adopted. Router nodes decide whether to process packets encoded by network programming technology based on their own load status. By inserting task markers into the extended header of IPv6 packets, the attack detection and handling are dynamically coordinated among the nodes.
It enables more flexible selection of execution nodes, improves the flexibility of network programming and DDoS protection capabilities, reduces the computational pressure on centralized nodes, and provides faster response and better network security mechanisms.
Smart Images

Figure CN117134925B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and in particular to a network programming technology processing method, system, and storage medium. Background Technology
[0002] Traditional IP network technologies primarily focus on sending data packets from source nodes to destination nodes according to their destination addresses. Network programmable technology refers to allowing network operators or applications to encode sequences of instructions in the IPv6 packet header. In SRv6, these instructions are typically called SIDs (Segment IDs). An SRv6 SID is defined as consisting of LOC:FUNCT:ARG, where the locator (LOC) is encoded in the L most important bits of the SID, followed by F function bits (FUNCT) and A parameter bits (ARG). The LOC is used for node location and routing, the FUNCT part specifies the operation, and the ARG part is optional; some FUNCTs do not require parameters.
[0003] The most common network programming approach involves specifying the nodes a data packet traverses. Assuming S represents the source node's IPv6 address and D represents the destination node's IPv6 address, then the main information in the IPv6 packet header in a traditional network is...<S,D> In SRv6 network programming, if a path needs to be specified, the main information in the IPv6 packet header can be...<S,SIDA><SIDA,SIDB,SIDC,D> The angle brackets following the instruction indicate that the data packet needs to reach A first, then B, then C, and finally D. This requires that nodes S, A, B, C, and D in the network all support SRv6 network programming.
[0004] The shortcoming of existing technology is that current network programming does not provide enough flexibility in specifying the nodes to perform operations. Summary of the Invention
[0005] This invention provides a network programming technology processing method, system, and storage medium to solve the problem of insufficient flexibility in specifying nodes for performing operations in current network programming.
[0006] This invention provides the following technical solutions:
[0007] A network programming technique processing method, comprising:
[0008] The router node receives a message containing network programming technology codes, which indicate that one or more corresponding tasks need to be executed;
[0009] The router node determines the load status of the processing chip corresponding to the incoming interface of the packet;
[0010] When the load is greater than a predetermined value, messages containing network programming technology encoding are not processed; when the load is less than a predetermined value, messages containing network programming technology encoding are processed.
[0011] In practice, the router node determines the load state of the processing chip corresponding to the packet ingress interface by referring to one or more of the following parameters:
[0012] The current utilization rate of the processing chip corresponding to the message ingress interface;
[0013] The number of messages currently being processed by the processing chip corresponding to the message inlet interface;
[0014] The processing chip corresponding to the message inlet interface is currently processing the rate of the stream containing the message.
[0015] In practice, messages containing network programming technology encoding are processed, including:
[0016] The processing performed corresponds to one or more tasks that need to be executed, and one or more tasks have corresponding task markers in the data packet;
[0017] Modify the flag of the task corresponding to the executed process. If the router node executes one task, modify the flag of that one task. If the router node executes multiple tasks, modify the flags of all tasks.
[0018] In practice, when processing messages containing network programming techniques, if the message carries information indicating that the relevant task is to perform distributed denial-of-service attack analysis, it further includes:
[0019] Based on one or more traffic models obtained, analyze one or more network traffic patterns to determine whether a distributed denial-of-service attack exists.
[0020] When a distributed denial-of-service attack occurs, denial-of-service attack processing is performed on one or more abnormal traffic types according to the router's predetermined policy.
[0021] During implementation, denial-of-service attacks are performed on one or more abnormal traffic types according to the target router's predetermined policy, including:
[0022] Randomly drop packets and / or mark one or more abnormal traffic streams.
[0023] If a marking operation is performed, the data packet must contain a suspicious or abnormal flag to indicate whether the packet is suspicious or abnormal.
[0024] In practice, when performing random packet loss operations or marking operations, the following further steps are included:
[0025] If the traffic is determined to be normal, the task identifier corresponding to the anomaly detection task is modified to indicate that the anomaly detection task for the packet has been completed.
[0026] In practice, determining whether a distributed denial-of-service (DDoS) attack exists is done when network traffic for a specific protocol exceeds the threshold traffic for that protocol in the traffic model.
[0027] In practice, the marking operation further includes:
[0028] If an anomaly is detected, the relevant message is marked as suspicious or abnormal.
[0029] In implementation, obtaining the traffic model of one or more router nodes includes:
[0030] Each router node compiles its own traffic model and stores it on each router.
[0031] Each router node obtains a traffic model for reference from other locations and stores it on the router.
[0032] In practice, the task marker encoded by the network programming technique is stored in the hop-by-hop extension header HBH or the SRv6 extension header of the IPv6 packet.
[0033] A network programming technique processing method, comprising:
[0034] At the network's entry router node, packets are marked and inserted according to the format encoded by network programming technology. The mark represents the corresponding operation, which corresponds to one or more tasks that are to be performed in the network.
[0035] In practice, the tag insertion is performed in the hop-by-hop extension header (HBH) or the SRv6 extension header of the IPv6 packet.
[0036] A router node includes:
[0037] The processor is used to read programs from memory and execute the following procedures:
[0038] A message containing network programming technology codes is received, the network programming technology codes indicating that one or more corresponding tasks need to be executed;
[0039] Determine the load status of the processing chip corresponding to the message ingress interface;
[0040] When the load is greater than a predetermined value, messages containing network programming technology encoding are not processed; when the load is less than a predetermined value, messages containing network programming technology encoding are processed.
[0041] A transceiver is used to receive and send data under the control of a processor.
[0042] In practice, the load state of the processing chip corresponding to the message ingress interface is determined by referring to one or more of the following parameters:
[0043] The current utilization rate of the processing chip corresponding to the message input interface;
[0044] The number of messages currently being processed by the processing chip corresponding to the message inlet interface;
[0045] The processing chip corresponding to the message inlet interface is currently processing the rate of the stream containing the message.
[0046] In practice, messages containing network programming technology encoding are processed, including:
[0047] The processing performed corresponds to one or more tasks that need to be executed, and one or more tasks have corresponding task markers in the data packet;
[0048] Modify the flag of the task corresponding to the executed process. If the router node executes one task, modify the flag of that task. If the router node executes multiple tasks, modify the flags of all tasks.
[0049] In practice, when processing messages containing network programming techniques, if the message carries information indicating that the relevant task is to perform distributed denial-of-service attack analysis, it further includes:
[0050] Based on one or more traffic models obtained, analyze one or more network traffic patterns to determine whether a distributed denial-of-service attack exists.
[0051] When a distributed denial-of-service attack occurs, denial-of-service attack processing is performed on one or more abnormal traffic types according to the router's predetermined policy.
[0052] During implementation, denial-of-service attacks are performed on one or more abnormal traffic types according to the target router's predetermined policy, including:
[0053] Randomly drop packets and / or mark one or more abnormal traffic streams.
[0054] If a marking operation is performed, the data packet must contain a suspicious or abnormal flag to indicate whether the packet is suspicious or abnormal.
[0055] In practice, when performing random packet loss operations or marking operations, the following further steps are included:
[0056] If the traffic is determined to be normal, the task identifier corresponding to the anomaly detection task is modified to indicate that the anomaly detection task for the packet has been completed.
[0057] In practice, determining whether a distributed denial-of-service (DDoS) attack exists is done when network traffic for a specific protocol exceeds the threshold traffic for that protocol in the traffic model.
[0058] In practice, the marking operation further includes:
[0059] If an anomaly is detected, the relevant message is marked as suspicious or abnormal.
[0060] In implementation, obtaining the traffic model of one or more router nodes includes:
[0061] Each router node compiles its own traffic model and stores it on each router.
[0062] Each router node obtains a traffic model for reference from other locations and stores it on the router.
[0063] In practice, the task marker encoded by the network programming technique is stored in the hop-by-hop extension header HBH or the SRv6 extension header of the IPv6 packet.
[0064] A router node includes:
[0065] A receiving module is configured to receive a message containing network programming technology encoding, wherein the network programming technology encoding indicates that one or more corresponding tasks need to be executed;
[0066] A load module is used to determine the load status of the processing chip corresponding to the message ingress interface;
[0067] The processing module is used to not process messages containing network programming technology encoding when the load is greater than a predetermined value, and to process messages containing network programming technology encoding when the load is less than a predetermined value.
[0068] In implementation, the load module is further used to determine the load state of the processing chip corresponding to the message ingress interface, which is determined by referring to one or more of the following parameters:
[0069] The current utilization rate of the processing chip corresponding to the message input interface;
[0070] The number of messages currently being processed by the processing chip corresponding to the message inlet interface;
[0071] The processing chip corresponding to the message inlet interface is currently processing the rate of the stream containing the message.
[0072] In implementation, when the processing module further processes messages containing network programming technology encoding, it includes:
[0073] The processing performed corresponds to one or more tasks that need to be executed, and one or more tasks have corresponding task markers in the data packet;
[0074] Modify the flag of the task corresponding to the executed process. If the router node executes one task, modify the flag of that task. If the router node executes multiple tasks, modify the flags of all tasks.
[0075] In implementation, the processing module is further used to, when processing messages containing network programming techniques, if the message carries information indicating that the relevant task is to perform distributed denial-of-service attack analysis, include:
[0076] Based on one or more traffic models obtained, analyze one or more network traffic patterns to determine whether a distributed denial-of-service attack exists.
[0077] When a distributed denial-of-service attack occurs, denial-of-service attack processing is performed on one or more abnormal traffic types according to the router's predetermined policy.
[0078] In implementation, the processing module is further configured to handle denial-of-service attacks on one or more types of abnormal traffic according to a predetermined policy of the target router, including:
[0079] Randomly drop packets and / or mark one or more abnormal traffic streams.
[0080] If a marking operation is performed, the data packet must contain a suspicious or abnormal flag to indicate whether the packet is suspicious or abnormal.
[0081] In implementation, the processing module is further used to handle random packet loss operations or marking operations, including:
[0082] If the traffic is determined to be normal, the task identifier corresponding to the anomaly detection task is modified to indicate that the anomaly detection task for the packet has been completed.
[0083] In practice, the processing module is further used to determine whether a distributed denial-of-service attack exists when the network traffic of a specific protocol is detected to be greater than the threshold traffic of that protocol in the traffic model.
[0084] In implementation, the processing module is further used to perform the marking operation, including:
[0085] If an anomaly is detected, the relevant message is marked as suspicious or abnormal.
[0086] In implementation, the load module is further configured to, when obtaining the traffic model of one or more router nodes, include:
[0087] Each router node compiles its own traffic model and stores it on each router.
[0088] Each router node obtains a traffic model for reference from other locations and stores it on the router.
[0089] In practice, the processing module is further used to process the task markers encoded by the network programming technique stored in the hop-by-hop extension header HBH or the SRv6 extension header of the IPv6 packet.
[0090] A router node includes:
[0091] The processor is used to read programs from memory and execute the following procedures:
[0092] When acting as an entry router node in the network, packets are marked and inserted according to the format encoded by network programming techniques. The mark represents the corresponding operation, which corresponds to one or more tasks that are to be performed in the network.
[0093] A transceiver is used to receive and send data under the control of a processor.
[0094] In practice, the tag insertion is performed in the hop-by-hop extension header (HBH) or the SRv6 extension header of the IPv6 packet.
[0095] A router node includes:
[0096] The tagging module is used to insert tags into packets according to the format encoded by network programming technology when acting as an ingress router node of the network. The tags represent corresponding operations, which correspond to one or more tasks that are to be performed in the network.
[0097] In practice, the tagging module is further used to insert tags either in the hop-by-hop extension header (HBH) or the SRv6 extension header of the IPv6 packet.
[0098] A computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described network programming technique processing method.
[0099] The beneficial effects of this invention are as follows:
[0100] In the technical solution provided by this invention, it is not necessary to specify which node a particular function must execute. Instead, the decision to execute related operations is based on the computing power of the target router and the task execution status of the packet header. For example, whether to perform denial-of-service attack processing on one or more abnormal traffic types. Since no specific execution location is specified, each node decides whether to execute related tasks based on its own computing power, fully utilizing the network's computing capabilities. Nodes can decide whether to perform related processing based on their own computing power, thus providing a more flexible network programming mechanism that supports collaboration between execution nodes.
[0101] Furthermore, this mechanism supports an easy-to-implement in-network security (inherent network security) mechanism that can provide better DDoS protection capabilities. Attached Figure Description
[0102] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this invention, illustrate exemplary embodiments of the invention and are used to explain the invention, but do not constitute an undue limitation of the invention. In the drawings:
[0103] Figure 1 This is a schematic diagram of the network architecture for on-net computing in an embodiment of the present invention;
[0104] Figure 2 This is a schematic diagram illustrating the implementation process of the network programming technology processing method on the router node in this embodiment of the invention;
[0105] Figure 3 This is a schematic diagram illustrating the implementation process of the network programming technology processing method on the ingress router node in this embodiment of the invention;
[0106] Figure 4 This is a schematic diagram of the message flow path in an embodiment of the present invention;
[0107] Figure 5 This is a schematic diagram of the network structure for on-net computing in Embodiment 1 of the present invention;
[0108] Figure 6 This is a schematic diagram illustrating the detection of a DDoS attack in Embodiment 1 of the present invention;
[0109] Figure 7 This is a schematic diagram of the network structure and message path for on-network computing in Embodiment 2 of the present invention;
[0110] Figure 8 This is a schematic diagram of the extended header of an IPv6 packet in an embodiment of the present invention;
[0111] Figure 9 This is a schematic diagram of the HBH extension header structure of IPv6 in an embodiment of the present invention;
[0112] Figure 10 This is a schematic diagram of the router node structure in an embodiment of the present invention. Figure 1 ;
[0113] Figure 11 This is a schematic diagram of the router node structure in an embodiment of the present invention. Figure 2 . Detailed Implementation
[0114] The inventor noticed the following during the invention process:
[0115] Current SRv6 network programming is logically relatively rigid, only supporting reaching specific nodes and performing specific operations. It offers considerable flexibility in what operations to perform, but lacks the ability to flexibly specify the nodes to execute them on.
[0116] Taking DDoS prevention as an example, DDoS (Distributed Denial of Service) refers to multiple attackers in different locations simultaneously launching attacks against one or more targets, or a single attacker controlling multiple machines in different locations and using these machines to simultaneously attack the victim. Because the attack originates from different places, this type of attack is called a distributed denial-of-service attack, and there can be multiple attackers involved.
[0117] Distributed Denial-of-Service (DDoS) Attack Principle: A Distributed Denial-of-Service (DDoS) attack is a special form of Denial-of-Service (DoS) attack, a distributed and coordinated large-scale attack method. A single DoS attack typically operates one-to-one, exploiting vulnerabilities in network protocols and operating systems. It employs deception and masquerading strategies to overwhelm website servers with numerous request messages, consuming network bandwidth or system resources, eventually causing the network or system to become overloaded and paralyzed, ceasing to provide normal network services. In contrast to a DoS attack initiated by a single host, a Distributed Denial-of-Service (DDoS) attack involves hundreds or even thousands of compromised hosts that have installed attack processes, launching a coordinated attack simultaneously.
[0118] Current DDoS attack prevention primarily involves identifying and processing attack traffic at specific network nodes. These special nodes are known as IDS (Intrusion Detection Systems). However, this centralized approach has drawbacks: attack detection is typically performed at a high location, and the centralized nodes bear significant processing load. Currently, academia and industry are exploring on-network computing technologies to alleviate the computational burden on IDS nodes. On-network computing refers to network nodes supporting additional packet processing while forwarding packets, such as detecting whether specific traffic is attack traffic. The potential advantages of this approach include low latency, high scalability, faster response, and proximity to the source node. Within the IETF (Internet Engineering Task Force), a research group called COIN RG specifically explores how to achieve user security and privacy protection based on on-network computing, primarily using the programmable mechanism of P4.
[0119] However, current on-network computing implementations lack flexible collaboration mechanisms between nodes. If a single controller manages and coordinates each node, adjusting the tasks performed by each node can lead to slow response times. This is primarily because the computing power of forwarding nodes, such as routers, changes rapidly due to traffic load. The more services and the more complex the service processing, the greater the forwarding pressure.
[0120] If SRv6 network programming is used, it is a per-packet programming based on the data plane. In this case, the task to be performed at which node is determined at the head node of the path, and it does not support determining whether to perform related operations based on the load of the forwarding node.
[0121] During message forwarding, on-network computing supports the superposition of certain processing capabilities, and in terms of attack prevention, the nodes implementing these capabilities can be flexibly distributed.
[0122] Figure 1 The diagram shows a network architecture for on-the-net computing. In the on-the-net computing scenario, computing can occur not only on the edge, such as Client / MEC (Mobile Edge Computing) / Cloud, but also on programmable Router1-5, Ingress1, and Egress1-3.
[0123] In traditional networks, routers are only responsible for forwarding packets and not for computation; in network programmable technologies such as SRv6 (Segment Routing IPv6; IPv6: Internet Protocol Version 6), the network supports the execution of Function Y at node X.
[0124] In centralized scheduling of on-network computing / network programming, computing tasks are decomposed into different nodes. In this mechanism, the controller perceives network information, makes decisions, and sets strategies.
[0125] In distributed on-network computing / network programming, distributed ingresses, acting as the headend of a path, can make some decisions.
[0126] The problem with centralized scheduling is that the computing power of the forwarding plane on the router changes rapidly and is affected by traffic load (the more services there are, the greater the forwarding pressure; the more complex the service processing, the greater the forwarding pressure). Centralized scheduling may be slow to respond.
[0127] The problem with distributed scheduling is that although the decision points are distributed, the execution is relatively fixed and does not take into account the computing power of the router or whether it is executing other tasks.
[0128] In other words, in existing technologies, the location where calculations occur is relatively fixed and not flexible enough.
[0129] Based on this, this embodiment of the invention provides a processing scheme based on on-network computing and network programmable technology, and will be described using the processing of distributed denial-of-service attacks as an example. The specific implementation of the invention will be described below with reference to the accompanying drawings.
[0130] Figure 2 The flowchart illustrating the implementation of network programming techniques on router nodes is shown in the figure, and may include:
[0131] Step 201: The router node receives a message containing network programming technology encoding, which indicates that one or more corresponding tasks need to be executed.
[0132] Step 202: The router node determines the load status of the processing chip corresponding to the incoming packet interface;
[0133] Step 203: When the load is greater than a predetermined value, do not process messages containing network programming technology encoding; when the load is less than a predetermined value, process messages containing network programming technology encoding.
[0134] In practice, the router node determines the load status of the processing chip corresponding to the packet ingress interface by referring to one or more of the following parameters:
[0135] The current utilization rate of the processing chip corresponding to the message ingress interface;
[0136] The number of messages currently being processed by the processing chip corresponding to the message inlet interface;
[0137] The processing chip corresponding to the message inlet interface is currently processing the rate of the stream containing the message.
[0138] In practice, messages containing network programming technology encoding are processed, including:
[0139] The processing performed corresponds to one or more tasks that need to be executed, and one or more tasks have corresponding task markers in the data packet;
[0140] Modify the flag of the task corresponding to the executed process. If the router node executes one task, modify the flag of that task. If the router node executes multiple tasks, modify the flags of all tasks.
[0141] In practice, when processing messages containing network programming techniques, if the message carries information indicating that the relevant task is to perform distributed denial-of-service attack analysis, it further includes:
[0142] Based on one or more traffic models obtained, analyze one or more network traffic patterns to determine whether a distributed denial-of-service attack exists.
[0143] When a distributed denial-of-service attack occurs, the router performs denial-of-service attack processing on one or more abnormal traffic types according to its predetermined policy, such as packet loss processing.
[0144] In practice, denial-of-service attacks are performed on one or more types of abnormal traffic according to the target router's predetermined policy, including:
[0145] Randomly drop packets and / or mark one or more abnormal traffic streams.
[0146] If a marking operation is performed, the data packet must contain a suspicious or abnormal flag to indicate whether the packet is suspicious or abnormal.
[0147] In specific implementation, obtaining the traffic model of one or more router nodes includes:
[0148] Each router node compiles its own traffic model and stores it on each router.
[0149] Each router node obtains a reference traffic model from other locations, such as a centralized control or management node, and stores it on the router.
[0150] During implementation, it is determined whether a distributed denial-of-service (DDoS) attack exists. For example, a DDoS attack can be determined when network traffic for a specific protocol is detected to be greater than the threshold traffic for that protocol in the traffic model.
[0151] In practice, handling denial-of-service attacks includes randomly dropping or marking one or more abnormal traffic packets.
[0152] Specifically, the system acquires the traffic models of one or more router nodes; analyzes one or more network traffic based on one or more traffic models; if the network traffic exceeds a threshold traffic, it determines that a distributed denial-of-service (DDoS) attack exists; when a DDoS attack exists, it performs random packet dropping or marking operations on one or more abnormal traffic according to the predetermined strategy of the target router.
[0153] During implementation, when it is determined that no distributed denial-of-service attack exists, the following further steps are taken:
[0154] If the traffic is determined to be normal, the task identifier corresponding to the anomaly detection task is modified to indicate that the anomaly detection task for the packet has been completed.
[0155] In practice, the marking operation further includes:
[0156] If an anomaly is detected, the relevant message is marked as suspicious or abnormal.
[0157] Figure 3 A schematic diagram of the implementation process for network programming techniques on the ingress router node is shown in the figure, which may include:
[0158] Step 301: At the network entry router node, the packets are marked and inserted according to the format encoded by network programming technology. The mark represents the corresponding operation, which corresponds to one or more tasks that are to be performed in the network.
[0159] In practice, when inserting the tag, it is done in the HBH (Hop-by-hop Option) of the IPv6 packet or in the SRv6 extension header.
[0160] The following example illustrates this.
[0161] Current typical technologies for network programming / on-the-net computing include SRv6 (i.e., going to node x1 and executing F1); in the distributed execution on-the-net computing mechanism provided in this embodiment of the invention, the location of computation execution is not forcibly specified (it is allowed to go to node x1 / 2 / 3 / ... and execute F1), and similarly, F1 may not be executed.
[0162] Figure 4 The diagram shows the message flow path. Assume there are two overall tasks. Nodes on the path selectively process messages based on their own circumstances, and all tasks are completed by Egress3.
[0163] Dynamic collaboration within the network: Each router determines whether to perform DDoS attack detection based on its own situation;
[0164] Data plane coordination: All packets or related packets are marked and inserted at the ingress router node. Optionally, they are processed and marked at the intermediate router node. Processed packets are not repeated. Optionally, the IDS completes the unprocessed work.
[0165] Example 1:
[0166] In this example, DDoS detection is performed on a router.
[0167] Figure 5 This is a schematic diagram of the network structure for on-network computing in Example 1. As shown in the figure, in this network:
[0168] Assumptions: Router1-5, Ingress1, and Egress1-3 are nodes with on-network computing capabilities, supporting DDoS attack detection when the load is low.
[0169] One detection method, for example, is based on AI (Artificial Intelligence) mechanisms to statistically analyze the traffic model of its own node. Then, if DDoS attack detection is required, the traffic is analyzed. If the deviation is large, for example, reaching a threshold, it is considered that a DDoS attack may exist, and random packet loss / marking is performed.
[0170] Figure 6The diagram illustrates the detection of a DDoS attack in Example 1. As shown, by detecting changes in traffic from SSDP (Simple Service Discovery Protocol), ICMP (Internal Control Message Protocol), DNS (Domain Name System), SNMP (Simple Network Management Protocol), and NTP (Network Time Protocol) using Pa (traffic model based on historical data) and P2 (currently monitored traffic model), it can be determined whether a DDoS attack exists.
[0171] When implementing random packet loss handling, the following can be done:
[0172] (1): The Ingress node marks the traffic that needs to be analyzed. For example, inserting 01000000 in the packet header indicates that DDoS filtering is required, but does not specify the specific execution node.
[0173] (2): The node that receives the message, such as Router1, has a light load at this time, so it performs DDoS filtering. Specifically, it analyzes the message to see if there are any abnormalities in the traffic characteristics.
[0174] If an anomaly is detected, the relevant packets will be randomly dropped.
[0175] If no abnormality is found, the clear flag is set to 00000000.
[0176] (3): Optionally, if a packet is marked in Ingress but is not processed in Ingress or Router1-5 (i.e., DDoS attack detection and clearing of the mark), then Egress1 / 2 / 3 will detect the unprocessed packet.
[0177] When implementing tagging, it can be done as follows:
[0178] (1): The Ingress node marks the traffic that needs to be analyzed. For example, inserting 01000000 in the packet header indicates that DDoS filtering is required, but does not specify the specific execution node. At the same time, the first flag indicates whether the traffic is suspicious.
[0179] (2): The node that receives the message, such as Router1, has a light load at this time, so it performs DDoS filtering. Specifically, it analyzes the message to see if there are any abnormalities in the traffic characteristics.
[0180] If an anomaly is detected, the relevant message is marked with 11000000;
[0181] If no abnormality is found, the clear flag is set to 00000000.
[0182] (3): Optionally, Egress1 / 2 / 3 can detect unprocessed messages and messages with a first digit marked as 1.
[0183] Example 2:
[0184] In this example, DDoS detection is performed collaboratively on multiple routers.
[0185] Figure 7 The figure shows a schematic diagram of the network structure and message path for on-network computing in Example 2. In this network:
[0186] Assumptions: Router1-5, Ingress1, and Egress1-3 are nodes with on-network computing capabilities, supporting DDoS attack detection when the load is low.
[0187] For example, based on an AI mechanism, the system can statistically analyze the traffic model of its own nodes. Then, if DDoS attack detection is required, the traffic is analyzed. If the deviation is large, such as reaching a threshold, it is considered that a DDoS attack may exist, and random packet loss / marking operations are performed.
[0188] When implementing random packet loss, the following can be done:
[0189] (1): The Ingress node marks the traffic that needs to be analyzed. For example, inserting 00101000 into the packet header indicates that DDoS filtering is required, but does not specify the specific execution node. There are two tasks, such as one requiring the detection of DNS traffic and the other requiring the detection of ICMP traffic. That is, in practice, whether the traffic is abnormal is determined by detecting DNS traffic and / or detecting ICMP traffic.
[0190] (2): The node that receives the message, such as Router1 / 3, has a light load at this time, so it performs DDoS filtering. Specifically, it analyzes the message to see if there are any abnormalities in the traffic characteristics.
[0191] If an anomaly is detected, the relevant packets will be randomly dropped.
[0192] If no abnormality is found, the corresponding task's flag is cleared.
[0193] (3): Optionally, Egress1 / 2 / 3 can detect unprocessed messages.
[0194] When implementing the tagging, it can be done as follows:
[0195] (1): The Ingress node marks the traffic that needs to be analyzed. For example, inserting 00101000 into the packet header indicates that DDoS filtering is required, but does not specify the specific execution node. At the same time, the first flag indicates whether the traffic is suspicious.
[0196] (2): The node that receives the message, such as Router1, has a light load at this time, so it performs DDoS filtering. Specifically, it analyzes the message to see if there are any abnormalities in the traffic characteristics.
[0197] If an anomaly is detected, the relevant message is marked and changed to 10001000;
[0198] If no abnormality is found, the clear flag is set to 00001000.
[0199] (3): Optionally, Egress1 / 2 / 3 can detect unprocessed messages and messages with a first digit marked as 1.
[0200] In practice, the marking operation is performed in the IPv6 header extension header or the SRv6 header extension header.
[0201] In practice, the use of methods similar to traditional network programming is not excluded. That is, a specific function can be performed at a specific location in the message, and another specific function can be performed at any node on the path in the message. The functions are stored in different locations in the message. Figure 8 This is a diagram of the extension header of an IPv6 packet. The extension header can optionally carry identifiers, such as hop-by-hop option header, destination option header, and routing option header.
[0202] In SRv6, it can carry an SRH (Segment Routing Header) header, which includes the SRH SID list (SID: Segment IDentifier) (a list of multiple 128-bit addresses).
[0203] In practice, the network programming technology encoding, i.e., the task tag, is stored in the extension header of the IPv6 packet, specifically in the hop-by-hop extension header (HBH, Hop-by-hop Option) or the SRv6 extension header.
[0204] In mechanisms that allow execution of functions at any node along a path, the HBH (Hop By Hop) header can be used instead of the SRH header. This is because, logically, the HBH header is checked at each hop, while the SRH header is only checked after the DA (destination address) is matched.
[0205] In practice, the marking operation is performed in the HBH extension header of IPv6.
[0206] Figure 9 The diagram shows the extension header structure of the IPv6 HBH. The appropriate place to add detection requirement information to each packet is within the IPv6 HBH extension header. Specifically, it can be 8 bits or longer, such as 32 bits.
[0207] The relevant encapsulation can be added to Ingress, or optionally removed from Egress.
[0208] The specific meaning of each bit can be customized, for example:
[0209] A specific bit indicates whether the traffic is suspicious;
[0210] A specific bit represents a task that needs to be performed, such as wanting the router to filter a certain type of traffic;
[0211] A certain bit represents the desired behavior of the router, which is to use a specific traffic model to filter traffic.
[0212] For example, you can request an unused option_type 0x0D from IANA (Internet Assigned Number Authority). This option supports carrying TLV (Type, Length, Value, Tag, Length, Value). The TLV is used for processing by each node, and the value in the TLV can be read and modified.
[0213] Based on the same inventive concept, this invention also provides a router node and a computer-readable storage medium. Since the principles by which these devices solve problems are similar to those of network programming techniques, the implementation of these devices can be referred to the implementation of the method, and repeated details will not be repeated.
[0214] When implementing the technical solutions provided in the embodiments of the present invention, they can be implemented in the following manner.
[0215] Figure 10Router node structure diagram Figure 1 As shown in the figure, a router node includes:
[0216] Processor 1000 is used to read the program from memory 1020 and execute the following procedures:
[0217] A message containing network programming technology codes is received, the network programming technology codes indicating that one or more corresponding tasks need to be executed;
[0218] Determine the load status of the processing chip corresponding to the message ingress interface;
[0219] When the load is greater than a predetermined value, messages containing network programming technology encoding are not processed; when the load is less than a predetermined value, messages containing network programming technology encoding are processed.
[0220] Transceiver 1010 is used to receive and send data under the control of processor 1000.
[0221] In practice, the load state of the processing chip corresponding to the message ingress interface is determined by referring to one or more of the following parameters:
[0222] The current utilization rate of the processing chip corresponding to the message ingress interface;
[0223] The number of messages currently being processed by the processing chip corresponding to the message inlet interface;
[0224] The processing chip corresponding to the message inlet interface is currently processing the rate of the stream containing the message.
[0225] In practice, messages containing network programming technology encoding are processed, including:
[0226] The processing performed corresponds to one or more tasks that need to be executed, and one or more tasks have corresponding task markers in the data packet;
[0227] Modify the flag of the task corresponding to the executed process. If the router node executes one task, modify the flag of that one task. If the router node executes multiple tasks, modify the flags of all tasks.
[0228] In practice, when processing messages containing network programming techniques, if the message carries information indicating that the relevant task is to perform distributed denial-of-service attack analysis, it further includes:
[0229] Based on one or more traffic models obtained, analyze one or more network traffic patterns to determine whether a distributed denial-of-service attack exists.
[0230] When a distributed denial-of-service attack occurs, denial-of-service attack processing is performed on one or more abnormal traffic types according to the router's predetermined policy.
[0231] During implementation, denial-of-service attacks are performed on one or more abnormal traffic types according to the target router's predetermined policy, including:
[0232] Randomly drop packets and / or mark one or more abnormal traffic streams.
[0233] If a marking operation is performed, the data packet must contain a suspicious or abnormal flag to indicate whether the packet is suspicious or abnormal.
[0234] In practice, when performing random packet loss operations or marking operations, the following further steps are included:
[0235] If the traffic is determined to be normal, the task identifier corresponding to the anomaly detection task is modified to indicate that the anomaly detection task for the packet has been completed.
[0236] In practice, determining whether a distributed denial-of-service (DDoS) attack exists is done when network traffic for a specific protocol exceeds the threshold traffic for that protocol in the traffic model.
[0237] In practice, the marking operation further includes:
[0238] If an anomaly is detected, the relevant message is marked as suspicious or abnormal.
[0239] In implementation, obtaining the traffic model of one or more router nodes includes:
[0240] Each router node compiles its own traffic model and stores it on each router.
[0241] Each router node obtains a traffic model for reference from other locations and stores it on the router.
[0242] In practice, the task marker encoded by the network programming technique is stored in the hop-by-hop extension header HBH or the SRv6 extension header of the IPv6 packet.
[0243] Among them, Figure 10In this context, the bus architecture may include any number of interconnected buses and bridges, specifically linking various circuits together, represented by one or more processors (processor 1000) and memory (memory 1020). The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. The bus interface provides an interface. The transceiver 1010 may be multiple elements, including a transmitter and a receiver, providing a unit for communicating with various other devices over a transmission medium. The processor 1000 is responsible for managing the bus architecture and general processing, and the memory 1020 may store data used by the processor 1000 during operation.
[0244] This invention also provides a router node, comprising:
[0245] A receiving module is configured to receive a message containing network programming technology encoding, wherein the network programming technology encoding indicates that one or more corresponding tasks need to be executed;
[0246] A load module is used to determine the load status of the processing chip corresponding to the message ingress interface;
[0247] The processing module is used to not process messages containing network programming technology encoding when the load is greater than a predetermined value, and to process messages containing network programming technology encoding when the load is less than a predetermined value.
[0248] In implementation, the load module is further used to determine the load state of the processing chip corresponding to the message ingress interface, which is determined by referring to one or more of the following parameters:
[0249] The current utilization rate of the processing chip corresponding to the message ingress interface;
[0250] The number of messages currently being processed by the processing chip corresponding to the message inlet interface;
[0251] The processing chip corresponding to the message inlet interface is currently processing the rate of the stream containing the message.
[0252] In implementation, when the processing module further processes messages containing network programming technology encoding, it includes:
[0253] The processing performed corresponds to one or more tasks that need to be executed, and one or more tasks have corresponding task markers in the data packet;
[0254] Modify the flag of the task corresponding to the executed process. If the router node executes one task, modify the flag of that task. If the router node executes multiple tasks, modify the flags of all tasks.
[0255] In implementation, the processing module is further used to, when processing messages containing network programming techniques, if the message carries information indicating that the relevant task is to perform distributed denial-of-service attack analysis, include:
[0256] Based on one or more traffic models obtained, analyze one or more network traffic patterns to determine whether a distributed denial-of-service attack exists.
[0257] When a distributed denial-of-service attack occurs, denial-of-service attack processing is performed on one or more abnormal traffic types according to the router's predetermined policy.
[0258] In implementation, the processing module is further configured to handle denial-of-service attacks on one or more types of abnormal traffic according to a predetermined policy of the target router, including:
[0259] Randomly drop packets and / or mark one or more abnormal traffic streams.
[0260] If a marking operation is performed, the data packet must contain a suspicious or abnormal flag to indicate whether the packet is suspicious or abnormal.
[0261] In implementation, the processing module is further used to handle random packet loss operations or marking operations, including:
[0262] If the traffic is determined to be normal, the task identifier corresponding to the anomaly detection task is modified to indicate that the anomaly detection task for the packet has been completed.
[0263] In practice, the processing module is further used to determine whether a distributed denial-of-service attack exists when the network traffic of a specific protocol is detected to be greater than the threshold traffic of that protocol in the traffic model.
[0264] In implementation, the processing module is further used to perform the marking operation, including:
[0265] If an anomaly is detected, the relevant message is marked as suspicious or abnormal.
[0266] In implementation, the load module is further configured to, when obtaining the traffic model of one or more router nodes, include:
[0267] Each router node compiles its own traffic model and stores it on each router.
[0268] Each router node obtains a traffic model for reference from other locations and stores it on the router.
[0269] In practice, the processing module is further used to process the task markers encoded by the network programming technique stored in the hop-by-hop extension header HBH or the SRv6 extension header of the IPv6 packet.
[0270] For ease of description, the various parts of the device described above are divided into modules or units according to their functions. Of course, in implementing this invention, the functions of each module or unit can be implemented in one or more software or hardware components.
[0271] Figure 11 Schematic diagram of router node structure Figure 2 As shown in the figure, a router node includes:
[0272] Processor 1100 is used to read the program from memory 1120 and execute the following procedures:
[0273] When acting as an entry router node in the network, packets are marked and inserted according to the format encoded by network programming techniques. The mark represents the corresponding operation, which corresponds to one or more tasks that are to be performed in the network.
[0274] Transceiver 1110 is used to receive and send data under the control of processor 1100.
[0275] In practice, when inserting the tag, it is done in the hop-by-hop extension header HBH or the SRv6 extension header of the IPv6 packet.
[0276] Among them, Figure 11 In this context, the bus architecture may include any number of interconnected buses and bridges, specifically linking various circuits together, represented by one or more processors (processor 1100) and memory (memory 1120). The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. The bus interface provides an interface. The transceiver 1110 may be multiple elements, including transmitters and receivers, providing a unit for communicating with various other devices over a transmission medium. The processor 1100 is responsible for managing the bus architecture and general processing, and the memory 1120 may store data used by the processor 1100 during operation.
[0277] This invention also provides a router node, comprising:
[0278] The tagging module is used to insert tags into packets according to the format encoded by network programming technology when acting as an ingress router node of the network. The tags represent corresponding operations, which correspond to one or more tasks that are to be performed in the network.
[0279] In practice, the tagging module is further used to insert tags either in the hop-by-hop extension header (HBH) or the SRv6 extension header of the IPv6 packet.
[0280] For ease of description, the various parts of the device described above are divided into modules or units according to their functions. Of course, in implementing this invention, the functions of each module or unit can be implemented in one or more software or hardware components.
[0281] This invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described network programming technique processing method.
[0282] For specific implementation details, please refer to the implementation of network programming techniques on router nodes, or when the router node is the entry point to the network.
[0283] In summary, the technical solution provided by this invention is a new network programmable implementation mechanism based on the data plane for DDoS attacks. Traffic is marked at the entry node, and then processed at a predetermined network node based on the marked content. It does not require specifying the location where a function must be executed; it supports executing multiple tasks in the network, but does not specify the specific execution location. Each node decides whether to execute the relevant tasks based on its own computing power.
[0284] It can make full use of the computing power in the network. Nodes can decide whether to take relevant actions based on their own computing power. It provides an easy-to-implement on-network security (inherent network security) mechanism and can provide better DDoS protection capabilities.
[0285] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage and optical storage) containing computer-usable program code.
[0286] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0287] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0288] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0289] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.
Claims
1. A network programming technology processing method, characterized in that, include: The router node receives a message containing network programming technology codes, which indicate that one or more corresponding tasks need to be executed; The router node determines the load status of the processing chip corresponding to the packet ingress interface. The load status is determined with reference to one or more of the following parameters: the current utilization rate of the processing chip corresponding to the packet ingress interface; the number of packets currently being processed by the processing chip corresponding to the packet ingress interface; and the rate of the flow in which the processing chip corresponding to the packet ingress interface is currently being processed. When the load exceeds a predetermined value, the router node will not process packets containing network programming techniques. as well as, When the load is less than a predetermined value, the router node processes packets containing network programming technology encoding. This processing includes: The processing performed corresponds to one or more tasks that need to be executed, and one or more tasks have corresponding task markers in the data packet; Modify the flag of the task corresponding to the executed process. If the router node executes one task, modify the flag of the corresponding task. If the router node executes multiple tasks, modify the flags of the corresponding multiple tasks. The task marker encoded by the network programming technique is stored in the hop-by-hop extension header HBH or the SRv6 extension header of the IPv6 packet. When processing messages containing network programming technology encoding, if the message carries information indicating that the relevant task is to perform distributed denial-of-service attack analysis, then based on the traffic models of one or more router nodes obtained, one or more types of network traffic are analyzed to determine whether a distributed denial-of-service attack exists. When a distributed denial-of-service attack occurs, random packet loss and / or marking operations are performed on one or more abnormal traffic flows. If a marking operation is performed, the data packet must contain a suspicious or abnormal flag to indicate whether the packet is suspicious or abnormal. When performing random packet loss operations and / or marking operations, the following further applies: If the traffic is determined to be normal, the task identifier corresponding to the anomaly detection task is modified to indicate that the anomaly detection task for the packet has been completed.
2. The method as described in claim 1, characterized in that, Determining whether a distributed denial-of-service (DDoS) attack exists is done when network traffic for a specific protocol exceeds the threshold traffic for that protocol in the traffic model.
3. The method as described in claim 1, characterized in that, The marking operation further includes: If an anomaly is detected, the relevant message is marked as suspicious or abnormal.
4. The method as described in claim 1, characterized in that, The method further includes: Obtain the traffic model of one or more router nodes; The process of obtaining the traffic model of one or more router nodes includes: Each router node compiles its own traffic model and stores it on each router. Each router node obtains a traffic model for reference from other locations and stores it on the router.
5. A router node, characterized in that, include: The processor is used to read programs from memory and execute the following procedures: A message containing network programming technology codes is received, the network programming technology codes indicating that one or more corresponding tasks need to be executed; The load status of the processing chip corresponding to the packet ingress interface is determined by referring to one or more of the following parameters: the current utilization rate of the processing chip corresponding to the packet ingress interface; the number of packets currently being processed by the processing chip corresponding to the packet ingress interface; and the rate of the stream in which the processing chip corresponding to the packet ingress interface is currently being processed. When the load exceeds a predetermined value, messages containing network programming technology encoding will not be processed; as well as, When the load is less than a predetermined value, messages containing network programming technology encoding are processed. This processing includes: The processing performed corresponds to one or more tasks that need to be executed, and one or more tasks have corresponding task markers in the data packet; Modify the flag of the task corresponding to the executed process. If the router node executes one task, modify the flag of the corresponding task. If the router node executes multiple tasks, modify the flags of the corresponding multiple tasks. A transceiver is used to receive and send data under the control of a processor; The task marker encoded by the network programming technique is stored in the hop-by-hop extension header HBH or the SRv6 extension header of the IPv6 packet. When processing messages containing network programming technology encoding, if the message carries information indicating that the relevant task is to perform distributed denial-of-service attack analysis, then based on the traffic models of one or more router nodes obtained, one or more types of network traffic are analyzed to determine whether a distributed denial-of-service attack exists. When a distributed denial-of-service attack occurs, random packet loss and / or marking operations are performed on one or more abnormal traffic flows. If a marking operation is performed, the data packet must contain a suspicious or abnormal flag to indicate whether the packet is suspicious or abnormal. When performing random packet loss operations and / or marking operations, the following further applies: If the traffic is determined to be normal, the task identifier corresponding to the anomaly detection task is modified to indicate that the anomaly detection task for the packet has been completed.
6. A router node, characterized in that, include: A receiving module is configured to receive a message containing network programming technology encoding, wherein the network programming technology encoding indicates that one or more corresponding tasks need to be executed; The load module is used to determine the load status of the processing chip corresponding to the packet ingress interface. The load status is determined with reference to one or more of the following parameters: the current utilization rate of the processing chip corresponding to the packet ingress interface; the number of packets currently being processed by the processing chip corresponding to the packet ingress interface; and the rate of the stream in which the processing chip corresponding to the packet ingress interface is currently being processed. The processing module is configured to not process packets containing network programming technology encoding when the load exceeds a predetermined value, and to process packets containing network programming technology encoding when the load is less than the predetermined value. Processing packets containing network programming technology encoding includes: executing a process corresponding to one or more tasks to be executed, whereby the one or more tasks have corresponding task tags in the data packet; modifying the tag of the task corresponding to the executed process; if the router node executes one task, then modifying the tag of that one task; if the router node executes multiple tasks, then modifying the tags of all corresponding tasks. The task marker encoded by the network programming technique is stored in the hop-by-hop extension header HBH or the SRv6 extension header of the IPv6 packet. When processing messages containing network programming technology encoding, if the message carries information indicating that the relevant task is to perform distributed denial-of-service attack analysis, then based on the traffic models of one or more router nodes obtained, one or more types of network traffic are analyzed to determine whether a distributed denial-of-service attack exists. When a distributed denial-of-service attack occurs, random packet loss and / or marking operations are performed on one or more abnormal traffic flows. If a marking operation is performed, the data packet must contain a suspicious or abnormal flag to indicate whether the packet is suspicious or abnormal. When performing random packet loss operations and / or marking operations, the following further applies: If the traffic is determined to be normal, the task identifier corresponding to the anomaly detection task is modified to indicate that the anomaly detection task for the packet has been completed.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method of any one of claims 1 to 4.
Citation Information
Patent Citations
Method and system for integrating protection and load balancing of distributed denial of service
CN106790310A
Identification analysis method and device
CN114500453A
