SDN (Software Defined Network) switch supporting multi-protocol analysis and configuration method

By implementing multi-protocol resolution capabilities in SDN switches, dynamically configure and process network protocols, the problem of insufficient protocol resolution capabilities of traditional OpenFlow switches is solved, the flexibility and scalability of protocol support is improved, the configuration process is simplified and the configuration process is reduced. Cost, adapting to complex network environments, has promoted the development of network technology.

CN119030942AInactive Publication Date: 2024-11-26HENAN SONGSHAN LAB IND RES INST CO LTD LUOYANG BRANCH
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411468393.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-21
Publication Date
2024-11-26
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional OpenFlow switches have limited capabilities in protocol resolution, making it difficult to expand new network protocols, limiting the experiment and deployment of new network applications, and existing solutions have insufficient flexibility, scalability and development difficulty in protocol support. .

Method used

By providing multi-protocol resolution capabilities in SDN switches, the controller allows the controller to send configuration messages to dynamically add, modify or delete protocol resolution tables, supports encapsulation and de-encapsulation of custom protocols, and uses extended OpenFlow protocol and NetPDL fields to achieve flexible configuration of protocols. and handle.

Benefits of technology

It significantly improves the flexibility and scalability of protocol support, simplifies the protocol configuration process, reduces operational difficulty and cost, adapts to complex and changeable network environments, and promotes the innovation and development of network technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119030942A_ABST
    Figure CN119030942A_ABST
Patent Text Reader

Abstract

The invention relates to the field of software defined networks, in particular to an SDN (Software Defined Network) switch supporting multi-protocol analysis and a configuration method, and the SDN switch configuration method supporting multi-protocol analysis comprises the following steps: a control plane issues a protocol analysis table configuration message, and configures a data packet analysis module; a controller command is expanded, and dynamic updating of the protocol analysis table is achieved; the data packet analysis module analyzes the data packet, encapsulates the data packet into a Packet structural body, and forwards the Packet structural body to the matching action module; the matching action module is provided with a multi-stage flow table, and dynamically adds instructions for packaging, modifying and de-packaging a new protocol by expanding a Flow Mod message; and the successfully matched data packet executes a corresponding action and then is forwarded to a sending device or uploaded to a control plane. The SDN switch supporting multi-protocol analysis comprises a data packet analysis module, a matching action module and a control plane. According to the method, the flexibility and expandability of protocol support are improved, the flexibility of equipment configuration is enhanced, and the method adapts to a complex and changeable network environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of software defined networks, and in particular to an SDN switch supporting multi-protocol parsing and a configuration method thereof. Background Art

[0002] Software Defined Networking (SDN) is an innovative architecture in the network field in recent years. By separating the control plane from the data plane, the control logic of network devices can be concentrated in the controller, thereby achieving more flexible and efficient network management. In the SDN architecture, the switch is responsible for performing data packet forwarding operations on the data plane, while the controller is responsible for network management and policy formulation.

[0003] Currently, SDN switches mostly use the OpenFlow protocol to communicate with controllers. The OpenFlow protocol defines a series of standard flow tables and actions for matching and processing data packets. However, with the diversification of network applications and protocols, traditional OpenFlow switches are limited in their ability to parse protocols and usually only support fixed protocol stacks. This makes it difficult for users to extend new network protocols without modifying the underlying code of the switch, limiting the experimentation and deployment of new network applications. In addition, existing solutions usually rely on third-party parsers or specific hardware platforms, such as the NetPDL data flow parser and the NetFPGA hardware platform, but these solutions have obvious deficiencies in the flexibility, scalability, and development difficulty of protocol support. Summary of the invention

[0004] In order to overcome the obvious deficiencies in the flexibility, scalability and development difficulty of the existing SDN switches using OpenFlow in protocol support, the present invention provides an SDN switch supporting multi-protocol parsing and a configuration method. The user can directly send configuration messages through the controller to dynamically add, modify or delete protocols, which greatly simplifies the protocol configuration process. It also enhances the flexibility of device configuration by supporting mutual encapsulation of custom protocols, and adapts to complex and changeable network environments.

[0005] According to the design scheme provided by the present invention, on the one hand, a SDN switch configuration method supporting multi-protocol parsing is provided, which is applicable to the communication between the controller and the switch of the software defined network, including:

[0006] A protocol parsing table configuration message is sent down through the control plane, and a data packet parsing module having multiple protocol parsing tables is configured in the data plane, wherein the protocol parsing table is used to parse a specific protocol header;

[0007] The controller command of the extended control plane is issued to dynamically add, modify or delete the controller message of the protocol in the protocol parsing table. The data packet parsing module responds to the controller message, updates the protocol parsing process in the protocol parsing table, and defines the jump condition to implement the parsing of the protocol chain based on the protocol parsing process, so as to implement the addition, modification or deletion of the custom protocol in the protocol parsing table;

[0008] Use the protocol parsing table in the packet parsing module to parse the data packets entering from the inbound port, extract the protocol header information and encapsulate it together with the original data packet into the Packet structure, and forward it to the matching action module;

[0009] A multi-level flow table is set in the matching action module. The flow table includes matching domains and instructions. Each instruction includes multiple actions.

[0010] By extending the Flow Mod message of the control plane, instructions for encapsulating, modifying and decapsulating new protocols are dynamically added in the matching action module, supporting protocol encapsulation, decapsulation and field modification to achieve data packet processing and support for custom protocols;

[0011] The matching action module matches the fields of the data packet through the multi-level flow table;

[0012] The successfully matched data packets execute the corresponding actions in the instruction set configured by the control plane through the flow table;

[0013] After completing all actions, the data packet is sent out through the egress port or uploaded to the control plane.

[0014] As the SDN switch configuration method supporting multi-protocol resolution of the present invention, further, the protocol resolution table configuration message adopts the OpenFlow protocol format and is sent through the Experimenter message extended header format to support the extension and identification of custom protocols.

[0015] As an SDN switch configuration method supporting multi-protocol parsing of the present invention, further, the extended controller command is specifically an OpenFlow message named proto_parse_ext, which includes an operation instruction and a NetPDL field. The operation instruction is used to instruct to add, modify or delete a protocol parsing table, and the NetPDL field defines the parsing rules and field format of a specific protocol.

[0016] As the SDN switch configuration method supporting multi-protocol parsing of the present invention, further, the Packet structure stores the offset and length information of each layer protocol header in the form of {Offset, Length} tuples.

[0017] As the SDN switch configuration method supporting multi-protocol parsing of the present invention, further, the matching domain in the multi-level flow table uses OXM_TLV format to represent different matching fields, and a complete matching domain is formed by cascading multiple TLVs.

[0018] As an SDN switch configuration method supporting multi-protocol parsing of the present invention, further, three message types of Eca_Action, Deca_Action and Mod_Action are defined in the Flow Mod message, the Eca_Action message includes a protocol encapsulation instruction for encapsulating a new protocol layer in the outer layer of the data packet; the Deca_Action message includes a protocol decapsulation instruction for removing a layer of protocol from the data packet; the Mod_Action message includes a protocol field modification instruction for modifying the content of a specific protocol field in the data packet.

[0019] As the SDN switch configuration method supporting multi-protocol parsing of the present invention, further, the instructions for encapsulating, modifying and decapsulating the new protocol defined in the Flow Mod message refer to the {Offset, Length} tuple in the Packet structure as a parameter.

[0020] In another aspect, the present invention provides an SDN switch supporting multi-protocol parsing, comprising:

[0021] The data packet parsing module is used to parse the protocol header of the received data packet layer by layer according to the protocol parsing table sent by the control plane, and encapsulate the parsing result into the Packet structure in the form of {Offset, Length} tuple;

[0022] The matching action module includes a multi-level flow table, which uses a variable-length matching structure in TLV format to match the matching fields in the data packet, and executes corresponding instructions and actions according to the matching results, including protocol encapsulation, decapsulation and field modification;

[0023] The control plane is used to send extended control messages (proto_parse_ext) to dynamically add, modify or delete parsing rules in the protocol parsing table, and send Flow Mod messages to perform encapsulation, decapsulation and modification operations of custom protocols;

[0024] The data packet parsing module and the matching action module are based on the extended OpenFlow 1.3 protocol operation, realize multi-protocol parsing and dynamic update through the control plane, and support flexible configuration and processing of new network protocols.

[0025] Beneficial effects of the present invention:

[0026] The invention realizes the flexible parsing and configuration of multiple protocols by extending the OpenFlow protocol, significantly improving the flexibility and scalability of protocol support. Users can directly send configuration messages through the controller to dynamically add, modify or delete protocols, which greatly simplifies the protocol configuration process and reduces the difficulty and threshold of operation. This innovation not only facilitates the development of new network experiments and accelerates the promotion of network applications, but also enhances the flexibility of device configuration and adapts to complex and changeable network environments by supporting the mutual encapsulation of custom protocols. At the same time, the present invention avoids the waste of resources and high development costs in traditional methods, improves the reusability and scope of application of hardware modules, and reduces development and operation costs as a whole. It can greatly promote the innovation and development of network technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 A flow chart of a method for configuring an SDN switch supporting multi-protocol parsing according to the present invention;

[0028] Figure 2 This is a schematic diagram of the OpenFlow message format in an embodiment of the present invention;

[0029] Figure 3 Schematic diagram of the format of the OpenFlow message header in an embodiment of the present invention;

[0030] Figure 4 Schematic diagram of the format of the Eca_Action message in an embodiment of the present invention;

[0031] Figure 5 Schematic diagram of the format of the Deca_Action message in an embodiment of the present invention;

[0032] Figure 6 Schematic diagram of the format of the Mod_Action message in an embodiment of the present invention. DETAILED DESCRIPTION

[0033] In order to make the purpose, technical solutions and advantages of the present invention clearer and more understandable, the present invention is further described in detail below in conjunction with the accompanying drawings and technical solutions.

[0034] like Figure 1-Figure 5 As shown, in this embodiment, a SDN switch configuration method supporting multi-protocol parsing is applicable to communication between a controller and a switch of a software defined network, including:

[0035] S1. Send a protocol parsing table configuration message through the control plane, and configure a data packet parsing module with multiple protocol parsing tables in the data plane, wherein the protocol parsing table is used to parse a specific protocol header;

[0036] The packet parsing module is one of the core components of the data plane, responsible for parsing the packets entering the switch. The module contains multiple protocol parsing tables, each of which corresponds to a parsing rule for a protocol header.

[0037] S2. Extend the controller command of the control plane, issue a controller message for dynamically adding, modifying or deleting the protocol in the protocol parsing table, the data packet parsing module responds to the controller message, updates the protocol parsing process in the protocol parsing table, and defines the jump condition to implement the parsing of the protocol chain based on the protocol parsing process, and implements the addition, modification or deletion of the custom protocol in the protocol parsing table;

[0038] Specifically, the control plane adds, modifies, or deletes the protocol parsing table by sending a proto_parse_ext message to the packet parsing module. The proto_parse_ext message contains an operation instruction and a NetPDL field. The operation instruction indicates the type of operation to be performed (addition, modification, or deletion), and the NetPDL field defines the parsing rules and field format of the specific protocol.

[0039] Among them, each proto_parse_ext message can represent the addition, modification or deletion of a protocol. When adding a new protocol, first create the protocol in the protocol parsing table by issuing the add command of the proto_parse_ext message, and then modify the type field used to mark the internal protocol in the external protocol through the modify command of the proto_parse_ext message, and finally implement the parsing of the protocol chain by defining the jump condition.

[0040] S3, using the protocol parsing table in the data packet parsing module to parse the data packet entering from the inbound port, extract the protocol header information and encapsulate it together with the original data packet into the Packet structure, and forward it to the matching action module;

[0041] Specifically, when a data packet enters the switch, the packet parsing module first checks the protocol parsing table to determine the protocol type of the packet header. Then, according to the rules in the protocol parsing table, the packet header is parsed layer by layer, and the parsing result is encapsulated into the Packet structure in the form of an {Offset, Length} tuple. The Packet structure is then passed to the matching action module for further processing.

[0042] S4. Setting a multi-level flow table in the matching action module, the flow table includes matching domains and instructions, and each instruction includes multiple actions;

[0043] The match domain uses the OXM_TLV format to represent different match fields, and a complete match domain is formed by cascading multiple TLVs. The instruction contains multiple actions to specify the processing method of the data packet.

[0044] By extending the Flow Mod message of the control plane, instructions for encapsulating, modifying and decapsulating new protocols are dynamically added in the matching action module, supporting protocol encapsulation, decapsulation and field modification to achieve data packet processing and support for custom protocols;

[0045] Specifically, the present invention extends the Flow Mod message and defines three message types: Eca_Action, Deca_Action and Mod_Action. These messages are sent from the control plane to the matching action module to dynamically add instructions for encapsulating, modifying and decapsulating new protocols.

[0046] Eca_Action: used to encapsulate a new protocol layer on the outer layer of the data packet. The message contains protocol encapsulation instructions and protocol information. The protocol information specifies the protocol type to be encapsulated and the specific data content.

[0047] Deca_Action: used to remove a layer of protocol from a data packet. The message contains the protocol decapsulation instruction and the protocol type, which is used to indicate the protocol layer to be removed.

[0048] Mod_Action: used to modify the content of a specific protocol field in a data packet. The message contains the field type and field value, which are used to specify the field to be modified and the new value.

[0049] S5, the matching action module matches the fields of the data packet through the multi-level flow table;

[0050] The successfully matched data packets execute the corresponding actions in the instruction set configured by the control plane through the flow table;

[0051] After completing all actions, the data packet is sent out through the egress port or uploaded to the control plane.

[0052] Specifically, after the data packet enters the matching action module, it is first matched with the matching domain of the first-level flow table. If the match is successful, the action in the corresponding instruction set is executed. If the data packet needs to continue to match the next-level flow table, it jumps according to the jump condition in the instruction. Finally, after the data packet completes all actions, it is sent out through the egress port or uploaded to the control plane.

[0053] As the SDN switch configuration method supporting multi-protocol resolution of the present invention, further, the protocol resolution table configuration message adopts the OpenFlow protocol format and is sent through the Experimenter message extended header format to support the extension and identification of custom protocols.

[0054] As an SDN switch configuration method supporting multi-protocol parsing of the present invention, further, the extended controller command is specifically an OpenFlow message named proto_parse_ext, which includes an operation instruction and a NetPDL field. The operation instruction is used to instruct to add, modify or delete a protocol parsing table, and the NetPDL field defines the parsing rules and field format of a specific protocol.

[0055] As the SDN switch configuration method supporting multi-protocol parsing of the present invention, further, the Packet structure stores the offset and length information of each layer protocol header in the form of {Offset, Length} tuples.

[0056] As the SDN switch configuration method supporting multi-protocol parsing of the present invention, further, the matching domain in the multi-level flow table uses OXM_TLV format to represent different matching fields, and a complete matching domain is formed by cascading multiple TLVs.

[0057] As an SDN switch configuration method supporting multi-protocol parsing of the present invention, further, three message types of Eca_Action, Deca_Action and Mod_Action are defined in the Flow Mod message, the Eca_Action message includes a protocol encapsulation instruction for encapsulating a new protocol layer in the outer layer of the data packet; the Deca_Action message includes a protocol decapsulation instruction for removing a layer of protocol from the data packet; the Mod_Action message includes a protocol field modification instruction for modifying the content of a specific protocol field in the data packet.

[0058] As the SDN switch configuration method supporting multi-protocol parsing of the present invention, further, the instructions for encapsulating, modifying and decapsulating the new protocol defined in the Flow Mod message refer to the {Offset, Length} tuple in the Packet structure as a parameter.

[0059] Furthermore, based on the above method, an embodiment of the present invention also provides an SDN switch supporting multi-protocol parsing, including:

[0060] The data packet parsing module is used to parse the protocol header of the received data packet layer by layer according to the protocol parsing table sent by the control plane, and encapsulate the parsing result into the Packet structure in the form of {Offset, Length} tuple;

[0061] The matching action module includes a multi-level flow table, which uses a variable-length matching structure in TLV format to match the matching fields in the data packet, and executes corresponding instructions and actions according to the matching results, including protocol encapsulation, decapsulation and field modification;

[0062] The control plane is used to send extended control messages (proto_parse_ext) to dynamically add, modify or delete parsing rules in the protocol parsing table, and send Flow Mod messages to perform encapsulation, decapsulation and modification operations of custom protocols;

[0063] The data packet parsing module and the matching action module are based on the extended OpenFlow 1.3 protocol operation, realize multi-protocol parsing and dynamic update through the control plane, and support flexible configuration and processing of new network protocols.

Claims

1. A SDN switch configuration method supporting multi-protocol parsing, suitable for communication between a controller and a switch of a software defined network, characterized in that: include: A protocol parsing table configuration message is sent down through the control plane, and a data packet parsing module having multiple protocol parsing tables is configured in the data plane, wherein the protocol parsing table is used to parse a specific protocol header; The controller command of the extended control plane is issued to dynamically add, modify or delete the controller message of the protocol in the protocol parsing table. The data packet parsing module responds to the controller message, updates the protocol parsing process in the protocol parsing table, and defines the jump condition to implement the parsing of the protocol chain based on the protocol parsing process, so as to implement the addition, modification or deletion of the custom protocol in the protocol parsing table; Use the protocol parsing table in the packet parsing module to parse the data packets entering from the inbound port, extract the protocol header information and encapsulate it together with the original data packet into the Packet structure, and forward it to the matching action module; A multi-level flow table is set in the matching action module. The flow table includes matching domains and instructions. Each instruction includes multiple actions. By extending the FlowMod message of the control plane, instructions for encapsulating, modifying and decapsulating new protocols are dynamically added in the matching action module, supporting protocol encapsulation, decapsulation and field modification to achieve data packet processing and support for custom protocols; The matching action module matches the fields of the data packet through the multi-level flow table; The successfully matched data packets execute the corresponding actions in the instruction set configured by the control plane through the flow table; After completing all actions, the data packet is sent out through the egress port or uploaded to the control plane.

2. The SDN switch configuration method supporting multi-protocol analysis according to claim 1, characterized in that: The protocol parsing table configuration message adopts the OpenFlow protocol format and is sent through the Experimenter message extended header format to support the extension and identification of custom protocols.

3. The SDN switch configuration method supporting multi-protocol analysis according to claim 1 is characterized in that The extended controller command is specifically an OpenFlow message named proto_parse_ext, which includes an operation instruction and a NetPDL field. The operation instruction is used to instruct the addition, modification or deletion of the protocol parsing table, and the NetPDL field defines the parsing rules and field format of the specific protocol.

4. The SDN switch configuration method supporting multi-protocol analysis according to claim 1, characterized in that: The Packet structure stores the offset and length information of each layer of the protocol header in the form of {Offset, Length} tuples.

5. According to the SDN switch configuration method supporting multi-protocol parsing according to claim 1, the matching domain in the multi-level flow table uses OXM_TLV format to represent different matching fields, and a complete matching domain is formed by cascading multiple TLVs.

6. The SDN switch configuration method supporting multi-protocol analysis according to claim 1, characterized in that: The FlowMod message defines three message types: Eca_Action, Deca_Action and Mod_Action. The Eca_Action message contains a protocol encapsulation instruction for encapsulating a new protocol layer in the outer layer of the data packet; the Deca_Action message contains a protocol decapsulation instruction for removing a layer of protocol from the data packet; the Mod_Action message contains a protocol field modification instruction for modifying the content of a specific protocol field in the data packet.

7. The SDN switch configuration method supporting multi-protocol analysis according to claim 4, characterized in that: The instructions for encapsulating, modifying and decapsulating the new protocol defined in the FlowMod message refer to the {Offset, Length} tuple in the Packet structure as a parameter.

8. An SDN switch supporting multi-protocol analysis, characterized in that: include: The data packet parsing module is used to parse the protocol header of the received data packet layer by layer according to the protocol parsing table sent by the control plane, and encapsulate the parsing result into the Packet structure in the form of {Offset, Length} tuple; The matching action module includes a multi-level flow table, which uses a variable-length matching structure in TLV format to match the matching fields in the data packet, and executes corresponding instructions and actions according to the matching results, including protocol encapsulation, decapsulation and field modification; The control plane is used to send extended control messages (proto_parse_ext) to dynamically add, modify or delete parsing rules in the protocol parsing table, and to send FlowMod messages to perform encapsulation, decapsulation and modification operations of custom protocols; The data packet parsing module and the matching action module are based on the extended OpenFlow1.3 protocol operation, realize multi-protocol parsing and dynamic update through the control plane, and support flexible configuration and processing of new network protocols.

Citation Information

Patent Citations

  • OpenFlow network system and method for enhancing programmable capability

    CN103347013A

  • Method and apparatus for dynamic traffic control in SDN environment

    CN105993149A

  • Software defined network system with programmable data plane actions

    CN113660120A

  • Programmable protocol parser for NIC classification and queue assignments

    US20160191306A1

  • Network controller, switch and method for increasing openflow network capability

    WO2014202030A1