Integrated learning access control method and device based on SDN driver

By deploying an abnormal access detection model in the programmable network device between the IoT device and the back-end device, and using the SDN driver function and the deep learning model to detect the aggressiveness of the data flow, the problem of IoT devices attacking the back-end device is solved. Effective defense measures are implemented and network security is improved.

CN118400198BActive Publication Date: 2024-09-06HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410850465.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-06
Estimated Expiration
2044-06-27

AI Technical Summary

Technical Problem

IoT devices may send attack data streams when accessing back-end devices, causing the back-end devices to gain permissions, restart, or disrupt normal operations. It is difficult for existing technologies to effectively detect and defend against such attacks.

Method used

In the programmable network device between the IoT device and the back-end device, deploy the abnormal access detection model, use the SDN driver function to perform data flow detection between the data plane and the control plane, and determine the flow of data through the bidirectional LSTM and GRU models. Detect the category and issue instructions on the data plane to discard or forward the data flow based on the detection results.

Benefits of technology

Effectively detect and defend against illegal access to IoT devices, avoid attacks on back-end devices, and improve detection progress and network security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118400198B
    Figure CN118400198B
Patent Text Reader

Abstract

The present application provides an integrated learning access control method and device based on SDN drive, the method comprising: after receiving a data stream through a data plane, determining whether the data plane has recorded the detection category corresponding to the flow identifier of the data stream; if so, and the detection category is an attack category, discarding the data stream through the data plane; if not, sending the data stream to the control plane through the data plane; after receiving the data stream through the control plane, inputting the data stream into an abnormal access detection model to obtain the detection category corresponding to the data stream; if the detection category is a normal category, issuing a first instruction to the data plane through the control plane, so that the data plane forwards the data stream to the back-end device; if the detection category is an attack category, issuing a second instruction to the data plane through the control plane, the second instruction includes the flow identifier and attack category of the data stream, so that the data plane discards the data stream. Through the technical solution of the present application, attacks on back-end devices can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet of Things security technology, and in particular to an integrated learning access control method and device driven by SDN (Software Defined Network). Background Art

[0002] The Internet of Things (IoT) refers to the use of various information sensors, radio frequency identification technology, global positioning system, infrared sensors, laser scanners and other devices and technologies to collect any objects or processes that need to be connected and interacted in real time, collect sound, light, heat, electricity, mechanics, chemistry, biology, location and other information, and achieve ubiquitous connection between objects and objects and between objects and people through various possible network accesses, and realize intelligent perception, identification and management of objects and processes. The IoT is based on information carriers such as the Internet and telecommunications networks, allowing all ordinary physical objects that can be independently addressed to form an interconnected network.

[0003] All devices in the Internet of Things can be IoT devices (i.e. IoT terminals). IoT devices can include smart home devices (such as smart speakers, smart sweeping robots, smart home gateways), industrial smart gateways, life safety equipment, Internet of Vehicles devices, IPC (network cameras), etc.

[0004] IoT devices can access backend devices, that is, IoT devices send data streams to backend devices and receive data streams returned by backend devices. However, when IoT devices access backend devices, if IoT devices send attack data streams to backend devices, they will attack backend devices. For example, they can obtain permissions for backend devices, restart backend devices, and disrupt the normal operation of backend devices. Summary of the invention

[0005] The present application provides an integrated learning access control method based on SDN driver, which is applied to a programmable network device between an IoT device and a backend device. The programmable network device includes a data plane and a control plane. The control plane deploys an abnormal access detection model. The method includes:

[0006] After receiving the data stream sent by the IoT device through the data plane, determining whether the data plane has recorded the detection category corresponding to the flow identifier of the data stream;

[0007] If yes, and the detection category is an attack category, discarding the data flow through the data plane; if no, sending the data flow to the control plane through the data plane;

[0008] After receiving the data stream through the control plane, the data stream is input into the abnormal access detection model to obtain the detection category corresponding to the data stream; wherein the abnormal access detection model includes a bidirectional LSTM model and a GRU model, and the bidirectional LSTM model includes a forward LSTM and a backward LSTM; wherein, a first feature vector corresponding to the data stream is obtained; the first feature vector is input into the forward LSTM to obtain a first time series feature, the transposed feature vector of the first feature vector is input into the backward LSTM to obtain a second time series feature, the first time series feature and the second time series feature are subjected to a union deduplication operation to obtain a third time series feature, and a second feature vector is determined based on the third time series feature; the second feature vector is input into the GRU model to obtain a third feature vector; and the detection category corresponding to the data stream is determined based on the third feature vector;

[0009] If the detection category is a normal category, sending a first instruction to the data plane through the control plane, so that the data plane forwards the data flow to the backend device;

[0010] If the detection category is an attack category, a second instruction is sent to the data plane through the control plane, and the second instruction includes the flow identifier and attack category of the data flow, so that the data plane discards the data flow and records the mapping relationship between the flow identifier and the attack category of the data flow; wherein the data flow of the attack category can attack the back-end device.

[0011] The present application provides an integrated learning access control device based on SDN driver, which is applied to a programmable network device between an IoT device and a backend device. The programmable network device includes a data plane and a control plane. The control plane deploys an abnormal access detection model. The device includes:

[0012] A data plane management module, configured to determine whether the data plane has recorded the detection category corresponding to the flow identifier of the data flow after receiving the data flow sent by the IoT device through the data plane; if so, and the detection category is an attack category, discard the data flow through the data plane; if not, send the data flow to the control plane through the data plane;

[0013] A control plane management module, for, after receiving the data stream through the control plane, inputting the data stream into the abnormal access detection model to obtain a detection category corresponding to the data stream; wherein the abnormal access detection model includes a bidirectional LSTM model and a GRU model, and the bidirectional LSTM model includes a forward LSTM and a backward LSTM; wherein, obtaining a first feature vector corresponding to the data stream; inputting the first feature vector into the forward LSTM to obtain a first time series feature, inputting the transposed feature vector of the first feature vector into the backward LSTM to obtain a second time series feature, performing a union and deduplication operation on the first time series feature and the second time series feature to obtain a third time series feature, and determining a second feature vector based on the third time series feature; inputting the second feature vector into the GRU model to obtain a third feature vector; and determining the detection category corresponding to the data stream based on the third feature vector;

[0014] A control plane management module, configured to send a first instruction to the data plane through the control plane if the detection category is a normal category; and send a second instruction to the data plane through the control plane if the detection category is an attack category, wherein the second instruction includes a flow identifier and an attack category of the data flow; wherein the data flow of the attack category can attack the backend device;

[0015] A data plane management module is used to forward the data flow to the back-end device through the data plane when receiving the first instruction; or, when receiving the second instruction, discard the data flow through the data plane and record the mapping relationship between the flow identifier of the data flow and the attack category.

[0016] It can be seen from the above technical solutions that in the embodiments of the present application, an abnormal access detection model can be deployed on a programmable network device between the Internet of Things device and the back-end device. The programmable network device is a network device that supports SDN drive. Based on the SDN drive function, an abnormal access detection model can be deployed on the control plane of the programmable network device. In this way, for the data stream sent by the Internet of Things device to the back-end device, the data stream can be detected based on the abnormal access detection model to determine whether the data stream is an attack data stream. If the data stream is an attack data stream, the data stream is discarded, and forwarding the data stream to the back-end device is prohibited, thereby avoiding attacks on the back-end device. Determining whether the data stream is an attack data stream by using the abnormal access detection model can further improve the detection progress while effectively detecting illegal access to the Internet of Things device. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 is a flow chart of the SDN-driven integrated learning access control method of the present application;

[0018] Figure 2 It is a structural diagram of the Internet of Things system of this application;

[0019] Figure 3 It is a schematic diagram of the structure of the programmable network device of the present application;

[0020] Figure 4 is a flow chart of the SDN-driven integrated learning access control method of the present application;

[0021] Figure 5 It is a structural diagram of the abnormal access detection model of the present application;

[0022] Figure 6 It is a structural diagram of the SDN-driven integrated learning access control device of the present application;

[0023] Figure 7 It is a hardware structure diagram of an electronic device in one embodiment of the present application. DETAILED DESCRIPTION

[0024] In an embodiment of the present application, an integrated learning access control method based on SDN drive is proposed. The method can be applied to a programmable network device between an IoT device and a backend device. The programmable network device may include a data plane and a control plane, and the control plane deploys an abnormal access detection model.

[0025] See also Figure 1 FIG. 4 is a flow chart of the method, which may include:

[0026] Step 101: After receiving a data stream sent by an IoT device through a data plane, determine whether the data plane has recorded a detection category corresponding to a stream identifier of the data stream.

[0027] If yes, and the detection category is an attack category, then execute step 102. If yes, and the detection category is a detection category, then send the data flow to the control plane through the data plane. If no, then execute step 103.

[0028] For example, if the detection category corresponding to the flow identifier is an attack category, it means that the data flow is an attack category data flow (i.e., an attack data flow), and the attack category data flow can attack the backend device, such as obtaining the permissions of the backend device, restarting the backend device, and destroying the normal operation of the backend device.

[0029] If the detection category corresponding to the flow identifier is the detection category, it means that the data flow is a detection category data flow (i.e., a detection data flow), and the detection category data flow can collect device information of the backend device, such as collecting the operating protocol of the backend device, the service type of the backend device, the operating system of the backend device, etc.

[0030] Step 102: If the detected category is an attack category, the data flow is discarded through the data plane.

[0031] Step 103: If there is no detection category corresponding to the flow identifier of the data flow, or if the detection category is a detection category, the data flow is sent to the control plane through the data plane.

[0032] Step 104: After receiving the data stream through the control plane, the data stream is input into the abnormal access detection model to obtain the detection category corresponding to the data stream. For example, the abnormal access detection model can perform abnormal access detection based on the data stream to obtain the detection category corresponding to the data stream.

[0033] Step 105: If the detection category is a normal category, the control plane sends a first instruction to the data plane so that the data plane forwards the data flow to the backend device. For example, the first instruction indicates that the detection category is a normal category, and after receiving the first instruction, the data plane forwards the data flow to the backend device.

[0034] Step 106: If the detection category is an attack category, a second instruction is sent to the data plane through the control plane, and the second instruction may include the flow identifier and attack category of the data flow, so that the data plane discards the data flow and records the mapping relationship between the flow identifier of the data flow and the attack category.

[0035] For example, the second instruction indicates that the detection category is an attack category. After receiving the second instruction, the data plane may discard the data flow and prohibit forwarding the data flow to the backend device.

[0036] After receiving the second instruction, the data plane can also parse the flow identifier and attack category of the data flow from the second instruction, and record the mapping relationship between the flow identifier and the attack category of the data flow. In this way, when the data plane receives the data flow corresponding to the flow identifier again, it can directly discard the data flow and will not send the data flow to the control plane, so as to avoid the control plane from repeatedly performing abnormal access detection on the data flow.

[0037] Exemplarily, if the detection category is a detection category, a third instruction is sent to the data plane through the control plane, and the third instruction may include the flow identifier and detection category of the data flow, so that the data plane discards the data flow and records the mapping relationship between the flow identifier and the detection category of the data flow.

[0038] For example, the third instruction indicates that the detection category is a detection category. After receiving the third instruction, the data plane can discard the data flow and prohibit forwarding the data flow to the backend device.

[0039] After receiving the third instruction, the data plane can also parse the flow identifier and detection category of the data flow from the third instruction, and record the mapping relationship between the flow identifier and the detection category of the data flow. In this way, when the data plane receives the data flow corresponding to the flow identifier again, since the data flow corresponds to the detection category, the data plane will send the data flow to the control plane to perform abnormal access detection on the data flow.

[0040] Exemplarily, after receiving the data stream sent by the IoT device through the data plane, the status information corresponding to the data stream can also be collected through the data plane, and the status information may include but is not limited to at least one of the following: the transmission rate of the data stream, the delay of the data stream, and the packet loss rate of the data stream.

[0041] Sending the data flow to the control plane through the data plane may include but is not limited to: sending the data flow and state information to the control plane through the data plane. Inputting the data flow to the abnormal access detection model to obtain the detection category corresponding to the data flow may include but is not limited to: inputting the data flow and state information to the abnormal access detection model through the control plane to obtain the detection category corresponding to the data flow.

[0042] In a possible implementation, the abnormal access detection model may include a first classifier model and a second classifier model, and the first classifier model and the second classifier model may be deployed in series, that is, the output features of the first classifier model are used as input features of the second classifier model. Based on this, the data stream is input into the abnormal access detection model to obtain the detection category corresponding to the data stream, which may include but is not limited to: obtaining the first feature vector corresponding to the data stream; inputting the first feature vector into the first classifier model to obtain the second feature vector; inputting the second feature vector into the second classifier model to obtain the third feature vector; and determining the detection category corresponding to the data stream based on the third feature vector.

[0043] Exemplarily, the first classifier model may be a bidirectional LSTM (Long Short Term Memory) model, and the second classifier model may be a GRU (Gated Recurrent Unit) model, and the bidirectional LSTM model includes a forward LSTM and a backward LSTM. Based on this, the first feature vector is input to the first classifier model to obtain the second feature vector, which may include but is not limited to: inputting the first feature vector to the forward LSTM to obtain the first time series feature; inputting the transposed feature vector of the first feature vector to the backward LSTM to obtain the second time series feature; performing a union and deduplication operation on the first time series feature and the second time series feature to obtain the third time series feature, and determining the second feature vector based on the third time series feature.

[0044] Exemplarily, the GRU model includes a first GRU layer and a second GRU layer, and there is a hidden layer between the first GRU layer and the second GRU layer; the first GRU layer includes an update gate, a reset gate and a candidate hidden state, and the second GRU layer includes an update gate, a reset gate and a candidate hidden state; the second feature vector is input into the GRU model to obtain a third feature vector, including: inputting the second feature vector into the first GRU layer to obtain a feature vector output by the first GRU layer; inputting the feature vector output by the first GRU layer into the hidden layer to obtain a feature vector output by the hidden layer; inputting the feature vector output by the hidden layer into the second GRU layer to obtain a feature vector output by the second GRU layer; and using the feature vector output by the second GRU layer as the third feature vector.

[0045] Exemplarily, the bidirectional LSTM model includes K BLSTM layers, K is a positive integer greater than 1, each BLSTM layer includes a forward LSTM and a backward LSTM, the first feature vector is input to the forward LSTM to obtain a first time series feature, the transposed feature vector of the first feature vector is input to the backward LSTM to obtain a second time series feature, the first time series feature and the second time series feature are subjected to a union deduplication operation to obtain a third time series feature, and the second feature vector is determined based on the third time series feature, including: dividing the first feature vector into K sub-feature vectors, determining the K sub-feature vectors, The K sub-transposed feature vectors corresponding to the feature vector; wherein the K sub-feature vectors correspond one-to-one to the K forward LSTMs, and the K sub-transposed feature vectors correspond one-to-one to the K backward LSTMs; for the first forward LSTM, the sub-feature vector corresponding to the forward LSTM is input to the forward LSTM to obtain the first time series feature output by the forward LSTM; for the non-first forward LSTM, the sub-feature vector corresponding to the forward LSTM and the first time series feature output by the previous forward LSTM of the forward LSTM are input to the forward LSTM to obtain the forward LSTM The first time series feature of the output; for the first backward LSTM, the sub-transposed feature vector corresponding to the backward LSTM is input to the backward LSTM to obtain the second time series feature of the backward LSTM output; for non-first backward LSTMs, the sub-transposed feature vector corresponding to the backward LSTM and the second time series feature of the previous backward LSTM output of the backward LSTM are input to the backward LSTM to obtain the second time series feature of the backward LSTM output; for each BLSTM layer, the first time series feature of the forward LSTM output in the BLSTM layer and the BLSTM layer are input to the backward LSTM layer to obtain the second time series feature of the backward LSTM output; The second time series features output by the backward LSTM in the STM layer are subjected to a union deduplication operation to obtain a third time series feature corresponding to the BLSTM layer; wherein the union deduplication operation refers to: removing repeated feature values ​​in the first time series features and the second time series features, and combining the remaining feature values ​​into a third time series feature; after obtaining the third time series features corresponding to each BLSTM layer, a union deduplication operation is performed on the third time series features corresponding to all BLSTM layers to obtain a second feature vector; or, a weighted operation is performed on the third time series features corresponding to all BLSTM layers to obtain a second feature vector.

[0046] Exemplarily, before determining whether the data plane has recorded the detection category corresponding to the flow identifier of the data flow, the traffic characteristics corresponding to the data flow can also be obtained through the data plane; based on the traffic characteristics, it is detected whether the data flow is abnormal traffic; if so, the data flow is discarded through the data plane, and if not, an operation is performed to determine whether the data plane has recorded the detection category corresponding to the flow identifier of the data flow.

[0047] Exemplarily, if the detection category corresponding to the data flow is an attack category, an alarm message for the data flow can be output to the user device, and the alarm message indicates that the data flow is an attack flow. If a response message is received, and the response message indicates that the data flow is not an attack flow, a fourth instruction can be sent to the data plane through the control plane, and the fourth instruction includes the flow identifier of the data flow, so that the data plane deletes the mapping relationship between the flow identifier of the data flow and the attack category. And / or, sample data can be generated based on the data flow, and the abnormal access detection model can be optimized based on the sample data to obtain an optimized abnormal access detection model.

[0048] It can be seen from the above technical solutions that in the embodiments of the present application, an abnormal access detection model can be deployed on a programmable network device between the Internet of Things device and the back-end device. The programmable network device is a network device that supports SDN drive. Based on the SDN drive function, an abnormal access detection model can be deployed on the control plane of the programmable network device. In this way, for the data stream sent by the Internet of Things device to the back-end device, the data stream can be detected based on the abnormal access detection model to determine whether the data stream is an attack data stream. If the data stream is an attack data stream, the data stream is discarded, and forwarding the data stream to the back-end device is prohibited, thereby avoiding attacks on the back-end device. Determining whether the data stream is an attack data stream by using the abnormal access detection model can further improve the detection progress while effectively detecting illegal access to the Internet of Things device.

[0049] The above technical solutions of the embodiments of the present application are described below in combination with specific application scenarios.

[0050] The Internet of Things is an interconnected network based on information carriers such as the Internet and telecommunications networks, which allows all common physical objects that can be independently addressed to form an interconnected network. The Internet of Things consists of various sensor nodes that are interconnected to maintain the data transmission process. The ever-expanding application areas of the Internet of Things cover all areas of human life, including smart agriculture, health care, home, transportation, industry, etc.

[0051] However, while the IoT is being used on a large scale, it also has great potential security threats. The IoT is vulnerable to cyber attacks, which can cause IoT failures. For example, in an IoT system, each IoT device can access a backend device. When an IoT device accesses a backend device, if the IoT device sends an attack data stream to the backend device, the backend device will be attacked. For example, the attack methods may include but are not limited to denial-of-service (DoS) attacks, distributed denial-of-service (DDoS) attacks, botnet attacks, misdirection attacks, sniffing attacks, spoofing attacks, and data leakage attacks. The above attack methods may obtain the permissions of the backend device, restart the backend device, and disrupt the normal operation of the backend device, thereby causing the IoT to fail.

[0052] In view of the above findings, in the embodiments of the present application, an abnormal access detection model can be deployed in the network device between the IoT device and the backend device. For the data flow sent by the IoT device to the backend device, the data flow can be detected based on the abnormal access detection model to determine whether the data flow is an attack data flow. If the data flow is an attack data flow, the data flow is discarded to avoid attacking the backend device.

[0053] See also Figure 2 As shown in the figure, it is a schematic diagram of the structure of the Internet of Things system. The Internet of Things system may include back-end devices and multiple Internet of Things devices (i.e., Internet of Things terminals. In contrast to back-end devices, Internet of Things devices may be called front-end devices). Internet of Things devices may include, but are not limited to, smart home devices (such as smart speakers, smart sweeping robots, smart home gateways), industrial smart gateways, life safety equipment, Internet of Vehicles devices, IPC (network cameras), etc. There is no restriction on the types of these Internet of Things devices. Back-end devices may be called management devices, such as personal computers, video recorders, management platforms, etc. There is no restriction on the types of these back-end devices.

[0054] Taking the IoT device as an IPC as an example, the IPC can capture video images and send the video images to the back-end device, which will store the video images or display them in real time.

[0055] See also Figure 2 As shown, in addition to the backend devices and IoT devices, the IoT system may also include network devices (such as routers or switches, etc.), and the network devices are located between the IoT devices and the backend devices. In this way, when the IoT device sends a data stream to the backend device, the data stream needs to pass through the network device. Similarly, when the backend device sends a data stream to the IoT device, the data stream also needs to pass through the network device.

[0056] When deploying network devices between IoT devices and back-end devices, the network devices need to support SDN driver functions, and network devices that support SDN driver functions can also be called programmable network devices, that is, they allow the control plane of the network devices to be programmed, so that the control plane of the network devices can implement relevant functions, that is, the relevant functions of the control plane in this embodiment are all implemented by programming the control plane of the network devices. If the control plane of the network devices is not programmed, these functions cannot be implemented.

[0057] For example, by programming the control plane of the network device so that the control plane supports the abnormal access detection model, the abnormal access detection model is deployed on the control plane of the network device.

[0058] The control plane of the network device is programmed so that when the control plane learns that the detection category corresponding to the data flow is a normal category, the control plane sends a first instruction to the data plane, and the first instruction is used to make the data plane forward the data flow to the back-end device. The control plane of the network device is programmed so that when the control plane learns that the detection category corresponding to the data flow is an attack category, the control plane sends a second instruction to the data plane, and the second instruction is used to make the data plane discard the data flow and record the mapping relationship between the flow identifier of the data flow and the attack category. The control plane of the network device is programmed so that when the control plane learns that the detection category corresponding to the data flow is a detection category, the control plane sends a third instruction to the data plane, and the third instruction is used to make the data plane discard the data flow and record the mapping relationship between the flow identifier of the data flow and the detection category.

[0059] Exemplarily, the network device between the IoT device and the backend device can be called a programmable network device, and the programmable network device supports the SDN driver function, that is, supports programming of the control plane of the programmable network device, so that the control plane of the programmable network device can realize related functions.

[0060] Exemplarily, a programmable network device may include multiple logical planes, each of which performs related operations. Figure 3 As shown, it is a schematic diagram of the structure of a programmable network device, which may include a basic plane, a data plane and a control plane. Of course, in addition to the basic plane, the data plane and the control plane, other planes may also be included, such as an application plane, etc., which are not limited.

[0061] Basic plane: Also known as the infrastructure plane, the basic plane contains a multi-dimensional array of heterogeneous IoT devices that communicate with each other. The basic plane is mainly responsible for functions such as connection, data transmission, resource provision, device management, and data plane support. The basic plane constitutes the infrastructure layer of the network and provides equipment and management support for the operation of the entire network. For example, the basic plane can perform the following operations:

[0062] 1. Device connection and interconnection: The basic plane contains various heterogeneous IoT devices, which are interconnected to form a common data flow. The basic plane ensures effective connection and interoperability between various IoT devices. 2. Data transmission: The basic plane contains data flows between various IoT devices, enabling IoT devices to transmit data and information to each other. 3. Resource provision: The basic plane can provide necessary resources, including computing resources, storage resources, etc., to support the operation of the data plane and the control plane. 4. Device management: The basic plane is responsible for managing devices in the network to ensure that these devices can work normally. 5. Data plane support: The basic plane provides data flow transmission support for the data plane, that is, transmits the data flow to the data plane, thereby ensuring that the data flow can be efficiently transmitted in the network.

[0063] Of course, the above are only examples of the functions of the base plane, and there is no limitation on the functions of this base plane.

[0064] Data plane: The network layer for programmable network devices can be decomposed into two interacting parts, namely the data plane and the control plane. The data plane is all the functions and processes to forward data streams from one interface to another according to the control plane logic. The data plane contains the data streams from various IoT devices, and all data streams are dynamically analyzed in the data plane. The data plane is mainly responsible for functions such as data stream transmission, traffic detection, control, status collection, transmission optimization and isolation. The data plane constitutes the data transmission layer and is responsible for the forwarding and transmission of data streams in the network. For example, the data plane can perform the following operations:

[0065] 1. Data stream transmission: The data plane receives the data stream transmitted between the IoT device and the backend device, and is responsible for forwarding these data streams between the IoT device and the backend device. For example, when the data plane receives the data stream sent by the IoT device to the backend device, it forwards the data stream to the backend device. When the data plane receives the data stream sent by the backend device to the IoT device, it forwards the data stream to the IoT device.

[0066] 2. Traffic detection: The data plane can dynamically analyze the data flow to detect whether the data flow is abnormal traffic, such as DDoS attack traffic, etc. For example, the data plane can obtain the traffic characteristics corresponding to the data flow; based on the traffic characteristics, detect whether the data flow is abnormal traffic. This process can be seen in the subsequent embodiments.

[0067] 3. Flow control: The data plane manages the transmission rate of different types of data streams through flow control mechanisms to ensure the normal operation of the network. For example, the data plane can use QoS (Quality of Service) to control the flow of data streams, and there is no restriction on the flow control process.

[0068] 4. Status collection: The data plane can collect status information of each data flow, which may include but is not limited to at least one of the following: data flow transmission rate, data flow delay, and data flow packet loss rate. The data plane can send the status information of the data flow to the control plane to provide decision support for the control plane, that is, the control plane can analyze whether the data flow is an attack data flow based on the status information of the data flow.

[0069] 5. Transmission optimization: The data plane can use technologies such as flow tables to optimize the transmission of data flows to reduce latency and packet loss and improve network efficiency. For example, the control plane can send flow tables to the data plane to guide the data plane to forward data flows through the flow tables, and there is no restriction on this transmission optimization process.

[0070] 6. Isolation: The data plane can process data flows of different detection categories differently, thereby isolating data flows of different detection categories to ensure data security. For example, for normal data flows, the data plane can forward and process the data flows. For attack data flows, the data plane can discard the data flow, and for subsequent data flows of the data flow (i.e., data flows with the same flow identifier), the data plane can directly discard the data flow without performing abnormal access detection on the data flow again. For detection data flows, the data plane can discard the data flow, and for subsequent data flows of the data flow (i.e., data flows with the same flow identifier), the data plane does not directly discard the data flow, but sends the data flow to the control plane, which then performs abnormal access detection on the data flow again.

[0071] Of course, the above are only examples of data plane functions, and there is no limitation on the functions of the data plane.

[0072] Control plane: The network layer of programmable network devices can be decomposed into two interacting parts, namely the data plane and the control plane. The control plane is all the functions and processes that determine which path to use to send data streams. It is responsible for filling the routing table, drawing the network topology, and forwarding table, and sending the routing table, network topology, forwarding table, etc. to the data plane, thereby guiding the implementation of the data plane functions.

[0073] The control plane is responsible for analyzing all data flows through the data plane and managing and controlling the devices on the basic plane. The control plane is programmable, and a customized architecture with management commands (such as the first instruction, the second instruction, the third instruction, etc.) can be provided by programming the control plane. The abnormal access detection model (also known as the abnormal access access detection model) can be deployed on the control plane. The data flow of the data plane is detected through the abnormal access detection model to analyze whether the data flow is an attack data flow. If the data flow is an attack data flow, the data plane is notified to intercept the data flow to avoid sending the attack data flow to the backend device and avoid attacking the backend device. For example, the control plane can perform the following operations:

[0074] 1. Model deployment: The abnormal access detection model can be deployed on the control plane.

[0075] 2. Real-time traffic acquisition: The control plane can obtain real-time data streams from the data plane. For example, each time the data plane receives a data stream, it can send the data stream to the control plane.

[0076] 3. Abnormal traffic detection: The control plane uses an abnormal access detection model to detect abnormalities in data flows (i.e., analyze real-time traffic) and analyze whether the data flow is an attack data flow.

[0077] 4. Transmission of detection results: If the detection result indicates that the detection category of the data flow is a normal category, that is, the data flow is a normal data flow, the control plane sends a first instruction to the data plane, and the first instruction is used to make the data plane forward the data flow to the back-end device. If the detection result indicates that the detection category of the data flow is an attack category, that is, the data flow is an attack data flow, the control plane sends a second instruction to the data plane, and the second instruction is used to make the data plane discard the data flow and discard subsequent data flows for the data flow. If the detection result indicates that the detection category of the data flow is a detection category, that is, the data flow is a detection data flow, the control plane sends a third instruction to the data plane, and the third instruction is used to make the data plane discard the data flow.

[0078] 5. Result feedback: The control plane collects feedback information, optimizes the abnormal access detection model based on the feedback information, and adjusts the response strategy. For example, if the detection category corresponding to the data flow is an attack category, an alarm information for the data flow can be output to the user device, and the alarm information indicates that the data flow is an attack flow. If response information (i.e., feedback information) is received, and the response information indicates that the data flow is not an attack flow, a fourth instruction is issued to the data plane, and the fourth instruction is used to enable the data plane to delete the mapping relationship between the flow identifier of the data flow and the attack category (i.e., adjust the response strategy). In addition, sample data can be generated based on the data flow (i.e., the data flow whose detection category is the attack category), and the abnormal access detection model can be optimized based on the sample data to obtain an optimized abnormal access detection model (i.e., an optimized abnormal access detection model).

[0079] 6. Continuous optimization: The control plane continuously optimizes the abnormal access detection model based on feedback information and adjusts the response strategy to adapt to the ever-changing network environment. There is no restriction on this continuous optimization process.

[0080] So far, the functions of the basic plane, data plane, and control plane have been introduced in detail.

[0081] In the above application scenario, an SDN-driven integrated learning access control method is proposed in an embodiment of the present application. The method can be applied to a programmable network device. The programmable network device may include a data plane and a control plane, and the control plane may deploy an abnormal access detection model.

[0082] See also Figure 4 FIG. 4 is a flow chart of the method, which may include:

[0083] Step 401: The data plane of the programmable network device receives a data stream sent by the IoT device. The data stream may be a data stream for a video screen or other types of data streams.

[0084] For example, if the IoT device is an IPC, the IPC can collect video images and send the data stream for the video images to the backend device. After receiving the data stream, the backend device parses the video images based on the data stream and stores the video images or displays the video images in real time. On this basis, the data plane of the programmable network device can receive the data stream sent by the IoT device.

[0085] Step 402: The data plane detects whether the data flow is abnormal traffic. If so, step 403 may be executed; if not, step 404 may be executed. Step 402 may be an optional step, that is, after receiving the data flow, the data plane may not execute step 402 but directly execute step 404.

[0086] Exemplarily, after receiving the data flow, the data plane may obtain traffic characteristics corresponding to the data flow, and detect whether the data flow is abnormal traffic based on the traffic characteristics.

[0087] For example, the abnormal characteristics of abnormal traffic can be pre-configured. If the traffic characteristics corresponding to the data flow are consistent with the abnormal characteristics, the data flow is abnormal traffic. If the traffic characteristics corresponding to the data flow are inconsistent with the abnormal characteristics, the data flow is not abnormal traffic. Alternatively, the normal characteristics of normal traffic can be pre-configured. If the traffic characteristics corresponding to the data flow are consistent with the normal characteristics, the data flow is not abnormal traffic. If the traffic characteristics corresponding to the data flow are inconsistent with the normal characteristics, the data flow is abnormal traffic.

[0088] The traffic characteristics (or abnormal characteristics, or normal characteristics, etc.) corresponding to the data flow may include, but are not limited to: source IP address, destination IP address, source port, destination port, protocol type, and there is no restriction on this.

[0089] For example, the traffic characteristics corresponding to the data flow can be a statistical value, such as the size of the data flow received per second. If the statistical value is greater than a preset threshold (which can be configured based on experience), the data flow is abnormal traffic. If the statistical value is not greater than the preset threshold, the data flow is not abnormal traffic.

[0090] Of course, the above is only an example of abnormal traffic detection, and there is no limitation on this detection method, which can be any non-model detection method, that is, it does not use a network model to detect whether the data flow is abnormal traffic.

[0091] Step 403: The data plane discards the data flow, that is, no longer forwards the data flow to the backend device.

[0092] Step 404: The data plane determines whether the detection category corresponding to the flow identifier of the data flow has been recorded.

[0093] If yes, then step 405 may be executed; if no, then step 406 may be executed.

[0094] Exemplarily, the flow identifier of a data flow may include the source IP address and destination IP address of the data flow, that is, the unique identifier of the data flow is represented by the source IP address and the destination IP address. Of course, it can also be other identifiers, as long as it can represent the unique identifier of the data flow, and there is no limitation on the flow identifier of this data flow.

[0095] The data plane can query the mapping table through the flow identifier of the data flow, and the mapping table is used to record the correspondence between the flow identifier of the data flow and the detection category. If the mapping table includes the flow identifier of the data flow, it is determined that the detection category corresponding to the flow identifier of the data flow has been recorded. Alternatively, if the mapping table does not include the flow identifier of the data flow, it is determined that the detection category corresponding to the flow identifier of the data flow has not been recorded.

[0096] Step 405: The data plane determines whether the detection category corresponding to the flow identifier of the data flow is an attack category.

[0097] If yes, step 403 is executed, that is, the data plane discards the data flow and no longer forwards it to the backend device.

[0098] If not, execute step 406. Obviously, since the detection category can be an attack category and a detection category, when the detection category is not an attack category, the detection category corresponding to the flow identifier of the data flow is the detection category, that is, when the detection category corresponding to the flow identifier of the data flow is the detection category, execute step 406.

[0099] For example, the mapping table of the data plane is used to record the correspondence between the flow identifier of the data flow and the detection category. Therefore, the data plane can query the mapping table through the flow identifier of the data flow to obtain the detection category corresponding to the flow identifier of the data flow, which may be an attack category or a detection category.

[0100] Step 406: If there is no detection category corresponding to the flow identifier of the data flow, or if the detection category corresponding to the flow identifier of the data flow is a detection category, the data plane sends the data flow to the control plane.

[0101] Exemplarily, if the detection category corresponding to the flow identifier of the data flow is an attack category, it means that the data flow is an attack category data flow (i.e., an attack data flow), and the attack data flow includes an attack payload, and the attack data flow can attack the back-end device, such as obtaining the permissions of the back-end device, restarting the back-end device, and destroying the normal operation of the back-end device. Based on this, the data plane can discard the attack data flow to prevent the attack data flow from attacking the back-end device. By discarding the attack data flow on the data plane of the programmable network device, the attack data flow will not be sent to the back-end device, avoiding the processing of the attack data flow on the back-end device, thereby intercepting the attack data flow in advance, instead of using security measures to process it on the back-end device. Once the attack data flow is detected, the subsequent data flow for the attack data flow is still the attack data flow. Therefore, the attack data flow does not need to be sent to the detection plane, and it is no longer necessary to perform abnormal access detection on the attack data flow.

[0102] If the detection category corresponding to the flow identifier of the data flow is the detection category, it means that the data flow is a detection category data flow (i.e., a detection data flow), and the detection data flow can collect device information of the backend device, such as the operating protocol of the backend device, the service type of the backend device, the operating system of the backend device, etc. The IoT device can attack the backend device based on this device information. Based on this, the data plane can discard the detection data flow to prevent the IoT device from collecting device information of the backend device. By discarding the detection data flow on the data plane of the programmable network device, the detection data flow will not be sent to the backend device, avoiding the backend device from processing the detection data flow, thereby intercepting the detection data flow in advance instead of using security measures to process it on the backend device. Once the detection data flow is detected, the subsequent data flow of the detection data flow may be an attack data flow, a normal data flow, or still a detection data flow. Therefore, the detection data flow needs to be sent to the detection plane, and abnormal access detection needs to be performed on the detection data flow.

[0103] If the flow identifier of the data flow does not correspond to the detection category, it means that the data flow is the first data flow (that is, the data flow has not yet been detected for abnormal access through the abnormal access detection model), or, although the data flow is detected for abnormal access through the abnormal access detection model, the detection result indicates that the data flow is a normal category, and the subsequent data flows for the normal data flow may be attack data flows, normal data flows, or detection data flows. Therefore, the first data flow or the subsequent data flows for the normal data flow need to be sent to the detection plane, and the data flow needs to be detected for abnormal access.

[0104] Step 407: The control plane of the programmable network device receives the data stream, inputs the data stream into the abnormal access detection model, and obtains the detection category corresponding to the data stream, wherein the detection category may be a normal category, or the detection category may be an attack category, or the detection category may be a detection category.

[0105] Exemplarily, since the control plane is deployed with an abnormal access detection model, and the abnormal access detection model is used to detect the detection category corresponding to the data flow, after receiving the data flow, the control plane can input the data flow into the abnormal access detection model, and the abnormal access detection model performs abnormal access detection on the data flow to obtain the detection category corresponding to the data flow, and outputs the detection category corresponding to the data flow to the control plane. In this way, the control plane can obtain the detection category corresponding to the data flow.

[0106] Exemplarily, after receiving the data stream sent by the IoT device, the data plane can also collect the status information corresponding to the data stream, and the status information can include but is not limited to at least one of the following: the transmission rate of the data stream, the delay of the data stream, and the packet loss rate of the data stream. On this basis, when the data plane sends the data stream to the control plane, the data stream and the status information can be sent to the control plane.

[0107] After receiving the data flow and the state information, the control plane can input the data flow and the state information into the abnormal access detection model, that is, the input data of the abnormal access detection model is the data flow and the state information. The abnormal access detection model can perform abnormal access detection based on the data flow and the state information to obtain the detection category corresponding to the data flow, and there is no restriction on this abnormal access detection process.

[0108] Step 408: If the detection category corresponding to the data flow is a normal category, that is, the data flow is a normal data flow, the control plane sends a first instruction to the data plane, and the first instruction indicates that the detection category is a normal category. After receiving the first instruction, the data plane forwards the data flow to the backend device.

[0109] Exemplarily, if the data flow is a normal data flow, the control plane sends a first instruction to the data plane, such as the first instruction can carry a type identifier, the type identifier can be a first value, the first value indicates that the current instruction is the first instruction, and the first instruction indicates that the detection category is a normal category. The data plane can forward the data flow to the backend device based on the first instruction, that is, forward the normal data flow to the backend device.

[0110] If the data flow is a normal data flow, the subsequent data flow for the normal data flow may be an attack data flow, a normal data flow, or a detection data flow. For example, after the attacker replaces the IoT device (such as the IPC in the outdoor scene can be replaced), the subsequent data flow may be an attack data flow or a detection data flow. Therefore, the subsequent data flow for the normal data flow still needs to be sent to the detection plane, and the data flow needs to be detected for abnormal access. Based on this, the first instruction may not carry the correspondence between the flow identifier of the data flow and the normal category, nor does it need to record the flow identifier and normal category of the data flow in the mapping table of the data plane. When the data plane receives the subsequent data flow for the data flow, since the detection category corresponding to the flow identifier of the data flow is not recorded, the data plane sends the data flow to the control plane.

[0111] Of course, the first instruction may also carry the flow identifier and normal category of the data flow, and record the correspondence between the flow identifier and the normal category of the data flow in the mapping table of the data plane. When the data plane receives a subsequent data flow for the data flow, since the detection category corresponding to the flow identifier of the data flow is recorded and the detection category is a normal category, the data plane sends the data flow to the control plane.

[0112] Step 409: If the detection category corresponding to the data flow is an attack category, that is, the data flow is an attack data flow, the control plane sends a second instruction to the data plane, the second instruction indicating that the detection category is an attack category. After receiving the second instruction, the data plane discards the data flow.

[0113] Exemplarily, if the data flow is an attack data flow, the control plane sends a second instruction to the data plane, such as the second instruction can carry a type identifier, the type identifier can be a second value, the second value indicates that the current instruction is the second instruction, and the second instruction indicates that the detection category is an attack category. The data plane can discard the data flow based on the second instruction, that is, the data plane does not forward the attack data flow to the backend device.

[0114] If the data flow is an attack data flow, the subsequent data flow for the attack data flow is still an attack data flow. For example, after the attacker changes the IoT device, the subsequent data flow is always an attack data flow. Therefore, the subsequent data flow for the attack data flow does not need to be sent to the detection plane for abnormal access detection, but is directly identified as an attack data flow. Based on this, the second instruction can carry the flow identifier and attack category of the data flow. After receiving the second instruction, the data plane can also record the mapping relationship between the flow identifier of the data flow and the attack category. For example, the mapping table of the data plane records the correspondence between the flow identifier of the data flow and the attack category. When the data plane receives the subsequent data flow for the data flow, since the detection category corresponding to the flow identifier of the data flow has been recorded, and the detection category is an attack category, the data flow is directly discarded.

[0115] Step 410: If the detection category corresponding to the data flow is a detection category, that is, the data flow is a detection data flow, the control plane sends a third instruction to the data plane, and the third instruction indicates that the detection category is a detection category. After receiving the third instruction, the data plane discards the data flow.

[0116] Exemplarily, if the data flow is a detection data flow, the control plane sends a third instruction to the data plane, such as the third instruction can carry a type identifier, the type identifier can be a third value, the third value indicates that the current instruction is the third instruction, and the third instruction indicates that the detection category is a detection category. The data plane can discard the data flow based on the third instruction, that is, the data plane does not forward the detection data flow to the backend device.

[0117] If the data flow is a detection data flow, the subsequent data flow of the detection data flow may be an attack data flow, a normal data flow, or a detection data flow. For example, if the attacker replaces the IoT device, the subsequent data flow may be an attack data flow or a detection data flow. Alternatively, if the detection data flow is sent by a normal IoT device, the subsequent data flow may be a normal data flow. Therefore, the subsequent data flow of the detection data flow still needs to be sent to the detection plane, and abnormal access detection needs to be performed on the data flow.

[0118] Based on this, the third instruction can carry the flow identifier and detection category of the data flow. After receiving the third instruction, the data plane can also record the mapping relationship between the flow identifier of the data flow and the detection category. For example, the corresponding relationship between the flow identifier of the data flow and the detection category is recorded in the mapping table of the data plane. When the data plane receives a subsequent data flow for the data flow, since the detection category corresponding to the flow identifier of the data flow has been recorded, and the detection category is the detection category, the data plane sends the data flow to the control plane.

[0119] At this point, the integrated learning access control method based on SDN driver is completed. The programmable network device can perform access control on the data flow, forward the normal data flow to the back-end device, and prohibit the attack data flow or detection data flow from being forwarded to the back-end device, thereby ensuring the data security of the back-end device.

[0120] In a possible implementation, an abnormal access detection model can be implemented by an integrated learning method, that is, the abnormal access detection model includes multiple classifier models. Taking two classifier models as an example, the abnormal access detection model can include a first classifier model and a second classifier model. Each classifier model can perform abnormal access detection on the data stream alone to obtain the detection category corresponding to the data stream. For example, the first classifier model can perform abnormal access detection on the data stream alone to obtain the detection category corresponding to the data stream. The second classifier model can perform abnormal access detection on the data stream alone to obtain the detection category corresponding to the data stream.

[0121] For example, the first classifier model and the second classifier model can be deployed in parallel. The first classifier model can be used to perform abnormal access detection on the data stream to obtain detection category 1, and the second classifier model can be used to perform abnormal access detection on the data stream to obtain detection category 2. Then, based on detection category 1 and detection category 2, a voting mechanism or other strategies can be used to determine the final detection category of the data stream.

[0122] Different from the above method, in this embodiment, although the first classifier model and the second classifier model can perform abnormal access detection on the data stream separately, the first classifier model and the second classifier model are not deployed in parallel, but in series, that is, the output features of the first classifier model are used as the input features of the second classifier model. Of course, when more classifier models are deployed, these classifier models are also deployed in series, that is, the output features of one classifier model are used as the input features of another classifier model.

[0123] For step 407, the first feature vector corresponding to the data stream may be obtained, and the first feature vector may be input into the first classifier model to obtain the second feature vector. Alternatively, the first feature vector corresponding to the data stream may be obtained, the feature vector corresponding to the state information corresponding to the data stream may be obtained, and the first feature vector and the feature vector corresponding to the state information corresponding to the data stream may be input into the first classifier model to obtain the second feature vector.

[0124] After the second feature vector is obtained, the second feature vector may be input into a second classifier model to obtain a third feature vector, and the detection category corresponding to the data stream is determined based on the third feature vector.

[0125] Obviously, the input feature of the first classifier model is the first feature vector, or the input feature of the first classifier model is the first feature vector and the feature vector corresponding to the state information corresponding to the data stream, and the output feature of the first classifier model is the second feature vector. In addition, the input feature of the second classifier model is the second feature vector, and the output feature of the second classifier model is the third feature vector.

[0126] In a possible implementation, the first classifier model may be a bidirectional LSTM model (also referred to as a BLSTM model), and the second classifier model may be a GRU model. Of course, the bidirectional LSTM model is only an example of the first classifier model, and the type of the first classifier model is not limited. The GRU model is only an example of the second classifier model, and the type of the second classifier model is not limited.

[0127] In the following, we take the bidirectional LSTM model and the GRU model as an example. That is, the abnormal access detection model integrates the bidirectional LSTM model and the GRU model. Both the bidirectional LSTM model and the GRU model show good performance in anomaly detection. At the same time, the bidirectional LSTM model and the GRU model complement each other to further improve the detection performance.

[0128] The bidirectional LSTM model can ensure bidirectional flow, that is, forward flow and backward flow of the information sequence of the bidirectional input. The architecture of the bidirectional LSTM model replicates the initial recurrent network to build two aligned layers. The first layer receives the input in its original form, while the second layer gets a copy of the input in reverse form.

[0129] The GRU model is able to solve the gradient vanishing problem of the bidirectional LSTM model. The GRU model has three main gates and no internal cell state that is different from the bidirectional LSTM model. In the GRU model, information is stored in hidden states. In the update gate, forward information and backward information are passed simultaneously, while the reset gate represents the forgotten past knowledge. The current storage gate uses the reset gate to save and maintain appropriate information from the past, while the input modulation gate is used to add nonlinearity to the input, giving the input a zero-mean property.

[0130] See also Figure 5 As shown in the figure, it is a schematic diagram of the structure of the abnormal access detection model. The abnormal access detection model can include a bidirectional LSTM model, a GRU model and a softmax network layer. Of course, Figure 5 This is just an example of an abnormal access detection model, and the structure of this abnormal access detection model is not limited in this embodiment.

[0131] The bidirectional LSTM model includes a forward LSTM and a backward LSTM, and the number of forward LSTMs is the same as the number of backward LSTMs. For example, the bidirectional LSTM model includes multiple BLSTM layers, each of which includes a forward LSTM and a backward LSTM. Taking 4 BLSTM layers as an example, the number of BLSTM layers can be more or less. Forward LSTM11 and backward LSTM21 form a BLSTM layer, forward LSTM12 and backward LSTM22 form a BLSTM layer, forward LSTM13 and backward LSTM23 form a BLSTM layer, and forward LSTM14 and backward LSTM24 form a BLSTM layer.

[0132] For each BLSTM layer, the number of neurons in the BLSTM layer can be arbitrarily configured, such as 800, 400, 200, and 50, and there is no limit on the number of neurons. For example, the number of neurons in the forward LSTM11 and the backward LSTM21 is 800, the number of neurons in the forward LSTM12 and the backward LSTM22 is 400, and so on. The number of neurons in the forward LSTM and the backward LSTM can be the same.

[0133] Each BLSTM layer consists of two parts: a forward LSTM and a backward LSTM. The final hidden state is obtained by concatenating the hidden states of these two LSTMs, which is used to extract the temporal features of the sequence data.

[0134] Based on the bidirectional LSTM model, the first feature vector is input to the forward LSTM to obtain the first time series feature, or a concatenated feature vector is generated based on the first feature vector and the feature vector corresponding to the state information corresponding to the data stream (that is, the two feature vectors are concatenated), and the concatenated feature vector is input to the forward LSTM to obtain the first time series feature. The transposed feature vector of the first feature vector is input to the backward LSTM to obtain the second time series feature, or the transposed feature vector of the concatenated feature vector is input to the backward LSTM to obtain the second time series feature. Then, the first time series feature and the second time series feature can be combined and deduplicated to obtain the third time series feature, and the second feature vector is determined based on the third time series feature.

[0135] by Figure 5 Taking the bidirectional LSTM model shown in FIG. 1 as an example, the processing process of the bidirectional LSTM model is introduced.

[0136] The first eigenvector (or concatenated eigenvector) can be divided into four parts, such as into four eigenvectors, and these four eigenvectors are respectively recorded as the first eigenvector x1, the first eigenvector x2, the first eigenvector x3 and the first eigenvector x4. That is to say, the first eigenvector x1, the first eigenvector x2, the first eigenvector x3 and the first eigenvector x4 are combined into one eigenvector (or concatenated eigenvector).

[0137] The first feature vector x1 is input to the forward LSTM11 to obtain the first time series feature a1. Of course, the input features of the forward LSTM11 may include other input features in addition to the first feature vector x1, and there is no limitation to this. The input feature of the forward LSTM11 is the first feature vector x1 as an example.

[0138] Then, the first feature vector x2 (i.e., the second part of the feature vector of the first feature vector) and the first time series feature a1 can be input into the forward LSTM12 to obtain the first time series feature a2.

[0139] Then, the first feature vector x3 (i.e., the third partial feature vector of the first feature vector) and the first time series feature a2 may be input into the forward LSTM13 to obtain the first time series feature a3.

[0140] Then, the first feature vector x4 (i.e., the fourth partial feature vector of the first feature vector) and the first time series feature a3 may be input into the forward LSTM14 to obtain the first time series feature a4.

[0141] After obtaining the first eigenvector x1, the first eigenvector x2, the first eigenvector x3, and the first eigenvector x4, the transposed eigenvector y1 of the first eigenvector x1, the transposed eigenvector y2 of the first eigenvector x2, the transposed eigenvector y3 of the first eigenvector x3, and the transposed eigenvector y4 of the first eigenvector x4 can be determined. The transposed eigenvector y4 is input to the backward LSTM24 to obtain the second time series feature b1. Of course, in addition to the transposed eigenvector y4, the input feature of the backward LSTM24 can also include other input features, which is not limited to this. Take the case where the input feature of the backward LSTM24 is the transposed eigenvector y4 as an example.

[0142] Then, the transposed feature vector y3 and the second time series feature b1 can be input to the backward LSTM23 to obtain the second time series feature b2. Then, the transposed feature vector y2 and the second time series feature b2 can be input to the backward LSTM22 to obtain the second time series feature b3. Then, the transposed feature vector y1 and the second time series feature b3 can be input to the backward LSTM21 to obtain the second time series feature b4.

[0143] After obtaining the first timing feature a4 and the second timing feature b1, a union deduplication operation is performed on the first timing feature a4 and the second timing feature b1 to obtain a third timing feature c1, that is, the first timing feature a4 includes multiple feature values, the second timing feature b1 includes multiple feature values, and the repeated feature values ​​in the first timing feature a4 and the second timing feature b1 are removed, and the remaining feature values ​​are combined into the third timing feature c1.

[0144] After obtaining the first timing feature a3 and the second timing feature b2, a union and deduplication operation is performed on the first timing feature a3 and the second timing feature b2 to obtain a third timing feature c2.

[0145] After obtaining the first timing feature a2 and the second timing feature b3, a union deduplication operation is performed on the first timing feature a2 and the second timing feature b3 to obtain a third timing feature c3.

[0146] After obtaining the first timing feature a1 and the second timing feature b4, a union and deduplication operation is performed on the first timing feature a1 and the second timing feature b4 to obtain a third timing feature c4.

[0147] After obtaining the third timing feature c1, the third timing feature c2, the third timing feature c3 and the third timing feature c4, the second feature vector can also be determined based on the third timing feature c1, the third timing feature c2, the third timing feature c3 and the third timing feature c4. For example, the third timing feature c1, the third timing feature c2, the third timing feature c3 and the third timing feature c4 can be subjected to a union deduplication operation to obtain the second feature vector. Alternatively, the third timing feature c1, the third timing feature c2, the third timing feature c3 and the third timing feature c4 can be subjected to a weighted operation (such as an average operation) to obtain the second feature vector.

[0148] At this point, the second eigenvector is obtained, which is the output feature of the bidirectional LSTM model, and the second eigenvector is used as the input feature of the GRU model. The second eigenvector is input to the GRU model.

[0149] See also Figure 5 As shown, the GRU model includes 2 GRU layers, and there is a hidden layer between the two GRU layers. The number of neurons in GRU layer 1 can be 100, and the number of neurons in GRU layer 2 can be 50. There is no limit on the number of neurons. For each GRU layer, the GRU layer is used to further extract temporal features, and the GRU layer uses a gating mechanism to update the hidden state, including an update gate, a reset gate, and a candidate hidden state.

[0150] by Figure 5 Taking the GRU model shown in FIG. 1 as an example, the processing process of the GRU model is introduced.

[0151] After obtaining the second eigenvector, the second eigenvector can be input to GRU layer 1 to obtain the eigenvector d1 output by GRU layer 1. The eigenvector d1 can be input to the hidden layer to obtain the eigenvector d2 output by the hidden layer. The eigenvector d2 can be input to GRU layer 2 to obtain the eigenvector d3 output by GRU layer 2. On this basis, the eigenvector d3 can be used as the third eigenvector.

[0152] At this point, the third eigenvector is obtained. The third eigenvector is the output feature of the GRU model. The third eigenvector is used as the input feature of the softmax network layer. The third eigenvector is input to the softmax network layer.

[0153] Exemplarily, the softmax network layer is used as the output layer of the abnormal access detection model, that is, the third feature vector can be input to the softmax network layer, and the softmax network layer uses the softmax activation function to output the probability distribution of the detection category of the data flow, so that the detection category of the data flow can be determined based on the probability distribution of the detection category. For example, based on the probability distribution of the detection category, if the probability of the attack category is the largest, or the probability of the attack category is greater than the threshold, then the detection category of the data flow is the attack category.

[0154] Of course, in addition to the bidirectional LSTM model, the GRU model, and the softmax network layer, the abnormal access detection model can also include a dense layer, such as two dense layers, the number of neurons in these two dense layers is 200 and 100 respectively, and there is no limit on the number of neurons. The dense layer can be deployed in front of the softmax network layer for full connection prediction. For example, the third feature vector can be input to the dense layer, and after being processed by the dense layer, the processed third feature vector is input to the softmax network layer.

[0155] For example, for the bidirectional LSTM model, GRU model, and softmax network layer in the abnormal access detection model, if an activation function is involved, the activation function can use ReLU (linear rectification function), and if an optimizer is involved, the optimizer can use adaptive moment estimation (Adam).

[0156] In a possible implementation manner, if the detection category corresponding to the data flow is an attack category, alarm information for the data flow may also be output to the user equipment, and the alarm information indicates that the data flow is attack traffic.

[0157] After the user device receives the alarm information, the user can analyze whether the data flow is attack traffic. For example, the user goes to the site to check whether the IoT device has been replaced. If so, the data flow is attack traffic. Otherwise, the data flow is not attack traffic. Alternatively, the user can use other means to analyze whether the data flow is attack traffic. There is no restriction on this. If the user confirms that the data flow is attack traffic, the response information may not be sent to the programmable network device. Alternatively, the response information may be sent to the programmable network device through the user device. However, the response information indicates that the data flow is attack traffic.

[0158] If the user confirms that the data flow is not attack traffic, a response message is sent to the programmable network device through the user device, that is, the control plane of the programmable network device can receive the response message, and the response message indicates that the data flow is not attack traffic. On this basis, the control plane can also send a fourth instruction to the data plane, such as the fourth instruction can carry a type identifier, the type identifier can be a fourth value, the fourth value indicates that the current instruction is the fourth instruction, and the fourth instruction indicates that the detection category is not an attack category.

[0159] In addition, the fourth instruction may also include a flow identifier of the data flow, so that after receiving the fourth instruction, the data plane determines that the detection category corresponding to the flow identifier of the data flow is not an attack category, and therefore, the data plane may delete the mapping relationship between the flow identifier of the data flow and the attack category. On this basis, when the data plane receives a subsequent data flow for the data flow, since the detection category corresponding to the flow identifier of the data flow is not recorded, the data plane will send the data flow to the control plane for continued detection.

[0160] Exemplarily, when the data flow is not attack traffic, sample data can also be generated based on the data flow, the sample data includes the feature vector of the data flow and the label of the data flow, and the label indicates that the data flow is not attack traffic, such as the label indicates that the data flow is normal traffic. In this way, the abnormal access detection model can be optimized (i.e., the model is retrained) based on the sample data to obtain an optimized abnormal access detection model. Obviously, since the abnormal access detection model is optimized using the feature vector of the data flow and the label of the data flow, when the optimized abnormal access detection model is used to perform abnormal access detection on the data flow for subsequent data flows of the data flow, the detection result indicates that the data flow is normal traffic, not attack traffic, thereby obtaining a correct detection result, and the data flow is no longer identified as attack traffic.

[0161] It can be seen from the above technical solutions that in the embodiment of the present application, an abnormal access detection model can be deployed on a programmable network device. For the data stream sent by the IoT device to the back-end device, the data stream can be detected based on the abnormal access detection model to determine whether the data stream is an attack data stream. If the data stream is an attack data stream, the data stream is discarded and the data stream is prohibited from being forwarded to the back-end device, thereby avoiding attacks on the back-end device. Determining whether the data stream is an attack data stream through the abnormal access detection model can further improve the detection progress while effectively detecting illegal access to IoT devices. Based on the collaborative integration of deep learning and software-defined networks, an efficient abnormal access detection mechanism is designed. Deep learning is associated with the abnormal access detection part, and the software-defined network is responsible for efficient resource allocation, thereby maximizing compatibility with resource-constrained networks. The fusion model of deep integrated learning, i.e., the BLSTM and GRU fusion model, is used to adapt to heterogeneous IoT traffic data of variable length, and can detect connections such as denial of service, distributed denial of service, botnet attacks, misleading attacks, sniffing, and counterfeit access, which can further improve the detection progress while effectively detecting heterogeneous IoT access.

[0162] Based on the same application concept as the above method, an SDN-driven integrated learning access control device is proposed in the embodiment of the present application, which is applied to a programmable network device between an IoT device and a backend device. The programmable network device includes a data plane and a control plane. The control plane deploys an abnormal access detection model. Figure 6 FIG. 1 is a schematic diagram of the structure of the device, wherein the device comprises:

[0163] The data plane management module 61 is used to determine whether the data plane has recorded the detection category corresponding to the flow identifier of the data flow after receiving the data flow sent by the IoT device through the data plane; if so, and the detection category is an attack category, discard the data flow through the data plane; if not, send the data flow to the control plane through the data plane;

[0164] A control plane management module 62 is used to input the data flow into the abnormal access detection model after receiving the data flow through the control plane to obtain the detection category corresponding to the data flow; if the detection category is a normal category, send a first instruction to the data plane through the control plane; if the detection category is an attack category, send a second instruction to the data plane through the control plane, the second instruction including the flow identifier and attack category of the data flow;

[0165] The data plane management module 61 is used to forward the data flow to the back-end device through the data plane when receiving the first instruction; or, when receiving the second instruction, discard the data flow through the data plane and record the mapping relationship between the flow identifier of the data flow and the attack category.

[0166] Exemplarily, the data plane management module 61 is also used to, after determining whether the data plane has recorded the detection category corresponding to the flow identifier of the data flow, if so, and the detection category is a detection category, send the data flow to the control plane through the data plane; wherein the data flow of the attack category can attack the back-end device, and the data flow of the detection category can collect device information of the back-end device; the control plane management module 62 is also used to, after obtaining the detection category corresponding to the data flow, if the detection category is a detection category, send a third instruction to the data plane through the control plane, the third instruction including the flow identifier and detection category of the data flow; the data plane management module 61 is also used to discard the data flow through the data plane when receiving the third instruction, and record the mapping relationship between the flow identifier of the data flow and the detection category.

[0167] Exemplarily, the abnormal access detection model may include a first classifier model and a second classifier model. The control plane management module 62 inputs the data stream to the abnormal access detection model, and when obtaining the detection category corresponding to the data stream, is specifically used to: obtain a first feature vector corresponding to the data stream; input the first feature vector to the first classifier model to obtain a second feature vector; input the second feature vector to the second classifier model to obtain a third feature vector; and determine the detection category corresponding to the data stream based on the third feature vector;

[0168] The first classifier model is a bidirectional LSTM model, the second classifier model is a GRU model, and the bidirectional LSTM model includes a forward LSTM and a backward LSTM; when the control plane management module 62 inputs the first feature vector into the first classifier model to obtain the second feature vector, it is specifically used for:

[0169] The first feature vector is input into the forward LSTM to obtain a first time series feature; the transposed feature vector corresponding to the first feature vector is input into the backward LSTM to obtain a second time series feature; the first time series feature and the second time series feature are subjected to a union and deduplication operation to obtain a third time series feature, and the second feature vector is determined based on the third time series feature.

[0170] Exemplarily, the data plane management module 61 is also used to collect status information corresponding to the data flow through the data plane after receiving the data flow sent by the Internet of Things device through the data plane, and the status information includes at least one of the following: the transmission rate of the data flow, the delay of the data flow, and the packet loss rate of the data flow; when the data plane management module 61 sends the data flow to the control plane through the data plane, it is specifically used to: send the data flow and the status information to the control plane through the data plane; when the control plane management module 62 inputs the data flow to the abnormal access detection model to obtain the detection category corresponding to the data flow, it is specifically used to: input the data flow and the status information to the abnormal access detection model through the control plane to obtain the detection category corresponding to the data flow.

[0171] Exemplarily, the data plane management module 61 is also used to obtain traffic characteristics corresponding to the data flow through the data plane; detect whether the data flow is abnormal traffic based on the traffic characteristics; if it is abnormal traffic, discard the data flow through the data plane.

[0172] The bidirectional LSTM model includes K BLSTM layers, K is a positive integer greater than 1, each BLSTM layer includes a forward LSTM and a backward LSTM, and the control plane management module 62 is further used to: divide the first feature vector into K sub-feature vectors, and determine K sub-transposed feature vectors corresponding to the K sub-feature vectors; wherein the K sub-feature vectors correspond to the K forward LSTMs one-to-one, and the K sub-transposed feature vectors correspond to the K backward LSTMs one-to-one;

[0173] For the first forward LSTM, the sub-feature vector corresponding to the forward LSTM is input to the forward LSTM to obtain the first time series feature output by the forward LSTM; for the non-first forward LSTM, the sub-feature vector corresponding to the forward LSTM and the first time series feature output by the previous forward LSTM of the forward LSTM are input to the forward LSTM to obtain the first time series feature output by the forward LSTM;

[0174] For the first backward LSTM, the sub-transposed feature vector corresponding to the backward LSTM is input to the backward LSTM to obtain the second time series feature output by the backward LSTM; for the non-first backward LSTM, the sub-transposed feature vector corresponding to the backward LSTM and the second time series feature output by the previous backward LSTM of the backward LSTM are input to the backward LSTM to obtain the second time series feature output by the backward LSTM;

[0175] For each BLSTM layer, a first time series feature output by the forward LSTM in the BLSTM layer and a second time series feature output by the backward LSTM in the BLSTM layer are subjected to a union deduplication operation to obtain a third time series feature corresponding to the BLSTM layer; wherein the union deduplication operation refers to: removing repeated feature values ​​in the first time series feature and the second time series feature, and combining the remaining feature values ​​into the third time series feature;

[0176] After obtaining the third time series features corresponding to each BLSTM layer, perform a union and deduplication operation on the third time series features corresponding to all BLSTM layers to obtain the second feature vector; or perform a weighted operation on the third time series features corresponding to all BLSTM layers to obtain the second feature vector.

[0177] Based on the same application concept as the above method, an electronic device is proposed in the embodiment of the present application, see Figure 7 As shown, it includes: a processor 71 and a machine-readable storage medium 72, the machine-readable storage medium 72 stores machine-executable instructions that can be executed by the processor 71; the processor 71 is used to execute the machine-executable instructions to implement the above-mentioned example of an integrated learning access control method based on SDN drive.

[0178] Based on the same application concept as the above method, an embodiment of the present application also provides a machine-readable storage medium, on which a number of computer instructions are stored. When the computer instructions are executed by a processor, the SDN-driven integrated learning access control method of the above example of the present application can be implemented.

[0179] The above-mentioned machine-readable storage medium may be any electronic, magnetic, optical or other physical storage device, which may contain or store information, such as executable instructions, data, etc. For example, the machine-readable storage medium may be: RAM (Radom Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as optical disk, DVD, etc.), or similar storage medium, or a combination thereof.

[0180] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0181] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. An integrated learning access control method based on SDN driver, characterized in that: A programmable network device applied between an IoT device and a backend device, the programmable network device comprising a data plane and a control plane, the control plane deploying an abnormal access detection model, the method comprising: After receiving the data stream sent by the IoT device through the data plane, determining whether the data plane has recorded the detection category corresponding to the flow identifier of the data stream; If yes, and the detection category is an attack category, discarding the data flow through the data plane; if yes, and the detection category is a detection category, sending the data flow to the control plane through the data plane; if no, sending the data flow to the control plane through the data plane; After receiving the data stream through the control plane, the data stream is input into the abnormal access detection model to obtain the detection category corresponding to the data stream; wherein the abnormal access detection model includes a bidirectional LSTM model and a GRU model, and the bidirectional LSTM model includes a forward LSTM and a backward LSTM, the bidirectional LSTM model and the GRU model are deployed in series, and the output features of the bidirectional LSTM model are used as input features of the GRU model; wherein, a first feature vector corresponding to the data stream is obtained; the first feature vector is input into the forward LSTM to obtain a first time series feature, the transposed feature vector of the first feature vector is input into the backward LSTM to obtain a second time series feature, the first time series feature and the second time series feature are subjected to a union deduplication operation to obtain a third time series feature, and a second feature vector is determined based on the third time series feature; the second feature vector is input into the GRU model to obtain a third feature vector; and the detection category corresponding to the data stream is determined based on the third feature vector; If the detection category is a normal category, sending a first instruction to the data plane through the control plane, so that the data plane forwards the data flow to the backend device; If the detection category is an attack category, a second instruction is sent to the data plane through the control plane, wherein the second instruction includes a flow identifier and an attack category of the data flow, so that the data plane discards the data flow and records a mapping relationship between the flow identifier and the attack category of the data flow; wherein the data flow of the attack category can attack the backend device; If the detection category is a detection category, a third instruction is sent to the data plane through the control plane, and the third instruction includes the flow identifier and detection category of the data flow, so that the data plane discards the data flow and records the mapping relationship between the flow identifier and the detection category of the data flow, so that after the data plane receives the data flow corresponding to the flow identifier again, it sends the data flow to the control plane based on the detection category corresponding to the data flow recorded in the mapping relationship; wherein the data flow of the detection category can collect device information of the back-end device.

2. The method according to claim 1, characterized in that: After receiving the data stream sent by the IoT device through the data plane, collecting state information corresponding to the data stream through the data plane, and the state information includes at least one of the following: a transmission rate of the data stream, a delay of the data stream, and a packet loss rate of the data stream; The sending the data flow to the control plane through the data plane comprises: sending the data flow and the state information to the control plane through the data plane; The inputting the data flow to the abnormal access detection model to obtain the detection category corresponding to the data flow includes: inputting the data flow and the state information to the abnormal access detection model through the control plane to obtain the detection category corresponding to the data flow.

3. The method according to claim 1, characterized in that: Before determining whether the data plane has recorded the detection category corresponding to the flow identifier of the data flow, the method further includes: Acquire, through the data plane, a traffic characteristic corresponding to the data flow; Detecting whether the data flow is abnormal traffic based on the traffic characteristics; If so, the data flow is discarded through the data plane, and if not, an operation of determining whether the data plane has recorded the detection category corresponding to the flow identifier of the data flow is performed.

4. The method according to claim 1, characterized in that The method further comprises: If the detection category corresponding to the data flow is an attack category, outputting alarm information for the data flow to the user equipment, the alarm information indicating that the data flow is attack traffic; If a response message is received, and the response message indicates that the data flow is not attack traffic, a fourth instruction is sent to the data plane through the control plane, where the fourth instruction includes a flow identifier of the data flow, so that the data plane deletes the mapping relationship between the flow identifier of the data flow and the attack category; And / or, generating sample data based on the data stream, optimizing the abnormal access detection model based on the sample data, and obtaining an optimized abnormal access detection model.

5. The method according to claim 1, characterized in that The GRU model includes a first GRU layer and a second GRU layer, and a hidden layer is between the first GRU layer and the second GRU layer; the first GRU layer includes an update gate, a reset gate and a candidate hidden state, and the second GRU layer includes an update gate, a reset gate and a candidate hidden state; The step of inputting the second feature vector to the GRU model to obtain a third feature vector includes: Input the second feature vector to the first GRU layer to obtain the feature vector output by the first GRU layer; input the feature vector output by the first GRU layer to the hidden layer to obtain the feature vector output by the hidden layer; input the feature vector output by the hidden layer to the second GRU layer to obtain the feature vector output by the second GRU layer; The feature vector output by the second GRU layer is determined as the third feature vector.

6. The method according to claim 1, characterized in that The bidirectional LSTM model includes K BLSTM layers, where K is a positive integer greater than 1, and each BLSTM layer includes a forward LSTM and a backward LSTM. The first feature vector is input to the forward LSTM to obtain a first time series feature, a transposed feature vector of the first feature vector is input to the backward LSTM to obtain a second time series feature, a union deduplication operation is performed on the first time series feature and the second time series feature to obtain a third time series feature, and a second feature vector is determined based on the third time series feature, including: Divide the first feature vector into K sub-feature vectors, and determine K sub-transposed feature vectors corresponding to the K sub-feature vectors; wherein the K sub-feature vectors correspond one-to-one to the K forward LSTMs, and the K sub-transposed feature vectors correspond one-to-one to the K backward LSTMs; For the first forward LSTM, the sub-feature vector corresponding to the forward LSTM is input to the forward LSTM to obtain the first time series feature output by the forward LSTM; for the non-first forward LSTM, the sub-feature vector corresponding to the forward LSTM and the first time series feature output by the previous forward LSTM of the forward LSTM are input to the forward LSTM to obtain the first time series feature output by the forward LSTM; For the first backward LSTM, the sub-transposed feature vector corresponding to the backward LSTM is input to the backward LSTM to obtain the second time series feature output by the backward LSTM; for the non-first backward LSTM, the sub-transposed feature vector corresponding to the backward LSTM and the second time series feature output by the previous backward LSTM of the backward LSTM are input to the backward LSTM to obtain the second time series feature output by the backward LSTM; For each BLSTM layer, a first time series feature output by the forward LSTM in the BLSTM layer and a second time series feature output by the backward LSTM in the BLSTM layer are subjected to a union deduplication operation to obtain a third time series feature corresponding to the BLSTM layer; wherein the union deduplication operation refers to: removing repeated feature values ​​in the first time series feature and the second time series feature, and combining the remaining feature values ​​into the third time series feature; After obtaining the third time series features corresponding to each BLSTM layer, perform a union and deduplication operation on the third time series features corresponding to all BLSTM layers to obtain the second feature vector; or perform a weighted operation on the third time series features corresponding to all BLSTM layers to obtain the second feature vector.

7. An integrated learning access control device based on SDN driver, characterized in that: A programmable network device applied between an IoT device and a backend device, the programmable network device includes a data plane and a control plane, the control plane deploys an abnormal access detection model, and the device includes: A data plane management module, configured to determine whether the data plane has recorded the detection category corresponding to the flow identifier of the data flow after receiving the data flow sent by the IoT device through the data plane; if so, and the detection category is an attack category, discard the data flow through the data plane; if so, and the detection category is a detection category, send the data flow to the control plane through the data plane; if not, send the data flow to the control plane through the data plane; A control plane management module, configured to input the data stream into the abnormal access detection model after receiving the data stream through the control plane, and obtain a detection category corresponding to the data stream; wherein the abnormal access detection model includes a bidirectional LSTM model and a GRU model, the bidirectional LSTM model includes a forward LSTM and a backward LSTM, the bidirectional LSTM model and the GRU model are deployed in series, and the output features of the bidirectional LSTM model are used as input features of the GRU model; wherein, a first feature vector corresponding to the data stream is obtained; the first feature vector is input into the forward LSTM to obtain a first time series feature, the transposed feature vector of the first feature vector is input into the backward LSTM to obtain a second time series feature, the first time series feature and the second time series feature are subjected to a union deduplication operation to obtain a third time series feature, and a second feature vector is determined based on the third time series feature; the second feature vector is input into the GRU model to obtain a third feature vector; and the detection category corresponding to the data stream is determined based on the third feature vector; A control plane management module, configured to, if the detection category is a normal category, issue a first instruction to the data plane through the control plane; if the detection category is an attack category, issue a second instruction to the data plane through the control plane, the second instruction including a flow identifier and an attack category of the data flow; wherein the data flow of the attack category can attack the backend device; if the detection category is a detection category, issue a third instruction to the data plane through the control plane, the third instruction including a flow identifier and a detection category of the data flow; wherein the data flow of the detection category can collect device information of the backend device; A data plane management module is used to forward the data flow to the back-end device through the data plane when receiving the first instruction; or, when receiving the second instruction, discard the data flow through the data plane and record the mapping relationship between the flow identifier of the data flow and the attack category; or, when receiving the third instruction, discard the data flow through the data plane and record the mapping relationship between the flow identifier of the data flow and the detection category, so that after the data plane receives the data flow corresponding to the flow identifier again, the data plane sends the data flow to the control plane based on the detection category corresponding to the data flow recorded in the mapping relationship.

8. The device according to claim 7, characterized in that The bidirectional LSTM model includes K BLSTM layers, where K is a positive integer greater than 1, and each BLSTM layer includes a forward LSTM and a backward LSTM. The control plane management module is further used for: Divide the first feature vector into K sub-feature vectors, and determine K sub-transposed feature vectors corresponding to the K sub-feature vectors; wherein the K sub-feature vectors correspond one-to-one to the K forward LSTMs, and the K sub-transposed feature vectors correspond one-to-one to the K backward LSTMs; For the first forward LSTM, the sub-feature vector corresponding to the forward LSTM is input to the forward LSTM to obtain the first time series feature output by the forward LSTM; for the non-first forward LSTM, the sub-feature vector corresponding to the forward LSTM and the first time series feature output by the previous forward LSTM of the forward LSTM are input to the forward LSTM to obtain the first time series feature output by the forward LSTM; For the first backward LSTM, the sub-transposed feature vector corresponding to the backward LSTM is input to the backward LSTM to obtain the second time series feature output by the backward LSTM; for the non-first backward LSTM, the sub-transposed feature vector corresponding to the backward LSTM and the second time series feature output by the previous backward LSTM of the backward LSTM are input to the backward LSTM to obtain the second time series feature output by the backward LSTM; For each BLSTM layer, a first time series feature output by the forward LSTM in the BLSTM layer and a second time series feature output by the backward LSTM in the BLSTM layer are subjected to a union deduplication operation to obtain a third time series feature corresponding to the BLSTM layer; wherein the union deduplication operation refers to: removing repeated feature values ​​in the first time series feature and the second time series feature, and combining the remaining feature values ​​into the third time series feature; After obtaining the third time series features corresponding to each BLSTM layer, perform a union and deduplication operation on the third time series features corresponding to all BLSTM layers to obtain the second feature vector; or perform a weighted operation on the third time series features corresponding to all BLSTM layers to obtain the second feature vector.