CN104243205A - Message processing method and device used during virtual switch fault - Google Patents

Message processing method and device used during virtual switch fault Download PDF

Info

Publication number
CN104243205A
CN104243205A CN201410445678.0A CN201410445678A CN104243205A CN 104243205 A CN104243205 A CN 104243205A CN 201410445678 A CN201410445678 A CN 201410445678A CN 104243205 A CN104243205 A CN 104243205A
Authority
CN
China
Prior art keywords
virtual switch
message
sdn controller
stream table
main virtual
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
CN201410445678.0A
Other languages
Chinese (zh)
Other versions
CN104243205B (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201410445678.0A priority Critical patent/CN104243205B/en
Publication of CN104243205A publication Critical patent/CN104243205A/en
Application granted granted Critical
Publication of CN104243205B publication Critical patent/CN104243205B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a message processing method and device used during a virtual switch fault. The method comprises the steps that a backup virtual switch monitors the working condition of a main virtual switch; when the main virtual switch is in the fault working condition, the backup virtual switch obtains a message, and if the backup virtual switch sends an SDN controller obtained from a database of a physical server down to a flow table of the main virtual switch and a table item matched with the message exists, the message is forwarded according to the table item matched with the message. According to the message processing method and device, when the main virtual switch breaks down, service interruption of the main virtual switch can be avoided.

Description

Message processing method during a kind of virtual switch fault and equipment
Technical field
The present invention relates to communication technical field, message processing method during especially a kind of virtual switch fault and equipment, the method namely by standby virtual switch, message processed and standby virtual switch.
Background technology
SDN (Software Defined Network, software defined network) be a kind of new network innovation framework, its core concept is separated with forwarding plane by the control plane of the network equipment, to realize the flexible control to flow, for the innovation of core network and application provides good platform.In SDN, comprise the network equipment (as switch) and SDN controller.SDN controller is used for according to the configuration of user or the protocol generation stream table (Flow Table) of dynamic operation, and stream table is sent to the network equipment.The network equipment for receiving the stream table from SDN controller, and mates according to stream table and processes message.Wherein, the network equipment can be the virtual switch (vSwitch) on physical switches or physical server.
As shown in Figure 1, for the networking schematic diagram of SDN, SDN controller can be VCF (Virtual Converged Framework, virtual application fusion architecture) controller, virtual switch on physical server can be OVS (OpenFlow vSwitch, to increase income virtual switch), virtual switch is used for providing network interconnection ability for virtual machine.Virtual switch reads message from the Microsoft Loopback Adapter of virtual machine, and the stream table utilizing SDN controller to issue (stream table is stored in the database of physical server) processes message.Virtual switch reads message from the physical network card of physical server, and the stream table utilizing SDN controller to issue processes message.Based on above-mentioned process, the message of virtual machine is sent to other network equipment by virtual switch, and the message of other network equipment is sent to virtual machine.
But when virtual switch breaks down, then virtual switch cannot process message, thus the business resulting through the virtual machine that this virtual switch E-Packets is interrupted.
Summary of the invention
The embodiment of the present invention provides message processing method during a kind of virtual switch fault, physical server runs main virtual switch and standby virtual switch, said method comprising the steps of:
The operating state of the described main virtual switch of described standby virtual switch monitoring;
When the operating state of described main virtual switch is fault, described standby virtual switch obtains message, if the software defined network SDN controller that described standby virtual switch obtains from the database of described physical server is handed down in the stream table of described main virtual switch, there is the list item of described message coupling, then the list item mated according to described message forwards described message.
The process of the operating state of the described main virtual switch of described standby virtual switch monitoring, specifically comprises: the operating state keep-alive message that the described main virtual switch of described standby virtual switch monitoring periodically sends; If described standby virtual switch receives operating state keep-alive message in Preset Time, then determine that the operating state of main virtual switch is non-fault; If described standby virtual switch does not receive operating state keep-alive message in Preset Time, then determine that the operating state of main virtual switch is fault.
Described method also comprises:
Before the operating state of main virtual switch is fault, described standby virtual switch periodically obtains the stream table that SDN controller is handed down to described main virtual switch from the database of described physical server; Or when the operating state of main virtual switch is fault, described standby virtual switch obtains the stream table that SDN controller is handed down to described main virtual switch from the database of described physical server.
Described method also comprises:
The message notice that described main virtual switch breaks down by described standby virtual switch gives described SDN controller, to make described SDN controller, the stream table of generation is handed down to described standby virtual switch.
Described method also comprises:
If the SDN controller that described standby virtual switch obtains from the database of described physical server is handed down in the stream table of described main virtual switch the list item that there is described message coupling, then described standby virtual switch copies described message, and by the message up sending after copying to described SDN controller, to make described SDN controller, stream table corresponding for described message is handed down to described standby virtual switch;
Described standby virtual switch receives stream table corresponding to described message that described SDN controller issues, and delete the list item that the described SDN controller stored in the database of described physical server is handed down to the described message coupling in the stream table of described main virtual switch, and delete the list item that the described SDN controller obtained from the database of described physical server is handed down to the described message coupling in the stream table of described main virtual switch.
The embodiment of the present invention provides a kind of standby virtual switch, and physical server runs main virtual switch and described standby virtual switch, described standby virtual switch specifically comprises:
Monitoring module, for monitoring the operating state of described main virtual switch;
Processing module, for when the operating state of described main virtual switch is fault, obtain message, if the software defined network SDN controller obtained from the database of described physical server is handed down in the stream table of described main virtual switch, there is the list item of described message coupling, then the list item mated according to described message forwards described message.
Described monitoring module, specifically for monitoring the operating state keep-alive message that described main virtual switch periodically sends; If receive described operating state keep-alive message in Preset Time, then determine that the operating state of described main virtual switch is non-fault; If do not receive described operating state keep-alive message in Preset Time, then determine that the operating state of described main virtual switch is fault.
Described processing module, also for before being fault in the operating state of main virtual switch, periodically obtains the stream table that SDN controller is handed down to described main virtual switch from the database of described physical server; Or, when the operating state of main virtual switch is fault, from the database of described physical server, obtain the stream table that SDN controller is handed down to described main virtual switch.
Described processing module, also gives described SDN controller for the message notice that broken down by described main virtual switch, to make described SDN controller, the stream table of generation is handed down to described standby virtual switch.
Described processing module, if the SDN controller also for obtaining the database from described physical server is handed down in the stream table of described main virtual switch the list item that there is described message coupling, then copy described message, and by the message up sending after copying to described SDN controller, to make described SDN controller, stream table corresponding for described message is handed down to described standby virtual switch;
Receive the stream table that described message that described SDN controller issues is corresponding, and delete the list item that the described SDN controller stored in the database of described physical server is handed down to the described message coupling in the stream table of described main virtual switch, and delete the list item that the described SDN controller obtained from the database of described physical server is handed down to the described message coupling in the stream table of described main virtual switch.
Based on technique scheme, in the embodiment of the present invention, by running main virtual switch and standby virtual switch on physical server, thus when main virtual switch breaks down, main virtual switch is replaced to process message by standby virtual switch, namely by standby virtual switch processes message, thus the business of the virtual machine E-Packeted by main virtual switch is avoided to interrupt.
Accompanying drawing explanation
Fig. 1 is the networking schematic diagram of the SDN proposed in prior art;
Fig. 2 is the application scenarios schematic diagram that the embodiment of the present invention proposes;
Fig. 3 be the embodiment of the present invention provide virtual switch fault time message processing method flow chart;
Fig. 4 is the structural representation of a kind of standby virtual switch that the embodiment of the present invention provides.
Embodiment
For problems of the prior art, the embodiment of the present invention provides message processing method during a kind of virtual switch fault, take Fig. 2 as the application scenarios schematic diagram of the embodiment of the present invention, the method is applied in the SDN comprising SDN controller and physical server, this physical server runs virtual machine, main virtual switch and standby virtual switch.Wherein, SDN controller can be VCF controller, and the main virtual switch that physical server runs and standby virtual switch can be main OVS and backup OVS.
As shown in Figure 2, main virtual switch needs to bind Microsoft Loopback Adapter corresponding to virtual machine, and namely main virtual switch is connected with Microsoft Loopback Adapter.Standby virtual switch needs to bind Microsoft Loopback Adapter corresponding to virtual machine, and namely standby virtual switch is connected with Microsoft Loopback Adapter.
When the operating state of main virtual switch is non-fault, stream table is handed down to main virtual switch by SDN controller, and the stream table by main virtual switch SDN controller being handed down to this main virtual switch is stored in the database of physical server.Further, main virtual switch reads message from the Microsoft Loopback Adapter that virtual machine is corresponding, and utilizes the stream table that SDN controller is handed down to main virtual switch to process message.Main virtual switch reads message from the physical network card that physical server is corresponding, and utilizes the stream table that SDN controller is handed down to main virtual switch to process message.
Based on above-mentioned process, the message of virtual machine can be sent to other network equipment by main virtual switch, and the message of other network equipment can be sent to virtual machine.
Above-mentioned comprise the application scenarios of main virtual switch and standby virtual switch under, as shown in Figure 3, message processing method during this virtual switch fault, specifically can comprise the following steps:
Step 301, standby virtual switch monitors the operating state of main virtual switch.
In the embodiment of the present invention, when the operating state of main virtual switch is non-fault, standby virtual switch needs the operating state monitoring main virtual switch.When the operating state that standby virtual switch monitors virtual switch is non-fault, standby virtual switch needs the operating state continuing the main virtual switch of monitoring.When the operating state that standby virtual switch monitors virtual switch is fault, standby virtual switch no longer can monitor the operating state of main virtual switch, and performs step 302.
In the embodiment of the present invention, standby virtual switch monitors the process of the operating state of main virtual switch, specifically includes but not limited to as under type: standby virtual switch monitors the operating state keep-alive message that main virtual switch periodically sends; If standby virtual switch receives operating state keep-alive message in Preset Time, then determine that the operating state of main virtual switch is non-fault; If standby virtual switch does not receive operating state keep-alive message in Preset Time, then determine that the operating state of main virtual switch is fault.
Wherein, main virtual switch chance periodically sends operating state keep-alive message to standby virtual switch, and the periodic time can be arranged arbitrarily according to practical experience, as the time can be set to 50us.Based on this, if standby virtual switch does not receive operating state keep-alive message in 50us, then can think that the operating state of main virtual switch is fault.If standby virtual switch receives operating state keep-alive message in 50us, then can think that the operating state of main virtual switch is non-fault.
Step 302, when the operating state of main virtual switch is fault, standby virtual switch obtains message, if the SDN controller obtained from the database of physical server is handed down in the stream table of main virtual switch, there is the list item of message coupling, E-Packet according to the list item of message coupling.
In the embodiment of the present invention, standby virtual switch obtains the mode that SDN controller is handed down to the stream table of main virtual switch from the database of physical server, specifically include but not limited to as under type: mode one, before the operating state of main virtual switch is fault, standby virtual switch periodically obtains the stream table that SDN controller is handed down to main virtual switch from the database of physical server.Mode two, when the operating state of main virtual switch is fault, standby virtual switch obtains the stream table that SDN controller is handed down to main virtual switch from the database of physical server.
For mode one, in a kind of specific implementation of the embodiment of the present invention, before the operating state of main virtual switch is fault, standby virtual switch periodically obtains SDN controller and is handed down to stream table corresponding to main virtual switch from the database of physical server, and stream table SDN controller being handed down to main virtual switch is set to unactivated state.When the operating state of main virtual switch is fault, the stream table that SDN controller is handed down to main virtual switch by standby virtual switch is set to state of activation.When the stream table that SDN controller is handed down to main virtual switch is unactivated state, standby virtual switch refusal obtains message from the Microsoft Loopback Adapter of virtual machine, and refusal obtains message from the physical network card of physical server.When the stream table that SDN controller is handed down to main virtual switch is state of activation, standby virtual switch obtains message from the Microsoft Loopback Adapter of virtual machine, and obtains message from the physical network card of physical server.
In the embodiment of the present invention, standby virtual switch is after getting message, match information (as object MAC (Media Access Control Address, media interviews control) address, object IP address etc.) the inquiry SDN controller carried in this message is utilized to be handed down to the stream table of main virtual switch.If SDN controller is handed down in the stream table of main virtual switch the list item that there is message coupling, namely SDN controller is handed down in the stream table of main virtual switch the match information of carrying in message, then the list item that standby virtual switch mates according to message E-Packets.If SDN controller is handed down in the stream table of main virtual switch the list item that there is not message coupling, namely SDN controller is handed down to the match information not having in the stream table of main virtual switch to carry in recorded message, then message is sent to SDN controller by standby virtual switch, stream table corresponding to this message is calculated by SDN controller, and stream table corresponding for this message is handed down to standby virtual switch, the stream table that standby virtual switch is handed down to this message of this standby virtual switch corresponding according to SDN controller forwards this message.
In order to ensure the consistency of service data in service data and main virtual switch on standby virtual switch, from the database of physical server, periodically obtaining SDN controller at standby virtual switch is handed down on the basis of stream table of main virtual switch, and standby virtual switch periodically can also obtain the information such as outbound port state (i.e. network interface card information state) of the port information of virtual machine, the port status of virtual machine, main virtual switch from the database of physical server.Further, the virtual machine port status on standby virtual switch can be state of activation, and the outbound port state of standby virtual switch can be state of activation.
For mode two, in a kind of specific implementation of the embodiment of the present invention, before the operating state of main virtual switch is fault, standby virtual switch does not need from the database of physical server, obtain SDN controller and is handed down to stream table corresponding to main virtual switch.When the operating state of main virtual switch is fault, the virtual machine port status of self is set to state of activation by standby virtual switch, and outbound port state is set to state of activation.Meanwhile, standby virtual switch obtains the stream table that SDN controller is handed down to main virtual switch from the database of physical server, and stream table SDN controller being handed down to main virtual switch is set to state of activation.Standby virtual switch does not obtain SDN controller when being handed down to the stream table of main virtual switch, standby virtual switch refusal obtains message from the Microsoft Loopback Adapter of virtual machine, and refusal obtains message from the physical network card of physical server.Standby virtual switch obtains the stream table that SDN controller is handed down to main virtual switch, and the stream table that SDN controller is handed down to main virtual switch is when being state of activation, standby virtual switch obtains message from the Microsoft Loopback Adapter of virtual machine, and obtains message from the physical network card of physical server.
In the embodiment of the present invention, standby virtual switch, after getting message, utilizes match information (as target MAC (Media Access Control) address, object IP address etc.) the inquiry SDN controller carried in this message to be handed down to the stream table of main virtual switch.If SDN controller is handed down in the stream table of main virtual switch the list item that there is message coupling, namely SDN controller is handed down in the stream table of main virtual switch the match information of carrying in message, and the list item that standby virtual switch mates according to message E-Packets.If SDN controller is handed down in the stream table of main virtual switch the list item that there is not message coupling, namely SDN controller is handed down to the match information not having in the stream table of main virtual switch to carry in recorded message, then message is sent to SDN controller by standby virtual switch, stream table corresponding to this message is calculated by SDN controller, and stream table corresponding for this message is handed down to standby virtual switch, the stream table that standby virtual switch is handed down to this message of this standby virtual switch corresponding according to SDN controller forwards this message.
In the embodiment of the present invention, when the operating state of main virtual switch is fault, the stream table of generation, to SDN controller, is handed down to standby virtual switch to make SDN controller by the message notice that main virtual switch can also break down by standby virtual switch.
Concrete, standby virtual switch is after the message notice broken down by main virtual switch is to SDN controller, and SDN controller knows that main virtual switch breaks down, and knows that main for replacement virtual switch is carried out work by standby virtual switch.Based on this, when SDN controller is handed down to the match information not having in the stream table of main virtual switch to carry in recorded message, and after message sends to SDN controller by standby virtual switch, stream table corresponding for this message can be handed down to standby virtual switch by SDN controller, instead of stream table corresponding for this message is handed down to main virtual switch.
As shown in Figure 2, main virtual switch is connected with SDN controller, and standby virtual switch is connected with SDN controller, but, the UUID that the UUID (Universally Unique Identifier, general unique identifier) that main virtual switch is corresponding is corresponding with standby virtual switch is inconsistent.When the operating state of main virtual switch is fault, UUID corresponding for standby virtual switch is sent to SDN controller by standby virtual switch, the UUID that SDN controller is corresponding according to standby virtual switch determines the standby virtual switch replacing main virtual switch work, and stream table namely can be determined to be handed down to standby virtual switch.
The match information not having in the stream table of main virtual switch to carry in recorded message is handed down at SDN controller, when message is sent to SDN controller by standby virtual switch, standby virtual switch message is encapsulated in packet in (entering data) message, by packet in message, this message sent to SDN controller.
In the embodiment of the present invention, if the SDN controller that standby virtual switch obtains from the database of physical server is handed down in the stream table of main virtual switch the list item that there is message coupling, then standby virtual switch is on the basis that the list item mated according to message E-Packets, standby virtual switch can also copy this message, and by the message up sending after copying to SDN controller, to make SDN controller, stream table corresponding for this message is handed down to standby virtual switch.Wherein, SDN controller is knowing that main virtual switch breaks down, and after knowing that main for replacement virtual switch is carried out work by standby virtual switch, SDN controller is when receiving the message that standby virtual switch send, stream table corresponding for this message can be handed down to standby virtual switch by this SDN controller, instead of stream table corresponding for this message is handed down to main virtual switch.Wherein, standby virtual switch is that the message after copying is encapsulated in packet in message, sends to SDN controller by the message after this copies by packet in message.
Further, the stream table that the message that standby virtual switch reception SDN controller issues is corresponding, and the SDN controller stored in the database of deletion of physically server is handed down to the list item of this message coupling in the stream table of main virtual switch, and delete the list item that the SDN controller obtained from the database of physical server is handed down to this message coupling in the stream table of main virtual switch.
Such as, the SDN controller that standby virtual switch obtains from the database of physical server is handed down in the stream table of main virtual switch the stream table 1 that there is message 1 and mate, then standby virtual switch is E-Packeting on the basis of 1 according to stream table 1, standby virtual switch can also copy packet 1, and delivers to SDN controller by the message 1 after copying.SDN controller is knowing that main virtual switch breaks down, and know that standby virtual switch replaces after main virtual switch carries out work, SDN controller is when receiving message 1, SDN controller can generate this message 1 correspondence stream table 2 (stream table 2 may with stream table 1 identical, also may be different from stream table 1), and the stream table 2 of this message 1 correspondence is handed down to standby virtual switch.Standby virtual switch receives the stream table 2 of message 1 correspondence that SDN controller issues, because SDN controller had issued the stream table 1 of message 1 correspondence to main virtual switch before, and main virtual switch had stored the stream table 1 of message 1 correspondence in the database of physical server, and standby virtual switch had obtained the stream table 1 of message 1 correspondence from the database of physical server.Therefore, standby virtual switch is after receiving SDN controller and being handed down to the stream table 2 of message 1 correspondence of standby virtual switch, also need the SDN controller stored in the database of deletion of physically server to be handed down to the stream table 1 of message 1 correspondence of main virtual switch, and delete the stream table 1 that SDN controller that standby virtual switch obtains from the database of physical server is handed down to message 1 correspondence of main virtual switch.After standby virtual switch receives the message of coupling stream table 2 again, standby virtual switch no longer copies this message, does not also need message up sending to SDN controller.
In the embodiment of the present invention, after stream table corresponding for message is handed down to standby virtual switch by SDN controller, stream table corresponding for this standby virtual switch, after receiving SDN controller and being handed down to the stream table of this standby virtual switch, can also be stored in the database of physical server by standby virtual switch.
In the embodiment of the present invention, after the fault recovery of main virtual switch, main virtual switch no longer takes over the standby virtual switch run, but as the standby virtual switch of the standby virtual switch run, monitors the operating state of the standby virtual switch run.
Based on technique scheme, in the embodiment of the present invention, by running main virtual switch and standby virtual switch on physical server, thus when main virtual switch breaks down, SDN controller need not be passed through, standby virtual switch is directly taken over main virtual switch and is carried out work, namely main virtual switch is replaced to process message by standby virtual switch, namely by standby virtual switch processes message, thus the business of the virtual machine E-Packeted by main virtual switch is avoided to interrupt.
Based on the inventive concept same with said method, additionally provide a kind of standby virtual switch in the embodiment of the present invention, physical server runs main virtual switch and described standby virtual switch, as shown in Figure 4, described standby virtual switch specifically comprises:
Monitoring module 11, for monitoring the operating state of described main virtual switch;
Processing module 12, for when the operating state of described main virtual switch is fault, obtain message, if the software defined network SDN controller obtained from the database of described physical server is handed down in the stream table of described main virtual switch, there is the list item of described message coupling, then the list item mated according to described message forwards described message.
Described monitoring module 11, specifically for monitoring the operating state keep-alive message that described main virtual switch periodically sends; If receive described operating state keep-alive message in Preset Time, then determine that the operating state of described main virtual switch is non-fault; If do not receive described operating state keep-alive message in Preset Time, then determine that the operating state of described main virtual switch is fault.
Described processing module 12, also for before being fault in the operating state of main virtual switch, periodically obtains the stream table that SDN controller is handed down to described main virtual switch from the database of described physical server; Or, when the operating state of main virtual switch is fault, from the database of described physical server, obtain the stream table that SDN controller is handed down to described main virtual switch.
Described processing module 12, also gives described SDN controller for the message notice that broken down by main virtual switch, to make described SDN controller, the stream table of generation is handed down to described standby virtual switch.
Described processing module 12, if the SDN controller also for obtaining the database from described physical server is handed down in the stream table of described main virtual switch the list item that there is described message coupling, then copy described message, and by the message up sending after copying to described SDN controller, to make described SDN controller, stream table corresponding for described message is handed down to described standby virtual switch;
Receive the stream table that described message that described SDN controller issues is corresponding, and delete the list item that the described SDN controller stored in the database of described physical server is handed down to the described message coupling in the stream table of described main virtual switch, and delete the list item that the described SDN controller obtained from the database of described physical server is handed down to the described message coupling in the stream table of described main virtual switch.
Wherein, the modules of apparatus of the present invention can be integrated in one, and also can be separated deployment.Above-mentioned module can merge into a module, also can split into multiple submodule further.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required general hardware platform by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform method described in each embodiment of the present invention.It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.It will be appreciated by those skilled in the art that the module in the device in embodiment can carry out being distributed in the device of embodiment according to embodiment description, also can carry out respective change and be arranged in the one or more devices being different from the present embodiment.The module of above-described embodiment can merge into a module, also can split into multiple submodule further.The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.Be only several specific embodiment of the present invention above, but the present invention is not limited thereto, the changes that any person skilled in the art can think of all should fall into protection scope of the present invention.

Claims (10)

1. message processing method during virtual switch fault, is characterized in that, physical server runs main virtual switch and standby virtual switch, said method comprising the steps of:
The operating state of the described main virtual switch of described standby virtual switch monitoring;
When the operating state of described main virtual switch is fault, described standby virtual switch obtains message, if the software defined network SDN controller that described standby virtual switch obtains from the database of described physical server is handed down in the stream table of described main virtual switch, there is the list item of described message coupling, then the list item mated according to described message forwards described message.
2. the method for claim 1, is characterized in that, the process of the operating state of the described main virtual switch of described standby virtual switch monitoring, specifically comprises:
The operating state keep-alive message that the described main virtual switch of described standby virtual switch monitoring periodically sends;
If described standby virtual switch receives operating state keep-alive message in Preset Time, then determine that the operating state of main virtual switch is non-fault;
If described standby virtual switch does not receive operating state keep-alive message in Preset Time, then determine that the operating state of main virtual switch is fault.
3. the method for claim 1, is characterized in that, described method also comprises:
Before the operating state of main virtual switch is fault, described standby virtual switch periodically obtains the stream table that SDN controller is handed down to described main virtual switch from the database of described physical server; Or when the operating state of main virtual switch is fault, described standby virtual switch obtains the stream table that SDN controller is handed down to described main virtual switch from the database of described physical server.
4. the method for claim 1, is characterized in that, described method also comprises:
The message notice that described main virtual switch breaks down by described standby virtual switch gives described SDN controller, to make described SDN controller, the stream table of generation is handed down to described standby virtual switch.
5. method as claimed in claim 4, it is characterized in that, described method also comprises:
If the SDN controller that described standby virtual switch obtains from the database of described physical server is handed down in the stream table of described main virtual switch the list item that there is described message coupling, then described standby virtual switch copies described message, and by the message up sending after copying to described SDN controller, to make described SDN controller, stream table corresponding for described message is handed down to described standby virtual switch;
Described standby virtual switch receives stream table corresponding to described message that described SDN controller issues, and delete the list item that the described SDN controller stored in the database of described physical server is handed down to the described message coupling in the stream table of described main virtual switch, and delete the list item that the described SDN controller obtained from the database of described physical server is handed down to the described message coupling in the stream table of described main virtual switch.
6. a standby virtual switch, is characterized in that, physical server runs main virtual switch and described standby virtual switch, described standby virtual switch specifically comprises:
Monitoring module, for monitoring the operating state of described main virtual switch;
Processing module, for when the operating state of described main virtual switch is fault, obtain message, if the software defined network SDN controller obtained from the database of described physical server is handed down in the stream table of described main virtual switch, there is the list item of described message coupling, then the list item mated according to described message forwards described message.
7. standby virtual switch as claimed in claim 6, is characterized in that,
Described monitoring module, specifically for monitoring the operating state keep-alive message that described main virtual switch periodically sends; If receive described operating state keep-alive message in Preset Time, then determine that the operating state of described main virtual switch is non-fault; If do not receive described operating state keep-alive message in Preset Time, then determine that the operating state of described main virtual switch is fault.
8. standby virtual switch as claimed in claim 6, is characterized in that,
Described processing module, also for before being fault in the operating state of main virtual switch, periodically obtains the stream table that SDN controller is handed down to described main virtual switch from the database of described physical server; Or, when the operating state of main virtual switch is fault, from the database of described physical server, obtain the stream table that SDN controller is handed down to described main virtual switch.
9. standby virtual switch as claimed in claim 6, is characterized in that,
Described processing module, also gives described SDN controller for the message notice that broken down by described main virtual switch, to make described SDN controller, the stream table of generation is handed down to described standby virtual switch.
10. standby virtual switch as claimed in claim 9, is characterized in that,
Described processing module, if the SDN controller also for obtaining the database from described physical server is handed down in the stream table of described main virtual switch the list item that there is described message coupling, then copy described message, and by the message up sending after copying to described SDN controller, to make described SDN controller, stream table corresponding for described message is handed down to described standby virtual switch;
Receive the stream table that described message that described SDN controller issues is corresponding, and delete the list item that the described SDN controller stored in the database of described physical server is handed down to the described message coupling in the stream table of described main virtual switch, and delete the list item that the described SDN controller obtained from the database of described physical server is handed down to the described message coupling in the stream table of described main virtual switch.
CN201410445678.0A 2014-09-03 2014-09-03 Message processing method and equipment when a kind of virtual switch failure Active CN104243205B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410445678.0A CN104243205B (en) 2014-09-03 2014-09-03 Message processing method and equipment when a kind of virtual switch failure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410445678.0A CN104243205B (en) 2014-09-03 2014-09-03 Message processing method and equipment when a kind of virtual switch failure

Publications (2)

Publication Number Publication Date
CN104243205A true CN104243205A (en) 2014-12-24
CN104243205B CN104243205B (en) 2019-01-25

Family

ID=52230605

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410445678.0A Active CN104243205B (en) 2014-09-03 2014-09-03 Message processing method and equipment when a kind of virtual switch failure

Country Status (1)

Country Link
CN (1) CN104243205B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105207902A (en) * 2015-10-13 2015-12-30 广州西麦科技股份有限公司 Main-standby virtual gateway system and method based on SDN
CN105262692A (en) * 2015-09-23 2016-01-20 盛科网络(苏州)有限公司 Method and device for realizing flow meter information real-time synchronization of openflow switches
CN105262753A (en) * 2015-10-28 2016-01-20 广州西麦科技股份有限公司 System and method for achieving security policy based on SDN virtual switch
CN105429946A (en) * 2015-10-28 2016-03-23 广州西麦科技股份有限公司 System and method of preventing forging IP address based on SDN virtual switch
CN105516292A (en) * 2015-12-03 2016-04-20 国家电网公司 Hot standby method of cloud platform of intelligent substation
CN106533942A (en) * 2016-11-30 2017-03-22 北京邮电大学 Data processing method and device based on SDN
CN106878082A (en) * 2017-02-28 2017-06-20 郑州云海信息技术有限公司 A kind of Microsoft Loopback Adapter thermomigration process and its device
CN107528715A (en) * 2016-06-22 2017-12-29 中兴通讯股份有限公司 The determination method and apparatus of fault type
CN107925677A (en) * 2015-09-26 2018-04-17 英特尔公司 For unloading the technology of data object replication and service function chain management
CN108156019A (en) * 2017-11-29 2018-06-12 全球能源互联网研究院有限公司 A kind of network based on SDN derives alarm filtering system and method
TWI691183B (en) * 2018-12-12 2020-04-11 中華電信股份有限公司 Backup method applied in virtual network function and system using the same
CN111726251A (en) * 2020-06-12 2020-09-29 浪潮电子信息产业股份有限公司 Networking method, system and device for SDS storage domain in virtualization system
CN113472900A (en) * 2021-09-01 2021-10-01 阿里云计算有限公司 Message processing method, device, storage medium and computer program product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1937782A (en) * 2006-08-04 2007-03-28 华为数字技术有限公司 Frame device and its message transmitting method
WO2014067468A1 (en) * 2012-11-01 2014-05-08 Hangzhou H3C Technologies Co., Ltd. Edge virtual bridging station with primary and secondary physical network cards
CN103973676A (en) * 2014-04-21 2014-08-06 蓝盾信息安全技术股份有限公司 Cloud computing safety protection system and method based on SDN
CN103986651A (en) * 2014-05-30 2014-08-13 杭州华三通信技术有限公司 SDN controller and control method thereof
CN103997513A (en) * 2014-04-21 2014-08-20 北京邮电大学 Programmable virtual network service system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1937782A (en) * 2006-08-04 2007-03-28 华为数字技术有限公司 Frame device and its message transmitting method
WO2014067468A1 (en) * 2012-11-01 2014-05-08 Hangzhou H3C Technologies Co., Ltd. Edge virtual bridging station with primary and secondary physical network cards
CN103973676A (en) * 2014-04-21 2014-08-06 蓝盾信息安全技术股份有限公司 Cloud computing safety protection system and method based on SDN
CN103997513A (en) * 2014-04-21 2014-08-20 北京邮电大学 Programmable virtual network service system
CN103986651A (en) * 2014-05-30 2014-08-13 杭州华三通信技术有限公司 SDN controller and control method thereof

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105262692A (en) * 2015-09-23 2016-01-20 盛科网络(苏州)有限公司 Method and device for realizing flow meter information real-time synchronization of openflow switches
CN107925677A (en) * 2015-09-26 2018-04-17 英特尔公司 For unloading the technology of data object replication and service function chain management
US11082515B2 (en) 2015-09-26 2021-08-03 Intel Corporation Technologies for offloading data object replication and service function chain management
CN107925677B (en) * 2015-09-26 2021-06-08 英特尔公司 Method and switch for offloading data object replication and service function chain management
CN105207902A (en) * 2015-10-13 2015-12-30 广州西麦科技股份有限公司 Main-standby virtual gateway system and method based on SDN
CN105262753A (en) * 2015-10-28 2016-01-20 广州西麦科技股份有限公司 System and method for achieving security policy based on SDN virtual switch
CN105429946A (en) * 2015-10-28 2016-03-23 广州西麦科技股份有限公司 System and method of preventing forging IP address based on SDN virtual switch
CN105516292A (en) * 2015-12-03 2016-04-20 国家电网公司 Hot standby method of cloud platform of intelligent substation
CN107528715A (en) * 2016-06-22 2017-12-29 中兴通讯股份有限公司 The determination method and apparatus of fault type
CN106533942B (en) * 2016-11-30 2019-06-14 北京邮电大学 A kind of data processing method and device based on SDN
CN106533942A (en) * 2016-11-30 2017-03-22 北京邮电大学 Data processing method and device based on SDN
CN106878082B (en) * 2017-02-28 2020-03-31 郑州云海信息技术有限公司 Virtual network card hot migration method and device
CN106878082A (en) * 2017-02-28 2017-06-20 郑州云海信息技术有限公司 A kind of Microsoft Loopback Adapter thermomigration process and its device
CN108156019A (en) * 2017-11-29 2018-06-12 全球能源互联网研究院有限公司 A kind of network based on SDN derives alarm filtering system and method
CN108156019B (en) * 2017-11-29 2022-10-25 全球能源互联网研究院有限公司 SDN-based network derived alarm filtering system and method
TWI691183B (en) * 2018-12-12 2020-04-11 中華電信股份有限公司 Backup method applied in virtual network function and system using the same
CN111726251A (en) * 2020-06-12 2020-09-29 浪潮电子信息产业股份有限公司 Networking method, system and device for SDS storage domain in virtualization system
CN111726251B (en) * 2020-06-12 2023-04-25 浪潮电子信息产业股份有限公司 Networking method, system and device for SDS (sodium dodecyl sulfate) storage domain in virtualized system
CN113472900A (en) * 2021-09-01 2021-10-01 阿里云计算有限公司 Message processing method, device, storage medium and computer program product

Also Published As

Publication number Publication date
CN104243205B (en) 2019-01-25

Similar Documents

Publication Publication Date Title
CN104243205A (en) Message processing method and device used during virtual switch fault
CN106331098B (en) Server cluster system
US10644952B2 (en) VNF failover method and apparatus
CN101588302B (en) Method and apparatus for updating router
EP3016316A1 (en) Network control method and apparatus
CN105165054A (en) Method for processing network service faults, service management system and system management module
CN104601380B (en) A kind of software defined network controller and its method for restoring host information
WO2022127504A1 (en) Network element management method and apparatus, and storage medium
JP5249839B2 (en) Access gateway device and session information duplication method in access gateway device
CN104468201A (en) Automatic deleting method and device for offline network equipment
CN103441987A (en) Method and device for managing dual-computer firewall system
CN106911769B (en) Cloud platform routing data processing method and physical server of cloud platform
CN101262479B (en) A network file share method, server and network file share system
CN101145972B (en) A disaster tolerance network management system and login method of network management clients
KR20150002474A (en) Methods for recovering failure in communication networks
CN100563263C (en) In network storage service, realize the method and system of system high-available
CN101909006A (en) BFD (Bidirectional Forwarding Detection) message sending and receiving methods as well as device and communication system thereof
CN105391565A (en) Method for achieving synchronization of backup business configuration
CN109005051A (en) Routing high availability method and system based on OpenStack
CN111835544B (en) Monitoring method and system of virtual router based on user mode protocol stack
JP2015114952A (en) Network system, monitoring control unit, and software verification method
CN104869016A (en) Method and equipment for transmitting data message
WO2020181699A1 (en) Method for managing management control converged telecommunications network, and system
JP2018107744A (en) Communication node, communication system, communication method, and program
CN108123822B (en) Link processing method and link processing equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant before: Huasan Communication Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant