A source address traffic identification and control method, device, equipment and medium based on programmable data plane

By introducing a programmable data plane into the network, combining the BGP protocol and control plane, the identification and control of source address traffic is achieved, and the problems of insufficient flexibility and high performance overhead in traditional technology are solved, and network security and recognition accuracy are improved , dynamically respond to source address attacks.

CN118611955BActive Publication Date: 2024-11-15QUAN CHENG LABORATORY +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410817363.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-11-15
Estimated Expiration
2044-06-24

AI Technical Summary

Technical Problem

The traditional expansion of BGPSAVNET technology on the data plane has problems such as insufficient flexibility, high performance overhead, high development complexity and long cycle, making it difficult to effectively identify and block illegal source prefix traffic in existing networks, and reduce reflective amplification attacks on network infrastructure. damage.

Method used

By implementing a programmable data plane on the boundary or edge router of the autonomous domain, using the BGP protocol to pass source prefix and prefix home information, combining the control plane to generate source address authentication table entries, and identify and control traffic through the data plane interface to achieve the goal of Blocking and management of malicious source address traffic.

Benefits of technology

It improves network security, provides more flexible malicious traffic identification and fine-grained data plane operation, can dynamically adjust data packet processing logic, quickly respond to source address attacks, and reduces the damage to infrastructure by network attacks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118611955B_ABST
    Figure CN118611955B_ABST
Patent Text Reader

Abstract

The present invention relates to a method, device, equipment and medium for identifying and controlling source address traffic based on a programmable data plane, which belongs to the field of computer network security, and includes a control plane and a data plane. The control plane is responsible for generating source address authentication table items according to routing and source address authentication information, and the data plane is responsible for identifying traffic according to the source address authentication table items generated by the control plane, and blocking, slowing down, reporting and other operations on the traffic according to the settings of the source address authentication table items, so as to achieve blocking and control of malicious source address traffic: the present invention utilizes existing perfect network intrusion behavior detection and capture and other security defense function facilities to achieve defense against large-scale flooding traffic and malicious traffic. Based on a programmable data plane, the present invention provides a more fine-grained division of port types, and can more flexibly identify malicious traffic. Compared with the traditional data plane, it has the characteristics of higher action flexibility and finer traffic identification granularity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a source address traffic identification and control method, device, equipment and medium based on a programmable data plane, and belongs to the field of computer network security. Background Art

[0002] With the rapid development of Internet technology and the expansion of the Internet, network attack methods are becoming more and more complex and diverse. Distributed Denial of Service (DDOS) attacks are a representative attack method, which generates large-scale malicious traffic to send requests to the target server or network equipment, causing it to exceed its tolerance, thus causing service unavailability. This attack method has the characteristics of high concealment and low execution cost, which brings serious security risks to Internet infrastructure and network services, and poses a serious threat to the availability and stability of the network. In DDOS attacks, reflection amplification attacks, SYN Flooding and other attack methods forge the victim's source address in the data packet, and use open network services such as the Address Resolution Service (DNS) to amplify the attack traffic, causing the victim's bandwidth to be exhausted and causing service unavailability. Reflection amplification attacks based on source address forgery have become the most important DDOS attack method.

[0003] Traditional network security measures can no longer reasonably deal with network attacks in complex and ever-changing scenarios. In this context, source address authentication technology provides a new solution for network security. Source address authentication technology aims to ensure that the source of the data packet is reasonable and reliable, thereby protecting the network from the impact of source address forgery attacks. At present, source address authentication technologies such as ACL-based SAV and uRPF still have limitations such as accuracy, lack of inbound authentication, and incentives. On this basis, in order to achieve accurate source address authentication, all-round protection, and acceptable overhead, the academic community proposed the BGPSAVNET technology, which uses the BGP protocol to transmit source address authentication information and build a source address authentication table on the router, thereby blocking illegal source address traffic.

[0004] The extension of BGPSAVNET technology on the traditional data plane has problems such as insufficient data plane flexibility, high performance overhead, high development complexity and long cycle. With the rapid development of emerging technologies such as cloud computing, Internet of Things and 5G, network security is facing increasingly complex and severe challenges. How to extend the BGPSAVNET function in the existing network and use low performance overhead to identify and block traffic from illegal source prefixes, thereby reducing the damage of DDoS attacks such as reflection amplification attacks to network infrastructure has become an urgent problem to be solved in the field of Internet security. Summary of the invention

[0005] In view of the deficiencies of the prior art, the present invention provides a method, device, equipment and medium for source address traffic identification and control based on a programmable data plane, which performs source address traffic identification and control through a programmable data plane on an autonomous domain boundary or edge router, and uses the BGP protocol to transmit source prefixes and prefix ownership information. The BGP protocol interacts with the control plane source address authentication module to generate source address authentication entries, and sends them to the programmable data plane through the data plane interface. The programmable data plane performs traffic identification and control based on the source address authentication entries, identifies abnormal source address traffic, and sends the features to the control plane for decision-making, and generates corresponding source address traffic control entries.

[0006] The present invention is divided into a control plane and a data plane. The control plane is responsible for generating source address authentication items according to routing and source address authentication information. The data plane is responsible for identifying traffic according to the source address authentication items generated by the control plane, and blocking, slowing down, sampling, and sending traffic according to the settings of the source address authentication items, thereby blocking and controlling malicious source address traffic.

[0007] Terminology explanation:

[0008] 1. BGPSAVNET: BGP-based source address verification is a method designed to enhance the security and integrity of the Border Gateway Protocol (BGP). It prevents forged IP addresses by verifying the source address of the data packet transmitted through the BGP protocol.

[0009] 2. Packet sideband metadata: In the programmable data plane, packet sideband metadata refers to additional information carried during packet processing. This information is usually not included in the actual payload of the packet, but is crucial to the processing and forwarding of the packet.

[0010] 3. SAV_BLOCK_INTF: blacklist interface.

[0011] 4. SAV_ALLOW_INTF: whitelist interface.

[0012] 5. BGPSAVNET Neighbors: In BGP (Border Gateway Protocol), neighbors refer to two directly connected BGP routers that have established a BGP session and exchange routing information. In BGPSAVNET, the concept of neighbors refers to two BGP routers that support SAVNET. The information exchanged between them includes not only traditional routing information, but also information related to source address verification, including source address, interface type, and tag.

[0013] 6. Packet Marking or Packet Coloring is a network management and security technology that is used to mark packets as they pass through the network. These marks can be used for a variety of purposes, including traffic management, priority setting, routing decisions, and security policy application.

[0014] The present invention adopts the following technical solution:

[0015] A method for source address traffic identification and control based on a programmable data plane comprises the following steps:

[0016] (1) The source address authentication module of the control plane initializes the software blacklist and software whitelist;

[0017] The initialization process is:

[0018] Instantiate the software blacklist table and the software whitelist table, allocate memory for the software blacklist table and the software whitelist table, initialize the software blacklist table and the software whitelist table header node, register the software blacklist table and the software whitelist table for easy access;

[0019] (2) The interface module of the control plane connects to the interface module of the data plane to initialize the interface table, blacklist and whitelist of the data plane; the data plane is a programmable data plane;

[0020] (3) The source address authentication module of the control plane reads the local routing table and generates source address authentication entries in sequence according to the metrics of direct routing, static routing, and dynamic routing protocols;

[0021] (4) The source address authentication module of the control plane communicates with the BGP module and generates a source address authentication table entry according to the BGPSAVNET source prefix and prefix attribution information;

[0022] The generation rules here can be in accordance with the DRAFT regulations. Specifically: the BGPSAVNET source prefix will all be installed in the blacklist, and its input interface is the BGPSAVNET neighbor output interface. The BGPSAVNET source prefix will determine whether there is a whitelist interface with the same TAG on this device based on the prefix ownership information. If so, it will be installed in the whitelist, and its input interface is the BGPSAVNET neighbor output interface. The prefixes generated in step (3) are the direct route, static route, and dynamic routing protocol prefixes converted by this routing table, a total of three types, and step (4) describes the source address authentication information transmitted by the BGPSAVNET neighbor, which belongs to the fourth type.

[0023] (5) The interface module of the control plane sends the source address authentication table entry generated by the source address authentication module of the control plane to the interface module of the data plane;

[0024] (6) The interface module of the data plane installs the source address authentication entry into the interface table, the blacklist, and the whitelist, and the interface module of the data plane counts the number of entries;

[0025] (7) After receiving the data packet, the interface table of the data plane determines the data packet sideband metadata, that is, determines whether it is a source address authentication interface and determines the interface type;

[0026] The interface types include blacklist interface, whitelist interface and interface with unstarted source address authentication. Specifically, the blacklist interface refers to an interface configured to match a blacklist table, the whitelist interface refers to an interface configured to match a whitelist table, and the unstarted source address authentication interface refers to an interface that is not configured to perform source address authentication;

[0027] If the data packet sideband metadata is SAV_ALLOW_INTF, that is, the whitelist interface, then execute step (8); if the data packet sideband metadata is SAV_BLOCK_INTF, that is, the blacklist interface, then execute step (9); if the data packet sideband metadata is that the source address authentication interface is not started, then enter the forwarding module;

[0028] (8) The data packet enters the whitelist of the data plane for whitelist matching. If the corresponding source address authentication entry is matched, it enters the forwarding module; if it is not matched, the data plane operation is performed according to the setting of the source address authentication entry, such as speed reduction or blocking, and reported to the control plane;

[0029] Inbound interface matching uses the inbound interface for exact matching. If there is no match, the inbound interface of the packet is an interface without source address authentication enabled. If there is a corresponding match, the matching result is recorded as a blacklist interface or a whitelist interface according to the result of the table item matching. The blacklist interface is SAV_BLOCK_INTF and the whitelist interface is SAV_ALLOW_INTF.

[0030] (9) The data packet enters the blacklist of the data plane for blacklist matching. If the corresponding source address authentication table entry is matched, the data plane operation is performed according to the setting of the source address authentication table entry, such as blocking; if it does not match, it enters the forwarding module;

[0031] (10) The forwarding module of the data plane is responsible for forwarding according to the destination address, monitoring the traffic, and handling abnormal traffic;

[0032] (11) The source address authentication module of the control plane sends the abnormal traffic processing results to the BGP module, and the BGP module notifies the BGPSAVNET neighbor. Since the local source address authentication information has changed, it is necessary to use the BGP protocol to notify the local changed source address information to the BPG SAVNET neighbor so that its source address authentication information can be dynamically adjusted.

[0033] Preferably, in step (1), the software blacklist table and the software whitelist table refer to the software table of the control plane, including recording the data plane source address authentication interface and interface type, recording the source address and the corresponding input interface information, recording the source address and the corresponding data plane operation, and the corresponding data plane operation includes blocking, speed reduction, reporting and forwarding operations. Blocking refers to discarding the corresponding flow at the end of the pipeline, that is, packet loss; speed reduction refers to performing different levels of speed limit operations of high, medium and low on the corresponding flow in the pipeline traffic management, and constructing ECN marked frame back pressure at the same time; reporting refers to extracting the header of the corresponding flow at the end of the pipeline and sending it to the control plane; forwarding operation refers to forwarding the corresponding flow according to the destination address; preferably, constructing ECN marked frame back pressure refers to swapping the source address and the destination address, setting the ECN mark of the IP message, and sending it through the input interface.

[0034] Preferably, the interface table of the data plane records the interface and interface type for starting source address authentication, and uses the input interface for input interface matching; the blacklist records the source prefix list that is not allowed to pass, and uses the data packet source address for blacklist matching; the whitelist records the source prefix list that is allowed to pass and the corresponding input interface, and uses the data packet source address and input interface for whitelist matching.

[0035] Preferably, when matching the blacklist, the source address of the data packet is extracted and the longest prefix match is performed in the blacklist. If there is at least one blacklist entry that matches the source address of the data packet, the matching result is a hit, otherwise it is a miss;

[0036] When matching the whitelist, the source address of the data packet is extracted for the longest prefix match in the whitelist, and the input interface of the data packet is extracted for exact matching in the whitelist. If there is at least one whitelist entry that matches both the source address of the data packet and the input interface of the data packet, the matching result is a hit, otherwise it is a no hit.

[0037] In step (3), the generated source address authentication table entry reads the local routing table to determine whether the corresponding prefix outbound interface has the source address authentication function enabled. Specifically, if it is a blacklist interface, the prefix is ​​installed in the software blacklist table of the source address authentication module of the control plane. If it is a whitelist interface, the prefix and the inbound interface are installed in the software whitelist table of the source address authentication module of the control plane.

[0038] Generating in sequence according to the metric value means that the source address authentication entries generated by routes from different sources have priorities. Specifically, the source address authentication entries generated by direct routes take precedence over the source address authentication entries generated by static routes, and are superior to the source address authentication entries generated by the BGPSAVNET source prefix and prefix attribution information, and are superior to the source address authentication entries generated by the dynamic routing protocol.

[0039] The source address authentication entry contains the source IP address, IP address prefix length, and inbound interface.

[0040] Preferably, in step (4), the BGPSAVNET source prefix and prefix attribution information refer to the prefix and its attribute information transmitted through the BGP Update message, the attribute information includes the input interface type and label value of the prefix, wherein the BGPUpdate message is generated by the BGP module according to the BGPSAVNET source prefix and prefix attribution information;

[0041] Preferably, the sending of the source address authentication table item in step (5) refers to sending the blacklist interface and whitelist interface configuration to the interface module of the data plane through the southbound interface protocol, and the interface module of the data plane parses and sends it to the interface table of the data plane; further, the sending of the source address authentication table item includes sending the source prefix and data plane operation in the software blacklist table of the source address authentication module of the control plane to the interface module of the data plane through the southbound interface protocol, and the interface module of the data plane parses and sends it to the blacklist of the data plane, and also includes sending the source prefix, input interface configuration and data plane operation in the software whitelist table of the source address authentication module of the control plane to the interface module of the data plane through the southbound interface protocol, and the interface module of the data plane parses and sends it to the whitelist of the data plane.

[0042] Preferably, the process of counting the number of entries in step (6) is as follows:

[0043] (6.1) The interface module of the data plane records the number of entries R in the interface table, blacklist, and whitelist;

[0044] (6.2) When the interface module of the control plane sends an entry through the southbound interface and installs it in the interface table, blacklist or whitelist, it checks the local entry counter R c Whether the table entry capacity R of the data plane is exceeded d , if R c +1>R d , then the entry is not sent to the interface module of the data plane, otherwise the entry is sent to the interface module of the data plane; when the interface module of the control plane sends an entry through the southbound interface and deletes the entry in the interface table, blacklist or whitelist, check the local entry counter R c , R c The value is set to Rc -1;

[0045] There are two cases of deletion: if the entry is route conversion, that is, the three types described in step (3), then the entry will be deleted when the route is withdrawn; if the entry is announced by the BGPSAVNET neighbor through an update message, it will be deleted when the neighbor uses an update message to withdraw it;

[0046] (6.3) After receiving the table entry and installing it in the corresponding interface table, blacklist or whitelist, the data plane interface module obtains the current table entry capacity, calculates the number of installable table entries, and returns the number of installable table entries R of the current interface table, blacklist table, and whitelist table to the control plane interface module through the southbound interface. n , R n The value of R d -R;

[0047] (6.4) The interface module of the control plane receives the number of installable table entries R of the current interface table, blacklist, and whitelist of the interface module of the data plane. n After that, update the local entry counter R c For R n ;

[0048] Preferably, in step (10), the process of processing abnormal traffic is:

[0049] First, the source address authentication module of the control plane provides a setting interface for the source address authentication threshold SAV_THRESHOLD, and sends the set source address authentication threshold SAV_THRESHOLD to the data plane through the interface module of the control plane. For the source address authentication threshold SAV_THRESHOLD, the administrator can set the threshold through commands. It can be set according to needs. For example, it can be set to 5G or 8G on a 10G link.

[0050] The data packets of the same flow are dyed. When the rate of the same flow exceeds the source address authentication threshold SAV_THRESHOLD, it is abnormal traffic. The flow is slowed down, and the five-tuple of the abnormal traffic (i.e., source address, destination address, protocol type, source port number, destination port number) is reported to the source address authentication module of the control plane. Among them, the same flow refers to a series of data packets with the same source address, destination address, protocol type, source port number, and destination port number; when the rate of the same flow does not exceed the source address authentication threshold SAV_THRESHOLD, it is forwarded;

[0051] After the source address authentication module of the control plane receives the abnormal traffic five-tuple information, it identifies it based on the existing information infrastructure feature library, and sends the source address, input interface and processing results to the data plane through the interface module of the control plane; the processing results include speed reduction, blocking and redirection.

[0052] A source address traffic identification and control device based on a programmable data plane includes a control plane and a data plane, the control plane includes a source address authentication module, an interface module and a BGP module, the source address authentication module includes a software blacklist table, a software whitelist table and a software interface table;

[0053] The data plane is a programmable data plane that can be implemented through programming, including a blacklist, a whitelist, an interface module and a forwarding module. The interface module of the control plane communicates with the interface module of the data plane.

[0054] A computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned source address traffic identification and control method based on a programmable data plane when executing the computer program.

[0055] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned source address traffic identification and control method based on a programmable data plane.

[0056] For any details not provided in the present invention, please refer to the prior art.

[0057] The beneficial effects of the present invention are:

[0058] 1. The source address authentication method provided by the present invention utilizes BGPSAVNET technology to construct a source address authentication table on a router, thereby realizing accurate identification and blocking of illegal source address traffic, thereby effectively improving the security of the network.

[0059] 2. The present invention is based on a programmable data plane, provides a more fine-grained division of port types, can more flexibly identify malicious traffic, and has blocking, speed reduction, reporting and forwarding operations in the data plane. Compared with traditional data planes, it has higher action flexibility and finer traffic identification granularity.

[0060] 3. The programmable data plane is a technology that can change the data packet processing logic through code, taking into account the data packet processing speed (capable of achieving line-speed forwarding) and the flexibility of the processing logic. Therefore, the data packet processing logic can be dynamically adjusted according to the source address attack type, and the existing unit logic can be increased or changed. Such changes can be immediately applied to existing devices without the need for lengthy chip design, tape-out and other steps. The present invention coordinates the contradiction between the fast changing speed of source address network attacks and the decision-making speed and efficiency, and can effectively solve network problems such as large-scale source address attacks and malicious source address traffic access in access and backbone networks. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] The drawings in the specification, which constitute a part of the present application, are used to provide further understanding of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application.

[0062] Figure 1 It is a schematic diagram of the data plane structure of the present invention;

[0063] Figure 2 It is a schematic diagram of the control plane structure of the present invention;

[0064] Figure 3 It is a schematic diagram of the data packet processing flow of the present invention;

[0065] Figure 4 It is intended to represent the interface of the present invention;

[0066] Figure 5 This is a schematic diagram of the whitelist of the present invention;

[0067] Figure 6 It is a schematic diagram of the blacklist of the present invention. DETAILED DESCRIPTION

[0068] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of the present invention are clearly and completely described below in conjunction with the drawings in the implementation of this specification, but are not limited to this. Anything not fully described in the present invention shall be based on the conventional technology in the art.

[0069] Example 1

[0070] A method for source address traffic identification and control based on a programmable data plane comprises the following steps:

[0071] (1) The source address authentication module of the control plane initializes the software blacklist and software whitelist;

[0072] (2) The interface module of the control plane connects to the interface module of the data plane to initialize the interface table, blacklist and whitelist of the data plane; Figure 1 As shown, it is a programmable data plane; the control plane is as shown Figure 2 As shown;

[0073] (3) The source address authentication module of the control plane reads the local routing table and generates source address authentication entries in sequence according to the metrics of direct routing, static routing, and dynamic routing protocols;

[0074] (4) The source address authentication module of the control plane communicates with the BGP module and generates a source address authentication table entry according to the BGPSAVNET source prefix and prefix attribution information;

[0075] (5) The interface module of the control plane sends the source address authentication table entry generated by the source address authentication module of the control plane to the interface module of the data plane;

[0076] (6) The interface module of the data plane installs the source address authentication entry into the interface table, the blacklist, and the whitelist, and the interface module of the data plane counts the number of entries;

[0077] The process of counting the number of entries is as follows:

[0078] (6.1) The interface module of the data plane records the number of entries R in the interface table, blacklist, and whitelist;

[0079] (6.2) When the interface module of the control plane sends an entry through the southbound interface and installs it in the interface table, blacklist or whitelist, it checks the local entry counter R c Whether the table entry capacity R of the data plane is exceeded d , if R c +1>R d , then the entry is not sent to the interface module of the data plane, otherwise the entry is sent to the interface module of the data plane; when the interface module of the control plane sends an entry through the southbound interface and deletes the entry in the interface table, blacklist or whitelist, check the local entry counter R c , R c The value is set to R c -1;

[0080] There are two cases of deletion: if the entry is route conversion, that is, the three types described in step (3), then the entry will be deleted when the route is withdrawn; if the entry is announced by the BGPSAVNET neighbor through an update message, it will be deleted when the neighbor uses an update message to withdraw it;

[0081] (6.3) After receiving the table entry and installing it in the corresponding interface table, blacklist or whitelist, the data plane interface module obtains the current table entry capacity, calculates the number of installable table entries, and returns the number of installable table entries R of the current interface table, blacklist table, and whitelist table to the control plane interface module through the southbound interface. n , R n The value of R d -R;

[0082] (6.4) The interface module of the control plane receives the number of installable table entries R of the current interface table, blacklist, and whitelist of the interface module of the data plane. n After that, update the local entry counter R c For R n ;

[0083] (7) Figure 3 As shown, after receiving the data packet, the interface table of the data plane judges the data packet sideband metadata, that is, whether it is a source address authentication interface and determines the interface type;

[0084] The interface types include blacklist interface, whitelist interface and interface with unstarted source address authentication. Specifically, the blacklist interface refers to an interface configured to match a blacklist table, the whitelist interface refers to an interface configured to match a whitelist table, and the unstarted source address authentication interface refers to an interface that is not configured to perform source address authentication;

[0085] If the data packet sideband metadata is SAV_ALLOW_INTF, that is, the whitelist interface, then execute step (8); if the data packet sideband metadata is SAV_BLOCK_INTF, that is, the blacklist interface, then execute step (9); if the data packet sideband metadata is that the source address authentication interface is not started, then enter the forwarding module;

[0086] (8) The data packet enters the whitelist of the data plane for whitelist matching. If the corresponding source address authentication entry is matched, it enters the forwarding module; if it is not matched, the data plane operation is performed according to the setting of the source address authentication entry, such as speed reduction or blocking, and reported to the control plane;

[0087] When matching the whitelist, extract the data packet source address to perform the longest prefix match in the whitelist, and extract the data packet input interface to perform an exact match in the whitelist. If there is at least one whitelist entry that matches both the data packet source address and the data packet input interface, the match result is a hit, otherwise it is a miss.

[0088] (9) The data packet enters the blacklist of the data plane for blacklist matching. If the corresponding source address authentication table entry is matched, the data plane operation is performed according to the setting of the source address authentication table entry, such as blocking; if it does not match, it enters the forwarding module;

[0089] When matching the blacklist, the source address of the data packet is extracted and the longest prefix match is performed in the blacklist. If there is at least one blacklist entry that matches the source address of the data packet, the matching result is a hit, otherwise it is a miss;

[0090] (10) The forwarding module of the data plane is responsible for forwarding according to the destination address, monitoring the traffic, and handling abnormal traffic;

[0091] The process of handling abnormal traffic is as follows:

[0092] First, the source address authentication module of the control plane provides a setting interface for the source address authentication threshold SAV_THRESHOLD, and sends the set source address authentication threshold SAV_THRESHOLD to the data plane through the interface module of the control plane. For the source address authentication threshold SAV_THRESHOLD, the administrator can set the threshold through commands. It can be set according to needs. For example, it can be set to 5G or 8G on a 10G link.

[0093] The data packets of the same flow are dyed. When the rate of the same flow exceeds the source address authentication threshold SAV_THRESHOLD, it is considered abnormal traffic. The flow is decelerated, and the five-tuple of the abnormal traffic is reported to the source address authentication module of the control plane. The same flow refers to a series of data packets with the same source address, destination address, protocol type, source port number, and destination port number. When the rate of the same flow does not exceed the source address authentication threshold SAV_THRESHOLD, it is forwarded.

[0094] After the source address authentication module of the control plane receives the abnormal traffic five-tuple information, it identifies it based on the existing information infrastructure feature library, and sends the source address, input interface and processing results to the data plane through the interface module of the control plane; the processing results include speed reduction, blocking and redirection.

[0095] (11) The source address authentication module of the control plane sends the abnormal traffic processing results to the BGP module, and the BGP module notifies the BGPSAVNET neighbor. Since the local source address authentication information has changed, it is necessary to use the BGP protocol to notify the local changed source address information to the BPG SAVNET neighbor so that its source address authentication information can be dynamically adjusted.

[0096] Compared with the existing solutions, this embodiment is implemented by utilizing a programmable data plane, can divide port types at a finer granularity, can identify malicious traffic more flexibly, and has operations such as blocking, reporting, and speed reduction in data plane operations. Compared with traditional data planes, it has the characteristics of higher action flexibility and finer traffic identification granularity. At the same time, combined with the control plane and sending operations, it can achieve faster traffic identification and blocking functions, coordinate the contradiction between the fast changing speed of source address network attacks and the decision-making speed and efficiency, and can be used as an effective means to deal with large-scale source address attacks and malicious source address traffic access in access and backbone networks.

[0097] Example 2

[0098] A source address traffic identification and control method based on a programmable data plane, the interface table is as follows Figure 4 As shown, the whitelist is as follows Figure 5 As shown, the blacklist is Figure 6 As shown, data packets from each port are received in real time, and data packet A with source address P1, data packet B with source address P2, and data packet C with source address P3 enter the data plane from interface 1, interface 2, and interface 3 respectively;

[0099] The interface table of the data plane determines whether the traffic inbound interface is a source address authentication interface and determines the interface type. If the data packet sideband metadata is SAV_BLOCK_INTF, it enters the data plane blacklist. If the data packet sideband metadata is SAV_ALLOW_INTF, it enters the data plane whitelist. If the data packet sideband metadata is empty, it enters the forwarding module for forwarding.

[0100] Data packet A hits the first blacklist interface entry in the data plane interface table and enters the data plane blacklist for blacklist matching. If there is no match, it enters the forwarding module.

[0101] Data packet B hits the second whitelist interface entry in the data plane interface table and enters the data plane whitelist for whitelist matching. If there is no match, the data plane operation is performed according to the source address authentication entry setting and enters the forwarding module.

[0102] Packet C does not hit the data plane interface table and enters the forwarding module.

[0103] Example 3

[0104] A source address traffic identification and control device based on a programmable data plane includes a control plane and a data plane, the control plane includes a source address authentication module, an interface module and a BGP module, the source address authentication module includes a software blacklist table, a software whitelist table and a software interface table;

[0105] The data plane is a programmable data plane that can be implemented through programming, including a blacklist, a whitelist, an interface module and a forwarding module. The interface module of the control plane communicates with the interface module of the data plane.

[0106] Example 4

[0107] A computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned source address traffic identification and control method based on a programmable data plane when executing the computer program.

[0108] Example 5

[0109] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned source address traffic identification and control method based on a programmable data plane.

[0110] 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 source address traffic identification and control method based on a programmable data plane, characterized in that: The steps include: (1) The source address authentication module of the control plane initializes the software blacklist and software whitelist; (2) The interface module of the control plane connects to the interface module of the data plane to initialize the interface table, blacklist and whitelist of the data plane; the data plane is a programmable data plane; (3) The source address authentication module of the control plane reads the local routing table and generates source address authentication entries in sequence according to the metrics of direct routing, static routing, and dynamic routing protocols; (4) The source address authentication module of the control plane communicates with the BGP module and generates a source address authentication table entry according to the BGP SAVNET source prefix and prefix attribution information; (5) The interface module of the control plane sends the source address authentication table entry generated by the source address authentication module of the control plane to the interface module of the data plane; (6) The interface module of the data plane installs the source address authentication table entry into the interface table, blacklist, and whitelist, and the interface module of the data plane performs a count of the number of table entries; (7) After receiving the data packet, the interface table of the data plane determines the data packet sideband metadata, that is, whether it is a source address authentication interface and determines the interface type; If the data packet sideband metadata is SAV_ALLOW_INTF, that is, a whitelist interface, then execute step (8); if the data packet sideband metadata is SAV_BLOCK_INTF, that is, a blacklist interface, then execute step (9); if the data packet sideband metadata is that the source address authentication interface is not started, then enter the forwarding module; (8) The data packet enters the whitelist of the data plane for whitelist matching. If it hits the corresponding source address authentication table entry, it enters the forwarding module; If there is no hit, the data plane operation is performed according to the source address authentication table entry settings; (9) The data packet enters the blacklist of the data plane for blacklist matching. If the corresponding source address authentication table entry is hit, the data plane operation is performed according to the source address authentication table entry setting; if it does not hit, it enters the forwarding module; (10) The forwarding module of the data plane is responsible for forwarding according to the destination address, monitoring the traffic, and handling abnormal traffic; (11) The source address authentication module of the control plane sends the abnormal traffic processing results to the BGP module, and the BGP module notifies the BGP SAVNET neighbors.

2. The method for source address traffic identification and control based on programmable data plane according to claim 1, characterized in that: In step (1), the software blacklist table and the software whitelist table refer to the software table of the control plane, including recording the data plane source address authentication interface and interface type, recording the source address and the corresponding input interface information, recording the source address and the corresponding data plane operation, and the corresponding data plane operation includes blocking, speed reduction, reporting and forwarding operations. Blocking means discarding the corresponding flow at the end of the pipeline, that is, dropping packets; speed reduction means performing different levels of speed limit operations of high, medium and low on the corresponding flow in the pipeline traffic management, and constructing ECN marked frame back pressure; reporting means extracting the header of the corresponding flow at the end of the pipeline and sending it to the control plane; forwarding operation means forwarding the corresponding flow according to the destination address; constructing ECN marked frame back pressure means swapping the source address and the destination address, setting the ECN mark of the IP message, and sending it through the input interface.

3. The method for source address traffic identification and control based on programmable data plane according to claim 2, characterized in that: The interface table of the data plane records the interface and interface type for starting source address authentication, and uses the inbound interface for inbound interface matching; the blacklist records the source prefix list that is not allowed to pass, and uses the packet source address for blacklist matching; the whitelist records the source prefix list that is allowed to pass and the corresponding inbound interface, and uses the packet source address and inbound interface for whitelist matching.

4. The method for source address traffic identification and control based on programmable data plane according to claim 3 is characterized in that: When matching the blacklist, the source address of the data packet is extracted and the longest prefix match is performed in the blacklist. If there is at least one blacklist entry that matches the source address of the data packet, the matching result is a hit, otherwise it is a miss; When matching the whitelist, extract the data packet source address to perform the longest prefix match in the whitelist, and extract the data packet input interface to perform an exact match in the whitelist. If there is at least one whitelist entry that matches both the data packet source address and the data packet input interface, the match result is a hit, otherwise it is a miss. In step (3), the generated source address authentication table entry reads the local routing table to determine whether the corresponding prefix outbound interface has the source address authentication function enabled. Specifically, if it is a blacklist interface, the prefix is ​​installed in the software blacklist table of the source address authentication module of the control plane. If it is a whitelist interface, the prefix and the inbound interface are installed in the software whitelist table of the source address authentication module of the control plane. Generating in sequence according to the metric value means that the source address authentication entries generated by routes from different sources have priorities. Specifically, the source address authentication entries generated by direct routes take precedence over the source address authentication entries generated by static routes, and are superior to the source address authentication entries generated by the BGPSAVNET source prefix and prefix attribution information, and are superior to the source address authentication entries generated by the dynamic routing protocol.

5. The method for source address traffic identification and control based on programmable data plane according to claim 4, characterized in that: In step (4), the BGP SAVNET source prefix and prefix attribution information refer to the prefix and its attribute information transmitted through the BGP Update message, and the attribute information includes the inbound interface type and label value of the prefix, wherein the BGP Update message is generated by the BGP module according to the BGP SAVNET source prefix and prefix attribution information; In step (5), sending the source address authentication table item includes sending the source prefix in the software blacklist table of the source address authentication module of the control plane and the data plane operation to the interface module of the data plane through the southbound interface protocol, and the interface module of the data plane parses and sends it to the blacklist of the data plane, and also includes sending the source prefix, input interface configuration and data plane operation in the software whitelist table of the source address authentication module of the control plane to the interface module of the data plane through the southbound interface protocol, and the interface module of the data plane parses and sends it to the whitelist of the data plane.

6. The method for source address traffic identification and control based on programmable data plane according to claim 5, characterized in that: The process of counting the number of entries in step (6) is as follows: (6.1) The interface module of the data plane records the number of entries R in the interface table, blacklist, and whitelist; (6.2) When the interface module of the control plane sends an entry through the southbound interface to be installed in the interface table, blacklist or whitelist, it checks the local entry counter R c Whether the table entry capacity R of the data plane is exceeded d , if R c +1>R d , then the entry is not sent to the interface module of the data plane, otherwise the entry is sent to the interface module of the data plane; when the interface module of the control plane sends an entry through the southbound interface and deletes the entry in the interface table, blacklist or whitelist, check the local entry counter R c , R c The value is set to R c -1; (6.3) After receiving the table entry and installing it in the corresponding interface table, blacklist or whitelist, the data plane interface module obtains the current table entry capacity, calculates the number of installable table entries, and returns the number of installable table entries R of the current interface table, blacklist table, and whitelist table to the control plane interface module through the southbound interface. n , R n The value of R d -R; (6.4) The interface module of the control plane receives the number of installable entries in the current interface table, blacklist, and whitelist of the interface module of the data plane R n After that, update the local entry counter R c For R n .

7. The method for source address traffic identification and control based on programmable data plane according to claim 6, characterized in that: In step (10), the process of handling abnormal traffic is as follows: First, the source address authentication module of the control plane provides a setting interface for the source address authentication threshold SAV_THRESHOLD, and sends the set source address authentication threshold SAV_THRESHOLD to the data plane through the interface module of the control plane; The data packets of the same flow are dyed. When the rate of the same flow exceeds the source address authentication threshold SAV_THRESHOLD, it is considered abnormal traffic. The flow is decelerated and the five-tuple of the abnormal traffic is reported to the source address authentication module of the control plane. When the rate of the same flow does not exceed the source address authentication threshold SAV_THRESHOLD, it is forwarded. The source address authentication module of the control plane receives the abnormal traffic five-tuple information and identifies it, and sends the source address, inbound interface and processing result to the data plane through the interface module of the control plane.

8. A source address traffic identification and control device based on the source address traffic identification and control method based on a programmable data plane according to claim 1, characterized in that: It includes a control plane and a data plane. The control plane includes a source address authentication module, an interface module, and a BGP module. The source address authentication module includes a software blacklist table, a software whitelist table, and a software interface table. The data plane is a programmable data plane, which is implemented through programming and includes a blacklist, a whitelist, an interface module and a forwarding module. The interface module of the control plane communicates with the interface module of the data plane.

9. A computer device, characterized in that: It includes a memory and a processor, the memory stores a computer program, and is characterized in that when the processor executes the computer program, it implements the source address traffic identification and control method based on the programmable data plane as described in any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for source address traffic identification and control based on a programmable data plane described in any one of claims 1 to 7 is implemented.