[go: up one dir, main page]

CN108199906A - Abnormal flow processing method, device and user terminal in a kind of SDN frameworks - Google Patents

Abnormal flow processing method, device and user terminal in a kind of SDN frameworks Download PDF

Info

Publication number
CN108199906A
CN108199906A CN201810122369.8A CN201810122369A CN108199906A CN 108199906 A CN108199906 A CN 108199906A CN 201810122369 A CN201810122369 A CN 201810122369A CN 108199906 A CN108199906 A CN 108199906A
Authority
CN
China
Prior art keywords
traffic
abnormal traffic
abnormal
data information
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810122369.8A
Other languages
Chinese (zh)
Other versions
CN108199906B (en
Inventor
陈江婷
张理阳
王箭
肖向
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Forward Industrial Co Ltd
Original Assignee
Shenzhen Forward Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Forward Industrial Co Ltd filed Critical Shenzhen Forward Industrial Co Ltd
Priority to CN201810122369.8A priority Critical patent/CN108199906B/en
Publication of CN108199906A publication Critical patent/CN108199906A/en
Application granted granted Critical
Publication of CN108199906B publication Critical patent/CN108199906B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2475Traffic characterised by specific attributes, e.g. priority or QoS for supporting traffic characterised by the type of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2483Traffic characterised by specific attributes, e.g. priority or QoS involving identification of individual flows

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明提供了一种SDN构架中异常流量处理方法、装置和用户终端,其中所述方法包括:解析报文的数据流,得到解析数据信息;根据异常流量模板库对解析数据信息进行流量检验,生成流量检验结果;异常流量模板库包括预设的异常流量的内容特征和行为特征;若所述流量检验结果为所述解析数据信息是异常流量,则根据预所述异常流量模板库对所述异常流量对应的报文进行处理。本发明所提供的方法针为SDN构架的提供了对于异常流量的应对机制,杜绝了网络由于异常流量引起的失控和瘫痪的情况,有效的增强了SDN构架的安全性,进而为用户和维护人员对网络的使用提供了极大的方便。

The present invention provides a method, device, and user terminal for processing abnormal traffic in an SDN framework, wherein the method includes: parsing the data flow of the message to obtain parsing data information; performing traffic inspection on the parsing data information according to the abnormal traffic template library, Generate traffic inspection results; the abnormal traffic template library includes preset content and behavior characteristics of abnormal traffic; Packets corresponding to abnormal traffic are processed. The method provided by the present invention provides a response mechanism for abnormal traffic for the SDN framework, eliminates the out-of-control and paralysis of the network caused by abnormal traffic, effectively enhances the security of the SDN framework, and further provides users and maintenance personnel The use of the network provides great convenience.

Description

一种SDN构架中异常流量处理方法、装置和用户终端A method, device, and user terminal for processing abnormal traffic in an SDN framework

技术领域technical field

本发明涉及网络通信技术领域,更具体地说,涉及一种SDN构架中异常流量处理方法、装置和用户终端。The present invention relates to the technical field of network communication, and more specifically, relates to a method, device and user terminal for processing abnormal traffic in an SDN framework.

背景技术Background technique

SDN构架最先由ONF组织提出,SDN由下到上(或称由南向北)分为数据平面、控制平面和应用平面。区别于传统的网络构架,SDN构架将网络的控制平面和数据平面分离。而控制平面是SDN构架的核心,提供对网络的集中控制。控制平面通过它的南向接口使用数据平面网络设备提供的服务收集网络设备状态,或者对网络设备进行配置;应用平面通过控制平面提供的北向接口发送请求,实现对网络设备的配置或信息获取。SDN构架提供开放的可编程接口,仅通过简单的编程就能实现新应用的快速部署。The SDN architecture was first proposed by the ONF organization. SDN is divided into data plane, control plane and application plane from bottom to top (or from south to north). Different from the traditional network architecture, the SDN architecture separates the control plane and data plane of the network. The control plane is the core of the SDN architecture, providing centralized control of the network. The control plane uses the services provided by the data plane network equipment through its southbound interface to collect the status of the network equipment or configure the network equipment; the application plane sends requests through the northbound interface provided by the control plane to realize the configuration or information acquisition of the network equipment. The SDN architecture provides an open programmable interface, which enables rapid deployment of new applications through simple programming.

SDN构架的集中控制和提供开放可编程的特点给SDN带来了安全问题。其中,网络异常流量会带来较多的网络带宽的消耗,占用CPU处理时间,会导致链路利用率降低,造成网络拥堵,会对网络服务质量造成严重的影响。而在SDN构架中,异常流量会导致SDN控制器无法对外提供服务,使网络处于失控状态,同时,异常流量也会导致网络设备无法正常工作,使网络处于瘫痪状态。所以,在SDN网络中,需要具备对异常流量的检测和防御能力。The centralized control and open programmability of SDN architecture bring security issues to SDN. Among them, abnormal network traffic will bring more network bandwidth consumption, occupy CPU processing time, reduce link utilization, cause network congestion, and seriously affect network service quality. In the SDN architecture, abnormal traffic will cause the SDN controller to fail to provide external services, making the network out of control. At the same time, abnormal traffic will also cause network devices to fail to work normally, making the network paralyzed. Therefore, in the SDN network, it is necessary to have the ability to detect and defend against abnormal traffic.

综上所述,目前SDN构架中由于存在网络异常流量且没有相关的应对机制,导致网络中被消耗大量带宽、占用系统CPU资源、无法对外提供服务,进而导致网络失控和瘫痪,给用户和维护人员的对网络的使用带来巨大的安全隐患和不便。To sum up, due to the existence of abnormal network traffic in the current SDN architecture and there is no relevant coping mechanism, the network consumes a large amount of bandwidth, occupies system CPU resources, and cannot provide external services, which in turn leads to network loss of control and paralysis. The use of the network by personnel brings huge security risks and inconvenience.

发明内容Contents of the invention

有鉴于此,本发明提供一种SDN构架中异常流量处理方法、装置和用户终端以解决现有技术的不足。In view of this, the present invention provides a method, device and user terminal for processing abnormal traffic in an SDN framework to solve the deficiencies in the prior art.

为解决上述问题,本发明提供一种SDN构架中异常流量处理方法,包括:In order to solve the above problems, the present invention provides a method for processing abnormal traffic in an SDN framework, including:

解析报文的数据流,得到解析数据信息;Analyze the data flow of the message to obtain the analysis data information;

根据异常流量模板库对所述解析数据信息进行流量检验,生成流量检验结果;所述异常流量模板库包括预设的异常流量的内容特征和行为特征;Performing traffic inspection on the analysis data information according to the abnormal traffic template library to generate a traffic inspection result; the abnormal traffic template library includes preset content characteristics and behavior characteristics of abnormal traffic;

若所述流量检验结果为所述解析数据信息是异常流量,则根据预所述异常流量模板库对所述异常流量对应的报文进行处理。If the result of the traffic inspection is that the parsed data information is abnormal traffic, the packet corresponding to the abnormal traffic is processed according to the preset abnormal traffic template library.

优选地,所述“若所述流量检验结果为所述解析数据信息是异常流量,则根据预所述异常流量模板库对所述异常流量对应的报文进行处理”包括:Preferably, the "if the result of the traffic inspection is that the parsed data information is abnormal traffic, then process the message corresponding to the abnormal traffic according to the preset abnormal traffic template library" includes:

若所述流量检验结果为所述解析数据信息是异常流量,则根据所述异常流量模板库判断所述解析数据信息是否为高危异常流量;If the result of the traffic inspection is that the analytical data information is abnormal traffic, then judge whether the analytical data information is high-risk abnormal traffic according to the abnormal traffic template library;

若所述解析数据信息为所述高危异常流量,则对所述数据信息对应的所述报文丢弃或隔离。If the analyzed data information is the high-risk abnormal traffic, discard or isolate the packet corresponding to the data information.

优选地,所述“根据所述异常流量模板库判断所述解析数据信息是否为高危异常流量”之后,还包括:Preferably, after the "judging whether the parsed data information is high-risk abnormal traffic according to the abnormal traffic template library", it also includes:

若所述解析数据信息不为所述高危异常流量,则向外部安全APP发送与所述解析数据信息对应的提示信息,以便于根据所述外部安全APP的对所述提示信息返回的决策信息处理所述解析数据信息对应的所述报文。If the analysis data information is not the high-risk abnormal traffic, send prompt information corresponding to the analysis data information to the external security APP, so as to process according to the decision information returned by the external security APP to the prompt information The packet corresponding to the parsed data information.

优选地,所述“若所述解析数据信息不为所述高危异常流量,则向外部安全APP发送与所述解析数据信息对应的提示信息,以便于根据所述外部安全APP的对所述提示信息返回的决策信息处理所述解析数据信息对应的所述报文”之后,还包括:Preferably, the "if the analysis data information is not the high-risk abnormal traffic, send prompt information corresponding to the analysis data information to the external security APP, so as to provide the prompt according to the external security APP." After the decision information returned by the information processes the message corresponding to the parsed data information, it also includes:

获取所述外部安全APP根据所述提示信息返回的所述决策信息;Obtaining the decision information returned by the external security APP according to the prompt information;

将所述决策信息转换为流量策略信息;converting the decision information into traffic policy information;

根据所述流量策略信息改变所述异常流量的路由或禁止所述异常流量进入网络。Changing the route of the abnormal traffic or prohibiting the abnormal traffic from entering the network according to the traffic policy information.

优选地,所述“根据异常流量模板库对所述解析数据信息进行流量检验,生成流量检验结果”之后,还包括:Preferably, after the "perform traffic inspection on the parsed data information according to the abnormal traffic template library, and generate traffic inspection results", it also includes:

若所述流量检验结果为所述解析数据信息不是异常流量,则获取预设时间内所述报文对应的所述解析数据信息的行为统计数据,并基于所述行为统计数据根据所述异常流量模板库对所述报文的解析数据信息进行流量行为特征检测,生成行为特征检测结果;If the result of the traffic inspection is that the parsed data information is not abnormal traffic, then obtain the behavior statistics data of the parsed data information corresponding to the message within a preset time, and based on the behavior statistics data according to the abnormal traffic The template library performs traffic behavior feature detection on the parsed data information of the message, and generates a behavior feature detection result;

若所述行为特征检测结果为所述解析数据信息是异常流量,则根据所述异常流量模板库对所述异常流量对应的报文进行处理。If the result of the behavior feature detection is that the parsed data information is abnormal traffic, the packet corresponding to the abnormal traffic is processed according to the abnormal traffic template library.

优选地,所述“若所述流量检验结果为所述解析数据信息不是异常流量,则对所述解析数据信息进行流量行为特征检测,并生成行为特征检测结果”之后,还包括:Preferably, after the "if the traffic inspection result shows that the analytical data information is not abnormal traffic, then perform traffic behavior characteristic detection on the analytical data information, and generate a behavior characteristic detection result", further include:

若所述行为特征检测结果为所述解析数据信息不是异常流量,则将所述解析数据信息记为正常流量。If the result of the behavior feature detection is that the analyzed data information is not abnormal traffic, record the analyzed data information as normal traffic.

优选地,所述解析数据信息包括报文头部信息和报文内容信息。Preferably, the parsed data information includes message header information and message content information.

此外,为解决上述问题,本发明还提供一种SDN构架中异常流量处理装置,包括:解析模块、检验模块和处理模块;In addition, in order to solve the above problems, the present invention also provides a device for processing abnormal traffic in the SDN framework, including: an analysis module, a verification module and a processing module;

所述解析模块,用于解析报文的数据流,得到解析数据信息;The parsing module is used for parsing the data stream of the message to obtain parsing data information;

所述检验模块,用于根据异常流量模板库对所述解析数据信息进行流量检验,生成流量检验结果;所述异常流量模板库包括预设的异常流量的内容特征和行为特征;The inspection module is configured to perform traffic inspection on the analysis data information according to the abnormal traffic template library, and generate a traffic inspection result; the abnormal traffic template library includes preset content characteristics and behavior characteristics of abnormal traffic;

所述处理模块,用于若所述流量检验结果为所述解析数据信息是异常流量,则根据预所述异常流量模板库对所述异常流量对应的报文进行处理。The processing module is configured to process the message corresponding to the abnormal traffic according to the abnormal traffic template library in advance if the traffic inspection result is that the parsed data information is abnormal traffic.

此外,为解决上述问题,本发明还提供一种用户终端,包括存储器以及处理器,所述存储器用于存储SDN构架中异常流量处理程序,所述处理器运行所述SDN构架中异常流量处理程序以使所述用户终端执行如上述所述SDN构架中异常流量处理方法。In addition, in order to solve the above problems, the present invention also provides a user terminal, including a memory and a processor, the memory is used to store the abnormal traffic processing program in the SDN framework, and the processor runs the abnormal traffic processing program in the SDN framework To enable the user terminal to execute the method for processing abnormal traffic in the SDN framework described above.

此外,为解决上述问题,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有SDN构架中异常流量处理程序,所述SDN构架中异常流量处理程序被处理器执行时实现如上述所述SDN构架中异常流量处理方法。In addition, in order to solve the above problems, the present invention also provides a computer-readable storage medium, the computer-readable storage medium stores the abnormal traffic processing program in the SDN framework, and the abnormal traffic processing program in the SDN framework is executed by the processor Realize the abnormal traffic processing method in the SDN framework as described above.

本发明提供的一种SDN构架中异常流量处理方法、装置和用户终端。其中,本发明所提供的方法针对现有SDN构架在安全性上的不足,对报文的解析数据信息进行流量检验,进而根据流量检验结果等方法对该报文是否为异常流量进行判断,如果为异常流量则按照流量危害策略对报文进行进一步的处理,为SDN构架的提供了对于异常流量的应对机制,杜绝了网络由于异常流量引起的失控和瘫痪的情况,有效的增强了SDN构架的安全性,进而为用户和维护人员的对网络的使用提供了极大的方便。The present invention provides a method, device and user terminal for processing abnormal traffic in an SDN framework. Wherein, the method provided by the present invention aims at the deficiencies in the security of the existing SDN framework, and performs traffic inspection on the parsed data information of the message, and then judges whether the message is abnormal traffic according to methods such as the flow inspection result, if For abnormal traffic, the message will be further processed according to the traffic hazard strategy, which provides the SDN framework with a response mechanism for abnormal traffic, prevents the network from being out of control and paralyzed due to abnormal traffic, and effectively enhances the security of the SDN framework. Security, which in turn provides great convenience for users and maintenance personnel to use the network.

附图说明Description of drawings

图1为本发明SDN构架中异常流量处理方法实施例方案涉及的硬件运行环境的结构示意图;Fig. 1 is a schematic structural diagram of the hardware operating environment involved in the embodiment scheme of the abnormal traffic processing method in the SDN framework of the present invention;

图2为本发明SDN构架中异常流量处理方法第一实施例的流程示意图;Fig. 2 is a schematic flow chart of the first embodiment of the abnormal traffic processing method in the SDN framework of the present invention;

图3为本发明SDN构架中异常流量处理方法第二实施例的流程示意图;3 is a schematic flow diagram of a second embodiment of the abnormal traffic processing method in the SDN framework of the present invention;

图4为本发明SDN构架中异常流量处理方法第三实施例的流程示意图;4 is a schematic flow chart of a third embodiment of the abnormal traffic processing method in the SDN framework of the present invention;

图5为本发明SDN构架中异常流量处理方法第四实施例的流程示意图;5 is a schematic flow diagram of a fourth embodiment of the method for processing abnormal traffic in the SDN framework of the present invention;

图6为本发明SDN构架中异常流量处理装置的功能模块示意图;6 is a schematic diagram of functional modules of the abnormal traffic processing device in the SDN framework of the present invention;

图7为本发明SDN构架中异常流量处理方法所基于的SDN安全构架的应用平面、SDN控制器、异常流量管理服务器和数据平面的异常流量处理示意图;7 is a schematic diagram of abnormal traffic processing of the application plane, SDN controller, abnormal traffic management server and data plane of the SDN security framework based on the abnormal traffic processing method in the SDN framework of the present invention;

图8为本发明SDN构架中异常流量处理方法所基于的SDN安全构架的SDN控制器的异常流量处理流程示意图;Fig. 8 is a schematic diagram of the abnormal traffic processing flow of the SDN controller of the SDN security framework based on the abnormal traffic processing method in the SDN framework of the present invention;

图9为本发明SDN构架中异常流量处理方法所基于的SDN安全构架的应用层、控制层及数据层的异常流量处理示意图。9 is a schematic diagram of abnormal traffic processing in the application layer, control layer, and data layer of the SDN security architecture based on the method for processing abnormal traffic in the SDN architecture of the present invention.

本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.

具体实施方式Detailed ways

下面详细描述本发明的实施例,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。Embodiments of the present invention are described in detail below, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions.

此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本发明的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as "first" and "second" may explicitly or implicitly include one or more of these features. In the description of the present invention, "plurality" means two or more, unless otherwise specifically defined.

在本发明中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”、“固定”等术语应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或成一体;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明中的具体含义。In the present invention, unless otherwise clearly specified and limited, terms such as "installation", "connection", "connection" and "fixation" should be understood in a broad sense, for example, it can be a fixed connection or a detachable connection , or integrated; it can be mechanically connected or electrically connected; it can be directly connected or indirectly connected through an intermediary, and it can be the internal communication of two components or the interaction relationship between two components. Those of ordinary skill in the art can understand the specific meanings of the above terms in the present invention according to specific situations.

应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

如图1所示,图1是本发明实施例方案涉及的终端的硬件运行环境的结构示意图。As shown in FIG. 1 , FIG. 1 is a schematic structural diagram of a hardware operating environment of a terminal involved in the solution of an embodiment of the present invention.

本发明实施例终端可以是PC,也可以是智能手机、平板电脑、电子书阅读器、便携计算机等具有显示功能的可移动式终端设备。The terminal in this embodiment of the present invention may be a PC, or may be a mobile terminal device with a display function such as a smart phone, a tablet computer, an e-book reader, or a portable computer.

如图1所示,该终端可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏、输入单元比如键盘、遥控器,可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器,例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1 , the terminal may include: a processor 1001 , such as a CPU, a network interface 1004 , a user interface 1003 , a memory 1005 , and a communication bus 1002 . Wherein, the communication bus 1002 is used to realize connection and communication between these components. The user interface 1003 may include a display screen, an input unit such as a keyboard, and a remote controller, and the optional user interface 1003 may also include a standard wired interface and a wireless interface. Optionally, the network interface 1004 may include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 can be a high-speed RAM memory, or a stable memory, such as a disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001 .

可选地,终端还可以包括摄像头、RF(RadioFrequency,射频)电路,传感器、音频电路、WiFi模块等等。此外,移动终端还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。Optionally, the terminal may further include a camera, an RF (Radio Frequency, radio frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like. In addition, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which will not be repeated here.

本领域技术人员可以理解,图1中示出的终端并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the terminal shown in FIG. 1 does not constitute a limitation on the terminal, and may include more or less components than those shown in the figure, or combine some components, or arrange different components.

如图1所示,作为一种计算机可读存储介质的存储器1005中可以包括操作系统、数据接口控制程序、网络连接程序以及SDN构架中异常流量处理程序。As shown in FIG. 1 , the memory 1005 as a computer-readable storage medium may include an operating system, a data interface control program, a network connection program, and an abnormal traffic processing program in the SDN framework.

本发明提供的一种SDN构架中异常流量处理方法、装置和用户终端。其中,所述方法为SDN构架的提供了对于异常流量的应对机制,杜绝了网络由于异常流量引起的失控和瘫痪的情况,有效的增强了SDN构架的安全性,进而为用户和维护人员对网络的使用提供了极大的方便。The present invention provides a method, device and user terminal for processing abnormal traffic in an SDN framework. Wherein, the method provides the SDN framework with a response mechanism for abnormal traffic, prevents the network from being out of control and paralyzed due to abnormal traffic, effectively enhances the security of the SDN framework, and further provides users and maintenance personnel with a clear view of the network. The use provides great convenience.

实施例1:Example 1:

参照图2,本发明第一实施例提供一种SDN构架中异常流量处理方法,包括:Referring to Fig. 2, the first embodiment of the present invention provides a method for processing abnormal traffic in the SDN framework, including:

步骤S10,解析报文的数据流,得到解析数据信息;Step S10, analyzing the data flow of the message to obtain the analysis data information;

上述,需要理解的是,软件定义网络(Software Defined Network,SDN),是Emulex网络一种新型网络创新构架,是网络虚拟化的一种实现方式,其核心技术OpenFlow通过将网络设备控制面与数据面分离开来,从而实现了网络流量的灵活控制,使网络作为管道变得更加智能。As mentioned above, what needs to be understood is that Software Defined Network (Software Defined Network, SDN) is a new network innovation framework of Emulex network and a way to realize network virtualization. Its core technology, OpenFlow, combines the control plane of network equipment with data The plane is separated, so that the flexible control of network traffic is realized, and the network becomes more intelligent as a pipeline.

上述,需要理解的是,报文(message)是网络中交换与传输的数据单元,即站点一次性要发送的数据块。报文包含了将要发送的完整的数据信息,其长短很不一致,长度不限且可变。报文也是网络传输的单位,传输过程中会不断的封装成分组、包、帧来传输,封装的方式就是添加一些信息段,那些就是报文头以一定格式组织起来的数据。在本实施例中,报文为网络中进行数据交互的数据单元。As mentioned above, it should be understood that a message (message) is a data unit exchanged and transmitted in the network, that is, a data block to be sent by a station at one time. The message contains the complete data information to be sent, and its length is very inconsistent, and the length is unlimited and variable. The message is also the unit of network transmission. During the transmission process, it will be continuously encapsulated into groups, packets, and frames for transmission. The way of encapsulation is to add some information segments, which are the data organized by the header in a certain format. In this embodiment, a message is a data unit for data exchange in the network.

上述,在SDN构架中,实时或定时采集不同发送端发出的报文,SDN控制器对所有报文的数据流进行监控,进而对数据流进行解析,并得到解析数据信息。所述解析数据信息可包含该报文的特征信息或相关数据记录信息。As mentioned above, in the SDN framework, the messages sent by different sending ends are collected in real time or regularly, and the SDN controller monitors the data flow of all messages, and then analyzes the data flow, and obtains the analyzed data information. The parsing data information may include feature information or related data record information of the message.

步骤S20,根据异常流量模板库对所述解析数据信息进行流量检验,生成流量检验结果;所述异常流量模板库包括预设的异常流量的内容特征和行为特征;Step S20, performing traffic inspection on the analysis data information according to the abnormal traffic template library, and generating a traffic inspection result; the abnormal traffic template library includes preset content and behavior characteristics of abnormal traffic;

上述,流量模板库为预设的流量监测中用于鉴定流量是否为异常流量的模板库,可以进行保存异常流量的模板,其中,包括异常流量的内容特征、行为特征、危害等级、建议处理方式等内容。异常流量模板库中的异常流量根据流量的内容特征或者行为特点用一套简单易懂的描述语言进行描述。比如:Land攻击的特征为源目的IP相同,可以描述为ip.src==ip.dst;某SYNFlood的攻击特征为5秒内,syn包数量超过10000次,可以描述为tcp.syn==1&&totalssn(10000,5)。As mentioned above, the traffic template library is a template library used to identify whether the traffic is abnormal traffic in the preset traffic monitoring, and can save the template of abnormal traffic, including the content characteristics, behavior characteristics, hazard level and suggested handling methods of abnormal traffic and so on. The abnormal traffic in the abnormal traffic template library is described with a set of simple and understandable description language according to the content characteristics or behavior characteristics of the traffic. For example: the characteristic of a Land attack is that the source and destination IPs are the same, which can be described as ip.src==ip.dst; the characteristic of a SYNFlood attack is that the number of syn packets exceeds 10,000 times within 5 seconds, which can be described as tcp.syn==1&&totalssn (10000, 5).

上述,通过根据异常流量模板库对解析数据信息进行检验,进而得到根据检验生成的流量检验结果。As mentioned above, the analysis data information is verified according to the abnormal traffic template library, and the traffic verification result generated according to the verification is obtained.

步骤S30,若所述流量检验结果为所述解析数据信息是异常流量,则根据预所述异常流量模板库对所述异常流量对应的报文进行处理。Step S30 , if the result of the traffic inspection is that the parsed data information is abnormal traffic, then process the message corresponding to the abnormal traffic according to the preset abnormal traffic template library.

上述,异常流量模板库为预设的可根据报文的解析数据信息进行根据流量的内容特征、行为特征,或者内容特征与行为特征相结合的方式对流量进行分类的策略;进而可根据不同的等级、分类对报文对应的数据流进行处理,例如,分为高危异常流量、危险异常流量、较危险异常流量、普通异常流量、正常流量几个等级,对于解析数据信息根据不同的等级进行分类,进而进行不同分类对应的处理方法进行处理。As mentioned above, the abnormal traffic template library is a preset strategy that can classify traffic according to the content characteristics, behavior characteristics, or a combination of content characteristics and behavior characteristics according to the analysis data information of the message; Level and classification Process the data flow corresponding to the message. For example, it is divided into high-risk abnormal flow, dangerous abnormal flow, relatively dangerous abnormal flow, common abnormal flow, and normal flow. The analysis data information is classified according to different levels , and then perform processing methods corresponding to different classifications.

本实施例所提供的方法针对现有SDN构架在安全性上的不足,对报文的解析数据信息进行流量检验,进而根据流量检验结果等方法对该报文是否为异常流量进行判断,如果为异常流量则按照流量危害策略对报文进行进一步的处理,为SDN构架提供了对于异常流量的应对机制,杜绝了网络由于异常流量引起的失控和瘫痪的情况,有效的增强了SDN构架的安全性,进而为用户和维护人员的对网络的使用提供了极大的方便。The method provided in this embodiment aims at the lack of security of the existing SDN architecture, and performs flow inspection on the parsed data information of the message, and then judges whether the message is abnormal flow according to the flow inspection result and other methods. The abnormal traffic will further process the message according to the traffic hazard policy, which provides the SDN architecture with a response mechanism for abnormal traffic, prevents the network from being out of control and paralyzed due to abnormal traffic, and effectively enhances the security of the SDN architecture , which in turn provides great convenience for users and maintenance personnel to use the network.

实施例2:Example 2:

参照图3,本发明第二实施例提供一种SDN构架中异常流量处理方法,基于上述图2所示的第一实施例,所述步骤S30“若所述流量检验结果为所述解析数据信息是异常流量,则根据预所述异常流量模板库对所述异常流量对应的报文进行处理”包括:Referring to FIG. 3, the second embodiment of the present invention provides a method for processing abnormal traffic in an SDN framework. Based on the first embodiment shown in FIG. is abnormal traffic, then process the message corresponding to the abnormal traffic according to the preset abnormal traffic template library” including:

步骤S31,若所述流量检验结果为所述解析数据信息是异常流量,则根据所述异常流量模板库判断所述解析数据信息是否为高危异常流量;Step S31, if the result of the traffic inspection is that the analyzed data information is abnormal traffic, then judge whether the analyzed data information is high-risk abnormal traffic according to the abnormal traffic template library;

上述,本实施例中,对流量处理的不同流量检验结果,对检测出来的异常流量进行不同的处理。在判断为异常流量后,则对该异常流量根据SDN构架中的相关分类处理模块进行对该报文的解析数据信息的危害等级进行确认。As mentioned above, in this embodiment, different processing is performed on the detected abnormal traffic for different traffic inspection results of traffic processing. After it is judged as abnormal traffic, the hazard level of the analysis data information of the message is confirmed according to the relevant classification processing module in the SDN framework for the abnormal traffic.

上述,危害等级及相应的危害等级处理方式可以根据网络环境和需求通过外部安全APP进行人为设置。异常流量模板库中的异常流量都有相应的危害等级与之相对应,同时,这种对应关系也可以通过外部安全APP进行修改。一旦异常流量被检测出来,则根据异常流量的危害等级做相应的处理。As mentioned above, the hazard level and the corresponding hazard level processing method can be manually set through an external security APP according to the network environment and requirements. The abnormal traffic in the abnormal traffic template library has a corresponding hazard level corresponding to it. At the same time, this corresponding relationship can also be modified through an external security APP. Once the abnormal traffic is detected, corresponding processing will be done according to the hazard level of the abnormal traffic.

步骤S32,若所述解析数据信息为所述高危异常流量,则对所述数据信息对应的所述报文丢弃或隔离。Step S32, if the analyzed data information is the high-risk abnormal traffic, discard or isolate the packet corresponding to the data information.

步骤S33,若所述解析数据信息不为所述高危异常流量,则向外部安全APP发送与所述解析数据信息对应的提示信息,以便于根据所述外部安全APP的对所述提示信息返回的决策信息处理所述解析数据信息对应的所述报文。Step S33, if the analyzed data information is not the high-risk abnormal traffic, then send prompt information corresponding to the analyzed data information to the external security APP, so as to return the prompt information according to the external security APP The decision information processes the message corresponding to the analysis data information.

上述,外部安全APP可以提供对安全相关的模块进行管理。具体功能包括:提供对异常流量模板进行管理(增/删/改),设置异常流量的危害等级;提供对异常流量的危害等级的管理,主要为异常流量的处理方式;接收异常流量告警信息,对未处理的异常流量进行处理;查看异常流量log信息。As mentioned above, the external security APP can provide management of security-related modules. Specific functions include: provide management (add/delete/modify) of abnormal traffic templates, set the hazard level of abnormal traffic; provide management of the hazard level of abnormal traffic, mainly dealing with abnormal traffic; receive abnormal traffic alarm information, Handle unhandled abnormal traffic; view abnormal traffic log information.

上述,如果在判断所述解析数据信息是否为高危异常流量时,确认所述报文的解析数据信息为高危异常流量,即该异常流量为对操作系统、设备终端的正常功能有直接危害的危害等级高的异常流量,则对该异常流量所对应的报文进行丢弃或者隔离处理。As mentioned above, if it is confirmed that the analytical data information of the message is high-risk abnormal traffic when judging whether the analytical data information is high-risk abnormal traffic, that is, the abnormal traffic is a hazard that directly endangers the normal functions of the operating system and the device terminal. For high-level abnormal traffic, discard or isolate the packets corresponding to the abnormal traffic.

上述,如果该解析数据信息不为高危异常数据流量,则判断该异常流量对操作系统、设备终端的正常功能没有直接危害,为普通的危害等级的异常流量,则将该异常流量通过外部APP生成的策略信息对该确定为异常流量的报文进行处理。分类登记可以包括高危异常流量和非高危异常流量,分门别类的处理,进一步防止系统资源的浪费。As mentioned above, if the analyzed data information is not high-risk abnormal data traffic, it is judged that the abnormal traffic has no direct harm to the normal functions of the operating system and device terminals, and it is abnormal traffic with a normal hazard level, and the abnormal traffic is generated by an external APP According to the policy information, the packets determined to be abnormal traffic are processed. Classified registration can include high-risk abnormal traffic and non-high-risk abnormal traffic, which can be processed by category to further prevent waste of system resources.

实施例3:Example 3:

参照图4,本发明第三实施例提供一种SDN构架中异常流量处理方法,基于上述图3所示的第二实施例,所述步骤S33“若所述解析数据信息不为所述高危异常流量,则向外部安全APP发送与所述解析数据信息对应的提示信息,以便于根据所述外部安全APP的对所述提示信息返回的决策信息处理所述解析数据信息对应的所述报文”之后,还包括:Referring to Fig. 4, the third embodiment of the present invention provides a method for processing abnormal traffic in an SDN framework. Based on the second embodiment shown in Fig. 3 above, the step S33 "if the analyzed data information is not the high-risk abnormal flow, then send prompt information corresponding to the analysis data information to the external security APP, so as to process the message corresponding to the analysis data information according to the decision information returned by the external security APP to the prompt information." After that, also include:

步骤S34,获取所述外部安全APP根据所述提示信息返回的决策信息;Step S34, obtaining the decision information returned by the external security APP according to the prompt information;

上述,决策信息为接收到的用户根据所述提示信息返回的处理决策的数据信息。As mentioned above, the decision information is the received data information of the processing decision returned by the user according to the prompt information.

步骤S35,将所述决策信息转换为流量策略信息;Step S35, converting the decision information into traffic policy information;

上述,将决策信息进行转换,转为为SDN构架中可直接进行解读的流量策略信息。In the above, the decision-making information is converted into traffic policy information that can be directly interpreted in the SDN framework.

步骤S36,根据所述流量策略信息改变所述异常流量的路由或禁止所述异常流量进入网络。Step S36, changing the route of the abnormal traffic or prohibiting the abnormal traffic from entering the network according to the traffic policy information.

对于检测出来的危害等级相对较低的异常流量,通过告警的方式通告给外部安全APP,用户根据告警内容对异常流量的处理进行决策,SDN控制器将用户的决策内容翻译成流量策略,进而下发到网络设备中,改变网络中的异常流量的路由,或者禁止异常流量进入网络。例如,如果发现从某个地址或者某些网段来的流量为异常流量,则需要隔离从这些地方来的流量。通过外部APP设置的处理方式,SDN控制器生成对应的访问控制规则对这些流量进行隔离。The detected abnormal traffic with a relatively low hazard level is notified to the external security APP through an alarm. The user makes a decision on how to handle the abnormal traffic according to the alarm content. The SDN controller translates the user's decision content into a traffic policy, and then downloads Send it to network devices, change the route of abnormal traffic in the network, or prohibit abnormal traffic from entering the network. For example, if the traffic from a certain address or certain network segments is found to be abnormal, you need to isolate the traffic from these places. Through the processing mode set by the external APP, the SDN controller generates corresponding access control rules to isolate these traffic.

实施例4:Example 4:

参照图5,本发明第四实施例提供一种SDN构架中异常流量处理方法,基于上述图2所示的第一实施例,所述步骤S20“根据异常流量模板库对所述解析数据信息进行流量检验,生成流量检验结果”之后,还包括:Referring to FIG. 5, the fourth embodiment of the present invention provides a method for processing abnormal traffic in an SDN framework. Based on the first embodiment shown in FIG. After traffic inspection, generate traffic inspection results", it also includes:

步骤S40,若所述流量检验结果为所述解析数据信息不是异常流量,则获取预设时间内所述报文对应的所述解析数据信息的行为统计数据,并基于所述行为统计数据根据所述异常流量模板库对所述报文的解析数据信息进行流量行为特征检测,生成行为特征检测结果;Step S40, if the result of the traffic inspection is that the analyzed data information is not abnormal traffic, then obtain the behavior statistics data of the analyzed data information corresponding to the message within a preset time, and based on the behavior statistics data according to the The abnormal traffic template library performs traffic behavior feature detection on the analysis data information of the message, and generates a behavior feature detection result;

上述,如果在流量检验中生成的流量检验结果显示,该报文的数据流所对应的解析数据信息不为异常流量,则需进行进一步的行为特征检测。获取预设时间内的报文的解析数据信息的行为统计数据,该统计数据为接收报文数据流并进行解析数据流,进而提取到解析数据信息中的特征数据进行统计,从而得到的统计数据。统计数据中可以包括但不限于预设时间内的报文的数据流的流量速度、特征值等数据,在进行行为特征检测时,将该特征数据与异常流量模板库中相关数据进行对比,从而得到行为特征检测结果。As mentioned above, if the traffic inspection result generated in the traffic inspection shows that the analysis data information corresponding to the data flow of the message is not abnormal traffic, further behavior characteristic detection is required. Obtain the behavioral statistical data of the analysis data information of the message within the preset time. The statistical data is the statistical data obtained by receiving the message data flow and analyzing the data flow, and then extracting the characteristic data in the analysis data information for statistics. . The statistical data may include, but not limited to, data such as the traffic speed and characteristic value of the data flow of the message within the preset time period. When performing behavioral characteristic detection, the characteristic data is compared with the relevant data in the abnormal traffic template library, so that Obtain the behavior feature detection results.

上述,行为特征检验可以为,在提取流量的特征值后,根据异常流量模板库中设置的内容特征信息进行比对,并对流量进行分类统计。根据一段时间内某种流量的数量统计信息,数量达到了异常流量模板库中对应类型流量设置的上限值,则认为其为异常流量。比如1秒内icmp报文超过100万个就认为发生了ddos攻击。As mentioned above, the behavior feature inspection may be, after extracting the feature value of the traffic, comparing it with the content feature information set in the abnormal traffic template library, and classifying and counting the traffic. According to the statistical information on the amount of a certain type of traffic within a period of time, if the amount reaches the upper limit set for the corresponding type of traffic in the abnormal traffic template library, it is considered as abnormal traffic. For example, if there are more than 1 million icmp messages within 1 second, it is considered that a ddos attack has occurred.

步骤S50,若所述行为特征检测结果为所述解析数据信息是异常流量,则根据所述异常流量模板库对所述异常流量对应的报文进行处理。Step S50, if the result of the behavior feature detection is that the analyzed data information is abnormal traffic, process the message corresponding to the abnormal traffic according to the abnormal traffic template library.

上述,如果根据数据流的行为特征统计数据的行为特征进行检测,结果为该报文的数据流为异常流量,则返回步骤“根据所述异常流量模板库对所述异常流量对应的报文进行处理”,进而对该数据流进行进一步的是否为高危异常流量的判断,再根据判断结果进行相应的处理。As mentioned above, if the behavioral characteristics of the statistical data are detected according to the behavioral characteristics of the data flow, and the result is that the data flow of the packet is abnormal traffic, then return to the step of "performing the packet corresponding to the abnormal traffic according to the abnormal traffic template library. Processing", and then further judge whether the data flow is high-risk abnormal traffic, and then perform corresponding processing according to the judgment result.

步骤S60,若所述行为特征检测结果为所述解析数据信息不是异常流量,则将所述解析数据信息标记为正常流量。Step S60, if the result of the behavior feature detection is that the analyzed data information is not abnormal traffic, then mark the analyzed data information as normal traffic.

所述解析数据信息包括报文头部信息和报文内容信息。The parsed data information includes message header information and message content information.

上述,在进行对报文的信息进行解析后,确认该解析数据信息不为异常流量,则综合判断该报文的数据流为正常流量,可进行进一步的数据交互。As mentioned above, after analyzing the message information and confirming that the analyzed data information is not abnormal traffic, then it is comprehensively judged that the data flow of the message is normal traffic, and further data interaction can be performed.

上述,报文头部信息可以包括但不限于数据包长度、协议类型(ICMP、IGMP、TCP、UDP等)、源IP、目的IP等内容;报文内容信息可以包括具体传输内容。As mentioned above, message header information may include but not limited to packet length, protocol type (ICMP, IGMP, TCP, UDP, etc.), source IP, destination IP, etc.; message content information may include specific transmission content.

此外,参考图6,本发明还提供一种SDN构架中异常流量处理装置,包括:解析模块10、检验模块20和处理模块30;In addition, with reference to FIG. 6, the present invention also provides a device for processing abnormal traffic in an SDN framework, including: an analysis module 10, a verification module 20, and a processing module 30;

所述解析模块10,用于解析报文的数据流,得到解析数据信息;The parsing module 10 is used for parsing the data flow of the message to obtain parsing data information;

所述检验模块20,用于根据异常流量模板库对所述解析数据信息进行流量检验,生成流量检验结果;所述异常流量模板库包括预设的异常流量的内容特征和行为特征;The inspection module 20 is configured to perform traffic inspection on the analysis data information according to the abnormal traffic template library, and generate a traffic inspection result; the abnormal traffic template library includes preset content characteristics and behavior characteristics of abnormal traffic;

所述处理模块30,用于若所述流量检验结果为所述解析数据信息是异常流量,则根据预所述异常流量模板库对所述异常流量对应的报文进行处理。The processing module 30 is configured to process packets corresponding to the abnormal traffic according to the abnormal traffic template library in advance if the traffic checking result is that the parsed data information is abnormal traffic.

此外,本发明还提供一种用户终端,包括存储器以及处理器,所述存储器用于存储SDN构架中异常流量处理程序,所述处理器运行所述SDN构架中异常流量处理程序以使所述用户终端执行如上述所述SDN构架中异常流量处理方法。In addition, the present invention also provides a user terminal, including a memory and a processor, the memory is used to store the abnormal traffic processing program in the SDN framework, and the processor runs the abnormal traffic processing program in the SDN framework to make the user The terminal executes the method for processing abnormal traffic in the SDN framework as described above.

此外,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有SDN构架中异常流量处理程序,所述SDN构架中异常流量处理程序被处理器执行时实现如上述所述SDN构架中异常流量处理方法。In addition, the present invention also provides a computer-readable storage medium, the computer-readable storage medium stores the abnormal traffic processing program in the SDN framework, and the abnormal traffic processing program in the SDN framework is executed by the processor to achieve the above-mentioned Describe the abnormal traffic handling method in the SDN framework.

此外,参考图7-9,本发明还提供一种SDN安全构架,为了更好地理解本发明所提供的SDN安全构架,以及基于所述SDN安全构架的所运行的SDN构架中异常流量处理程序所实现的SDN构架中异常流量处理方法,所述SDN安全构架包括如下部分:外部安全APP、SDN网络设备、SDN控制器和异常流量管理服务器;In addition, with reference to Figures 7-9, the present invention also provides an SDN security framework, in order to better understand the SDN security framework provided by the present invention, and the abnormal traffic processing program in the running SDN framework based on the SDN security framework The method for processing abnormal traffic in the implemented SDN framework, wherein the SDN security framework includes the following parts: external security APP, SDN network equipment, SDN controller and abnormal traffic management server;

其中,外部安全APP处于SDN构架的顶部,SDN网络设备处于SDN构架底部,中间的SDN控制器以及与SDN控制器相连的异常流量管理服务器为SDN构架的核心部分;Among them, the external security APP is at the top of the SDN architecture, the SDN network equipment is at the bottom of the SDN architecture, the SDN controller in the middle and the abnormal traffic management server connected to the SDN controller are the core parts of the SDN architecture;

外部安全APP的功能主要包括:对异常流量模板库进行管理,实现对异常流量模板库的新增、修改、动态加载的功能;监控异常流量的告警信息,可以根据告警信息对网络中发现的异常流量进行相应的处理;The functions of the external security APP mainly include: managing the abnormal traffic template library, realizing the function of adding, modifying, and dynamically loading the abnormal traffic template library; Traffic is processed accordingly;

SDN网络设备通过控制平面的南向接口为控制平面提供服务,或者接受控制平面的配置策略进行配置。The SDN network device provides services for the control plane through the southbound interface of the control plane, or accepts the configuration policy of the control plane for configuration.

SDN控制器中的安全功能设计的模块包括:The modules designed for the security function in the SDN controller include:

流量采集模块:采集数据平面的流量信息;Traffic collection module: collect traffic information on the data plane;

流规则生成模块:生成流量转发规则;Flow rule generation module: generate traffic forwarding rules;

流量发送模块:将SDN控制器采集的网络流量信息发送给异常流量管理服务器进行检测;Traffic sending module: Send the network traffic information collected by the SDN controller to the abnormal traffic management server for detection;

处理结果接收模块:接收异常流量管理服务器的流量处理结果,将异常流量转发到异常流量处理模块进行处理,并将异常流量记录到异常流量日志中;Processing result receiving module: receives the traffic processing result of the abnormal traffic management server, forwards the abnormal traffic to the abnormal traffic processing module for processing, and records the abnormal traffic in the abnormal traffic log;

异常流量处理模块:根据异常流量管理服务器的流量处理结果,对于危害等级高的流量直接对其进行丢弃和隔离处理;对于不是高危害等级的异常流量根据外部APP的处理方式,将用户的决策内容翻译成流量策略,进而下发到网络设备中;Abnormal traffic processing module: according to the traffic processing results of the abnormal traffic management server, directly discard and isolate the traffic with a high hazard level; for the abnormal traffic that is not a high hazard level, according to the processing method of the external APP, the user's decision-making content Translate it into a traffic policy, and then send it to the network device;

异常流量日志模块:保存检测到的异常流量历史信息;Abnormal traffic log module: save the detected abnormal traffic history information;

异常流量监控模块:将SDN控制器检测到的异常流量通过告警的形式发送给外部安全APP;Abnormal traffic monitoring module: send the abnormal traffic detected by the SDN controller to the external security APP in the form of an alarm;

异常流量模板管理模块:接收外部安全APP的配置信息,同时将接收的异常流量模板管理指令发送给异常流量管理服务器进行异常流量模板的管理。Abnormal traffic template management module: receives the configuration information of the external security APP, and at the same time sends the received abnormal traffic template management instructions to the abnormal traffic management server to manage the abnormal traffic template.

异常流量管理服务器接收SDN控制器采集的流量,对流量进行分析检测。模块主要包括:The abnormal traffic management server receives the traffic collected by the SDN controller, and analyzes and detects the traffic. The modules mainly include:

流量接收模块:接收SDN控制器采集的流量;Traffic receiving module: receiving the traffic collected by the SDN controller;

流量分类模块:根据流量的内容特征、行为特征,或者内容特征与行为特征相结合的方式对流量进行分类;Traffic classification module: Classify traffic according to the content characteristics, behavior characteristics, or a combination of content characteristics and behavior characteristics of traffic;

流量检测模块:根据流量分类,结合异常流量模板库,采用基于报文内容特性与基于报文行为相结合的方法对流量进行分析;Traffic detection module: According to the traffic classification, combined with the abnormal traffic template library, the traffic is analyzed based on the method of combining the characteristics of the message content and the behavior of the message;

流量处理结果发送模块:将流量的检测结果发送给SDN控制器;Traffic processing result sending module: send the traffic detection result to the SDN controller;

异常流量模板库管理模块:对异常流量模板库进行增加、修改、删除异常流量模板条目;Abnormal traffic template library management module: add, modify, and delete abnormal traffic template entries in the abnormal traffic template library;

异常流量模板库:保存异常流量的模板,其中的内容包括异常流量的内容特征、行为特征、危害等级、建议处理方式等。Abnormal traffic template library: save the templates of abnormal traffic, the content of which includes the content characteristics, behavior characteristics, hazard level, and suggested handling methods of abnormal traffic.

本发明所提供的SDN安全构架结合异常流量管理服务器增加异常流量检测处理功能,提供对异常流量检测处理的方法;同时结合安全应用APP动态对异常流量模板进行加载,通过对异常流量的处理,有效地增强SDN构架的安全性。The SDN security framework provided by the present invention combines the abnormal traffic management server to increase the abnormal traffic detection and processing function, and provides a method for abnormal traffic detection and processing; at the same time, combined with the security application APP, the abnormal traffic template is dynamically loaded, and through the processing of abnormal traffic, effective To enhance the security of SDN architecture.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that, as used herein, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or system comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or system. Without further limitations, an element defined by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article or system comprising that element.

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present invention can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM) , magnetic disk, optical disk), including several instructions to enable a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present invention.

以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process conversion made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields , are all included in the scope of patent protection of the present invention in the same way.

Claims (10)

1.一种SDN构架中异常流量处理方法,其特征在于,包括:1. an abnormal flow processing method in an SDN framework, is characterized in that, comprises: 解析报文的数据流,得到解析数据信息;Analyze the data flow of the message to obtain the analysis data information; 根据异常流量模板库对所述解析数据信息进行流量检验,生成流量检验结果;所述异常流量模板库包括预设的异常流量的内容特征和行为特征;Performing traffic inspection on the analysis data information according to the abnormal traffic template library to generate a traffic inspection result; the abnormal traffic template library includes preset content characteristics and behavior characteristics of abnormal traffic; 若所述流量检验结果为所述解析数据信息是异常流量,则根据预所述异常流量模板库对所述异常流量对应的报文进行处理。If the result of the traffic inspection is that the parsed data information is abnormal traffic, the packet corresponding to the abnormal traffic is processed according to the preset abnormal traffic template library. 2.如权利要求1所述SDN构架中异常流量处理方法,其特征在于,所述“若所述流量检验结果为所述解析数据信息是异常流量,则根据预所述异常流量模板库对所述异常流量对应的报文进行处理”包括:2. as claimed in claim 1, the abnormal flow processing method in the SDN framework is characterized in that, said "if the flow inspection result is that the analysis data information is an abnormal flow, then according to the pre-described abnormal flow template library for the abnormal flow process the packets corresponding to the above abnormal traffic" including: 若所述流量检验结果为所述解析数据信息是异常流量,则根据所述异常流量模板库判断所述解析数据信息是否为高危异常流量;If the result of the traffic inspection is that the analytical data information is abnormal traffic, then judge whether the analytical data information is high-risk abnormal traffic according to the abnormal traffic template library; 若所述解析数据信息为所述高危异常流量,则对所述数据信息对应的所述报文丢弃或隔离。If the analyzed data information is the high-risk abnormal traffic, discard or isolate the packet corresponding to the data information. 3.如权利要求2所述SDN构架中异常流量处理方法,其特征在于,所述“根据所述异常流量模板库判断所述解析数据信息是否为高危异常流量”之后,还包括:3. The abnormal traffic processing method in the SDN framework as claimed in claim 2, characterized in that, after the "judging whether the analysis data information is a high-risk abnormal traffic according to the abnormal traffic template library", it also includes: 若所述解析数据信息不为所述高危异常流量,则向外部安全APP发送与所述解析数据信息对应的提示信息,以便于根据所述外部安全APP的对所述提示信息返回的决策信息处理所述解析数据信息对应的所述报文。If the analysis data information is not the high-risk abnormal traffic, send prompt information corresponding to the analysis data information to the external security APP, so as to process according to the decision information returned by the external security APP to the prompt information The packet corresponding to the parsed data information. 4.如权利要求3所述SDN构架中异常流量处理方法,其特征在于,所述“若所述解析数据信息不为所述高危异常流量,则向外部安全APP发送与所述解析数据信息对应的提示信息,以便于根据所述外部安全APP的对所述提示信息返回的决策信息处理所述解析数据信息对应的所述报文”之后,还包括:4. The method for processing abnormal traffic in the SDN framework according to claim 3, characterized in that, the "if the analytical data information is not the high-risk abnormal traffic, then send an external security APP corresponding to the analytical data information prompt information, so as to process the message corresponding to the analysis data information according to the decision information returned by the external security APP to the prompt information", it also includes: 获取所述外部安全APP根据所述提示信息返回的所述决策信息;Obtaining the decision information returned by the external security APP according to the prompt information; 将所述决策信息转换为流量策略信息;converting the decision information into traffic policy information; 根据所述流量策略信息改变所述异常流量的路由或禁止所述异常流量进入网络。Changing the route of the abnormal traffic or prohibiting the abnormal traffic from entering the network according to the traffic policy information. 5.如权利要求1所述SDN构架中异常流量处理方法,其特征在于,所述“根据异常流量模板库对所述解析数据信息进行流量检验,生成流量检验结果”之后,还包括:5. the abnormal flow processing method in the SDN framework as claimed in claim 1, is characterized in that, after described " according to abnormal flow template storehouse, described analysis data information is carried out flow inspection, generates flow inspection result ", also comprises: 若所述流量检验结果为所述解析数据信息不是异常流量,则获取预设时间内所述报文对应的所述解析数据信息的行为统计数据,并基于所述行为统计数据根据所述异常流量模板库对所述报文的解析数据信息进行流量行为特征检测,生成行为特征检测结果;If the result of the traffic inspection is that the parsed data information is not abnormal traffic, then obtain the behavior statistics data of the parsed data information corresponding to the message within a preset time, and based on the behavior statistics data according to the abnormal traffic The template library performs traffic behavior feature detection on the parsed data information of the message, and generates a behavior feature detection result; 若所述行为特征检测结果为所述解析数据信息是异常流量,则根据所述异常流量模板库对所述异常流量对应的报文进行处理。If the result of the behavior feature detection is that the parsed data information is abnormal traffic, the packet corresponding to the abnormal traffic is processed according to the abnormal traffic template library. 6.如权利要求5所述SDN构架中异常流量处理方法,其特征在于,所述“若所述流量检验结果为所述解析数据信息不是异常流量,则对所述解析数据信息进行流量行为特征检测,并生成行为特征检测结果”之后,还包括:6. The abnormal traffic processing method in the SDN framework as claimed in claim 5, characterized in that, the "if the traffic inspection result is that the analytical data information is not abnormal traffic, then perform traffic behavior characteristics on the analytical data information Detect, and generate behavioral feature detection results", it also includes: 若所述行为特征检测结果为所述解析数据信息不是异常流量,则将所述解析数据信息记为正常流量。If the result of the behavior feature detection is that the analyzed data information is not abnormal traffic, record the analyzed data information as normal traffic. 7.如权利要求1-6任一项所述SDN构架中异常流量处理方法,其特征在于,所述解析数据信息包括报文头部信息和报文内容信息。7. The method for processing abnormal traffic in the SDN framework according to any one of claims 1-6, wherein the analysis data information includes message header information and message content information. 8.一种SDN构架中异常流量处理装置,其特征在于,包括:解析模块、检验模块和处理模块;8. An abnormal flow processing device in an SDN framework, comprising: an analysis module, a check module and a processing module; 所述解析模块,用于解析报文的数据流,得到解析数据信息;The parsing module is used for parsing the data stream of the message to obtain parsing data information; 所述检验模块,用于根据异常流量模板库对所述解析数据信息进行流量检验,生成流量检验结果;所述异常流量模板库包括预设的异常流量的内容特征和行为特征;The inspection module is configured to perform traffic inspection on the analysis data information according to the abnormal traffic template library, and generate a traffic inspection result; the abnormal traffic template library includes preset content characteristics and behavior characteristics of abnormal traffic; 所述处理模块,用于若所述流量检验结果为所述解析数据信息是异常流量,则根据预所述异常流量模板库对所述异常流量对应的报文进行处理。The processing module is configured to process the message corresponding to the abnormal traffic according to the abnormal traffic template library in advance if the traffic inspection result is that the parsed data information is abnormal traffic. 9.一种用户终端,其特征在于,包括存储器以及处理器,所述存储器用于存储SDN构架中异常流量处理程序,所述处理器运行所述SDN构架中异常流量处理程序以使所述用户终端执行如权利要求1-7中任一项所述SDN构架中异常流量处理方法。9. A user terminal, characterized in that it includes a memory and a processor, the memory is used to store the abnormal traffic processing program in the SDN framework, and the processor runs the abnormal traffic processing program in the SDN framework so that the user The terminal executes the method for processing abnormal traffic in the SDN framework according to any one of claims 1-7. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有SDN构架中异常流量处理程序,所述SDN构架中异常流量处理程序被处理器执行时实现如权利要求1-7中任一项所述SDN构架中异常流量处理方法。10. A computer-readable storage medium, characterized in that, the computer-readable storage medium is stored with an abnormal traffic processing program in the SDN framework, and when the abnormal traffic processing program in the SDN framework is executed by a processor, it is realized as claimed in The method for processing abnormal traffic in the SDN framework described in any one of 1-7.
CN201810122369.8A 2018-02-07 2018-02-07 Abnormal traffic processing method and device in SDN framework and user terminal Expired - Fee Related CN108199906B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810122369.8A CN108199906B (en) 2018-02-07 2018-02-07 Abnormal traffic processing method and device in SDN framework and user terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810122369.8A CN108199906B (en) 2018-02-07 2018-02-07 Abnormal traffic processing method and device in SDN framework and user terminal

Publications (2)

Publication Number Publication Date
CN108199906A true CN108199906A (en) 2018-06-22
CN108199906B CN108199906B (en) 2021-03-30

Family

ID=62593263

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810122369.8A Expired - Fee Related CN108199906B (en) 2018-02-07 2018-02-07 Abnormal traffic processing method and device in SDN framework and user terminal

Country Status (1)

Country Link
CN (1) CN108199906B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108900518A (en) * 2018-07-09 2018-11-27 南京邮电大学 Believable software definition cloud network data distribution systems
CN111698168A (en) * 2020-05-20 2020-09-22 北京吉安金芯信息技术有限公司 Message processing method, device, storage medium and processor
CN113068129A (en) * 2021-03-26 2021-07-02 中国工商银行股份有限公司 Method and device for low-delay switching of heterogeneous network based on trajectory prediction

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683333A (en) * 2015-02-10 2015-06-03 国都兴业信息审计系统技术(北京)有限公司 Method for implementing abnormal traffic interception based on SDN
US20150271043A1 (en) * 2014-03-18 2015-09-24 Ciena Corporation Bandwidth analytics in a software defined network (sdn) controlled multi-layer network for dynamic estimation of power consumption
CN106559407A (en) * 2015-11-19 2017-04-05 国网智能电网研究院 A kind of Network traffic anomaly monitor system based on SDN
CN107623663A (en) * 2016-07-15 2018-01-23 阿里巴巴集团控股有限公司 Method and device for processing network traffic

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150271043A1 (en) * 2014-03-18 2015-09-24 Ciena Corporation Bandwidth analytics in a software defined network (sdn) controlled multi-layer network for dynamic estimation of power consumption
CN104683333A (en) * 2015-02-10 2015-06-03 国都兴业信息审计系统技术(北京)有限公司 Method for implementing abnormal traffic interception based on SDN
CN106559407A (en) * 2015-11-19 2017-04-05 国网智能电网研究院 A kind of Network traffic anomaly monitor system based on SDN
CN107623663A (en) * 2016-07-15 2018-01-23 阿里巴巴集团控股有限公司 Method and device for processing network traffic

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108900518A (en) * 2018-07-09 2018-11-27 南京邮电大学 Believable software definition cloud network data distribution systems
CN108900518B (en) * 2018-07-09 2020-12-29 南京邮电大学 Trusted software-defined cloud network data distribution system
CN111698168A (en) * 2020-05-20 2020-09-22 北京吉安金芯信息技术有限公司 Message processing method, device, storage medium and processor
CN113068129A (en) * 2021-03-26 2021-07-02 中国工商银行股份有限公司 Method and device for low-delay switching of heterogeneous network based on trajectory prediction

Also Published As

Publication number Publication date
CN108199906B (en) 2021-03-30

Similar Documents

Publication Publication Date Title
Wang et al. A smart home gateway platform for data collection and awareness
US10355949B2 (en) Behavioral network intelligence system and method thereof
EP2777226B1 (en) A streaming method and system for processing network metadata
JP4774357B2 (en) Statistical information collection system and statistical information collection device
CN107026821A (en) The processing method and processing device of message
US9319910B2 (en) Communication system
CN113518042B (en) Data processing method, device, equipment and storage medium
EP4364354B1 (en) Generating network system maps based on network traffic
CN106470206B (en) Abnormity prediction method and system suitable for heterogeneous network architecture
CN102387045A (en) Embedded point to point (P2P) flow monitoring system and method thereof
CN106101130A (en) A kind of network malicious data detection method, Apparatus and system
CN120075872B (en) A 5G-based intelligent portable WiFi traffic monitoring method and system
US20150071085A1 (en) Network gateway for real-time inspection of data frames and identification of abnormal network behavior
JP2020022133A (en) Infection expansion attack detection device, attack source identification method and program
CN107612890A (en) A kind of network monitoring method and system
CN116232777A (en) DDoS attack detection and defense method and related equipment based on statistical measurement in SDN-IIOT
CN108199906A (en) Abnormal flow processing method, device and user terminal in a kind of SDN frameworks
CN112738808B (en) DDoS attack detection method in wireless network, cloud server and mobile terminal
Qian et al. Characterization of 3g data-plane traffic and application towards centralized control and management for software defined networking
CN111585830A (en) A user behavior analysis method, device, equipment and storage medium
KR102314557B1 (en) System for managing security control and method thereof
CN111565196B (en) KNXnet/IP protocol intrusion detection method, device, equipment and medium
KR100969455B1 (en) Home gateway device and its operation method for network usage trend management, and network usage trend management method using the same
CN105099781A (en) IT infrastructure patrolling method and system
CN116684131A (en) Flow security monitoring method, device, equipment and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210330