Flow data processing method, device, equipment and computer storage medium

By using a method of hardware gateways and software gateways working together in a cloud computing environment, combined with an intelligent network analysis platform, to dynamically identify and process network traffic, the problems of small virtual gateway hardware storage space and weak server forwarding capabilities are solved, and efficient Network traffic processing and acceleration.

CN112751781BActive Publication Date: 2024-09-13ALIBABA GROUP HOLDING LTD
View PDF 21 Cites 0 Cited by

Patent Information

Application Number
CN201911051320.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-10-31
Publication Date
2024-09-13
Estimated Expiration
2039-10-31

AI Technical Summary

Technical Problem

In the existing technology, software solutions based on x86 servers cannot meet the network capacity and latency requirements of user traffic from on-cloud to off-cloud in cloud computing environments. Especially in the context of the development of the Internet of Things, 5G and video services, the hardware of virtual gateways Small storage space and weak server forwarding capabilities lead to bottlenecks.

Method used

Using a combination of the first type gateway and the second type gateway, through the collaborative work of hardware gateway and software gateway, using programmable hardware and intelligent network analysis platform, it can realize the classification, identification and processing of network traffic data, and dynamically adjust the traffic configuration information. Ensure that the elephant flow data is processed by the hardware gateway and the mouse flow data is processed by the software gateway to improve network acceleration capabilities.

Benefits of technology

It effectively solves the bottleneck of hardware storage space and software performance, completes the accelerated processing of network traffic, ensures the stability and reliability of traffic data in the cloud computing environment, and meets the needs of high capacity and low latency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112751781B
    Figure CN112751781B
Patent Text Reader

Abstract

The embodiment of the present invention provides a method, device, equipment and computer storage medium for processing flow data, which are applied to a first type of gateway, and the method includes: obtaining network flow data to be processed; determining flow classification information of the network flow data; when the network flow data is the first flow data, processing the network flow data; or, when the network flow data is the second flow data, sending the network flow data to a second type of gateway, so that the second type of gateway processes the network flow data. The method can process the network flow data based on the first type of gateway, and when the first type of gateway cannot process the network flow data, the second type of gateway is used to process the network flow data, thereby effectively ensuring the stability and reliability of processing the network flow data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a method, device, equipment and computer storage medium for processing flow data. Background Art

[0002] With the rapid development of network technology, in public cloud and hybrid cloud environments, when users' virtual machines on the cloud communicate with the Internet or the IDC room under the cloud, they need to go through virtual gateway devices to connect the virtual network on the cloud and the traditional network under the cloud. In the past, cloud computing vendors generally chose software solutions based on x86 servers to implement virtual gateway devices. However, with the development of IoT, 5G, video and other services, users' traffic between the cloud and the cloud is increasing, and they are more and more sensitive to forwarding delays. Using servers as virtual gateways has gradually failed to meet the requirements of network capacity and delay. Summary of the invention

[0003] The embodiments of the present invention provide a method, device, equipment and computer storage medium for processing flow data, which effectively ensure the stability and reliability of flow data processing, and can also meet the requirements of network capacity and forwarding delay, further improving the stability and reliability of flow data processing.

[0004] In a first aspect, an embodiment of the present invention provides a method for processing traffic data, which is applied to a first type of gateway, and the method includes:

[0005] Get the network traffic data to be processed;

[0006] Determining traffic classification information of the network traffic data;

[0007] When the network flow data is first flow data, the network flow data is processed; or,

[0008] When the network traffic data is second traffic data, the network traffic data is sent to a second type gateway so that the second type gateway processes the network traffic data.

[0009] In a second aspect, an embodiment of the present invention provides a flow data processing device, which is applied to a first type of gateway, and the device includes:

[0010] A first acquisition module, used to acquire network traffic data to be processed;

[0011] A first determining module, used to determine the flow classification information of the network flow data;

[0012] The first processing module is used to process the network traffic data when the network traffic data is the first traffic data; or, when the network traffic data is the second traffic data, send the network traffic data to the second type gateway so that the second type gateway processes the network traffic data.

[0013] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, and a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement a method for processing traffic data in the above-mentioned first aspect.

[0014] In a fourth aspect, an embodiment of the present invention provides a computer storage medium for storing a computer program, wherein the computer program enables a computer to implement a method for processing traffic data in the first aspect when executed.

[0015] In a fifth aspect, an embodiment of the present invention provides a method for processing traffic data, which is applied to a second type of gateway, and the method includes:

[0016] Receiving network traffic data sent by the first type of gateway;

[0017] Acquire a second configuration information table for analyzing and processing the network flow data, wherein the second configuration information table includes standard configuration information corresponding to the first flow data and standard configuration information corresponding to the second flow data;

[0018] The network traffic data is processed using the second configuration information table, and the processed network traffic data is forwarded to the physical switch.

[0019] In a sixth aspect, an embodiment of the present invention provides a flow data processing device, which is applied to a second type of gateway, and the device includes:

[0020] A first receiving module, used to receive network traffic data sent by a first type of gateway;

[0021] A second acquisition module, used to acquire a second configuration information table for analyzing and processing the network flow data, wherein the second configuration information table includes standard configuration information corresponding to the first flow data and standard configuration information corresponding to the second flow data;

[0022] The second processing module is used to process the network traffic data using the second configuration information table, and forward the processed network traffic data to the physical switch.

[0023] In the seventh aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement a method for processing traffic data in the above-mentioned fifth aspect.

[0024] In an eighth aspect, an embodiment of the present invention provides a computer storage medium for storing a computer program, wherein the computer program enables a computer to implement a method for processing traffic data in the fifth aspect when executed.

[0025] In a ninth aspect, an embodiment of the present invention provides a method for processing flow data, including:

[0026] Receiving a first traffic analysis result sent by a first type of gateway and a second traffic analysis result sent by a second type of gateway;

[0027] Determine the elephant flow analysis results corresponding to the hardware gateway and the software gateway according to the first flow analysis result and the second flow analysis result;

[0028] The elephant flow analysis result is sent to the network management platform.

[0029] In a tenth aspect, an embodiment of the present invention provides a flow data processing device, including:

[0030] A second receiving module, configured to receive a first traffic analysis result sent by a first type of gateway and a second traffic analysis result sent by a second type of gateway;

[0031] A second determination module, used to determine the elephant flow analysis results corresponding to the hardware gateway and the software gateway according to the first flow analysis result and the second flow analysis result;

[0032] The first sending module is used to send the elephant flow analysis result to the network management platform.

[0033] In the eleventh aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement a method for processing traffic data in the above-mentioned ninth aspect.

[0034] In a twelfth aspect, an embodiment of the present invention provides a computer storage medium for storing a computer program, wherein the computer program enables a computer to implement a method for processing traffic data in the ninth aspect when executed.

[0035] In a thirteenth aspect, an embodiment of the present invention provides a method for processing flow data, including:

[0036] Receive the Elephant Flow analysis results sent by the network analysis platform;

[0037] Determine elephant flow configuration information according to the elephant flow analysis result;

[0038] The elephant flow analysis result and the elephant flow configuration information are sent to the hardware gateway.

[0039] In a fourteenth aspect, an embodiment of the present invention provides a flow data processing device, including:

[0040] The third receiving module is used to receive the elephant flow analysis results sent by the network analysis platform;

[0041] A third determination module is used to determine the elephant flow configuration information according to the elephant flow analysis result;

[0042] The second sending module is used to send the elephant flow analysis result and the elephant flow configuration information to the hardware gateway.

[0043] In the fifteenth aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement a method for processing traffic data in the above-mentioned thirteenth aspect.

[0044] In a sixteenth aspect, an embodiment of the present invention provides a computer storage medium for storing a computer program, wherein the computer program enables a computer to implement a method for processing traffic data in the thirteenth aspect when executed.

[0045] In a seventeenth aspect, an embodiment of the present invention provides a method for processing flow data, including:

[0046] Get network traffic data;

[0047] Classify and identify the network traffic data to determine first traffic data and second traffic data corresponding to the network traffic data;

[0048] Generate a first configuration information table corresponding to the first flow data, and a second configuration information table corresponding to the first flow data and the second flow data, wherein the first configuration information table includes standard configuration information corresponding to the first flow data, and the second configuration information table includes standard configuration information corresponding to the first flow data and standard configuration information corresponding to the second flow data;

[0049] The first configuration information table is sent to a first type gateway, and the second configuration information table is sent to a second type gateway.

[0050] In an eighteenth aspect, an embodiment of the present invention provides a flow data processing device, including:

[0051] The third acquisition module is used to acquire network traffic data;

[0052] An identification module, used to classify and identify the network flow data, and determine first flow data and second flow data corresponding to the network flow data;

[0053] a generating module, configured to generate a first configuration information table corresponding to the first flow data, and a second configuration information table corresponding to the first flow data and the second flow data, wherein the first configuration information table includes standard configuration information corresponding to the first flow data, and the second configuration information table includes standard configuration information corresponding to the first flow data and standard configuration information corresponding to the second flow data;

[0054] The third sending module is used to send the first configuration information table to a first type gateway, and send the second configuration information table to a second type gateway.

[0055] In the nineteenth aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement a method for processing traffic data in the above-mentioned seventeenth aspect.

[0056] In the twentieth aspect, an embodiment of the present invention provides a computer storage medium for storing a computer program, wherein the computer program enables a computer to implement a method for processing traffic data in the seventeenth aspect when executed.

[0057] The above technical solution provided in this embodiment realizes the processing operation of network traffic data through the first type gateway and the second type gateway, effectively ensures the accuracy and reliability of the processing of network traffic data, solves the bottlenecks of hardware storage space and software performance, and completes network traffic acceleration; in addition, a network analysis platform is introduced to gradually iterate and adaptively identify elephant flows through real-time analysis and offline analysis, thereby completing the acceleration operation of user network traffic in a cloud computing environment, ensuring stable and effective processing of network traffic data, and effectively solving the bottleneck problems of small storage capacity of programmable chips and weak forwarding capability of servers in the prior art, effectively ensuring the practicability of the method, and being conducive to market promotion and application. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0059] Figure 1a Schematic diagram 1 of a flow data processing system provided by an embodiment of the present invention;

[0060] Figure 1b A schematic diagram of a flow data processing system provided by an embodiment of the present invention Figure 2 ;

[0061] Figure 2 A schematic diagram of data communication between a hardware gateway and a software gateway provided in an embodiment of the present invention;

[0062] Figure 3 A schematic diagram of a network analysis platform model provided by an embodiment of the present invention;

[0063] Figure 4 A flow chart of a method for processing flow data provided by an embodiment of the present invention;

[0064] Figure 5 A flow chart for determining traffic classification information of the network traffic data provided by an embodiment of the present invention;

[0065] Figure 6 A flowchart of another method for processing flow data provided by an embodiment of the present invention;

[0066] Figure 7 A schematic diagram of another method for processing flow data provided by an embodiment of the present invention;

[0067] Figure 8 A flow chart of another method for processing flow data provided by an embodiment of the present invention;

[0068] Fig. 9 A flowchart of another method for processing flow data provided by an embodiment of the present invention;

[0069] Fig.10 A structural schematic diagram 1 of a flow data processing device provided by an embodiment of the present invention;

[0070] Fig.11 For Fig.10 A schematic diagram of the structure of an electronic device corresponding to the flow data processing device provided in the illustrated embodiment;

[0071] Fig.12A schematic diagram of a flow data processing device provided by an embodiment of the present invention Figure 2 ;

[0072] Fig.13 For Fig.12 A schematic diagram of the structure of an electronic device corresponding to the flow data processing device provided in the illustrated embodiment;

[0073] Fig.14 A schematic diagram of a flow data processing device provided by an embodiment of the present invention Figure 3 ;

[0074] Fig.15 For Fig.14 A schematic diagram of the structure of an electronic device corresponding to the flow data processing device provided in the illustrated embodiment;

[0075] Fig.16 A schematic diagram of a flow data processing device provided by an embodiment of the present invention Figure 4 ;

[0076] Fig.17 For Fig.16 A schematic diagram of the structure of an electronic device corresponding to the flow data processing device provided in the illustrated embodiment;

[0077] Fig.18 A schematic diagram of a flow data processing device provided by an embodiment of the present invention Figure 5 ;

[0078] Fig.19 For Fig.18 A schematic diagram of the structure of an electronic device corresponding to the flow data processing device provided in the illustrated embodiment. DETAILED DESCRIPTION

[0079] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0080] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two, but does not exclude the inclusion of at least one.

[0081] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0082] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.

[0083] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a product or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such a product or system. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the product or system including the elements.

[0084] In addition, the step sequence in the following method embodiments is only an example and not a strict limitation.

[0085] Terminology explanation:

[0086] Elephant flow is the process of transmitting large amounts of data continuously through network links.

[0087] Rat traffic is the process of transmitting small amounts of data over a network link in a short period of time.

[0088] The critical point for distinguishing between elephant flows and mouse flows may vary according to different application scenarios. For example, the flows of 10% of users in the network (a flow usually refers to a group of five-tuples) account for 90% of the traffic, which is called "elephant flows". Conversely, the flows of 90% of users in the network only account for 10% of the total traffic, which is called "mouse flows".

[0089] In order to facilitate the understanding of the technical solution of the present application, the following is a brief description of the prior art: At present, most public cloud service providers choose to use software based on x86 servers to provide cloud computing virtual gateway services. With the rapid growth of the scale of public clouds in recent years, the traffic carried by virtual gateways has gradually increased from a few GB / s and hundreds of GB / s to the TB / s level. In general, an x86 server that provides network services can only provide tens of G, at most hundreds of G network forwarding capabilities due to the specifications of the network card and the performance of the server processor, which can no longer meet the growing network traffic. At the same time, the forwarding delay of the software gateway based on the x86 server is usually tens of microseconds, which cannot meet the scenarios with high network delay requirements such as machine learning. Cloud computing service providers urgently need to accelerate network traffic to meet new demands.

[0090] In order to accelerate the processing of network traffic, most manufacturers currently can only choose to use the horizontal expansion (scale-out) method to expand the virtual network forwarding performance, but this solution cannot be expanded horizontally without limit due to the following two disadvantages. First, the horizontal expansion cost is high; a server used as a virtual gateway has high requirements for network card capacity, memory capacity, and CPU performance due to the large scale of network traffic and user information it carries, so it is expensive. Second, the horizontal expansion will introduce problems such as distributed speed limit and dynamic information synchronization; specifically, after horizontal expansion, the traffic of the same user will be balanced to different servers, but in order to limit the speed and bill the user traffic, it is necessary to limit the speed of these traffic distributed on different servers as a whole, which brings great difficulty to speed limit. In addition, the user's network may have some dynamic configuration information. For example, when a user accesses the Internet through Source Network Address Translation (SNAT), a dynamic mapping relationship will be generated. These mapping relationships need to be synchronized on distributed servers to ensure the stability of user services. The overhead of synchronizing this information is very large, and it will increase linearly with the increase in the number of servers expanded horizontally. Recently, academia and industry have begun to pay attention to the feasibility of using programmable switches to provide virtual network services and accelerate network traffic.

[0091] Currently, there are two main types of programmable hardware: FPGA-based solutions and ASIC-based solutions. Once a traditional ASIC chip leaves the factory, its function cannot be changed. This cannot meet the needs of cloud computing service providers who pursue rapid iterations, so most cloud service providers choose to use x86-based software to provide services. Recently, equipment manufacturers have launched programmable hardware ASICs, such as Barefoot Tofino, Intel FlexPipe, Cavium XPliant, Netronome Agilio, etc. These chips allow cloud computing service providers to modify the logic and functions of the chip at any time to meet the rapid development of the business, while also having forwarding performance several times that of x86 servers.

[0092] When using FPGA to provide network services, FPGA also has the advantages of programmability and high performance; however, the cost and power consumption of FPGA are higher than those of ASIC-based solutions. In addition, although programmable hardware has the advantages of large capacity and low latency, it is not currently used in virtual gateways. The reason is that the storage space of the hardware is small, usually only tens of megabytes, while the virtual gateway device usually needs to save the configuration information of tens of thousands of users, which requires thousands of megabytes of space.

[0093] Specifically, when using FPGA as a smart network card, it can offload virtual switch service traffic from the CPU to the FPGA on the server, providing low-latency, high-throughput virtual machine network services. However, the cost of FPGA devices is higher than that of ASIC-based programmable chips, and the performance is also worse than that of ASIC programmable chips. In the implementation of using FPGA devices to offload virtual switch traffic, the virtual switch is a data forwarding module deployed on the host machine where the virtual machine is located. After using the FPGA smart card, the throughput of the virtual switch reaches 32Gbps, and the latency is reduced to 15us.

[0094] Compared with this solution, the traditional hardware equipment used does not have programmable capabilities and cannot meet the needs of fast iteration functions of cloud network virtual gateways. This solution is based on programmable chips and intelligent network analysis platforms to provide virtual gateway services. Compared with virtual switches, virtual gateways have the following two difficulties: 1) The network traffic is much larger than that of virtual switches. Virtual gateways are the boundary nodes of virtual networks on the cloud. All user traffic entering and leaving the cloud environment must pass through virtual gateways, while virtual switches only need to carry the network traffic of virtual machines on this host. The traffic of virtual gateways is usually hundreds of times that of virtual switches, or even higher. 2) The configuration information required by virtual gateways is much larger than that of virtual switches. Virtual gateways need to have the configuration of all users on the cloud, while virtual switches only need the configuration information of users on this host. For hardware devices, due to process limitations, the storage space is often very limited, making it difficult to save the configuration required for the cloud environment. For gateway devices, as mentioned above, the traffic scale is much larger than the virtual switch on the host side, and the hardware storage space cannot fully store the matching information of all active flows.

[0095] For details, please refer to the attached Figure 1a-1b As shown, in order to solve the problem that the existing gateways in the prior art cannot meet the network capacity and delay requirements, this embodiment provides a flow data processing system, which adopts a combination of a first type of gateway and a second type of gateway, as well as an intelligent network analysis platform. In specific applications, the first type of gateway includes a hardware gateway, which can be implemented by programmable hardware; the second type of gateway includes a software gateway; the flow data is analyzed and processed by the above-mentioned flow data processing system, which greatly improves the forwarding capacity of the virtual gateway. At the same time, for users who are sensitive to forwarding delays, network acceleration services can also be provided to meet user needs. For details, refer to the attached Figure 1a-1b As shown, the traffic data processing system consists of four parts: a hardware gateway based on programmable hardware, a software gateway on an x86 server, an intelligent network analysis platform, and a virtual network management platform.

[0096] (1) Hardware gateway, which is the entry device for network traffic. The user's network traffic will pass through the hardware gateway through the preset port on the hardware gateway. In specific applications, with the gradual rise of the P4 programming language and the gradual improvement of the ecosystem, most programmable hardware supports the P4 language, which is protocol-independent, business-independent, and reconfigurable. Developers can quickly develop and modify business logic at any time without being aware of the underlying chip model. The rapid development of the P4 language has facilitated cloud computing service providers to switch from software devices to hardware devices, shortened the development cycle, and reduced the risk of vendor binding. Therefore, the hardware gateway can be a forwarding model implemented based on the P4 programming language.

[0097] like Figure 1a-1bAs shown, the hardware gateway may include: a data cache unit (DDR or SSD), a central processing unit CPU, a traffic classification unit, etc., wherein the CPU includes a control subunit and a forwarding subunit, the control subunit is responsible for issuing traffic configuration information (traffic classification table), and the forwarding subunit is responsible for processing network traffic data. Specifically, after the hardware gateway obtains the user's network traffic data, it can analyze and process the network traffic data, and the analysis and processing process may include input, analysis, in-pipeline, cache, out-pipeline, and output. Among them, the input is to input the network traffic data received through the preset port into the preset analysis and processing process; after the analysis and processing process obtains the network traffic data, the network traffic data can be parsed and processed. This embodiment does not limit the specific implementation process of the message parsing and processing. Those skilled in the art can set it according to specific application requirements and design requirements. For example, the IP\MAC\port and other information in the message header can be parsed for the network traffic data to determine the subsequent processing strategy, which may include at least one of the following: the target machine to be forwarded, packet loss processing or continued forwarding, etc.

[0098] After obtaining the parsed network traffic data, the network traffic data can be processed using pipeline technology, where pipeline technology refers to a quasi-parallel processing implementation technology in which multiple instructions are overlapped and operated during program execution. Figure 2 As shown, the pipeline technology may include: an in-pipeline and an out-pipeline. Specifically, in order to perform complex data processing operations, the hardware gateway may support the characteristics of receiving user network traffic data from port A and sending traffic data from port B. In addition, the hardware gateway reserves a large cache (for example: solid state drive (SSD) and double rate synchronous dynamic random access memory DDR). The cache is actually an electronic component, which can be understood as a queue that can store messages, first-in-first-out, that is, the hardware gateway can cache the network traffic data of the in-pipeline. By processing the network traffic data through the pipeline technology, the parsed message data (corresponding to the network traffic data) can be processed correctly according to the preset configuration information, for example: modifying the destination IP and mac information of the message, encapsulating and decapsulating the message, etc.

[0099] When processing network traffic data using pipeline technology, a traffic classification table for classifying and identifying network traffic data can be obtained first. Specifically, the traffic classification table can be obtained through the control subunit in the CPU, and the traffic classification table includes traffic configuration information that requires hardware gateways to perform accelerated processing. The traffic classification table can be used to classify and identify network traffic data, that is, to determine whether the network traffic data is traffic data that requires hardware gateways to perform accelerated processing, or it can also be understood as: the traffic classification table can be used to identify whether the network traffic data is an elephant flow or a mouse flow. If there is traffic configuration information corresponding to the network traffic data in the traffic classification table, it is determined that the network traffic data requires hardware gateways to perform accelerated processing, that is, the network traffic data can be determined to be an elephant flow. At this time, the network traffic data can be marked with label information that requires hardware accelerated processing; otherwise, the network traffic data can be marked with label information that is transparently transmitted to the software gateway, that is, the network traffic data can be determined to be a mouse flow.

[0100] After classifying and processing the network traffic data, the processing method of the pipeline can be determined according to the classification label, that is, the network traffic data that needs to be accelerated by the hardware gateway is looked up, the message processing is modified, and the message processing is forwarded. The message is finally sent from the uplink port of the physical switch; for the network traffic data that needs to be transparently transmitted, the hardware gateway will perform tunnel encapsulation operations on the network traffic data, fill in the tunnel destination address with the address of the software gateway, and then send the network traffic data to the software gateway, so that the software gateway can analyze and process the forwarded network traffic data.

[0101] In addition, the hardware gateway can support the port mirroring function. Specifically, the hardware gateway can mirror the received network traffic data to the intelligent network analysis platform through the preset port, so that the network analysis platform can perform in-depth analysis based on the network traffic data, thereby obtaining the characteristic information of the network traffic data; thus, the unprocessed traffic can be "predicted" in advance through machine learning and other means, so that the configuration information corresponding to the predicted elephant flow data can be sent to the hardware gateway in advance, so that the hardware gateway can achieve faster network acceleration based on the configuration information sent.

[0102] In addition, after the network analysis platform receives the mirrored network traffic data, the analysis cluster of the network analysis platform can aggregate the message, and then analyze whether the table entry in the traffic classification table corresponding to the hardware gateway has user information without traffic. If so, the traffic configuration information corresponding to the traffic is deleted, thereby saving the space of the hardware gateway. Among them, when the message is aggregated, it can include the operation of extracting some metadata for the data message, and the metadata can include at least one of the following: message header information (IP, MAC, port, etc.), message length, protocol, flag, etc., and then the message can be classified and saved with some fields of the metadata as the key, and generally only the metadata is saved.

[0103] (ii) Software gateway, such as Figure 1a-1b As shown, it may include a network card for receiving network traffic data forwarded by a hardware gateway and a control plane for configuring a network flow table. Among them, this embodiment does not limit the number of network cards in the software gateway. Those skilled in the art can set it according to the traffic size in the data center. For example, the network cards include two, three or four, etc. Generally speaking, the larger the traffic of the network traffic data, the more network cards are required. It should be noted that the network flow table is pre-configured and is the necessary information for processing the forwarded network traffic data. If it is not configured, the processed data cannot be forwarded.

[0104] Specifically, since the storage specifications of the hardware gateway are relatively small, only the traffic configuration information of some users is saved. For those network traffic data that do not have the traffic configuration information saved, the hardware gateway cannot directly process it. At this time, the hardware gateway needs to send the network traffic data to the software gateway. As a supplement to the hardware gateway, the software gateway is mainly responsible for processing the traffic that the hardware gateway cannot process. Since the software gateway has a large memory space, it can save the traffic configuration information of all users. Therefore, it can ensure that the traffic data that the hardware gateway cannot process can be forwarded normally by the software gateway, ensuring the stability of user services.

[0105] After the software gateway obtains the network traffic data forwarded by the hardware gateway, it can use the network flow table to analyze and process the network traffic data. The specific processing process of analyzing and processing the network traffic data is similar to the process of the hardware gateway using the traffic classification table to process the network traffic data, which will not be repeated here.

[0106] Among them, for the network flow table in the software gateway, the traditional flow table uses a five-tuple as a key to accurately record the size of each flow. The disadvantage of this is that it consumes a lot of space. In order to overcome the above defects, in this embodiment, the network flow table of the software gateway can record the size of each user's traffic and the user's traffic characteristics, for example: most of the user's traffic is to access the public network, or to visit each other internally, or to access the self-built IDC outside the cloud; by using the flow table with the user as the key, the storage space of the software gateway is greatly saved, and the data processing pressure of the network analysis platform is also reduced. After processing the network traffic data using the network flow table, the processed results (including the traffic size) can be provided to the intelligent network analysis platform, so that the network analysis platform can judge whether the network traffic data processed by the software gateway needs to be accelerated by the hardware gateway based on the processing results of the software gateway. If it is found that the hardware gateway needs to be accelerated, the network traffic data and related information can be configured to the hardware gateway.

[0107] (III) Intelligent network analysis platform, which is used to analyze hotspot traffic, namely the “elephant traffic” analysis platform. The system structure of this network analysis platform is as follows: Figure 3 As shown, the network analysis platform has two types of inputs, one type of input is the mirror message input from the hardware gateway, and the other type of input is the hot traffic message reported by the software gateway. After the network analysis platform obtains the mirror message and the hot traffic message, these messages will pass through an analysis cluster to aggregate the mirror message and the hot traffic message into a flow and extract the hot traffic operation. Specifically, when extracting the hot traffic, it can be sorted according to the flow size information of each flow output, and then the flow with the largest recent traffic can be found through the preset threshold, that is, the hot traffic is determined. After determining the hot traffic, the hot traffic can be sent to the real-time hot traffic analysis module. The real-time hot traffic analysis module can determine the maximum traffic data that the hardware gateway can carry based on the preset storage space (including TCAM and SRAM) size of the hardware gateway, the traffic size of each user, and the space consumed by the configuration information. Specifically, a greedy algorithm can be used to calculate the maximum acceleration traffic data corresponding to the hardware gateway. This allows the hardware gateway to process the elephant flow data in a data center network with a large total traffic volume, avoiding the problem of low processing power and difficulty in forwarding the elephant flow when the software gateway processes the elephant flow data.

[0108] Specifically, the process of determining the maximum acceleration flow data may include:

[0109] 1) Obtain the total traffic of the data center, calculate the threshold information of the elephant flow based on the total traffic of the data center, filter out the user information that meets the threshold information conditions from the data reported by the software gateway and hardware gateway, and send a request to the network management platform to obtain the space occupied by the traffic configuration information corresponding to each user information.

[0110] In general, the total flow of the data center in the data center network is very large, but it is mainly composed of elephant flows. The network flow processing capacity of the software gateway is relatively low, and it is difficult to bear the forwarding of the elephant flow. Therefore, it is necessary to ensure that the elephant flow in the data center is processed by the hardware gateway. In addition, when calculating the threshold information of the elephant flow, the elephant flow in this embodiment can refer to the flow data that occupies 90% of the flow of the data center. For example: the total flow of the data center is 1000G, at this time, the elephant flow occupies 900G. At this time, in order to obtain the elephant flow data, it can be sorted from large to small according to the flow, and the top N flows are added until it reaches 900G and stops. At this time, the top N flows are elephant flows, and the remaining flows are mouse flows. Among them, filtering out the user information that meets the conditions is to filter out the user information corresponding to the elephant flow, and the space occupied by the user configuration information of each elephant flow data can be obtained through the network management platform. It can be imagined that the network management platform pre-stores the space occupied by all user configuration information.

[0111] 2) For each elephant flow user information, calculate the "traffic configuration ratio" = traffic information / configuration occupied space. After obtaining the traffic configuration ratio, sort the user information corresponding to the elephant flow according to the traffic configuration ratio, and then use the greedy algorithm to try to put the user information corresponding to the traffic configuration information in the storage space of the hardware gateway in order.

[0112] 3) According to the analysis results of the elephant flow, the traffic configuration information on the hardware gateway is dynamically adjusted in real time, and the traffic configuration information that no longer needs to be accelerated is eliminated. The software gateway sends the hot traffic that does not hit the traffic classification table to the network management platform, and finally the network management platform sends it to the hardware gateway for processing.

[0113] The analysis result of the elephant flow refers to which users' network traffic data have elephant flows, that is, the analysis result of the network platform is a collection of traffic configuration information with elephant flows. When dynamically adjusting the traffic configuration information of the hardware gateway in real time, you can refer to the following implementation process:

[0114] For example: the current time is 9:46, and the network traffic data of user A is very large between 9:30 and 9:40, which is processed by the hardware gateway. However, after 9:45, the network traffic data of user A basically stops, while the network traffic data of user B is almost non-existent between 9:30 and 9:45, which is processed by the software gateway. After 9:45, the traffic begins to surge and continues. At this time, the network analysis platform finds that it is meaningless to store the traffic configuration information of user A on the hardware gateway, and the network traffic data of user B is relatively large, so the traffic configuration information of user B will be added to the hardware gateway and the traffic configuration information of user A will be deleted. At this time, the network traffic data of user B is processed by the hardware gateway instead of the software gateway.

[0115] In summary, the network analysis platform can continuously calculate hotspot traffic through continuous feedback from hardware gateways and software gateways, and ultimately enable the hardware gateway to carry as much network traffic as possible in real time. This enables the traffic data processing system to handle most scenarios in the cloud computing environment, but for sudden business traffic, it may cause the sudden traffic to be sent to the software gateway for a short period of time due to the lack of hardware gateway configuration, exceeding the capacity limit of the software gateway.

[0116] To cope with such scenarios, the network analysis platform can also introduce an offline traffic analysis module. This module can save historical data, analyze the trend information and feature information of traffic over a long period of time based on historical data, and predict the possible sudden traffic in the future. For example, if a user's traffic trend shows a sudden increase in traffic at 20 o'clock every day, the offline traffic analysis module will send the traffic configuration information corresponding to the network traffic information to the hardware gateway in advance before 20 o'clock to cope with the traffic peak. After the peak ends, the hardware gateway can delete the traffic configuration information.

[0117] In addition, to improve the practicality of this method, the network analysis platform can also support manual input of user business characteristics to adjust the acceleration traffic of the hardware gateway. For example, if the user is a game customer, a new game will be officially launched at a specified time, and the business traffic is expected to be accelerated to improve the user experience of game players. The cloud service provider can issue the configuration in advance to prevent the sudden increase in traffic from affecting the user experience.

[0118] (iv) The network management platform is mainly responsible for issuing traffic configuration information of hardware gateways and software gateways. At the same time, it converts the hot traffic information of the network analysis platform into the configuration information of the virtual gateway and configures it to the virtual gateway.

[0119] Among them, the network management platform can have the configuration management information of the entire network, and the hot spot traffic results analyzed by the network platform can include the user's identity. The network management platform can use the identity as a key to find relevant traffic configuration information.

[0120] In this embodiment, the hardware gateway, the software gateway, and the network analysis platform adjust the traffic configuration of the hardware gateway through self-adaptation, gradual iteration, and automatic optimization, and finally realize dynamic network traffic acceleration processing. Specifically, it can include:

[0121] Step 1: The network management platform sends the preset traffic classification table to the hardware gateway and sends the fully configured network flow table to the software gateway.

[0122] Step 2: After the hardware gateway obtains the user's network traffic information, it can mirror a copy of the network traffic information to the network analysis platform, and can also classify and identify the network traffic information. If the network traffic information hits the traffic classification table of the hardware gateway, the hardware gateway will perform accelerated forwarding logic.

[0123] Step 3: If the network traffic information cannot match the traffic classification table of the hardware gateway, the network traffic information is transparently forwarded to the software gateway through the forwarding and transparent transmission logic of the hardware gateway. At this time, the hardware gateway is equivalent to a switch.

[0124] Step 4: After receiving the network flow information, the software gateway can forward the network flow information based on the network flow table. Specifically, the flow size and characteristics of the network flow information can be counted and the network flow information can be forwarded.

[0125] Step 5: The software gateway is pre-configured with a network traffic analysis process, which can extract hotspot traffic from the network flow table and report it to the network analysis platform.

[0126] Step 6: The network analysis platform calculates the elephant flow based on the mirrored traffic and the reported information of the software gateway, and sends the hotspot traffic that meets the elephant flow to the network management platform.

[0127] Step 7: The network management platform collects relevant traffic configuration information of hotspot traffic and can send the traffic configuration information to the hardware gateway.

[0128] Step 8: The hardware gateway refreshes the traffic classification table received in advance and can accelerate the new elephant flow based on the traffic classification table.

[0129] Step 9: The hardware gateway continues to pass the network traffic information that exceeds the traffic classification table and cannot be accelerated to the software gateway. The software gateway continues the above process, identifies new elephant flows, and performs a new round of acceleration iterations.

[0130] The above process fully utilizes the strong network forwarding capability and programmability of the programmable hardware gateway, and the large memory capacity and strong CPU performance of the software gateway implemented by the x86 server, effectively utilizing the collaborative work of programmable hardware and software to solve the bottlenecks of hardware storage space and software performance and complete network traffic acceleration. In addition, the network analysis platform is introduced to gradually iterate and adaptively identify elephant flows through real-time analysis and offline analysis, completing the acceleration operation of user network traffic in the cloud computing environment, ensuring the stable and effective processing of network traffic data, and effectively solving the bottlenecks of small programmable chip storage capacity and weak server forwarding capability in the existing technology.

[0131] In order to clearly understand the data processing process of each device in the traffic data processing system, the traffic data processing process of the hardware gateway, software gateway, network analysis platform and network management platform is described in detail below.

[0132] Figure 4 A flow chart of a method for processing flow data provided by an embodiment of the present invention; Figure 4 As shown, this embodiment provides a method for processing traffic data, which can be applied to a first type of gateway, that is, the execution subject of the method for processing traffic data can be a first type of gateway. It can be understood that the first type of gateway can be implemented as software, or a combination of software and hardware. For the sake of convenience, it is taken as an example that the first type of gateway includes a hardware gateway, and the second type of gateway includes a software gateway, wherein the hardware gateway can be a hardware gateway based on a programming chip. It can be understood that in different application scenarios, the first type of gateway may also include a software gateway, and the second type of gateway may also include a hardware gateway. Specifically, the method may include:

[0133] S101: Obtain network traffic data to be processed.

[0134] The network traffic data to be processed is the network traffic data to be analyzed and needs to be forwarded for processing. The network traffic data can be transmitted by the user to the hardware gateway through a preset port, so that the hardware gateway can obtain the network traffic data to be processed.

[0135] S102: Determine traffic classification information of network traffic data.

[0136] After the network traffic data is acquired, the traffic classification information of the network traffic data may be determined, and the traffic classification information is used to determine whether the hardware gateway can process the network traffic data. This embodiment does not limit the specific implementation method for determining the traffic classification information of the network traffic data, and those skilled in the art may make any settings according to specific application requirements, for example: data features of the network traffic data may be acquired, and the traffic classification information of the network traffic data may be determined by the data features, and the data features may include data identification information and / or data size information, etc.

[0137] S103: When the network flow data is first flow data, the network flow data is processed.

[0138] The first flow data is pre-set network flow data that can be directly analyzed and processed by the hardware gateway. After determining that the network flow data is the first flow data, the hardware gateway can directly process the network flow data, for example, the network flow data can be forwarded to the physical switch through a preset port and sent out through the uplink port of the physical switch.

[0139] S104: When the network flow data is second flow data, the network flow data is sent to a second type gateway, so that the second type gateway processes the network flow data.

[0140] The second flow data is pre-set network flow data that cannot be directly analyzed and processed by the hardware gateway. After determining that the network flow data is the second flow data, since the hardware gateway cannot directly analyze and process the network flow data, at this time, the hardware gateway can send the network flow data to the software gateway so that the software gateway can analyze and process the network flow data. For example, the software gateway can forward the network flow data to a preset physical switch, etc.; this effectively ensures the stability and reliability of the analysis and processing of the network flow data.

[0141] The method for processing traffic data provided in the present embodiment obtains the network traffic data to be processed, determines the traffic classification information of the network traffic data, and processes the network traffic data when the network traffic data is the first traffic data; and sends the network traffic data to the software gateway when the network traffic data is the second traffic data, so that the software gateway processes the network traffic data; thereby, the network traffic data is first processed based on the hardware gateway, and when the hardware gateway cannot process the network traffic data, the network traffic data is processed by the software gateway, thereby fully utilizing and combining the strong network forwarding capability and programmable characteristics of the hardware gateway and the large memory capacity and strong CPU performance of the software gateway, solving the bottlenecks of small storage capacity and weak server forwarding capability existing in the prior art, further ensuring the stability and reliability of processing the network traffic data, improving the practicability of the method, and facilitating market promotion and application.

[0142] Figure 5 A flowchart of determining traffic classification information of network traffic data provided by an embodiment of the present invention; based on the above embodiment, continue to refer to the attached Figure 5 As shown, this embodiment does not limit the specific implementation method for determining the traffic classification information of network traffic data. Those skilled in the art can set it according to specific application requirements and design requirements. Preferably, the traffic classification information for determining the network traffic data in this embodiment may include:

[0143] S1021: Obtain traffic configuration information corresponding to the network traffic data.

[0144] After analyzing and processing the network traffic data, traffic configuration information corresponding to the network traffic data can be obtained, and the traffic configuration information can refer to user configuration information corresponding to the network traffic data. Specifically, this embodiment does not limit the specific method for obtaining the traffic configuration information, and those skilled in the art can set it according to specific application requirements and design requirements. For example, the traffic configuration information can be stored in the network management platform. At this time, a configuration request information can be sent to the network management platform, so that the network management platform returns the traffic configuration information corresponding to the network traffic data based on the request information; or, the traffic configuration information is stored in a preset interval, and through the mapping relationship between the traffic configuration information and the network traffic data, the traffic configuration information corresponding to the network traffic data can be obtained by accessing the preset interval.

[0145] S1022: Determine traffic classification information of network traffic data according to traffic configuration information.

[0146] After the traffic configuration information is acquired, the traffic configuration information may be analyzed and processed, and traffic classification information of the network traffic data may be determined according to the analysis and processing result. Specifically, determining the traffic classification information of the network traffic data according to the traffic configuration information may include:

[0147] S10221: Obtain a first configuration information table, where the first configuration information table includes standard configuration information corresponding to a plurality of first flow data.

[0148] Specifically, the first configuration information table can be obtained through the network management platform. At this time, the first configuration information table is pre-stored in the network management platform, and the first configuration information table may include standard configuration information corresponding to multiple first flow data; in specific applications, the first configuration information table may include the following entry information: user tag (e.g. vxlanvni, vlan id) + IP destination address segment (e.g. 10.0.0.0 / 8) + message modification content (next hop device, outbound port number, modified related fields such as source, destination IP, source, destination port, etc.), user tag + IP destination address + message modification content, user tag + multi-group (including source destination IP address, source destination mac, source destination port) + message modification content. When obtaining the first configuration information table, the hardware gateway can send a request message to the network management platform. After receiving the request message, the network management platform can send the first configuration information table corresponding to the request message to the hardware gateway, so that the hardware gateway can obtain the first configuration information table.

[0149] S10222: When standard configuration information matching the flow configuration information exists in the first configuration information table, the network flow data is determined to be the first flow data.

[0150] S10223: When there is no standard configuration information matching the flow configuration information in the first configuration information table, determining that the network flow data is second flow data.

[0151] After obtaining the first configuration information table, the first configuration information table can be used to analyze and process the network traffic data. Specifically, the traffic configuration information corresponding to the network traffic data can be analyzed and compared with all standard configuration information included in the first configuration information table. If there is standard configuration information matching the traffic configuration information in the first configuration information table, the network traffic data is determined to be the first traffic data. At this time, the hardware gateway can directly analyze and process the network traffic data; if there is no standard configuration information matching the traffic configuration information in the first configuration information table, the network traffic data is determined to be the second traffic data. At this time, the hardware gateway cannot directly analyze and process the network traffic data, and can forward the network traffic data to the software gateway, so that the software gateway can analyze and process the network traffic data, thereby ensuring the security and reliability of the analysis and processing of the network traffic data.

[0152] For example: the first configuration information table includes the following three entry information: Entry 1: label A + ip destination address 10.0.0.0 / 8, action: it is an elephant flow, make corresponding modifications; Entry 2: label A + ip destination address 11.1.1.1, action: it is a mouse flow, send to the software gateway; Entry 3: label B + source port 80 + destination IP 12.1.1.1, action: it is a large number of flows, make corresponding modifications. After obtaining the network flow data, for example: the configuration information of the network flow data is: label A + ip address is 10.0.0.0, at this time, through the above-mentioned first configuration information table, the network flow data is analyzed and it can be known that the network flow data matches the entry 1 in the above-mentioned first configuration information table, so that the network flow data can be determined to be an elephant flow. At this time, the network flow data can be analyzed and processed by the hardware gateway.

[0153] Optionally, this embodiment does not limit the specific implementation method of sending the network traffic data to the software gateway. Those skilled in the art may set it according to specific application requirements and design requirements. Preferably, sending the network traffic data to the software gateway in this embodiment may include:

[0154] S1041: Obtain the address information of the software gateway.

[0155] S1042: Perform tunnel encapsulation on the network traffic data based on the address information, and send the encapsulated network traffic data to the software gateway.

[0156] Specifically, when the hardware gateway is unable to process the network traffic data, it needs to forward the network traffic data to the software gateway. At this time, the address information of the software gateway can be obtained first, and then the address information can be used to perform tunnel encapsulation on the network traffic data, and the encapsulated network traffic data can be sent to the software gateway, so that the software gateway can obtain the network traffic data encapsulated through the tunnel, and can decapsulate the network traffic data and perform other analysis and processing operations.

[0157] In this embodiment, by obtaining the address information of the software gateway and performing tunnel encapsulation on the network traffic data based on the address information, it is effectively ensured that the network traffic data can be stably sent to the software gateway, ensuring the security and reliability of the transmission of the network traffic data, while also improving the stability and reliability of the analysis and processing of the network traffic data.

[0158] Optionally, based on any of the above embodiments, after obtaining the network traffic data to be processed, the method in this embodiment may further include:

[0159] S201: Obtain a first traffic analysis result corresponding to network traffic data.

[0160] S202: Send the first traffic analysis result to the network analysis platform, so that the network analysis platform analyzes and processes the first traffic analysis result.

[0161] Among them, after the hardware gateway obtains the network traffic data, a first traffic analysis result corresponding to the network traffic data can be obtained, and the first traffic analysis result may include data information of the hardware gateway analyzing and processing the network traffic data; and the first traffic analysis result may also include a mirror message corresponding to the network traffic data, and the mirror message is the data obtained after processing the network traffic data by using the mirroring technology. After obtaining the mirror message, the mirror message can be sent to the network analysis platform. After the network analysis platform receives the mirror message, the mirror message can be analyzed and processed. For example, machine learning and other means can be used to perform in-depth analysis on the mirror message to obtain the characteristic information of the traffic. Through the characteristic information of the traffic, other traffic to be processed can be predicted and processed in advance, and the elephant flow related information can be sent to the hardware gateway in advance, thereby realizing a faster network acceleration processing process.

[0162] Figure 6 A flowchart of another method for processing flow data provided by an embodiment of the present invention; Figure 6As shown, this embodiment provides another method for processing traffic data, which can be applied to a second type of gateway, that is, the execution subject of the method for processing traffic data can be a second type of gateway. It can be understood that the second type of gateway can be implemented as software, or a combination of software and hardware. For ease of explanation, the second type of gateway includes a software gateway, which can be a software gateway based on an x86 server, and the first type of gateway includes a hardware gateway. It can be understood that in different application scenarios, the first type of gateway may also include a software gateway, and the second type of gateway may also include a hardware gateway. Specifically, the method may include:

[0163] S301: Receive network traffic data sent by a first type gateway.

[0164] Among them, the first type of gateway in this embodiment can be a hardware gateway. After the hardware gateway sends the network traffic data to the software gateway, the software gateway can receive the network traffic data sent by the hardware gateway. The network traffic data is traffic data that the hardware gateway cannot directly process.

[0165] S302: Acquire a second configuration information table for analyzing and processing network flow data, wherein the second configuration information table includes standard configuration information corresponding to the first flow data and standard configuration information corresponding to the second flow data.

[0166] After obtaining the network traffic data, a second configuration information table for analyzing and processing the network traffic data can be obtained; wherein, the second configuration information table can be stored in a preset storage interval, and the second configuration information table can be obtained by accessing the storage interval, and the second configuration information table can include the traffic configuration information corresponding to all users configured by the network analysis platform, and the traffic configuration information can include traffic size data and traffic feature data, etc. Specifically, the second configuration information table can include the following entry information: user tag (e.g., vxlanvni, vlan id) + IP destination address segment (e.g., 10.0.0.0 / 8) + message modification content (next hop device, egress port number, modified related fields such as source, destination IP, source, destination port, etc.); user tag + IP destination address + message modification content; user tag + multi-group (including source destination IP address, source destination mac, source destination port) + message modification content.

[0167] S303: Process the network traffic data using the second configuration information table, and forward the processed network traffic data to the physical switch.

[0168] After the second configuration information table is obtained, the network traffic data can be analyzed and processed using the second configuration information table, and the processed network traffic data can be forwarded to the physical switch, thereby achieving a stable processing operation on the network traffic data.

[0169] The method for processing traffic data provided in this embodiment receives network traffic data sent by a hardware gateway, obtains a second configuration information table for analyzing and processing the network traffic data, and can thereby process the network traffic data using the second configuration information table, and forward the processed network traffic data to the physical switch. Since the software gateway has a large memory space, it can save traffic configuration information of all users, thereby ensuring that the network traffic data that cannot be processed by the hardware gateway can be forwarded normally by the software gateway, thereby ensuring the stability of processing user business data, further improving the practicability of the method, and being conducive to market promotion and application.

[0170] Optionally, when the second configuration information table is used to process the network flow data, the present embodiment does not limit the specific implementation method thereof, and those skilled in the art may configure it according to specific application requirements. Preferably, the second configuration information table is used to process the network flow data in the present embodiment, and may include:

[0171] S3031: Decapsulate the network traffic data to obtain a network traffic message corresponding to the network traffic data.

[0172] When the hardware gateway sends network traffic data, it first performs tunnel encapsulation on the network traffic data, and then sends the encapsulated network traffic data to the software gateway. Therefore, what the software gateway directly receives is the network traffic data that has been tunnel encapsulated. In order to accurately analyze and process the network traffic data, it is necessary to decapsulate the network traffic data, so as to obtain the network traffic message corresponding to the network traffic data. The network traffic message is the data obtained after decapsulation of the network traffic data.

[0173] S3032: Use the second configuration information table to process the network traffic message to obtain traffic configuration information corresponding to the network traffic data.

[0174] After obtaining the network traffic message, the second configuration information table can be used to process the network traffic message, so as to obtain the traffic configuration information corresponding to the network traffic data, wherein the traffic configuration information includes the traffic size and traffic characteristics. Specifically, the second configuration information table is used to process the network traffic message to obtain the traffic configuration information corresponding to the network traffic data, which may include:

[0175] S30321: Use the second configuration information table to perform traffic matching on the network traffic data to determine traffic characteristics corresponding to the network traffic data.

[0176] Specifically, the second configuration information table includes preset network traffic data of all users and standard traffic characteristics corresponding to the network traffic data. After acquiring the network traffic data, the second configuration information table can be used to perform traffic matching operations on the network traffic data, that is, to search whether there is a standard traffic characteristic corresponding to the network traffic data in the second configuration information table. If so, the standard traffic characteristic is determined as the traffic characteristic corresponding to the network traffic data.

[0177] S30322: Perform traffic statistics on the network traffic data using the second configuration information table to determine the traffic size corresponding to the network traffic data.

[0178] After obtaining the network traffic data, the second configuration information table can be used to perform traffic statistics operations on the network traffic data, so as to determine the traffic size corresponding to the network traffic data. Specifically, with respect to the network traffic data, when the second configuration information table is used to analyze and process the network traffic data, the entry information matching the network traffic data can be determined, and then the number of hits to the entry information can be counted. The traffic size corresponding to the network traffic data can be obtained through the counted number of hits to the entry information.

[0179] In this embodiment, the second configuration information table is used to process the network traffic message to obtain the traffic configuration information corresponding to the network traffic data, which effectively ensures the accuracy and reliability of the acquisition of the traffic configuration information and further improves the stability and reliability of the use of the method.

[0180] Optionally, in order to further improve the flexibility and reliability of the use of the method, the method in this embodiment may further include:

[0181] S401: Determine whether the network traffic data is elephant flow data according to the traffic configuration information.

[0182] S402: When the network traffic data is elephant flow data, the traffic configuration information corresponding to the network traffic data is sent to the network analysis platform.

[0183] After obtaining the traffic configuration information, it is possible to determine whether the network traffic data is elephant flow data based on the traffic configuration information. Specifically, it is possible to determine whether the network traffic data is elephant flow data based on the traffic size and traffic characteristics. For example, if the traffic size is greater than or equal to a preset threshold and the traffic characteristics meet the preset requirements, the network traffic data can be determined as elephant flow data. At this time, in order to improve the quality and efficiency of processing the elephant flow data, the traffic configuration information corresponding to the network traffic data can be sent to the network analysis platform, so that the network analysis platform can adjust the pre-configured first configuration information table for sending to the hardware gateway based on the traffic configuration information, so that the hardware gateway can quickly and effectively process the subsequent elephant flow data.

[0184] Figure 7 A schematic diagram of another method for processing flow data provided by an embodiment of the present invention; Figure 7 As shown, this embodiment provides another method for processing traffic data, and the execution subject of the method for processing traffic data is a network analysis platform. It can be understood that the network analysis platform can be implemented as software, or a combination of software and hardware. The method may include:

[0185] S501: Receive a first traffic analysis result sent by a hardware gateway and a second traffic analysis result sent by a software gateway.

[0186] S502: Determine elephant flow analysis results corresponding to the first type gateway and the second type gateway according to the first traffic analysis result and the second traffic analysis result.

[0187] S503: Send the elephant flow analysis result to the network management platform.

[0188] Specifically, taking the example that the first type of gateway includes a hardware gateway and the second type of gateway includes a software gateway, after the hardware gateway sends the first traffic analysis result to the network analysis platform and the software gateway sends the second traffic analysis result to the network analysis platform, the second traffic analysis result includes traffic configuration information corresponding to the hotspot traffic, and the network analysis platform can receive the traffic configuration information, which is related to the calculation of the elephant flow. After the network analysis platform obtains the first traffic analysis result and the second traffic analysis result, the elephant flow analysis result corresponding to the hardware gateway and the software gateway can be determined according to the first traffic analysis result and the second traffic analysis result. The elephant flow analysis result can be the network traffic data in the network analysis platform that meets the elephant flow threshold or other elephant flow judgment rules. After obtaining the elephant flow analysis results, the elephant flow analysis results can be sent to the network management platform so that the network management platform can generate the elephant flow analysis results into a first configuration information table for sending to the hardware gateway. Alternatively, the first configuration information table can be reconfigured based on the elephant flow analysis results, and the reconfigured first configuration information table can be sent to the hardware gateway, so that the hardware gateway can classify and identify the network traffic data based on the adjusted first configuration information table, further ensuring the stability and reliability of the processing of network traffic data.

[0189] The method for processing traffic data provided in this embodiment receives a first traffic analysis result sent by a hardware gateway and a second traffic analysis result sent by a software gateway, determines the elephant flow analysis results corresponding to the hardware gateway and the software gateway according to the first traffic analysis result and the second traffic analysis result, and sends the elephant flow analysis results to the network management platform, thereby realizing that the elephant flow analysis results can be dynamically adjusted according to the actual situation of the hardware gateway and the software gateway processing the network traffic data, and further the data processing process of the hardware gateway can be adjusted based on the elephant flow analysis results, thereby further improving the quality and efficiency of processing the network traffic data, ensuring the practicability of the method, and facilitating the market promotion and application.

[0190] Optionally, based on the above embodiment, the first type of gateway includes a hardware gateway, and the second type of gateway includes a software gateway. In this case, the method in this embodiment may further include:

[0191] S601: Acquire a first total flow and flow configuration information corresponding to each flow data in the first total flow, where the first total flow is related to a historical network flow of a hardware gateway and a historical network flow of a software gateway.

[0192] The first total flow is related to the historical network flow of the hardware gateway and the historical network flow of the software gateway. For example, the first total flow may be equal to the sum of the historical network flow that the hardware gateway can process and the historical network flow that the software gateway can process.

[0193] S602: Generate a second configuration information table according to the first total flow and the flow configuration information corresponding to each flow data.

[0194] After obtaining the first total flow, a second configuration information table can be generated based on the first total flow. Specifically, the flow configuration information corresponding to each flow data in the first total flow can be determined first, and the second configuration information table can be generated based on the first total flow and the flow configuration information corresponding to each flow data. That is, the second configuration information table includes the full amount of user network flow and the corresponding flow configuration information.

[0195] It is conceivable that after generating the second configuration information table according to the first total flow and the flow configuration information corresponding to each flow data, the method in this embodiment further includes:

[0196] S603: Send the second configuration information table to the software gateway through the network management platform.

[0197] After obtaining the second configuration information table, in order to enable the software gateway to know the second configuration information table, the network analysis platform can send the second configuration information table to the software gateway through the network management platform, so that the software gateway can analyze and process the network traffic data based on the second configuration information table.

[0198] Optionally, after acquiring the first total flow and the flow configuration information corresponding to each flow data in the first total flow, the method in this embodiment may further include:

[0199] S701: Determine elephant flow data for the hardware gateway based on the first total flow;

[0200] S702: Obtaining elephant flow configuration information corresponding to the elephant flow data;

[0201] S703: Generate a first configuration information table according to the elephant flow data and the elephant flow configuration information.

[0202] Specifically, after obtaining the first total flow, the elephant flow threshold information can be determined based on the first total flow, and all flow data can be classified and identified through the elephant flow threshold information, so that the elephant flow data for the hardware gateway can be determined. After obtaining the elephant flow data, the flow configuration information corresponding to the elephant flow data can be determined, and the first network flow can be generated through the elephant flow data and the flow configuration information.

[0203] It can be imagined that after generating the first configuration information table according to the elephant flow data and the elephant flow configuration information, the method in this embodiment further includes:

[0204] S704: Send the first configuration information table to the hardware gateway through the network management platform.

[0205] After obtaining the first configuration information table, in order to enable the hardware gateway to know the first configuration information table, the network analysis platform can send the first configuration information table to the hardware gateway through the network management platform, so that the hardware gateway can analyze and process the network traffic data based on the first configuration information table.

[0206] Optionally, based on the above embodiment, in order to improve the accuracy and reliability of the method, the method in this embodiment may further include:

[0207] S801: Obtain a second total flow, where the second total flow is related to the current network flow of the hardware gateway and the current network flow of the software gateway.

[0208] S802: Adjust the first configuration information table according to the second total flow.

[0209] The second total flow is an updated total flow information relative to the first total flow. After obtaining the updated second total flow, in order to ensure the accuracy and reliability of the data in the first configuration information table, the first configuration information table can be adjusted according to the second total flow. Specifically, adjusting the first configuration information table according to the second total flow may include:

[0210] S8021: Determine all elephant flow data located on the hardware gateway and the software gateway based on the second total flow.

[0211] Among them, determining all elephant flow data located on the hardware gateway and the software gateway according to the second total flow may include:

[0212] S80211: Determine the elephant flow threshold information according to the second total flow.

[0213] S80212: Filter the traffic data on the hardware gateway and the software gateway based on the elephant flow threshold information to obtain all the elephant flow data on the hardware gateway and the software gateway.

[0214] Among them, the elephant flow threshold information is related to the total flow size of the network data, and different total flows can correspond to different elephant flow threshold information. Therefore, after obtaining the second total flow, an elephant flow threshold information can be determined according to the second total flow. Through the elephant flow threshold information, the network flow data of all users on the hardware gateway and the software gateway can be screened, and the network flow data of all users that is greater than or equal to the elephant flow threshold information is determined as elephant flow data, and the network flow data of all users that is less than the elephant flow threshold information is determined as mouse flow data.

[0215] For example, the existing elephant flow threshold information is 95%, and the second total flow is 1000G. At this time, in order to meet the elephant flow threshold information, all network flow data can be obtained, and the network flow data can be sorted from large to small according to the flow size. When the total flow corresponding to the current N network flow data meets 950G, the N network flow data can be determined as elephant flow data, where N is greater than or equal to 1; other network flow data are determined as mouse flow data; thereby realizing the operation of filtering the flow data on the hardware gateway and the software gateway based on the elephant flow threshold information.

[0216] S8022: Obtain the traffic configuration information corresponding to each elephant flow data.

[0217] S8023: Determine the storage space required for the traffic configuration information.

[0218] After determining the elephant flow data, the flow configuration information corresponding to each elephant flow data can be obtained, and then the storage space required for the flow configuration information can be determined according to the size of the flow configuration information.

[0219] S8024: Adjust the first configuration information table according to the storage space.

[0220] Among them, adjusting the first configuration information table according to the storage space may include:

[0221] S80241: Determine the traffic configuration ratio corresponding to each elephant flow data according to the traffic configuration information corresponding to each elephant flow data and the storage space required by the traffic configuration information.

[0222] After obtaining the traffic configuration information and storage space corresponding to each elephant flow data, the traffic configuration ratio corresponding to each elephant flow data can be determined according to the traffic configuration information and the storage space. The traffic configuration ratio can be the ratio of the traffic configuration information to the storage space.

[0223] S80242: Sort the traffic configuration information of all elephant flow data according to the traffic configuration ratio to obtain traffic sorting information.

[0224] It can be understood that the traffic configuration information of each elephant flow data can correspond to a traffic configuration ratio. After obtaining multiple traffic configuration ratios, the traffic configuration information of all elephant flow data can be sorted based on the size of the traffic configuration ratio. Specifically, the traffic configuration information of all elephant flow data can be sorted from large to small based on the traffic configuration ratio, so as to obtain the traffic sorting information.

[0225] S80243: Adjust the first configuration information table using a greedy algorithm, traffic sorting information, and a preset storage space of the hardware gateway.

[0226] Among them, the preset storage space of the hardware gateway can be pre-set, which can be related to the hardware configuration information and hardware structure information of the hardware gateway. Generally, after the hardware gateway is determined, a storage space can be configured for the hardware gateway. After obtaining the traffic sorting information, the first configuration information table can be adjusted using a greedy algorithm and a preset storage space. Specifically, network traffic data can be distributed to the hardware gateway from front to back according to the traffic sorting information until the preset storage space of the hardware gateway can no longer store the traffic configuration information. At this time, all network traffic data distributed to the hardware gateway can constitute a new first configuration information table, thereby realizing dynamic adjustment of the first configuration information table.

[0227] Optionally, after acquiring the adjusted first configuration information table, the method in this embodiment may further include:

[0228] S901: Based on the adjusted first configuration information table, the traffic configuration information corresponding to the elephant flow data is stored.

[0229] Specifically, the hardware gateway has a certain preset storage space, which can store the traffic configuration information corresponding to the first configuration information table. After the first configuration information table is adjusted, based on the adjusted first configuration information table, the traffic configuration information corresponding to the elephant flow data can be stored, thereby ensuring that the hardware gateway can accurately and effectively process the network traffic data in the first configuration information table, further improving the stability and reliability of processing the network traffic data.

[0230] Optionally, in order to further improve the practicality of the method, the first traffic analysis result may include a mirror message corresponding to the network traffic data. In this case, the method in this embodiment may further include:

[0231] S1001: Aggregate the mirrored messages to obtain an aggregation result.

[0232] S1002: Determine whether there is traffic data of empty traffic based on the aggregation result.

[0233] S1003: If it exists, delete the traffic configuration information of the traffic data.

[0234] After the network analysis platform receives the mirror message sent by the hardware gateway, it can also aggregate the mirror message and determine whether there is traffic data with no traffic (i.e., empty traffic) based on the aggregation result. If so, the traffic configuration information of the traffic data is deleted, thereby reducing the occupancy rate of the storage space in the network analysis platform and ensuring the utilization rate of storage resources.

[0235] Optionally, in order to further improve the practicability of the method, the method in this embodiment may further include:

[0236] S1101: Determine trend information and data features corresponding to the elephant flow analysis results based on the elephant flow analysis results.

[0237] S1102: Use trend information and data features to predict the elephant flow network data to be processed.

[0238] Specifically, after the network analysis platform obtains the elephant flow analysis results, the elephant flow analysis results can be analyzed and processed to determine the trend information and data characteristics corresponding to the elephant flow analysis results. After obtaining the trend information and data characteristics, other elephant flow network data to be processed can be predicted based on the trend information and data characteristics, thereby improving the accuracy of the analysis and processing of the elephant flow network data.

[0239] Figure 8 A flowchart of a method for processing flow data provided by an embodiment of the present invention; Figure 8 As shown, this embodiment provides another method for processing flow data. The execution subject of the method for processing flow data is a processing device. In specific applications, the processing device may be a network management platform. It is understandable that the network management platform may be implemented as software, or a combination of software and hardware. The method may include:

[0240] S1201: Receive the elephant flow analysis results sent by the network analysis platform.

[0241] S1202: Determine the elephant flow configuration information according to the elephant flow analysis result.

[0242] S1203: Send the elephant flow analysis results and elephant flow configuration information to the hardware gateway.

[0243] Among them, the network management platform can receive the elephant flow analysis results sent by the network analysis platform; after the network management platform obtains the elephant flow analysis results, the elephant flow configuration information can be determined according to the elephant flow analysis results. After obtaining the elephant flow configuration information, the elephant flow configuration information can be sent to the hardware gateway, so that the hardware gateway can accurately obtain the elephant flow configuration information, which is convenient for generating a first configuration information table based on the elephant flow configuration information to realize the processing operation of classifying and identifying the user's network traffic data.

[0244] The method for processing traffic data provided in this embodiment is that after the network management platform receives the elephant flow analysis results, it can determine the elephant flow configuration information corresponding to the elephant flow analysis results, and can send the elephant flow configuration information to the hardware gateway, so as to facilitate the hardware gateway to classify, identify and process the user's network traffic data based on the elephant flow configuration information, further improving the stability and reliability of processing network traffic data.

[0245] Fig. 9 A flowchart of another method for processing flow data provided by an embodiment of the present invention; Fig. 9 As shown, this embodiment provides a method for processing traffic data. The execution subject of the method for processing traffic data is a processing device. In specific applications, the processing device may be a network analysis platform. It is understandable that the network analysis platform may be implemented as software, or a combination of software and hardware. The method may include:

[0246] S1301: Obtain network traffic data;

[0247] S1302: Classify and identify the network traffic data, and determine first traffic data and second traffic data corresponding to the network traffic data;

[0248] S1303: Generate a first configuration information table corresponding to the first flow data, and a second configuration information table corresponding to the first flow data and the second flow data, wherein the first configuration information table includes standard configuration information corresponding to the first flow data, and the second configuration information table includes standard configuration information corresponding to the first flow data and standard configuration information corresponding to the second flow data;

[0249] S1304: Send the first configuration information table to a first type gateway, and send the second configuration information table to a second type gateway.

[0250] Specifically, after the network analysis platform obtains the network traffic data, the network traffic data can be analyzed and identified based on a preset classification strategy, so as to obtain first traffic data and second traffic data corresponding to the network traffic data. After analyzing and identifying the network traffic data, the configuration information corresponding to the first traffic data and the configuration information corresponding to the second traffic data can be obtained, and then a first configuration information table corresponding to the first traffic data is generated based on the first traffic data and the configuration information corresponding to the first traffic data, and a second configuration information table corresponding to the second traffic data is generated based on the first traffic data, the configuration information corresponding to the first traffic data, the second traffic data, and the configuration information corresponding to the second traffic data. In order to enable the use of the first type gateway and the second type gateway to analyze and process the network traffic data, the first configuration information table can be sent to the first type gateway, and the second configuration information table can be sent to the second type gateway, so that the first type gateway can process the network traffic data corresponding to the first configuration information table, and the second type gateway can process the network traffic data corresponding to the second configuration information table.

[0251] The method for processing traffic data provided in this embodiment is that after the network analysis platform obtains the network traffic data, it can classify and identify the network traffic data, and generate a first configuration information table and a second configuration information table based on the classification result, and then send the first configuration information table to the first type of gateway, and send the second configuration information table to the second type of gateway, thereby effectively ensuring the stability and reliability of analyzing and processing the network traffic data through the first type of gateway and the second type of gateway.

[0252] Fig.10 A structural diagram of a flow data processing device provided by an embodiment of the present invention; Fig.10 As shown, this embodiment provides a flow data processing device, which can perform the above Figure 1a-1b In specific applications, the processing device for the traffic data may be a first type of gateway. Specifically, the processing device may include:

[0253] A first acquisition module 11 is used to acquire network traffic data to be processed;

[0254] A first determination module 12, used to determine traffic classification information of network traffic data;

[0255] The first processing module 13 is used to process the network flow data when the network flow data is the first flow data; or, when the network flow data is the second flow data, send the network flow data to the second type gateway so that the second type gateway processes the network flow data.

[0256] Optionally, the first type of gateway includes a hardware gateway, and the second type of gateway includes a software gateway.

[0257] Optionally, when the first determination module 12 determines the traffic classification information of the network traffic data, the first determination module 12 can be used to execute: obtaining traffic configuration information corresponding to the network traffic data; and determining the traffic classification information of the network traffic data according to the traffic configuration information.

[0258] Optionally, when the first determination module 12 determines the traffic classification information of the network traffic data based on the traffic configuration information, the first determination module 12 can be used to execute: obtaining a first configuration information table, the first configuration information table including multiple standard configuration information corresponding to the first traffic data; when there is standard configuration information matching the traffic configuration information in the first configuration information table, determining that the network traffic data is the first traffic data; or, when there is no standard configuration information matching the traffic configuration information in the first configuration information table, determining that the network traffic data is the second traffic data.

[0259] Optionally, when the first processing module 13 sends the network traffic data to the software gateway, the first processing module 13 can be used to execute: obtaining the address information of the software gateway; tunnel encapsulating the network traffic data based on the address information, and sending the encapsulated network traffic data to the software gateway.

[0260] Optionally, after obtaining the network traffic data to be processed, the first obtaining module 11 and the first processing module 13 in this embodiment may be used to perform the following steps:

[0261] A first acquisition module 11, used to acquire a first flow analysis result corresponding to the network flow data;

[0262] The first processing module 13 is used to send the first traffic analysis result to the network analysis platform, so that the network analysis platform analyzes and processes the mirror message.

[0263] Fig.10 The device shown can perform Figure 1a , Figure 1b-Figure 5 For the method of the embodiment shown in the figure, the part not described in detail in this embodiment can be referred to Figure 1a , Figure 1b -- Figure 5 The implementation process and technical effects of this technical solution refer to Figure 1a , Figure 1b-Figure 5 The description in the illustrated embodiment will not be repeated here.

[0264] In one possible design, Fig.10The structure of the flow data processing device shown can be implemented as an electronic device, which can be a hardware gateway, a terminal device with gateway function (such as a mobile phone, a tablet computer), a server, or other devices. Fig.11 As shown, the electronic device may include: a first processor 21 and a first memory 22. The first memory 22 is used to store the electronic device to perform the above Figure 1a , Figure 1b-Figure 5 The program of the method for processing flow data provided in the illustrated embodiment, the first processor 21 is configured to execute the program stored in the first memory 22 .

[0265] The program includes one or more computer instructions, wherein when the one or more computer instructions are executed by the first processor 21, the following steps can be implemented:

[0266] Get the network traffic data to be processed;

[0267] Determining traffic classification information for network traffic data;

[0268] When the network flow data is first flow data, the network flow data is processed; or,

[0269] When the network traffic data is the second traffic data, the network traffic data is sent to the second type gateway so that the second type gateway processes the network traffic data.

[0270] Optionally, the first processor 21 is further configured to execute the aforementioned Figure 1a , Figure 1b-Figure 5 All or part of the steps in the illustrated embodiments.

[0271] The structure of the electronic device may further include a first communication interface 23 for the electronic device to communicate with other devices or a communication network.

[0272] In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions used by electronic devices, which includes instructions for executing the above Figure 1a , Figure 1b-Figure 5 The procedures involved in the method for processing traffic data in the method embodiment shown.

[0273] Fig.12 A schematic diagram of a flow data processing device provided by an embodiment of the present invention Figure 2 ; Reference Attachment Fig.12 As shown, this embodiment provides a flow data processing device, which can perform the above Figure 6 In specific applications, the flow data processing device may be a second type of gateway. Specifically, the processing device may include:

[0274] A first receiving module 31, configured to receive network traffic data sent by a first type of gateway;

[0275] A second acquisition module 32, used to acquire a second configuration information table for analyzing and processing the network flow data, wherein the second configuration information table includes standard configuration information corresponding to the first flow data and standard configuration information corresponding to the second flow data;

[0276] The second processing module 33 is used to process the network traffic data using the second configuration information table, and forward the processed network traffic data to the physical switch.

[0277] Optionally, the first type of gateway includes a hardware gateway, and the second type of gateway includes a software gateway.

[0278] Optionally, when the second processing module 33 uses the second configuration information table to process network traffic data, the second processing module 33 can be used to execute: decapsulate the network traffic data to obtain network traffic packets corresponding to the network traffic data; process the network traffic packets using the second configuration information table to obtain traffic configuration information corresponding to the network traffic data.

[0279] The traffic configuration information includes traffic size and traffic characteristics.

[0280] Optionally, when the second processing module 33 uses the second configuration information table to process the network traffic message and obtains the traffic configuration information corresponding to the network traffic data, the second processing module 33 can be used to execute: using the second configuration information table to perform traffic matching on the network traffic data and determine the traffic characteristics corresponding to the network traffic data; using the second configuration information table to perform traffic statistics on the network traffic data and determine the traffic size corresponding to the network traffic data.

[0281] Optionally, the second processing module 33 in this embodiment can also be used to perform the following steps: determine whether the network traffic data is elephant flow data based on the traffic configuration information; when the network traffic data is elephant flow data, send the traffic configuration information corresponding to the network traffic data to the network analysis platform.

[0282] Fig.12 The device shown can perform Figure 1a , Figure 1b-Figure 3 , Figure 6 For the method of the embodiment shown in the figure, the part not described in detail in this embodiment can be referred to Figure 1a , Figure 1b-Figure 3 , Figure 6 The implementation process and technical effects of this technical solution refer to Figure 1a , Figure 1b-Figure 3 , Figure 6 The description in the illustrated embodiment will not be repeated here.

[0283] In one possible design, Fig.12 The structure of the flow data processing device shown can be implemented as an electronic device, which can be a software gateway, a terminal device with a gateway function (such as a mobile phone, a tablet computer), a server, or other devices. Fig.13 As shown, the electronic device may include: a second processor 41 and a second memory 42. The second memory 42 is used to store the information that supports the electronic device to execute the above Figure 1a , Figure 1b-Figure 3 , Figure 6 The program of the method for processing flow data provided in the illustrated embodiment, the second processor 41 is configured to execute the program stored in the second memory 42 .

[0284] The program includes one or more computer instructions, wherein when the one or more computer instructions are executed by the second processor 41, the following steps can be implemented:

[0285] Receiving network traffic data sent by the first type of gateway;

[0286] Acquire a second configuration information table for analyzing and processing network flow data, wherein the second configuration information table includes standard configuration information corresponding to the first flow data and standard configuration information corresponding to the second flow data;

[0287] The network traffic data is processed using the second configuration information table, and the processed network traffic data is forwarded to the physical switch.

[0288] The structure of the electronic device may further include a second communication interface 43 for the electronic device to communicate with other devices or a communication network.

[0289] In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions used by electronic devices, which includes instructions for executing the above Figure 1a , Figure 1b-Figure 3 , Figure 6 The procedures involved in the method for processing traffic data in the method embodiment shown.

[0290] Fig.14 A schematic diagram of a flow data processing device provided by an embodiment of the present invention Figure 3 ; Reference Attachment Fig.14 As shown, this embodiment provides a flow data processing device, which can perform the above Figure 7 The corresponding method for processing traffic data. In specific applications, the traffic data processing device may be a network analysis platform. Specifically, the processing device may include:

[0291] The second receiving module 51 is used to receive the first traffic analysis result sent by the hardware gateway and the second traffic analysis result sent by the software gateway;

[0292] A second determination module 52, configured to determine elephant flow analysis results corresponding to the first type of gateway and the second type of gateway according to the first flow analysis result and the second flow analysis result;

[0293] The first sending module 53 is used to send the elephant flow analysis result to the network management platform.

[0294] Optionally, the first type of gateway includes a hardware gateway, and the second type of gateway includes a software gateway; the second determination module 52 in this embodiment can also be used to execute: obtaining the first total flow and the flow configuration information corresponding to each flow data in the first total flow, the first total flow is related to the historical network flow of the hardware gateway and the historical network flow of the software gateway; generating a second configuration information table according to the first total flow and the flow configuration information corresponding to each flow data.

[0295] Optionally, after generating the second configuration information table according to the first total flow and the flow configuration information corresponding to each flow data, the first sending module 53 in this embodiment can also be used to execute: sending the second configuration information table to the software gateway through the network management platform.

[0296] Optionally, after obtaining the first total flow and the flow configuration information corresponding to each flow data in the first total flow, the second determination module 52 in this embodiment can also be used to execute: determining the elephant flow data for the hardware gateway based on the first total flow; obtaining the elephant flow configuration information corresponding to the elephant flow data; generating a first configuration information table based on the elephant flow data and the elephant flow configuration information.

[0297] Optionally, after generating the first configuration information table according to the elephant flow data and the elephant flow configuration information, the first sending module 53 in this embodiment can also be used to execute: sending the first configuration information table to the hardware gateway through the network management platform.

[0298] Optionally, the second determination module 52 in this embodiment can also be used to execute: obtaining a second total flow, the second total flow is related to the current network flow of the hardware gateway and the current network flow of the software gateway; adjusting the first configuration information table according to the second total flow.

[0299] Optionally, when the second determination module 52 adjusts the first configuration information table according to the second total flow, the second determination module 52 can be used to execute: determine all elephant flow data located on the hardware gateway and the software gateway according to the second total flow; obtain the flow configuration information corresponding to each elephant flow data; determine the storage space required for the flow configuration information; and adjust the first configuration information table according to the storage space.

[0300] Optionally, when the second determination module 52 determines all elephant flow data located on the hardware gateway and the software gateway based on the second total flow, the second determination module 52 can be used to execute: determine the elephant flow threshold information based on the second total flow; filter the flow data on the hardware gateway and the software gateway based on the elephant flow threshold information to obtain all elephant flow data located on the hardware gateway and the software gateway.

[0301] Optionally, when the second determination module 52 adjusts the first configuration information table according to the storage space, the second determination module 52 can be used to execute: determining the traffic configuration ratio corresponding to each elephant flow data according to the traffic configuration information corresponding to each elephant flow data and the storage space required for the traffic configuration information; sorting the traffic configuration information of all elephant flow data according to the traffic configuration ratio to obtain traffic sorting information; and adjusting the first configuration information table using a greedy algorithm, traffic sorting information, and the preset storage space of the hardware gateway.

[0302] Optionally, the second determining module 52 in this embodiment may also be used to execute: based on the adjusted first configuration information table, storing the flow configuration information corresponding to the elephant flow data.

[0303] Optionally, the first traffic analysis result includes a mirror message corresponding to the network traffic data; the second determination module 52 in this embodiment can also be used to execute: aggregating the mirror message to obtain an aggregation result; judging whether there is traffic data of empty traffic based on the aggregation result; if so, deleting the traffic configuration information of the traffic data.

[0304] Optionally, the second determination module 52 in this embodiment can also be used to perform: determining trend information and data features corresponding to the elephant flow analysis results based on the elephant flow analysis results; and predicting the elephant flow network data to be processed using the trend information and data features.

[0305] Fig.14 The device shown can perform Figure 1a , Figure 1b-Figure 3 , Figure 7 For the method of the embodiment shown in the figure, the part not described in detail in this embodiment can be referred to Figure 1a , Figure 1b-Figure 3 , Figure 7The implementation process and technical effects of this technical solution refer to Figure 1a , Figure 1b-Figure 3 , Figure 7 The description in the illustrated embodiment will not be repeated here.

[0306] In one possible design, Fig.14 The structure of the flow data processing device shown can be implemented as an electronic device, which can be a network analysis platform, a terminal device with analysis capabilities (such as a mobile phone, a tablet computer), a server, or other devices. Fig.15 As shown, the electronic device may include: a third processor 61 and a third memory 62. The third memory 62 is used to store the information that supports the electronic device to execute the above Figure 1a , Figure 1b-Figure 3 , Figure 7 The program of the method for processing flow data provided in the illustrated embodiment, the third processor 61 is configured to execute the program stored in the third memory 62 .

[0307] The program includes one or more computer instructions, wherein when the one or more computer instructions are executed by the third processor 61, the following steps can be implemented:

[0308] Receiving a first traffic analysis result sent by a hardware gateway and a second traffic analysis result sent by a software gateway;

[0309] Determine elephant flow analysis results corresponding to the first type of gateway and the second type of gateway according to the first flow analysis result and the second flow analysis result;

[0310] Send the Elephant flow analysis results to the network management platform.

[0311] The structure of the electronic device may further include a third communication interface 63 for the electronic device to communicate with other devices or a communication network.

[0312] In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions used by electronic devices, which includes instructions for executing the above Figure 1a , Figure 1b-Figure 3 , Figure 7 The procedures involved in the method for processing traffic data in the method embodiment shown.

[0313] Fig.16 A schematic diagram of a flow data processing device provided by an embodiment of the present invention Figure 4 ; Reference Attachment Fig.16 As shown, this embodiment provides a flow data processing device, which can perform the above Figure 8The corresponding flow data processing method. In specific applications, the flow data processing device may be a network management platform. Specifically, the processing device may include:

[0314] The third receiving module 71 is used to receive the elephant flow analysis result sent by the network analysis platform;

[0315] A third determination module 72, configured to determine elephant flow configuration information according to the elephant flow analysis result;

[0316] The second sending module 73 is used to send the elephant flow analysis result and the elephant flow configuration information to the hardware gateway.

[0317] Fig.16 The device shown can perform Figure 1a , Figure 1b-Figure 3 For the method of the embodiment shown in the figure, the part not described in detail in this embodiment can be referred to Figure 1a , Figure 1b-Figure 3 The implementation process and technical effects of this technical solution refer to Figure 1a , Figure 1b-Figure 3 The description in the illustrated embodiment will not be repeated here.

[0318] In one possible design, Fig.16 The structure of the flow data processing device shown can be implemented as an electronic device, which can be a network management platform, a terminal device with management capabilities (such as a mobile phone, a tablet computer), a server, or other devices. Fig.17 As shown, the electronic device may include: a fourth processor 81 and a fourth memory 82. The fourth memory 82 is used to store the information that supports the electronic device to execute the above Figure 1a , Figure 1b-Figure 3 The fourth processor 81 is configured to execute the program stored in the fourth memory 82 according to the flow data processing method provided in the illustrated embodiment.

[0319] The program includes one or more computer instructions, wherein when the one or more computer instructions are executed by the fourth processor 81, the following steps can be implemented:

[0320] Receive the Elephant Flow analysis results sent by the network analysis platform;

[0321] Determine the elephant flow configuration information according to the elephant flow analysis results;

[0322] Send the Elephant flow analysis results and Elephant flow configuration information to the hardware gateway.

[0323] The structure of the electronic device may further include a fourth communication interface 83 for the electronic device to communicate with other devices or a communication network.

[0324] In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions used by electronic devices, which includes instructions for executing the above Figure 1a , Figure 1b-Figure 3 , Figure 8 The procedures involved in the method for processing traffic data in the method embodiment shown.

[0325] Fig.18 A schematic diagram of a flow data processing device provided by an embodiment of the present invention Figure 5 ; Reference Attachment Fig.18 As shown, this embodiment provides a flow data processing device, which can perform the above Fig. 9 The corresponding method for processing traffic data. In specific applications, the traffic data processing device may be a network analysis platform. Specifically, the processing device may include:

[0326] The third acquisition module 91 is used to acquire network traffic data;

[0327] An identification module 92, configured to classify and identify the network flow data, and determine first flow data and second flow data corresponding to the network flow data;

[0328] A generating module 93, configured to generate a first configuration information table corresponding to the first flow data, and a second configuration information table corresponding to the first flow data and the second flow data, wherein the first configuration information table includes standard configuration information corresponding to the first flow data, and the second configuration information table includes standard configuration information corresponding to the first flow data and standard configuration information corresponding to the second flow data;

[0329] The third sending module 94 is used to send the first configuration information table to a first type gateway, and send the second configuration information table to a second type gateway.

[0330] Fig.18 The device shown can perform Figure 1a , Figure 1b-Figure 3 , Fig. 9 For the method of the embodiment shown in the figure, the part not described in detail in this embodiment can be referred to Figure 1a , Figure 1b-Figure 3 , Fig. 9 The implementation process and technical effects of this technical solution refer to Figure 1a , Figure 1b-Figure 3 , Fig. 9 The description in the illustrated embodiment will not be repeated here.

[0331] In one possible design, Fig.18The structure of the flow data processing device shown can be implemented as an electronic device, which can be a network analysis platform, a terminal device with management capabilities (such as a mobile phone, a tablet computer), a server, or other devices. Fig.19 As shown, the electronic device may include: a fifth processor 101 and a fifth memory 102. The fifth memory 102 is used to store the information that supports the electronic device to execute the above Figure 1a , Figure 1b-Figure 3 , Fig. 9 The fifth processor 101 is configured to execute the program stored in the fifth memory 102 for the method for processing flow data provided in the illustrated embodiment.

[0332] The program includes one or more computer instructions, wherein when the one or more computer instructions are executed by the fifth processor 101, the following steps can be implemented:

[0333] Get network traffic data;

[0334] Classify and identify the network traffic data to determine first traffic data and second traffic data corresponding to the network traffic data;

[0335] Generate a first configuration information table corresponding to the first flow data, and a second configuration information table corresponding to the first flow data and the second flow data, wherein the first configuration information table includes standard configuration information corresponding to the first flow data, and the second configuration information table includes standard configuration information corresponding to the first flow data and standard configuration information corresponding to the second flow data;

[0336] The first configuration information table is sent to a first type gateway, and the second configuration information table is sent to a second type gateway.

[0337] The structure of the electronic device may further include a fifth communication interface 103, which is used for the electronic device to communicate with other devices or a communication network.

[0338] In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions used by electronic devices, which includes instructions for executing the above Figure 1a , Figure 1b-Figure 3 , Fig. 9 The procedures involved in the method for processing traffic data in the method embodiment shown.

[0339] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0340] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course can also be implemented by combining hardware and software. Based on such an understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a computer product, and the present invention can be in 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.

[0341] The method for processing flow data provided in the embodiment of the present invention can be executed by a certain program / software, which can be provided by the network side. For example, the program / software can be the instant messaging application mentioned in the aforementioned embodiment. The prediction terminal mentioned in the aforementioned embodiment can download the program / software to a local non-volatile storage medium, and when it needs to execute the aforementioned method for processing flow data, the program / software is read into the memory by the CPU, and then the CPU executes the program / software to implement the method for processing flow data provided in the aforementioned embodiment. The execution process can refer to the aforementioned Figure 1a , Figure 1b to Figure 7 Instructions in .

[0342] The method for processing flow data provided in the embodiment of the present invention can be executed by a certain program / software, which can be provided by the network side. For example, the program / software can be the instant messaging application mentioned in the aforementioned embodiment. The training terminal mentioned in the aforementioned embodiment can download the program / software to a local non-volatile storage medium, and when it needs to execute the aforementioned method for processing flow data, the program / software is read into the memory by the CPU, and then the CPU executes the program / software to implement the method for processing flow data provided in the aforementioned embodiment. The execution process can refer to the aforementioned Figure 8 Instructions in .

[0343] The present invention is described with reference to the flowchart and / or block diagram of the method, device (system), and computer program product according to the embodiment of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the process and / or box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable device to produce a machine, so that the instructions executed by the processor of the computer or other programmable device produce a device for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0344] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0345] These computer program instructions may also be loaded onto a computer or other programmable device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0346] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0347] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0348] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0349] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for processing flow data, characterized in that: Applied to a hardware gateway, the method includes: Get the network traffic data to be processed; Acquire traffic configuration information corresponding to the network traffic data; Obtaining a first configuration information table, wherein the first configuration information table includes standard configuration information corresponding to a plurality of first flow data; when there is standard configuration information matching the flow configuration information in the first configuration information table, determining that the network flow data is first flow data, and the first flow data is network flow data that is directly analyzed and processed according to a preset hardware gateway; or, when there is no standard configuration information matching the flow configuration information in the first configuration information table, determining that the network flow data is second flow data, and the second flow data is network flow data that cannot be directly analyzed and processed according to a preset hardware gateway; When the network flow data is the first flow data, the network flow data is processed; or, When the network traffic data is the second traffic data, the network traffic data is sent to the software gateway so that the software gateway processes the network traffic data.

2. The method according to claim 1, characterized in that: Sending the network traffic data to the software gateway includes: Obtaining address information of the software gateway; The network traffic data is tunnel encapsulated based on the address information, and the encapsulated network traffic data is sent to the software gateway.

3. The method according to claim 1 or 2, characterized in that: After obtaining the network traffic data to be processed, the method further includes: Obtaining a first traffic analysis result corresponding to the network traffic data; The first traffic analysis result is sent to a network analysis platform so that the network analysis platform analyzes and processes the first traffic analysis result.

4. A method for processing flow data, characterized in that: Applied to a software gateway, the method comprises: Receive network traffic data sent by a hardware gateway, the network traffic data is second traffic data, the network traffic data is traffic configuration information and a first configuration information table corresponding to the network traffic data obtained by the hardware gateway, when there is no standard configuration information matching the traffic configuration information in the first configuration information table, then determine that the network traffic data is second traffic data, the first configuration information table includes a plurality of standard configuration information corresponding to the first traffic data, the first traffic data is network traffic data directly analyzed and processed according to a preset hardware gateway, and the second traffic data is network traffic data that cannot be directly analyzed and processed according to the preset hardware gateway; Acquire a second configuration information table for analyzing and processing the network flow data, wherein the second configuration information table includes standard configuration information corresponding to the first flow data and standard configuration information corresponding to the second flow data; The network traffic data is processed using the second configuration information table, and the processed network traffic data is forwarded to the physical switch.

5. The method according to claim 4, characterized in that Processing the network traffic data using the second configuration information table includes: Decapsulating the network traffic data to obtain a network traffic message corresponding to the network traffic data; The network traffic message is processed using the second configuration information table to obtain traffic configuration information corresponding to the network traffic data.

6. The method according to claim 5, characterized in that The flow configuration information includes flow size and flow characteristics.

7. The method according to claim 6, characterized in that Processing the network traffic message using the second configuration information table to obtain traffic configuration information corresponding to the network traffic data includes: Using the second configuration information table to perform traffic matching on the network traffic data, and determine traffic characteristics corresponding to the network traffic data; The second configuration information table is used to perform traffic statistics on the network traffic data to determine the traffic size corresponding to the network traffic data.

8. The method according to any one of claims 4 to 7, characterized in that: The method further comprises: Determine whether the network traffic data is elephant traffic data according to the traffic configuration information; When the network traffic data is elephant flow data, the traffic configuration information corresponding to the network traffic data is sent to the network analysis platform.

9. A method for processing flow data, characterized in that: include: Receiving a first traffic analysis result sent by a hardware gateway and a second traffic analysis result sent by a software gateway; Determine the elephant flow analysis results corresponding to the hardware gateway and the software gateway according to the first flow analysis result and the second flow analysis result; Sending the elephant flow analysis result to the network management platform; Acquire a first total flow, where the first total flow is related to a historical network flow of the hardware gateway and a historical network flow of the software gateway; Determine elephant flow data for the hardware gateway based on the first total flow; Obtaining elephant flow configuration information corresponding to the elephant flow data; A first configuration information table is generated according to the elephant flow data and the elephant flow configuration information.

10. The method according to claim 9, characterized in that The method further comprises: Acquire flow configuration information corresponding to each flow data in the first total flow; A second configuration information table is generated according to the first total flow and the flow configuration information corresponding to each flow data.

11. The method according to claim 10, characterized in that After generating a second configuration information table according to the first total flow and the flow configuration information corresponding to each flow data, the method further includes: The second configuration information table is sent to the software gateway through the network management platform.

12. The method according to claim 9, characterized in that After generating a first configuration information table according to the elephant flow data and the elephant flow configuration information, the method further includes: The first configuration information table is sent to the hardware gateway through the network management platform.

13. The method according to claim 9, characterized in that The method further comprises: Acquire a second total flow, where the second total flow is related to the current network flow of the hardware gateway and the current network flow of the software gateway; The first configuration information table is adjusted according to the second total flow.

14. The method according to claim 13, characterized in that Adjusting the first configuration information table according to the second total flow includes: Determine all elephant flow data located on the hardware gateway and the software gateway according to the second total flow; Obtain the traffic configuration information corresponding to each elephant flow data; Determining the storage space required for the flow configuration information; The first configuration information table is adjusted according to the storage space.

15. The method according to claim 14, characterized in that Determining all elephant flow data located on the hardware gateway and the software gateway according to the second total flow includes: Determine elephant flow threshold information according to the second total flow; Based on the elephant flow threshold information, the traffic data on the hardware gateway and the software gateway are screened to obtain all the elephant flow data located on the hardware gateway and the software gateway.

16. The method according to claim 14, characterized in that Adjusting the first configuration information table according to the storage space includes: Determine the flow configuration ratio corresponding to each elephant flow data according to the flow configuration information corresponding to each elephant flow data and the storage space required by the flow configuration information; Sorting the traffic configuration information of all elephant flow data according to the traffic configuration ratio to obtain traffic sorting information; The first configuration information table is adjusted using a greedy algorithm, the traffic sorting information, and a preset storage space of the hardware gateway.

17. The method according to claim 16, characterized in that The method further comprises: Based on the adjusted first configuration information table, the traffic configuration information corresponding to the elephant flow data is stored.

18. The method according to any one of claims 9 to 12, characterized in that: The first traffic analysis result includes a mirror message corresponding to the network traffic data; the method further includes: Performing aggregation processing on the mirrored messages to obtain an aggregation result; Determine whether there is empty flow traffic data based on the aggregation results; If it exists, delete the traffic configuration information of the traffic data.

19. The method according to any one of claims 9 to 12, characterized in that: The method further comprises: Determine trend information and data features corresponding to the elephant flow analysis result based on the elephant flow analysis result; The trend information and data features are used to predict the elephant flow network data to be processed.

20. A method for processing flow data, characterized in that: include: Receive the Elephant Flow analysis results sent by the network analysis platform; Determine elephant flow configuration information according to the elephant flow analysis result; The elephant flow analysis result and the elephant flow configuration information are sent to the hardware gateway, and the elephant flow analysis result and the elephant flow configuration information are used for the hardware gateway to generate a first configuration information table, wherein the first configuration information table includes standard configuration information corresponding to multiple first flow data. When there is standard configuration information in the first configuration information table that matches the flow configuration information corresponding to the network flow data to be processed obtained by the hardware gateway, the network flow data is determined to be the first flow data, and the first flow data is the network flow data that is directly analyzed and processed according to the pre-set hardware gateway; or, when there is no standard configuration information in the first configuration information table that matches the flow configuration information, the network flow data is determined to be the second flow data, and the second flow data is the network flow data that cannot be directly analyzed and processed according to the pre-set hardware gateway.

21. A method for processing flow data, characterized in that: include: Get network traffic data; Classify and identify the network traffic data, and determine first traffic data and second traffic data corresponding to the network traffic data, wherein the first traffic data is network traffic data that is directly analyzed and processed according to a preset hardware gateway, and the second traffic data is network traffic data that cannot be directly analyzed and processed according to the preset hardware gateway; Generate a first configuration information table corresponding to the first flow data, and a second configuration information table corresponding to the first flow data and the second flow data, wherein the first configuration information table includes standard configuration information corresponding to the first flow data, so that the hardware gateway determines that the network flow data is the first flow data when there is standard configuration information matching the flow configuration information corresponding to the network flow data in the first configuration information table, or determines that the network flow data is the second flow data when there is no standard configuration information matching the flow configuration information in the first configuration information table, and the second configuration information table includes standard configuration information corresponding to the first flow data and standard configuration information corresponding to the second flow data; The first configuration information table is sent to a hardware gateway, and the second configuration information table is sent to a software gateway.

22. A flow data processing device, characterized in that: include: A first acquisition module, used to acquire network traffic data to be processed; A first determining module, used to obtain flow configuration information corresponding to the network flow data; Obtaining a first configuration information table, wherein the first configuration information table includes standard configuration information corresponding to a plurality of first flow data; when there is standard configuration information matching the flow configuration information in the first configuration information table, determining that the network flow data is first flow data, and the first flow data is network flow data that is directly analyzed and processed according to a preset hardware gateway; or, when there is no standard configuration information matching the flow configuration information in the first configuration information table, determining that the network flow data is second flow data, and the second flow data is network flow data that cannot be directly analyzed and processed according to a preset hardware gateway; The first processing module is used to process the network traffic data when the network traffic data is the first traffic data; or, when the network traffic data is the second traffic data, send the network traffic data to the software gateway so that the software gateway processes the network traffic data.

23. An electronic device, characterized in that: include: A memory, a processor; wherein the memory is used to store one or more computer instructions, wherein when the one or more computer instructions are executed by the processor, the method for processing flow data as described in any one of claims 1 to 3 is implemented.

24. A computer storage medium, characterized in that The computer storage medium is used to store a computer program, and the computer program enables a computer to implement the method for processing flow data as described in any one of claims 1 to 3 when executed.

25. A flow data processing device, characterized in that: include: A first receiving module is used to receive network traffic data sent by a hardware gateway, wherein the network traffic data is second traffic data, and the network traffic data is traffic configuration information and a first configuration information table corresponding to the network traffic data obtained by the hardware gateway. When there is no standard configuration information matching the traffic configuration information in the first configuration information table, it is determined that the network traffic data is the second traffic data, and the first configuration information table includes a plurality of standard configuration information corresponding to the first traffic data. The first traffic data is network traffic data directly analyzed and processed according to a preset hardware gateway, and the second traffic data is network traffic data that cannot be directly analyzed and processed according to a preset hardware gateway; A second acquisition module, used to acquire a second configuration information table for analyzing and processing the network flow data, wherein the second configuration information table includes a plurality of standard configuration information corresponding to the first flow data and a plurality of standard configuration information corresponding to the second flow data; The second processing module is used to process the network traffic data using the second configuration information table, and forward the processed network traffic data to the physical switch.

26. An electronic device, characterized in that: include: A memory, a processor; wherein the memory is used to store one or more computer instructions, wherein when the one or more computer instructions are executed by the processor, the method for processing flow data as described in any one of claims 4 to 8 is implemented.

27. A computer storage medium, characterized in that The computer storage medium is used to store a computer program, and the computer program enables a computer to implement the method for processing flow data as described in any one of claims 4 to 8 when executed.

28. A flow data processing device, characterized in that: include: A second receiving module, used to receive a first traffic analysis result sent by the hardware gateway and a second traffic analysis result sent by the software gateway; A second determination module, used to determine the elephant flow analysis results corresponding to the hardware gateway and the software gateway according to the first flow analysis result and the second flow analysis result; A first sending module, used for sending the elephant flow analysis result to a network management platform; The device is also used to obtain a first total flow, the first total flow is related to the historical network flow of the hardware gateway and the historical network flow of the software gateway; determine the elephant flow data for the hardware gateway based on the first total flow; obtain the elephant flow configuration information corresponding to the elephant flow data; A first configuration information table is generated according to the elephant flow data and the elephant flow configuration information.

29. An electronic device, characterized in that: include: A memory, a processor; wherein the memory is used to store one or more computer instructions, wherein when the one or more computer instructions are executed by the processor, the method for processing flow data as described in any one of claims 9 to 19 is implemented.

30. A computer storage medium, characterized in that The computer storage medium is used to store a computer program, and the computer program enables a computer to implement the method for processing flow data described in any one of claims 9 to 19 when executed.

31. A flow data processing device, characterized in that: include: The third receiving module is used to receive the elephant flow analysis results sent by the network analysis platform; A third determination module is used to determine the elephant flow configuration information according to the elephant flow analysis result; The second sending module is used to send the elephant flow analysis results and the elephant flow configuration information to the hardware gateway. The elephant flow analysis results and the elephant flow configuration information are used for the hardware gateway to generate a first configuration information table. The first configuration information table includes standard configuration information corresponding to multiple first flow data. When there is standard configuration information in the first configuration information table that matches the flow configuration information corresponding to the network flow data to be processed obtained by the hardware gateway, it is determined that the network flow data is the first flow data, and the first flow data is the network flow data that is directly analyzed and processed according to the pre-set hardware gateway; or, when there is no standard configuration information in the first configuration information table that matches the flow configuration information, it is determined that the network flow data is the second flow data, and the second flow data is the network flow data that cannot be directly analyzed and processed according to the pre-set hardware gateway.

32. An electronic device, characterized in that: include: A memory, a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the method for processing traffic data as described in claim 20.

33. A computer storage medium, characterized in that The computer storage medium is used to store a computer program, and the computer program enables a computer to implement the method for processing flow data according to claim 20 when executed.

34. A flow data processing device, characterized in that: include: A third acquisition module is used to acquire network flow data, the first flow data is the network flow data directly analyzed and processed according to the preset hardware gateway, and the second flow data is the network flow data that cannot be directly analyzed and processed according to the preset hardware gateway; An identification module, used to classify and identify the network flow data, and determine first flow data and second flow data corresponding to the network flow data; A generating module, configured to generate a first configuration information table corresponding to the first flow data, and a second configuration information table corresponding to the first flow data and the second flow data, wherein the first configuration information table includes standard configuration information corresponding to the first flow data, so that the hardware gateway determines that the network flow data is the first flow data when there is standard configuration information matching the flow configuration information corresponding to the network flow data in the first configuration information table, or determines that the network flow data is the second flow data when there is no standard configuration information matching the flow configuration information in the first configuration information table, wherein the second configuration information table includes standard configuration information corresponding to the first flow data and standard configuration information corresponding to the second flow data; The third sending module is used to send the first configuration information table to the hardware gateway and send the second configuration information table to the software gateway.

35. An electronic device, characterized in that: include: A memory, a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the method for processing traffic data as described in claim 21.

36. A computer storage medium, characterized in that The computer storage medium is used to store a computer program, and the computer program enables a computer to implement the method for processing flow data according to claim 21 when executed.

Citation Information

Patent Citations

  • Process and apparatus for identifying and classifying video-data

    CA3076538A1

  • Method and system for dynamically distributing network traffic

    CN101827017A

  • Establishment, identification control method and device for network flow characteristic identification rule

    CN102045363A

  • Network management method and system supporting elephant flow, interchanger and network

    CN103716208A

  • Dynamic flow dispatch method and system based on software definition network

    CN104158753A