CN113347100B - Data stream transmission method and device, computer equipment and storage medium - Google Patents

Data stream transmission method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113347100B
CN113347100B CN202110605580.7A CN202110605580A CN113347100B CN 113347100 B CN113347100 B CN 113347100B CN 202110605580 A CN202110605580 A CN 202110605580A CN 113347100 B CN113347100 B CN 113347100B
Authority
CN
China
Prior art keywords
flow
flow table
data
matching
matched
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110605580.7A
Other languages
Chinese (zh)
Other versions
CN113347100A (en
Inventor
张宏波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202110605580.7A priority Critical patent/CN113347100B/en
Publication of CN113347100A publication Critical patent/CN113347100A/en
Priority to PCT/CN2022/072185 priority patent/WO2022252634A1/en
Application granted granted Critical
Publication of CN113347100B publication Critical patent/CN113347100B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2425Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
    • H04L47/2433Allocation of priorities to traffic types

Abstract

The application relates to a network protocol technology and provides a data stream transmission method, a data stream transmission device, computer equipment and a storage medium. The data stream transmission method comprises the steps of obtaining a data stream to be forwarded; matching the data flow with a plurality of preset flow tables to determine the flow table matched with the data flow, wherein the plurality of flow tables correspond to different priorities; determining a target flow table in the flow tables matched with the data flow according to the priority of the flow tables matched with the data flow; and forwarding the data flow according to the target flow table. By the data stream transmission method, the flow table to be executed by the data stream to be forwarded is determined based on the priority, and the condition of flow table conflict caused by matching of one data stream to be forwarded and a plurality of flow tables in the network is processed, so that the conflicting flow tables can be configured, and the configuration of the network is facilitated. The present application also relates to blockchain techniques, where the target flow table may be stored in a blockchain.

Description

Data stream transmission method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of network technologies, and in particular, to a data stream transmission method and apparatus, a computer device, and a storage medium.
Background
The flow table (flow table) is a basis for forwarding data flow in the OpenFlow protocol, and functions of the flow table are similar to a mac address forwarding table and an IP address routing table of a switch.
In practical applications, when data stream is transmitted, if data stream forwarding is directly performed according to a matched flow table, a situation that one data stream to be forwarded is matched with a plurality of flow tables may occur, which may cause flow table collision. For example, in a virtual switch openswitch developed based on the OpenFlow protocol, a condition (match) field of one flow table is not allowed to be matched with a condition field of another flow table, that is, one data flow is not allowed to simultaneously satisfy matching requirements of the condition fields of multiple flow tables, otherwise, the same data flow may be caused to execute actions (actions) in action fields of multiple flow tables for forwarding, which may result in data flow splitting, thereby affecting upper layer applications.
Disclosure of Invention
The application provides a data stream transmission method, a data stream transmission device, computer equipment and a storage medium, which can prevent the situation that one data stream to be forwarded is matched with a plurality of stream tables in a network to cause stream table conflict, so that a plurality of stream tables matched with the data stream to be forwarded can be configured in one network, and network configuration is facilitated.
In a first aspect, the present application provides a data stream transmission method, where the method includes:
acquiring a data stream to be forwarded;
matching the data flow with a plurality of preset flow tables to determine the flow table matched with the data flow, wherein the plurality of flow tables correspond to different priorities;
determining a target flow table in the flow tables matched with the data flow according to the priority of the flow tables matched with the data flow;
and forwarding the data flow according to the target flow table.
In a second aspect, the present application provides a data stream transmission apparatus, comprising:
the data flow acquisition module is used for acquiring the data flow to be forwarded;
the matching module is used for matching the data flow with a plurality of preset flow tables so as to determine the flow table matched with the data flow, and the flow tables correspond to different priorities;
a flow table determining module, configured to determine a target flow table in a flow table matched with the data flow according to a priority of the flow table matched with the data flow;
and the forwarding module is used for forwarding the data stream according to the target stream table.
In a fourth aspect, the present application provides a computer-readable storage medium storing a computer program, which, if executed by a processor, implements the data streaming method described above.
The application discloses a data stream transmission method, a data stream transmission device, computer equipment and a storage medium, wherein a data stream to be forwarded is obtained; matching the data flow with a plurality of preset flow tables to determine the flow table matched with the data flow, wherein the plurality of flow tables correspond to different priorities; determining a target flow table in the flow tables matched with the data flow according to the priority of the flow tables matched with the data flow; and forwarding the data flow according to the target flow table. The method and the device realize that the flow table to be executed by the data flow to be forwarded is determined based on the priority, and the condition of flow table conflict caused by matching of one data flow to be forwarded and a plurality of flow tables in the network is processed, so that the conflicting flow tables can be configured, and the configuration of the network is facilitated.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flowchart of a data stream transmission method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an example of an application based on the method of FIG. 1;
fig. 3 is a schematic block diagram of a data stream transmission apparatus according to an embodiment of the present application;
fig. 4 is a block diagram illustrating a structure of a computer device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation. In addition, although the division of the functional blocks is made in the device diagram, in some cases, it may be divided in blocks different from those in the device diagram.
The embodiment of the application provides a data stream transmission method, a data stream transmission device, computer equipment and a computer readable storage medium. The method and the device are used for preventing the situation that when data stream transmission is carried out in a network, one data stream to be forwarded is matched with a plurality of stream tables to cause stream table conflict, so that the plurality of stream tables matched with the data stream to be forwarded can be configured in one network, and the configuration of the network is facilitated. Exemplarily, in the virtual switch Openviswitch, for a data flow with a port, a corresponding default flow table already exists, and if a corresponding flow table with a port is reconfigured, the data flow is matched with both the corresponding default flow table and the flow table with a port, and when the data flow is forwarded, the data flow simultaneously executes actions in action fields of the corresponding default flow table and the flow table with a port, so that data flow splitting is caused, and an upper application is affected.
The data stream transmission method can be applied to a virtual switch Openviswitch, and can also be applied to other networks implemented based on an OpenFlow protocol, such as ONetSwitch.
However, for ease of understanding, the following embodiments will be described in detail with respect to a data streaming method applied to Openviswitch.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments and features of the embodiments described below can be combined with each other without conflict.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic flow chart of a data stream transmission method according to an embodiment of the present application, and fig. 2 is a schematic diagram of an application example based on the method of fig. 1.
As shown in fig. 1, the data streaming method may include the following steps S110 to S140.
And step S110, acquiring the data stream to be forwarded.
Step S120, the data flow is matched with a plurality of preset flow tables to determine the flow table matched with the data flow, and the plurality of flow tables correspond to different priorities.
For example, if a condition (match) field of a flow table has corresponding data in a header of the data flow, the flow table is determined to be a flow table matching the data flow.
Illustratively, the preset flow tables include a ported flow table, a default flow table, and a normal flow table, the normal flow table including flow tables other than the ported flow table and the default flow table, wherein the ported flow table has a higher priority than the normal flow table, and/or the normal flow table has a higher priority than the default flow table.
The priority corresponding to the flow tables is determined by the flow table parameters of a preset priority identification flow table, and the priority identification flow table is not matched with any data flow.
Illustratively, the priority identification flow table is added when the datapath is initialized. For example, when initializing datapath, the priority identification flow table of the ported flow table and the priority identification flow table of the default flow table are added in sequence:
ovs-dpctl add-flow dp-name recirc_id(0x88),in_port(0),eth(src=%s),eth_type(0x0800),ipv4(src=%s,proto=17),udp(src=51000)0
ovs-dpctl add-flow dp-name in_port(0),eth(src=88:88:88:88:88:88,dst=88:88:88:88:88:88),eth_type(0x0800),ipv4(src=88.88.88.88)0
because the priority identification flow table is not matched with any data flow, the priority identification flow table cannot be used or deleted in the subsequent network use, and therefore, the flow table parameters of the priority flow table are fixed.
Illustratively, the priority is determined by a flow table mask index (flow _ mask _ index) of the priority identification flow table. When the datapath is initialized, after the priority identification flow table of the port-equipped flow table and the priority identification flow table of the default flow table are sequentially added, the mask index of the flow table of the port-equipped flow table will always be 0, and the mask index of the flow table of the default flow table will always be 1. In this embodiment, a flow table mask index equal to 0 is used as the priority identifier of the ported flow table, a flow table mask index equal to 1 is used as the priority identifier of the default flow table, and flow table mask indexes other than 0 and 1 are used as the priority identifiers of the normal flow table.
In other embodiments, the priority may also be determined by another flow table parameter of the priority identification flow table, for example, when flow tables with ports exist in multiple priority flow tables, it may also be considered that the priority identification is determined by recirc _ id of the priority identification flow table.
For example, step S120 specifically includes step S121 and step S122:
step S121, matching the data flow with a flow table in a corresponding preset suboptimum priority interval in the plurality of flow tables, and determining a first matching flow table, wherein the first matching flow table is the flow table with the highest priority in the flow tables in the suboptimum priority interval matched with the data flow; wherein the secondary priority interval includes all the priorities except the highest priority.
Illustratively, the step S121 specifically includes steps S121a-S121 b.
Step S121a, matching the data flow with the normal flow table, and determining that the normal flow table matched with the data flow is the first matched flow table.
In the flow tables in the sub-priority interval of this embodiment, the priority of the normal flow table is higher than the priority of the default flow table, and the normal flow table matched with the data flow is the flow table with the highest priority in the flow tables in the sub-priority interval matched with the data flow, so that the normal flow table matched with the data flow is the first matched flow table.
Step S121b, if there is no normal flow table matching the data flow, matching the data flow with the default flow table, and determining that the default flow table matching the data flow is the first matching flow table.
In this embodiment, if there is no common flow table matching the data flow, the default flow table matching the data flow is the flow table with the highest priority among the flow tables in the sub-priority interval matching the data flow, and therefore, the default flow table matching the data flow is the first matching flow table.
Step S122, the data flow is matched with the flow table corresponding to the highest priority in the flow tables, and the flow table of the highest priority matched with the data flow is determined to be a second matching flow table.
For example, if the first matching flow table exists, the data flow is matched with the ported flow table, and the ported flow table matched with the data flow is determined to be a second matching flow table.
In this embodiment, the default flow table is the flow table with the largest matching range, and if the first matching flow table does not exist, it indicates that the data flow does not match the default flow table, and the data flow does not necessarily match the flow table with the port, so that it can be directly determined that the second matching flow table does not exist.
Step S130, according to the priority of the flow table matched with the data flow, determining a target flow table in the flow table matched with the data flow.
Exemplarily, if the second matching flow table exists, the second matching flow table is determined to be a target flow table; and if the second matching flow table does not exist and the first matching flow table exists, determining the first matching flow table as a target flow table.
If the second matching flow table exists, the second matching flow table is the flow table with the highest priority, so that the second matching flow table can be directly determined as the target flow table; if the second matching flow table does not exist, the first matching flow table is the flow table matched with the data flow and has the highest priority, and therefore the first matching flow table is determined to be the target flow table.
For example, in this embodiment, the second matching flow table is a ported flow table that matches the data flow, and if there is a ported flow table that matches the data flow, the ported flow table that matches the data flow may be directly used as the target flow table.
In some embodiments, the priority identification and the target flow table may be stored in a blockchain node. The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm. A block chain (Blockchain), which is essentially a decentralized database, is a string of data blocks generated by correlation using a cryptographic separation method, and each data block contains information of a batch of network transactions, which is used for verifying the validity (anti-counterfeiting) of the information and generating a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
And step S140, forwarding the data flow according to the target flow table.
Illustratively, the data flow is forwarded according to an action field of the target flow table.
Illustratively, the data stream transmission method further includes step S150.
And step S150, if the flow table matched with the data flow does not exist, executing drop (drop) action on the data flow.
For example, in this embodiment, after step S121 is executed, if the first matching flow table does not exist, it indicates that the data flow does not match the default flow table, and the default flow table is the flow table with the largest matching range, the data flow must not match the flow table with a port, and therefore it may be determined that the flow table matching the data flow does not exist, and a discarding action may be performed on the data flow.
As shown in fig. 3, the data stream transmission apparatus includes: a data flow obtaining module 110, a matching module 120, a flow table determining module 130, and a forwarding module 140.
A data stream obtaining module 110, configured to obtain a data stream to be forwarded.
A matching module 120, configured to match the data flow with a plurality of preset flow tables to determine a flow table matched with the data flow, where the plurality of flow tables correspond to different priorities.
For example, if the condition field of the flow table has corresponding data in the header of the data flow, the flow table is determined to be a flow table matching the data flow.
Illustratively, the preset plurality of flow tables include a ported flow table, a default flow table, and a normal flow table, the normal flow table includes flow tables other than the ported flow table and the default flow table, wherein the ported flow table has a higher priority than the normal flow table, and/or the normal flow table has a higher priority than the default flow table.
Illustratively, the priority corresponding to the plurality of types of flow tables is determined by preset flow table parameters of a priority identification flow table, and the priority identification flow table is not matched with any data flow.
Illustratively, the matching module 120 includes a first matching module and a second matching module.
The first matching module is used for matching the data flow with the flow table in the corresponding sub-priority interval in the plurality of flow tables to determine a first matching flow table, wherein the first matching flow table is the flow table with the highest priority in the flow tables in the sub-priority interval matched with the data flow; wherein the secondary priority interval includes all the priorities except the highest priority.
Illustratively, the first matching module specifically includes a normal flow table matching module and a default flow table matching module.
And the common flow table matching module is used for matching the data flow with the common flow table and determining that the common flow table matched with the data flow is the first matching flow table.
And the default flow table matching module is used for matching the data flow with the default flow table if no common flow table matched with the data flow exists, and determining the default flow table matched with the data flow as the first matched flow table.
And the second matching module is used for matching the data flow with the flow table corresponding to the highest priority in the flow tables and determining the flow table with the highest priority matched with the data flow as a second matching flow table. For example, if the first matching flow table exists, the data flow is matched with the ported flow table, and the ported flow table matched with the data flow is determined to be a second matching flow table.
A flow table determining module 130, configured to determine a target flow table in the flow table matching the data flow according to the priority of the flow table matching the data flow.
For example, the flow table determining module 130 is specifically configured to determine that the second matching flow table is the target flow table if the second matching flow table exists; and if the second matching flow table does not exist and the first matching flow table exists, determining the first matching flow table as a target flow table.
A forwarding module 140, configured to forward the data flow according to the target flow table.
Referring to fig. 4, fig. 4 is a schematic diagram of a computer device according to an embodiment of the present disclosure. The computer device may be a server or a terminal.
As shown in fig. 4, the computer device includes a processor, a memory, and a network interface connected by a system bus, wherein the memory may include a nonvolatile storage medium and an internal memory.
The non-volatile storage medium may store an operating system and a computer program. The computer program includes program instructions that, when executed, cause a processor to perform any of the data streaming methods.
The processor is used to provide computing and control capabilities to support the operation of the entire computer device.
The internal memory provides an environment for the execution of a computer program on a non-volatile storage medium, which when executed by a processor, causes the processor to perform any of a variety of data streaming methods.
The network interface is used for network communication, such as sending assigned tasks and the like. Those skilled in the art will appreciate that the configuration of the computer apparatus is merely a block diagram of a portion of the configuration associated with aspects of the present application and is not intended to limit the computer apparatus to which aspects of the present application may be applied, and that a particular computer apparatus may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
It should be understood that the Processor may be a Central Processing Unit (CPU), and the Processor may be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein, in some embodiments, the processor is configured to execute a computer program stored in the memory to implement the steps of: acquiring a data stream to be forwarded; matching the data flow with a plurality of preset flow tables to determine the flow table matched with the data flow, wherein the plurality of flow tables correspond to different priorities; determining a target flow table in the flow tables matched with the data flow according to the priority of the flow tables matched with the data flow; and forwarding the data flow according to the target flow table.
Illustratively, the processor is configured to implement that when the several kinds of flow tables correspond to different priorities, the following are implemented: the preset flow tables comprise a ported flow table, a default flow table and a normal flow table except the ported flow table and the default flow table, wherein the priority of the ported flow table is higher than that of the normal flow table, and/or the priority of the normal flow table is higher than that of the default flow table.
Illustratively, the processor, when determining the priority of the flow table, implements: the preset flow tables comprise a ported flow table, a default flow table and a normal flow table, wherein the normal flow table comprises flow tables except the ported flow table and the default flow table, the priority of the ported flow table is higher than that of the normal flow table, and/or the priority of the normal flow table is higher than that of the default flow table.
Illustratively, the processor is configured to implement, when matching the data flow with a preset number of flow tables to determine a flow table matching the data flow, implementing: matching the data flow with a flow table in a corresponding secondary priority interval in the plurality of flow tables to determine a first matching flow table, wherein the first matching flow table is the flow table with the highest priority in the flow tables in the secondary priority interval matched with the data flow; wherein the secondary priority interval comprises all the priorities except the highest priority; and matching the data flow with the flow table corresponding to the highest priority in the plurality of flow tables, and determining the flow table of the highest priority matched with the data flow as a second matched flow table.
Illustratively, when the processor is configured to match the data flow with a preset number of flow tables to determine a flow table matching the data flow, the processor further implements: and if the condition fields of the flow table have corresponding data in the header of the data flow, determining the flow table as the flow table matched with the data flow.
Illustratively, the processor is configured to, when determining a target flow table in the flow tables matching the data flow according to the priority of the flow table matching the data flow, implement: if the second matching flow table exists, determining the second matching flow table as a target flow table; and if the second matching flow table does not exist and the first matching flow table exists, determining the first matching flow table as a target flow table.
Illustratively, the processor is configured to implement the matching between the data flow and the flow table in the corresponding sub-priority interval in the plurality of types of flow tables, and when determining a first matching flow table, implement: matching the data flow with the common flow table, and determining the common flow table matched with the data flow as the first matched flow table; and if the common flow table matched with the data flow does not exist, matching the data flow with the default flow table, and determining the default flow table matched with the data flow as the first matched flow table.
Illustratively, the processor is configured to implement the matching of the data flow with the flow table corresponding to the highest priority among the plurality of flow tables, and when it is determined that the flow table of the highest priority matching the data flow is the second matching flow table, implement: and if the first matching flow table exists, matching the data flow with the port flow table, and determining the port flow table matched with the data flow as a second matching flow table.
Illustratively, when the processor is configured to implement the priorities corresponding to the several kinds of flow tables, the following are implemented: the priority corresponding to the flow tables is determined by the flow table parameters of a preset priority identification flow table, and the priority identification flow table is not matched with any data flow.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments of the present application, such as:
a computer-readable storage medium, which stores a computer program, where the computer program includes program instructions, and the processor executes the program instructions to implement any one of the data stream transmission methods provided in the embodiments of the present application.
The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, for example, a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the computer device.
While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (9)

1. A method for data streaming, the method comprising:
acquiring a data stream to be forwarded;
matching the data flow with a plurality of preset flow tables to determine the flow table matched with the data flow, wherein the plurality of flow tables correspond to different priorities;
the matching the data flow with a plurality of preset flow tables to determine the flow table matched with the data flow comprises:
matching the data flow with a flow table in a corresponding preset sub-priority interval in the plurality of flow tables, and determining a first matching flow table, wherein the first matching flow table is the flow table with the highest priority in the flow tables in the sub-priority interval matched with the data flow; wherein the secondary priority interval comprises all the priorities except the highest priority;
matching the data flow with a flow table corresponding to the highest priority in the plurality of flow tables, and determining the flow table with the highest priority matched with the data flow as a second matched flow table;
determining a target flow table in the flow tables matched with the data flow according to the priority of the flow tables matched with the data flow;
and forwarding the data flow according to the target flow table.
2. The data stream transmission method according to claim 1, wherein the determining a target flow table among the flow tables matching the data stream according to the priority of the flow tables matching the data stream includes:
if the second matching flow table exists, determining the second matching flow table as a target flow table;
and if the second matching flow table does not exist and the first matching flow table exists, determining the first matching flow table as a target flow table.
3. The data stream transmission method according to any one of claims 1 to 2, wherein the preset plurality of types of flow tables include a ported flow table, a default flow table, and a normal flow table, and the normal flow table includes flow tables other than the ported flow table and the default flow table, and wherein the ported flow table has a higher priority than the normal flow table and/or the normal flow table has a higher priority than the default flow table.
4. The data streaming method according to claim 3, wherein:
the matching the data flow with the flow table corresponding to the preset suboptimum interval in the plurality of types of flow tables to determine a first matching flow table comprises the following steps:
matching the data flow with the common flow table, and determining the common flow table matched with the data flow as the first matched flow table;
if the common flow table matched with the data flow does not exist, matching the data flow with the default flow table, and determining the default flow table matched with the data flow as the first matched flow table;
the matching the data flow with the flow table corresponding to the highest priority among the plurality of types of flow tables, and determining the flow table of the highest priority matched with the data flow as a second matched flow table, includes:
and if the first matching flow table exists, matching the data flow with the port flow table, and determining the port flow table matched with the data flow as a second matching flow table.
5. The data stream transmission method according to any one of claims 1-2, wherein the matching the data stream with a preset number of kinds of stream tables to determine the stream table matching the data stream comprises:
and if the condition fields of the flow tables have corresponding data in the headers of the data flows, determining the flow tables as the flow tables matched with the data flows.
6. The data streaming method according to any of claims 1-2, characterized by:
the priority corresponding to the flow tables is determined by the flow table parameters of a preset priority identification flow table, and the priority identification flow table is not matched with any data flow.
7. A data stream transmission apparatus, characterized in that the apparatus comprises:
the data flow acquisition module is used for acquiring the data flow to be forwarded;
the matching module is used for matching the data flow with a plurality of preset flow tables so as to determine the flow table matched with the data flow, wherein the flow tables correspond to different priorities;
the matching the data flow with a plurality of preset flow tables to determine the flow table matched with the data flow comprises:
matching the data flow with a flow table in a corresponding preset sub-priority interval in the plurality of flow tables, and determining a first matching flow table, wherein the first matching flow table is the flow table with the highest priority in the flow tables in the sub-priority interval matched with the data flow; wherein the secondary priority interval comprises all the priorities except the highest priority;
matching the data flow with a flow table corresponding to the highest priority in the plurality of flow tables, and determining the flow table of the highest priority matched with the data flow as a second matched flow table;
a flow table determining module, configured to determine a target flow table in a flow table matched with the data flow according to a priority of the flow table matched with the data flow;
and the forwarding module is used for forwarding the data flow according to the target flow table.
8. A computer device, wherein the computer device comprises a memory and a processor;
the memory for storing a computer program;
the processor for executing the computer program and for implementing the data streaming method according to any of claims 1-6 when executing the computer program.
9. A computer-readable storage medium, in which a computer program is stored which, if executed by a processor, carries out the data streaming method according to any one of claims 1-6.
CN202110605580.7A 2021-05-31 2021-05-31 Data stream transmission method and device, computer equipment and storage medium Active CN113347100B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110605580.7A CN113347100B (en) 2021-05-31 2021-05-31 Data stream transmission method and device, computer equipment and storage medium
PCT/CN2022/072185 WO2022252634A1 (en) 2021-05-31 2022-01-14 Data flow transmission method and apparatus, computer device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110605580.7A CN113347100B (en) 2021-05-31 2021-05-31 Data stream transmission method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113347100A CN113347100A (en) 2021-09-03
CN113347100B true CN113347100B (en) 2022-06-17

Family

ID=77473611

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110605580.7A Active CN113347100B (en) 2021-05-31 2021-05-31 Data stream transmission method and device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN113347100B (en)
WO (1) WO2022252634A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113347100B (en) * 2021-05-31 2022-06-17 平安科技(深圳)有限公司 Data stream transmission method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105227495A (en) * 2015-10-29 2016-01-06 北京邮电大学 For forwarding rule configuration method and the device of software defined network
CN105471756A (en) * 2015-11-17 2016-04-06 浪潮(北京)电子信息产业有限公司 Data packet processing method and data packet processing device
CN108696434A (en) * 2017-04-11 2018-10-23 华为技术有限公司 A kind of method, apparatus and system of forwarding data packets
CN109450797A (en) * 2018-11-15 2019-03-08 新华三云计算技术有限公司 A kind of message forwarding method, device and computer equipment
CN111953609A (en) * 2020-08-07 2020-11-17 平安科技(深圳)有限公司 Data packet processing method based on OVS and related equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105099920A (en) * 2014-04-30 2015-11-25 杭州华三通信技术有限公司 Method and device for setting SDN flow entry
WO2017030531A1 (en) * 2015-08-14 2017-02-23 Hewlett Packard Enterprise Development Lp Implementing forwarding behavior based on communication activity between a controller and a network device
CN108293019B (en) * 2016-03-09 2020-06-02 华为技术有限公司 Flow table processing method and device
US10439932B2 (en) * 2016-10-05 2019-10-08 Avago Technologies International Sales Pte. Limited System and method for flow rule management in software-defined networks
CN111131029B (en) * 2019-12-03 2022-08-19 长沙理工大学 High-energy-efficiency OpenFlow flow table searching method supporting rule dependence
CN112511442B (en) * 2020-12-15 2022-05-20 东南大学 Flow table storage and management method for software-defined distributed underwater acoustic sensor network
CN113347100B (en) * 2021-05-31 2022-06-17 平安科技(深圳)有限公司 Data stream transmission method and device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105227495A (en) * 2015-10-29 2016-01-06 北京邮电大学 For forwarding rule configuration method and the device of software defined network
CN105471756A (en) * 2015-11-17 2016-04-06 浪潮(北京)电子信息产业有限公司 Data packet processing method and data packet processing device
CN108696434A (en) * 2017-04-11 2018-10-23 华为技术有限公司 A kind of method, apparatus and system of forwarding data packets
CN109450797A (en) * 2018-11-15 2019-03-08 新华三云计算技术有限公司 A kind of message forwarding method, device and computer equipment
CN111953609A (en) * 2020-08-07 2020-11-17 平安科技(深圳)有限公司 Data packet processing method based on OVS and related equipment

Also Published As

Publication number Publication date
CN113347100A (en) 2021-09-03
WO2022252634A1 (en) 2022-12-08

Similar Documents

Publication Publication Date Title
US10193755B2 (en) Policy conflict resolution method and apparatus
EP2991304B1 (en) Conflict detection and solving method and device
US9397901B2 (en) Methods, systems, and computer readable media for classifying application traffic received at a network traffic emulation device that emulates multiple application servers
CN106878194B (en) Message processing method and device
US9614789B2 (en) Supporting multiple virtual switches on a single host
CN104579695A (en) Data forwarding device and method
CN104468401A (en) Message processing method and device
US10498643B2 (en) Method for constructing multipath forwarding rule, apparatus, and system
CN104580011A (en) Data forwarding device and method
JP2017501639A (en) Packet processing method and device
CN105743687B (en) Method and device for judging node fault
CN111614580A (en) Data forwarding method, device and equipment
CN115514586B (en) Access control policy configuration method and electronic equipment
CN113347100B (en) Data stream transmission method and device, computer equipment and storage medium
EP3534577B1 (en) Forwarding multicast packets through an extended bridge
US20200028779A1 (en) Packet processing method and apparatus
CN114338510B (en) Data forwarding method and system for controlling and forwarding separation
US9137158B2 (en) Communication apparatus and communication method
CN111897663A (en) Interface calling method and device, computer equipment and storage medium
CN115412512B (en) IPv 6-based multi-cloud cross-network intercommunication method and device
EP3264716B1 (en) State transition compression mechanism to efficiently compress dfa based regular expression signatures
CN113556414B (en) Method, gateway device and storage medium for inter-network communication
CN114978676A (en) Data packet encryption and decryption method and system based on cooperation of FPGA and eBPF
US9912581B2 (en) Flow inheritance
US9819571B2 (en) Control apparatus and method for supplying switch with entry

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40055457

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant