CN112104576A - Resident flow table storage and calibration method and system of SDN switch - Google Patents

Resident flow table storage and calibration method and system of SDN switch Download PDF

Info

Publication number
CN112104576A
CN112104576A CN202010817440.1A CN202010817440A CN112104576A CN 112104576 A CN112104576 A CN 112104576A CN 202010817440 A CN202010817440 A CN 202010817440A CN 112104576 A CN112104576 A CN 112104576A
Authority
CN
China
Prior art keywords
flow table
resident
sdn switch
sdn
controller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010817440.1A
Other languages
Chinese (zh)
Other versions
CN112104576B (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.)
Zhongkehai Suzhou Network Technology Co ltd
Institute of Acoustics CAS
Original Assignee
Zhongkehai Suzhou Network Technology Co ltd
Institute of Acoustics CAS
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 Zhongkehai Suzhou Network Technology Co ltd, Institute of Acoustics CAS filed Critical Zhongkehai Suzhou Network Technology Co ltd
Priority to CN202010817440.1A priority Critical patent/CN112104576B/en
Publication of CN112104576A publication Critical patent/CN112104576A/en
Application granted granted Critical
Publication of CN112104576B publication Critical patent/CN112104576B/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
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • H04L49/3009Header conversion, routing tables or routing tags

Abstract

The invention belongs to the technical field of flow table management of an SDN switch, and particularly relates to a resident flow table storage and calibration method and a resident flow table storage and calibration system of the SDN switch, wherein the method comprises the following steps: the SDN switch screens resident flow table information which is stored locally and updated in real time in a local running flow table, generates a resident flow table configuration file and stores the resident flow table configuration file in local storage equipment; when the SDN switch and the SDN southbound interface protocol connection of the controller are changed, the SDN switch initiates resident flow table information calibration, receives new resident flow table information issued by the controller, and updates a resident flow table configuration file.

Description

Resident flow table storage and calibration method and system of SDN switch
Technical Field
The invention belongs to the technical field of flow table management of an SDN switch, and particularly relates to a resident flow table storage and calibration method and system of the SDN switch.
Background
A Software Defined Network (SDN) switch is a novel Network innovation architecture, and is an implementation manner of Network virtualization. By separating the control plane and the data plane of the network equipment, the flexible control of the network flow is realized, the network becomes more intelligent as a pipeline, and a good platform is provided for innovation of a core network and application.
The SDN switch and the controller are core devices in the SDN network, and establish connection and maintain control plane communication through an SDN southbound interface protocol. Currently, existing SDN southbound interface protocols include: openflow, a Protocol unaware Forwarding (POF), a Protocol Independent Packet processor Programming language (Programming-Independent Packet Processors, P4), and so on. In terms of SDN switches, many manufacturers or Open vSwitch-based or self-designed SDN switches supporting different SDN southward interface protocols have developed SDN switches, but after a mainstream SDN switch is reconnected to a controller, a flow table needs to be loaded from 0, a resident flow table information calibration mechanism is lacked, and the capability of keeping working and restarting running off the controller is lacked. Therefore, the resident flow table storage and calibration method is crucial to the continuous operation and system stability of the SDN switch.
Chinese patent application No. cn201910990135.x discloses an access switch, an online recovery method, a system, and a computer storage medium: resetting the self-state is achieved by retrieving backup configuration data from an upper level switch for the failure recovery problem of the access switch. The method is helpful for stable operation of the system to a certain extent, but the method defines a deployment structure of the SDN network and needs to introduce a third party for providing configuration information.
Chinese patent application No. CN201910632024.1 discloses a flow table protection method based on OVSDB: it is proposed for OpenVSwitch based switches to use OVSDB to store information of the first flow table for continued operation using the first flow table without leaving the controller. The method achieves the purpose of storing the flow table, but the method limits the implementation manner of the SDN switch, and after the controller is reconnected, a new flow table needs to be completely loaded to replace the current first flow table.
Chinese patent application No. CN201911211225.0 discloses a distributed SDN synchronization method based on block chain technology: aiming at the problem of flow table synchronization between a switch and a controller, the idea of block chain is provided to connect a plurality of controllers and identify the authenticity of controller messages. The method is helpful for the system to eliminate the influence of malicious controller nodes, but the method depends on the synchronous work of more controllers and cannot realize the functions of the switch which is separated from the controller to continuously work and restart the operation.
Compared with the methods, the method provided by the patent does not depend on third-party equipment such as an upper-layer switch, and does not limit the implementation mode of the SDN switch and the type of the SDN southbound interface protocol. The SDN switch applying the method has the capability of continuous operation and restarting operation under the condition of being separated from the controller, and can finish the calibration synchronization of the flow table at a small cost after the controller is reconnected.
Disclosure of Invention
In order to solve the defects in the prior art, the invention provides a resident flow table storage and calibration method of an SDN switch, which solves the technical problems that the SDN switch cannot quickly restore the resident flow table, lacks flow table calibration and cannot continuously run away from a controller when the southbound connection is changed.
The invention provides a resident flow table storage and calibration method of an SDN switch, which comprises the following steps:
the SDN switch screens resident flow table information which is stored locally and updated in real time in a local running flow table, generates a resident flow table configuration file and stores the resident flow table configuration file in local storage equipment;
when the SDN switch and the SDN southbound interface protocol connection of the controller are changed, the SDN switch initiates resident flow table information calibration, receives new resident flow table information issued by the controller, and updates a resident flow table configuration file.
As one improvement of the above technical solution, the SDN switch screens resident flow table information that is locally stored and is updated in real time in a local running flow table, generates a resident flow table configuration file, and stores the resident flow table configuration file on a local storage device; the method specifically comprises the following steps:
if the resident flow table information stored in the local flow table is subjected to addition, deletion or modification operation, updating the resident flow table information stored in the local flow table, and further generating a resident flow table configuration file updated in real time;
if the resident flow table information stored in the local flow table is not subjected to adding, deleting or modifying operation, the switch does not need to update the resident flow table configuration file stored in the local flow table and continues working;
when the switch receives a message sent by the controller, where the message is an operation of adding, deleting or modifying the resident flow table information, the switch may generate a new resident flow table configuration file according to the updated resident flow table information, and store the new resident flow table configuration file on a local storage device of the SDN switch.
As an improvement of the above technical solution, the resident flow table information includes: a resident table, a resident table entry and a resident instruction block;
the resident table entry is an entry with unlimited overtime time;
the resident table is a table containing resident table entries;
the resident instruction block is an instruction block which needs to be executed after the resident table entry is hit.
As an improvement of the above technical solution, the resident flow table configuration file is a compilation format file supported by the SDN switch, and includes a plurality of resident flow table information and hash digest values corresponding to the resident flow table information.
As an improvement of the above technical solution, a case that an SDN southbound interface protocol connection between an SDN switch and a controller is changed includes: SDN switch restart, controller restart, SDN switch controller, and SDN switch to controller connection reset.
As an improvement of the above technical solution, when an SDN southbound interface protocol connection between the SDN switch and the controller changes, the SDN switch initiates resident flow table information calibration, and the controller instructs the SDN switch to enter a normal working state according to a calibration result; the method specifically comprises the following steps:
step 1) when the SDN southbound interface protocol connection between the SDN switch and the controller is changed, according to the situation that the SDN southbound interface protocol connection between the SDN switch and the controller is changed,
if the SDN south-bound interface protocol connection between the SDN switch and the controller is changed, the SDN switch is restarted, and then step 2) is executed;
if the situation that the SDN southbound interface protocol connection of the SDN switch and the controller is changed is controller restarting, SDN switch switching of the controller or connection resetting of the SDN switch and the controller, executing step 3);
step 2), the SDN switch recovers from local storage equipment and loads a resident flow table configuration file, and after the loading is finished, the step 3) is executed;
step 3), an SDN southbound interface protocol action is established, and the SDN switch initiates a handshake protocol to the controller according to the SDN southbound interface protocol;
step 4), the SDN switch calculates a local state code and sends the local state code to the controller;
step 5), the controller calculates a remote state code; the controller receives a local state code sent by the SDN switch; comparing the local state code with the state code of the remote state code:
if the local state code is inconsistent with the state code of the remote state code, generating new resident flow table information, forwarding the resident flow table information to the SDN switch, and turning to the step 6);
otherwise, indicating the SDN switch to enter a normal working state;
and 6) the SDN switch receives new resident flow table information, resets the state of the local flow table, screens the locally stored resident flow table information updated in real time in the local running flow table of the SDN switch, generates a new resident flow table configuration file, and stores the new resident flow table configuration file on a local storage device of the SDN switch.
The invention also provides a resident flow table storage and calibration system of the SDN switch, which comprises the following steps:
the storage module is used for screening the locally stored resident flow table information updated in real time in the local running flow table of the SDN switch, generating a resident flow table configuration file and storing the resident flow table configuration file in local storage equipment; and
and the calibration module is used for initiating the resident flow table information calibration by the SDN switch when the SDN southbound interface protocol connection between the SDN switch and the controller is changed, receiving new resident flow table information issued by the controller and updating a resident flow table configuration file.
Compared with the prior art, the invention has the beneficial effects that:
1) implementation architecture independent of SDN network;
2) the method is independent of a third party, does not limit the implementation mode of the switch, and does not limit the type of the southbound interface protocol;
3) using a calibration mechanism, the flow table is restored, rather than always starting from zero with the controller;
the switch is separated from the controller and still has the capability of continuous operation and restarting operation.
Drawings
Fig. 1 is a schematic diagram of a networking topology of an SDN network using an OVS switch according to an embodiment of a resident flow table storage and calibration method for an SDN switch of the present invention;
fig. 2 is a flowchart of updating a resident flow table configuration file when a switch of the method for storing and calibrating a resident flow table of an SDN switch of the present invention operates normally;
fig. 3 is a flowchart of a resident flow table storing and calibrating method of an SDN switch according to the present invention.
Detailed Description
The invention will now be further described with reference to the accompanying drawings.
As shown in fig. 1 and 2, the present invention provides a resident flow table storage and calibration method for an SDN switch, and by using the method of the present invention, the SDN switch has the resident flow table and the capability of calibrating the resident flow table with a controller, so that the SDN switch can continuously work and restart to operate without leaving the controller, and in case of a change in SDN southbound interface protocol connection, the resident flow table does not need to be loaded from 0, and the resident flow table information calibration is completed more quickly. The method comprises the following steps:
the SDN switch screens resident flow table information which is stored locally and updated in a local running flow table in real time, generates a resident flow table configuration file and stores the resident flow table configuration file on local storage equipment of the SDN switch;
specifically, if the resident flow table information stored in the local flow table is subjected to an adding, deleting or modifying operation, the resident flow table information stored in the local flow table is updated, and then a resident flow table configuration file updated in real time is generated, as shown in fig. 2;
if the resident flow table information stored in the local flow table is not subjected to adding, deleting or modifying operation, the switch does not need to update the resident flow table configuration file stored in the local flow table and continues working;
when the switch receives a message sent by the controller, where the message is an operation of adding, deleting or modifying the resident flow table information, the switch may generate a new resident flow table configuration file according to the updated resident flow table information, and store the new resident flow table configuration file on a local storage device of the SDN switch.
Wherein the resident flow table information includes: a resident table, a resident table entry and a resident instruction block;
the resident table entry is an entry with unlimited overtime time;
the resident table is a table containing resident table entries;
the resident instruction block is an instruction block which needs to be executed after the resident table entry is hit.
The flow table information satisfying the above characteristics is the resident flow table information, and the resident flow table information is not limited to the specific switch flow table implementation manner.
The resident flow table configuration file is a compilation format file supported by the SDN switch and comprises a plurality of resident flow table information and corresponding hash digest values.
The compiled format file is supported by the SDN switch, and is not limited by the SDN switch of a specified type; the hash digest value is calculated by the existing calculation method, and is not limited to the calculation method of the designated type, but the controller and the switch need to negotiate consistently.
As shown in fig. 3, when the SDN southbound interface protocol connection between the SDN switch and the controller changes, the SDN switch initiates resident flow table information calibration, and the controller instructs the SDN switch to operate according to the calibration result.
Step 1) when the SDN southbound interface protocol connection between the SDN switch and the controller is changed, according to the situation that the SDN southbound interface protocol connection between the SDN switch and the controller is changed,
if the SDN south-bound interface protocol connection between the SDN switch and the controller is changed, the SDN switch is restarted, and then step 2) is executed;
if the situation that the SDN southbound interface protocol connection of the SDN switch and the controller is changed is controller restarting, SDN switch switching of the controller or connection resetting of the SDN switch and the controller, executing step 3);
step 2), the SDN switch recovers from local storage equipment and loads a resident flow table configuration file, and after the loading is finished, the step 3) is executed;
step 3), an SDN southbound interface protocol action is established, the SDN switch initiates a handshake protocol connection to the controller according to the SDN southbound interface protocol, and the handshake protocol is completed;
step 4), after the handshake protocol is completed, the SDN switch calculates a local state code and sends the local state code to the controller;
step 5), the controller calculates a remote state code; the controller receives a local state code sent by the SDN switch; comparing the local state code with the state code of the remote state code:
if the local state code is inconsistent with the state code of the remote state code, generating new resident flow table information, forwarding the resident flow table information to the SDN switch, and turning to the step 6);
otherwise, indicating the SDN switch to enter a normal working state;
and 6) the SDN switch receives new resident flow table information, resets the state of the local flow table, screens the locally stored resident flow table information updated in real time in the local running flow table of the SDN switch, generates a new resident flow table configuration file, and stores the new resident flow table configuration file on a local storage device of the SDN switch.
The calibration of the resident flow table information occurs after the SDN southbound connection handshake protocol is completed and before the SDN switch starts a conventional working state; after the resident flow table information calibration is completed, the resident flow table information loaded on the SDN switch is consistent with the resident flow table information expected to be recorded by the controller.
The local state code is calculated by the SDN switch according to hash digest values corresponding to all resident flow table information loaded by the SDN switch.
The remote state code is calculated by the controller according to hash digest values corresponding to all resident flow table information expected to be loaded to the target SDN switch.
The invention also provides a resident flow table storage and calibration system of the SDN switch, which comprises the following steps:
the storage module is used for screening the locally stored resident flow table information updated in real time in the local running flow table of the SDN switch, generating a resident flow table configuration file and storing the resident flow table configuration file in local storage equipment; and
and the calibration module is used for initiating the resident flow table information calibration by the SDN switch when the SDN southbound interface protocol connection between the SDN switch and the controller is changed, receiving new resident flow table information issued by the controller and updating a resident flow table configuration file.
Wherein the storage module comprises:
the judging unit is used for judging whether the resident flow table information stored in the local flow table is subjected to addition, deletion or modification operation;
if the resident flow table information stored in the local flow table is subjected to addition, deletion or modification operation, updating the resident flow table information stored in the local flow table, and further generating a resident flow table configuration file updated in real time;
if the resident flow table information stored in the local flow table is not subjected to adding, deleting or modifying operation, the switch does not need to update the resident flow table configuration file stored in the local flow table and continues working; and
and the storage unit is used for generating a new resident flow table configuration file according to the updated resident flow table information by the switch when the switch receives the message sent by the controller, wherein the message is an operation of adding, deleting or modifying the resident flow table information, and storing the new resident flow table configuration file on a local storage device of the SDN switch.
Example 1.
Figure 1 illustrates an SDN network topology that employs ovs (open vswitch) switches for networking. In the normal operation and maintenance process, the condition that the SDN southbound interface protocol connection is changed is set as the switch restart.
For the SDN network topology shown in fig. 1, both switch a and switch B run OVS2.5, where switch a and switch B use Openflow version 1.3 protocol as southbound interface protocol and are connected to the controller, and host a accesses switch a and host B accesses switch B, which is a typical SDN network topology, so as to perform the analysis.
For a classic OVS switch, no flow table information is stored locally, and if the OVS switch a or B is restarted, the flow table information resident on the switch is lost, and the flow table information resident on the switch must be restored from the controller again. In particular, it must be noted that the OVSDB portion of OVS switch a or B, in the classic implementation of OVS switches, is used only to store configuration information of the OVS switch and does not store any resident flow table information. In this embodiment, the controller and the OVS switch store and calibrate the resident flow table of the SDN switch according to the present invention, and a specific flowchart is shown in fig. 3.
In this embodiment, when the OVS switch a operates normally, the resident flow table information to be locally stored is screened, a resident flow table configuration file is generated for the resident flow table information, and the resident flow table configuration file is stored in the local storage device.
Wherein, the OVS switch a determines whether the resident flow table information stored in the local flow table changes according to the SDN flow table update message, which is an addition, deletion or modification operation of the resident flow table information,
if the resident flow table information stored in the local flow table is subjected to addition, deletion or modification operation, updating the resident flow table information stored in the local flow table, and further generating a resident flow table configuration file updated in real time, as shown in fig. 2;
if the resident flow table information stored in the local flow table is not subjected to adding, deleting or modifying operation, the switch does not need to update the resident flow table configuration file stored in the local flow table and continues to work.
When the OVS switch A receives a message sent by the controller, wherein the message is an operation of adding, deleting or modifying the resident flow table information, the OVS switch A generates a new resident flow table configuration file according to the updated resident flow table information;
in this embodiment, in the resident flow table information, the entry with idle _ timeout set to 0 is the resident entry, the resident instruction block is the instruction block that needs to be executed after the resident entry is hit, and the resident table is the flow table containing the resident entry.
In this embodiment, the resident flow table configuration file is a local-storage hard disk configuration file from which the OVS switch a can recover a resident flow table conforming to the openflow1.3 version specification in the flow table format; the resident flow table configuration file is different from the southbound interface protocol according to different types of the switch, does not depend on any third-party tool such as an upper-layer switch and the like, and is stored in the local storage device.
As shown in fig. 1 and 3, when the connection between the OVS switch a and the SDN southbound interface protocol of the controller is changed, that is, the OVS switch a restarts, the OVS switch a recovers the resident flow table information according to the resident flow table configuration file of the local flow table, and recovers and loads the resident flow table configuration file.
After confirming that the resident flow table information of the machine is recovered and loading is completed, the OVS switch A establishes an SDN southbound interface protocol action, initiates a handshake protocol connection to the controller according to an Openflow southbound interface protocol, and completes the handshake protocol; after the OVS switch A and the controller reestablish SDN southbound interface protocol action connection, local state codes are calculated according to hash values corresponding to resident flow table information recovered by the machine, and meanwhile, after a handshake protocol is completed, remote state codes are calculated for the switch according to hash values corresponding to all resident flow table information expected to be loaded.
In the process of calculating the local state code and the remote state code, the related specific hash algorithms are all existing algorithms, and the switch and the controller have the same negotiation.
When the OVS switch a calculates the local status code, it is sent to the controller, which compares the local status code with the remote status code.
If the local state code is inconsistent with the state code of the remote state code, generating new resident flow table information and forwarding the new resident flow table information to the SDN switch, receiving the new resident flow table information by the SDN switch, resetting the state of the local flow table, screening the resident flow table information which is locally stored and is updated in real time in the local running flow table of the SDN switch, generating a new resident flow table configuration file, and storing the new resident flow table configuration file on a local storage device of the SDN switch;
if the state codes of the local state code and the remote state code are consistent, the controller instructs the SDN switch to enter a normal working state;
so far, in the network topology using the OVS switch a and based on the Openflow southbound interface protocol in this embodiment, when the southbound interface protocol connection is changed, as a scenario that the OVS switch a restarts, by applying the method of the present invention, the OVS switch a completes recovery and update of the resident flow table information, calibration of the resident flow table information, recovery and reestablishment of the southbound interface protocol connection, and recovery of the normal operating state of the switch.
Example 2.
When the OVS switch B operates normally, resident flow table information to be stored locally is screened, a resident flow table configuration file is generated for the resident flow table information, and the resident flow table configuration file is stored on local storage equipment.
Wherein, the OVS switch B determines whether the resident flow table information stored in the local flow table changes according to the SDN flow table update message, which is an addition, deletion or modification operation of the resident flow table information,
if the resident flow table information stored in the local flow table is subjected to addition, deletion or modification operation, updating the resident flow table information stored in the local flow table, and further generating a resident flow table configuration file updated in real time, as shown in fig. 2;
if the resident flow table information stored in the local flow table is not subjected to adding, deleting or modifying operation, the switch does not need to update the resident flow table configuration file stored in the local flow table and continues to work.
When the OVS switch B receives a message sent by the controller, the message is an operation of adding, deleting or modifying the resident flow table information, the OVS switch B generates a new resident flow table configuration file according to the updated resident flow table information;
in this embodiment, in the resident flow table information, the entry with idle _ timeout set to 0 is the resident entry, the resident instruction block is the instruction block that needs to be executed after the resident entry is hit, and the resident table is the flow table containing the resident entry.
In this embodiment, the resident flow table configuration file is a local-storage hard disk configuration file from which the OVS switch B can recover a resident flow table conforming to the openflow1.3 version specification in the flow table format; the resident flow table configuration file is different from the southbound interface protocol according to different types of the switch, does not depend on any third-party tool such as an upper-layer switch and the like, and is stored in the local storage device.
As shown in fig. 1 and 3, when the connection between the OVS switch B and the SDN southbound interface protocol of the controller is changed, that is, the OVS switch B is restarted, the OVS switch B recovers the resident flow table information according to the resident flow table configuration file of the local flow table, and recovers and loads the resident flow table configuration file.
After confirming that the resident flow table information of the machine is recovered and loading is completed, the OVS switch B establishes an SDN southbound interface protocol action, initiates a handshake protocol connection to the controller according to an Openflow southbound interface protocol, and completes the handshake protocol; after the OVS switch B and the controller reestablish SDN southbound interface protocol action connection, local state codes are calculated according to hash values corresponding to resident flow table information recovered by the machine, and meanwhile, after a handshake protocol is completed, remote state codes are calculated for the switch according to hash values corresponding to all resident flow table information expected to be loaded.
In the process of calculating the local state code and the remote state code, the related specific hash algorithms are all existing algorithms, and the switch and the controller have the same negotiation.
When the OVS switch B calculates the local status code, it is sent to the controller, which compares the local status code with the remote status code.
If the local state code is inconsistent with the state code of the remote state code, generating new resident flow table information and forwarding the new resident flow table information to the SDN switch, receiving the new resident flow table information by the SDN switch, resetting the state of the local flow table, screening the resident flow table information which is locally stored and is updated in real time in the local running flow table of the SDN switch, generating a new resident flow table configuration file, and storing the new resident flow table configuration file on a local storage device of the SDN switch;
if the state codes of the local state code and the remote state code are consistent, the controller instructs the SDN switch to enter a normal working state;
so far, in the network topology using the OVS switch B and based on the Openflow southbound interface protocol in this embodiment, when the southbound interface protocol connection is changed, which is the scenario that the OVS switch B restarts, by applying the method of the present invention, the OVS switch B completes the recovery and update of the resident flow table information, the calibration of the resident flow table information, the recovery and the reestablishment of the southbound interface protocol connection, and the normal working state of the switch is recovered.
And when the OVS switch A or the OVS switch B is restarted, the resident flow table information is recovered from the locally stored resident flow table configuration file.
The updating refers to establishing southbound interface protocol connection with the controller again, and after the resident flow table information is calibrated, if the resident flow table information of the local machine is subjected to adding, deleting or modifying operation, the local resident flow table configuration file needs to be updated.
Therefore, the flow table storage and flow table calibration method of the SDN switch are realized on the premise of not depending on a certain specific SDN network architecture, not depending on third-party equipment such as an upper-layer switch and the like, and not limiting the SDN southbound interface protocol, when the connection of the SDN southbound interface protocol is changed, the running state of the switch can be ensured fast and better, and the conventional running state can be recovered fast, so that the reasonable running of the whole SDN network is ensured.
Finally, it should be noted that the above embodiments are only used for illustrating the technical solutions of the present invention and are not limited. Although the present invention has been described in detail with reference to the embodiments, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (7)

1. A resident flow table storage and calibration method of an SDN switch comprises the following steps:
the SDN switch screens resident flow table information which is stored locally and updated in real time in a local running flow table, generates a resident flow table configuration file and stores the resident flow table configuration file in local storage equipment;
when the SDN switch and the SDN southbound interface protocol connection of the controller are changed, the SDN switch initiates resident flow table information calibration, receives new resident flow table information issued by the controller, and updates a resident flow table configuration file.
2. The method of claim 1, wherein the SDN switch filters locally stored resident flow table information that is updated in real time in a local run flow table, generates a resident flow table configuration file, and stores the resident flow table configuration file on a local storage device; the method specifically comprises the following steps:
if the resident flow table information stored in the local flow table is subjected to addition, deletion or modification operation, updating the resident flow table information stored in the local flow table, and further generating a resident flow table configuration file updated in real time;
if the resident flow table information stored in the local flow table is not subjected to adding, deleting or modifying operation, the switch does not need to update the resident flow table configuration file stored in the local flow table and continues working;
when the switch receives a message sent by the controller, where the message is an operation of adding, deleting or modifying the resident flow table information, the switch may generate a new resident flow table configuration file according to the updated resident flow table information, and store the new resident flow table configuration file on a local storage device of the SDN switch.
3. The method of claim 2, wherein the resident flow table information comprises: a resident table, a resident table entry and a resident instruction block;
the resident table entry is an entry with unlimited overtime time;
the resident table is a table containing resident table entries;
the resident instruction block is an instruction block which needs to be executed after the resident table entry is hit.
4. The method of claim 2, wherein the resident flow table configuration file is a compilation format file supported by the SDN switch and comprises a plurality of resident flow table information and corresponding hash digest values thereof.
5. The method of claim 1, wherein the change in SDN southbound interface protocol connection between the SDN switch and the controller comprises: SDN switch restart, controller restart, SDN switch controller, and SDN switch to controller connection reset.
6. The method of claim 1, wherein when an SDN southbound interface protocol connection between the SDN switch and the controller changes, the SDN switch initiates calibration of the resident flow table information, and the controller instructs the SDN switch to enter a normal operating state according to a calibration result; the method specifically comprises the following steps:
step 1) when the SDN southbound interface protocol connection between the SDN switch and the controller is changed, according to the situation that the SDN southbound interface protocol connection between the SDN switch and the controller is changed,
if the SDN south-bound interface protocol connection between the SDN switch and the controller is changed, the SDN switch is restarted, and then step 2) is executed;
if the situation that the SDN southbound interface protocol connection of the SDN switch and the controller is changed is controller restarting, SDN switch switching of the controller or connection resetting of the SDN switch and the controller, executing step 3);
step 2), the SDN switch recovers from local storage equipment and loads a resident flow table configuration file, and after the loading is finished, the step 3) is executed;
step 3), an SDN southbound interface protocol action is established, and the SDN switch initiates a handshake protocol to the controller according to the SDN southbound interface protocol;
step 4), the SDN switch calculates a local state code and sends the local state code to the controller;
step 5), the controller calculates a remote state code; the controller receives a local state code sent by the SDN switch; comparing the local state code with the state code of the remote state code:
if the local state code is inconsistent with the state code of the remote state code, generating new resident flow table information, forwarding the resident flow table information to the SDN switch, and turning to the step 6);
otherwise, indicating the SDN switch to enter a normal working state;
and 6) the SDN switch receives new resident flow table information, resets the state of the local flow table, screens the locally stored resident flow table information updated in real time in the local running flow table of the SDN switch, generates a new resident flow table configuration file, and stores the new resident flow table configuration file on a local storage device of the SDN switch.
7. A resident flow table storage and calibration system for an SDN switch, the system comprising:
the storage module is used for screening the locally stored resident flow table information updated in real time in the local running flow table of the SDN switch, generating a resident flow table configuration file and storing the resident flow table configuration file in local storage equipment; and
and the calibration module is used for initiating the resident flow table information calibration by the SDN switch when the SDN southbound interface protocol connection between the SDN switch and the controller is changed, receiving new resident flow table information issued by the controller and updating a resident flow table configuration file.
CN202010817440.1A 2020-08-14 2020-08-14 Resident flow table storage and calibration method of SDN switch Active CN112104576B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010817440.1A CN112104576B (en) 2020-08-14 2020-08-14 Resident flow table storage and calibration method of SDN switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010817440.1A CN112104576B (en) 2020-08-14 2020-08-14 Resident flow table storage and calibration method of SDN switch

Publications (2)

Publication Number Publication Date
CN112104576A true CN112104576A (en) 2020-12-18
CN112104576B CN112104576B (en) 2022-02-22

Family

ID=73753718

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010817440.1A Active CN112104576B (en) 2020-08-14 2020-08-14 Resident flow table storage and calibration method of SDN switch

Country Status (1)

Country Link
CN (1) CN112104576B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113556327A (en) * 2021-06-29 2021-10-26 中国人民解放军战略支援部队信息工程大学 Block chain-based false flow rule injection attack detection and prevention system and method
CN113986560A (en) * 2021-12-27 2022-01-28 浙江锐文科技有限公司 Method for realizing P4 and OvS logic multiplexing in intelligent network card/DPU

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101572670A (en) * 2009-05-07 2009-11-04 成都市华为赛门铁克科技有限公司 Data packet processing method based on flow table, device and network system
CN102946365A (en) * 2012-11-09 2013-02-27 清华大学 Flow table updating consistency maintaining method based on software defined network
CN103139081A (en) * 2011-11-28 2013-06-05 中兴通讯股份有限公司 Update method and nodes for distributed hash table routing lists
CN103441927A (en) * 2013-09-12 2013-12-11 盛科网络(苏州)有限公司 Message processing method and device
CN103905311A (en) * 2012-12-28 2014-07-02 华为技术有限公司 Flow table matching method and device and switch
CN104426815A (en) * 2013-08-27 2015-03-18 中兴通讯股份有限公司 Flow table issuing method and system in software-defined network, open flow controller and open flow switch
CN104601470A (en) * 2015-01-21 2015-05-06 杭州华三通信技术有限公司 Flow table processing method and device
WO2016071402A1 (en) * 2014-11-05 2016-05-12 Bull Sas Method for quick reconfiguration of routing in the event of a fault in a port of a switch
CN105933253A (en) * 2016-04-13 2016-09-07 浪潮集团有限公司 Switch configuration recovery method in SDN (Software Defined Networking)
CN106330715A (en) * 2015-06-30 2017-01-11 杭州华三通信技术有限公司 Message processing method and device
US20170034063A1 (en) * 2014-03-31 2017-02-02 Hewlett Packard Enterprise Development Lp Prioritization of network traffic in a distributed processing system
CN106453099A (en) * 2016-10-21 2017-02-22 杭州华三通信技术有限公司 Flow table information recovery method and device
CN106850438A (en) * 2016-12-27 2017-06-13 中山大学 A kind of real-time method for obtaining SDN switch flow table space occupancy
CN107547249A (en) * 2017-06-15 2018-01-05 新华三技术有限公司 Link switch-over method, device, SDN switch, controller and storage medium
CN108390899A (en) * 2017-02-03 2018-08-10 中国科学院声学研究所 A method of the Layer 2 switch content collaboration based on software defined network
CN109194517A (en) * 2018-09-20 2019-01-11 郑州云海信息技术有限公司 A kind of method and apparatus for being initialized to virtual switch component
CN109921996A (en) * 2018-12-29 2019-06-21 长沙理工大学 A kind of virtual flow stream searching method of high performance OpenFlow

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101572670A (en) * 2009-05-07 2009-11-04 成都市华为赛门铁克科技有限公司 Data packet processing method based on flow table, device and network system
CN103139081A (en) * 2011-11-28 2013-06-05 中兴通讯股份有限公司 Update method and nodes for distributed hash table routing lists
CN102946365A (en) * 2012-11-09 2013-02-27 清华大学 Flow table updating consistency maintaining method based on software defined network
CN103905311A (en) * 2012-12-28 2014-07-02 华为技术有限公司 Flow table matching method and device and switch
CN104426815A (en) * 2013-08-27 2015-03-18 中兴通讯股份有限公司 Flow table issuing method and system in software-defined network, open flow controller and open flow switch
CN103441927A (en) * 2013-09-12 2013-12-11 盛科网络(苏州)有限公司 Message processing method and device
US20170034063A1 (en) * 2014-03-31 2017-02-02 Hewlett Packard Enterprise Development Lp Prioritization of network traffic in a distributed processing system
WO2016071402A1 (en) * 2014-11-05 2016-05-12 Bull Sas Method for quick reconfiguration of routing in the event of a fault in a port of a switch
CN104601470A (en) * 2015-01-21 2015-05-06 杭州华三通信技术有限公司 Flow table processing method and device
CN106330715A (en) * 2015-06-30 2017-01-11 杭州华三通信技术有限公司 Message processing method and device
CN105933253A (en) * 2016-04-13 2016-09-07 浪潮集团有限公司 Switch configuration recovery method in SDN (Software Defined Networking)
CN106453099A (en) * 2016-10-21 2017-02-22 杭州华三通信技术有限公司 Flow table information recovery method and device
CN106850438A (en) * 2016-12-27 2017-06-13 中山大学 A kind of real-time method for obtaining SDN switch flow table space occupancy
CN108390899A (en) * 2017-02-03 2018-08-10 中国科学院声学研究所 A method of the Layer 2 switch content collaboration based on software defined network
CN107547249A (en) * 2017-06-15 2018-01-05 新华三技术有限公司 Link switch-over method, device, SDN switch, controller and storage medium
CN109194517A (en) * 2018-09-20 2019-01-11 郑州云海信息技术有限公司 A kind of method and apparatus for being initialized to virtual switch component
CN109921996A (en) * 2018-12-29 2019-06-21 长沙理工大学 A kind of virtual flow stream searching method of high performance OpenFlow

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
SHENGRU LI; KAI HAN: "《Improving SDN Scalability With Protocol-Oblivious Source Routing: A System-Level Study》", 《IEEE TRANSACTIONS ON NETWORK AND SERVICE MANAGEMENT ( VOLUME: 15, ISSUE: 1, MARCH 2018)》 *
李春强等: "多单元散列表与TCAM结合的OpenFlow流表查找方法", 《通信学报》 *
盛剑桥: "《面向SDN网络的多控制器协同机制与安全通信研究》", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 *
胡永生: "《SDN环境下转发设备状态快速恢复的方法研究》", 《通讯世界》 *
胡永生: "SDN环境下转发设备状态快速恢复的方法研究", 《通讯世界》 *
鄂跃鹏,陈智,葛敬国,吴玉磊: "《一种高效的OpenFlow流表存储与查找实现方法》", 《中国科学:信息科学》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113556327A (en) * 2021-06-29 2021-10-26 中国人民解放军战略支援部队信息工程大学 Block chain-based false flow rule injection attack detection and prevention system and method
CN113986560A (en) * 2021-12-27 2022-01-28 浙江锐文科技有限公司 Method for realizing P4 and OvS logic multiplexing in intelligent network card/DPU

Also Published As

Publication number Publication date
CN112104576B (en) 2022-02-22

Similar Documents

Publication Publication Date Title
CN109831500B (en) Synchronization method for configuration file and Pod in Kubernetes cluster
US7383541B1 (en) Method and apparatus providing interoperation of execution images of different versions
CN112104576B (en) Resident flow table storage and calibration method of SDN switch
US8868897B2 (en) Self-restarting network devices
CN104486108A (en) Node configuration method base on Zookeeper and node configuration system based on Zookeeper
US11403319B2 (en) High-availability network device database synchronization
CN114089974B (en) Cloud code development system, method, device, equipment and storage medium
US20080183878A1 (en) System And Method For Dynamic Patching Of Network Applications
JP5293141B2 (en) Redundant system
CN114201458A (en) Information updating method, micro-service system and computer readable storage medium
CN113596197B (en) Address switching method and device, electronic equipment and storage medium
CN112131201B (en) Method, system, equipment and medium for high availability of network additional storage
CN111324632B (en) Transparent database session restoration with client-side caching
CN109101253B (en) Management method and device for host in cloud computing system
TW202026882A (en) Method for remotely clearing abnormal status of racks applied in data center
CN111404810A (en) Openflow flow table recovery method and device, electronic equipment and medium
CN111414267A (en) Far-end eliminating method for abnormal state of cabinet applied to data center
JPH1013494A (en) Transmission device and its restoration system
CN113485865B (en) Data processing system based on forward proxy server access third party application
US20230185567A1 (en) In-service software upgrade with active service monitoring
CN117041213A (en) IP exception handling method, device, equipment and medium
KR20030015789A (en) Method for File Downloading in Agent
CN117170701A (en) Upgrading method, device and medium for baseboard management controller
CN117891563A (en) Control method and device of virtual machine, storage medium and electronic device
CN115509812A (en) Data backup method and server based on Keepalive dual-computer hot standby

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant