CN104243205B - Message processing method and equipment when a kind of virtual switch failure - Google Patents

Message processing method and equipment when a kind of virtual switch failure Download PDF

Info

Publication number
CN104243205B
CN104243205B CN201410445678.0A CN201410445678A CN104243205B CN 104243205 B CN104243205 B CN 104243205B CN 201410445678 A CN201410445678 A CN 201410445678A CN 104243205 B CN104243205 B CN 104243205B
Authority
CN
China
Prior art keywords
virtual switch
message
sdn controller
interchanger
flow table
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410445678.0A
Other languages
Chinese (zh)
Other versions
CN104243205A (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.)
New H3C Technologies Co Ltd
Original Assignee
New 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 New H3C Technologies Co Ltd filed Critical New 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 the message processing methods and equipment when a kind of virtual switch failure, this method comprises: the working condition of the standby virtual exchange main virtual switch of machine monitoring;When the working condition of main virtual switch is failure, standby virtual interchanger obtains message, if the standby virtual interchanger is from the flow table that the SDN controller obtained in the database of the physical server is handed down to the main virtual switch, there are the list items of the message matching, then forward the message according to the list item of the message matching.In the embodiment of the present invention, when main virtual switch breaks down, it can be interrupted to avoid the business of virtual machine.

Description

Message processing method and equipment when a kind of virtual switch failure
Technical field
The present invention relates to message processing method when a kind of field of communication technology, especially virtual switch failure and set Method and standby virtual interchanger standby, i.e., message is handled by standby virtual interchanger.
Background technique
SDN (Software Defined Network, software defined network) is a kind of new network of Emulex network innovation framework, core Thought is want to separate the control plane of the network equipment with forwarding plane, is core network to realize the flexible control to flow And the innovation of application provides good platform.In SDN network, including the network equipment (such as interchanger) and SDN controller. SDN controller is used to generate flow table (Flow Table) according to the configuration of user or the agreement of dynamic operation, and flow table is sent out It is sent to the network equipment.The network equipment matches and handles message according to flow table for receiving the flow table from SDN controller. Wherein, the network equipment can be the virtual switch (vSwitch) on physical switches or physical server.
As shown in Figure 1, being the networking schematic diagram of SDN network, SDN controller can be VCF (Virtual Converged Framework, virtual application fusion architecture) controller, the virtual switch on physical server can be OVS (OpenFlow VSwitch, virtual switch of increasing income), virtual switch is used to provide network interconnection ability for virtual machine.Virtual switch is from void (flow table is stored in the data of physical server to the flow table for reading message on the Microsoft Loopback Adapter of quasi- machine, and being issued using SDN controller In library) message is handled.Virtual switch reads message from the physical network card of physical server, and is controlled using SDN The flow table that device issues handles message.Based on above-mentioned processing, the message of virtual machine is sent to other nets by virtual switch Network equipment, and the message of other network equipments is sent to virtual machine.
But when virtual switch breaks down, then virtual switch can not be handled to message, so as to cause The business of the virtual machine to be E-Packeted by the virtual switch is interrupted.
Summary of the invention
The embodiment of the present invention provides message processing method when a kind of virtual switch failure, runs master on physical server Virtual switch and standby virtual interchanger, the described method comprises the following steps:
The working condition of main virtual switch described in the standby virtual exchange machine monitoring;
When the working condition of the main virtual switch is failure, the standby virtual interchanger obtains message, if institute It states the software defined network SDN controller that standby virtual interchanger is obtained from the database of the physical server and is handed down to institute In the flow table for stating main virtual switch, there are the list items of the message matching, then forward institute according to the list item of the message matching State message.
The process of the working condition of main virtual switch described in the standby virtual exchange machine monitoring, specifically includes: described Standby virtual exchanges the working condition keep alive Packet of main virtual switch periodicity sending described in machine monitoring;If the backup is empty Quasi- interchanger receives working condition keep alive Packet within a preset time, it is determined that the working condition of main virtual switch is not event Barrier;If the standby virtual interchanger does not receive working condition keep alive Packet within a preset time, it is determined that main virtual switch The working condition of machine is failure.
The method also includes:
Before the working condition of main virtual switch is failure, the standby virtual interchanger is periodically from the object It manages and obtains the flow table that SDN controller is handed down to the main virtual switch in the database of server;Alternatively, in main virtual switch When the working condition of machine is failure, the standby virtual interchanger obtains SDN control from the database of the physical server Device is handed down to the flow table of the main virtual switch.
The method also includes:
The information that the main virtual switch breaks down is notified to control to the SDN by the standby virtual interchanger Device, so that the SDN controller gives the flow table issuance of generation to the standby virtual interchanger.
The method also includes:
If the SDN controller that the standby virtual interchanger is obtained from the database of the physical server is handed down to institute It states in the flow table of main virtual switch there are the list item of the message matching, then the standby virtual interchanger replicates the report Text, and by the message up sending after duplication to the SDN controller, so that the SDN controller is by the corresponding flow table of the message It is handed down to the standby virtual interchanger;
The standby virtual interchanger receives the corresponding flow table of the message that the SDN controller issues, and deletes institute State the SDN controller stored in the database of physical server be handed down to it is described in the flow table of the main virtual switch The list item of message matching, and delete the SDN controller obtained from the database of the physical server and be handed down to institute State the list item of the message matching in the flow table of main virtual switch.
The embodiment of the present invention provides a kind of standby virtual interchanger, and main virtual switch and described is run on physical server Standby virtual interchanger, the standby virtual interchanger specifically include:
Monitoring module, for monitoring the working condition of the main virtual switch;
Processing module, for message being obtained, if from the object when the working condition of the main virtual switch is failure The software defined network SDN controller obtained in the database of server is managed to be handed down in the flow table of the main virtual switch, There are the list items of the message matching, then forward the message according to the list item of the message matching.
The monitoring module, specifically for monitoring the working condition keep-alive report of the main virtual switch periodicity sending Text;If receiving the working condition keep alive Packet within a preset time, it is determined that the working condition of the main virtual switch For non-failure;If not receiving the working condition keep alive Packet within a preset time, it is determined that the main virtual switch Working condition is failure.
The processing module is also used to before the working condition of main virtual switch is failure, periodically from described The flow table that SDN controller is handed down to the main virtual switch is obtained in the database of physical server;Alternatively, in main virtual friendship When the working condition changed planes is failure, SDN controller is obtained from the database of the physical server and is handed down to the main void The flow table of quasi- interchanger.
The processing module is also used to notify the information that the main virtual switch breaks down to control to the SDN Device, so that the SDN controller gives the flow table issuance of generation to the standby virtual interchanger.
The processing module, if the SDN controller for being also used to obtain from the database of the physical server is handed down to There are the list items of the message matching in the flow table of the main virtual switch, then replicate the message, and by the report after duplication It is sent on text to the SDN controller, so that the SDN controller gives the corresponding flow table issuance of the message to the standby virtual Interchanger;
The corresponding flow table of the message that the SDN controller issues is received, and deletes the data of the physical server The SDN controller stored in library is handed down to the list item of the message matching in the flow table of the main virtual switch, with And delete the stream that the SDN controller obtained from the database of the physical server is handed down to the main virtual switch The list item of the message matching in table.
Based on the above-mentioned technical proposal, in the embodiment of the present invention, by run on physical server main virtual switch and Standby virtual interchanger, to replace main virtual switch by standby virtual interchanger when main virtual switch breaks down Message is handled, i.e., by standby virtual switch processes message, to avoid passing through what main virtual switch E-Packeted The business of virtual machine is interrupted.
Detailed description of the invention
Fig. 1 is the networking schematic diagram of the SDN network proposed in the prior art;
Fig. 2 is the application scenarios schematic diagram that the embodiment of the present invention proposes;
Message processing method flow chart when Fig. 3 is virtual switch failure provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of standby virtual interchanger provided in an embodiment of the present invention.
Specific embodiment
Aiming at the problems existing in the prior art, at the message when embodiment of the present invention provides a kind of virtual switch failure Reason method, using Fig. 2 as the application scenarios schematic diagram of the embodiment of the present invention, this method is applied to take including SDN controller and physics It is engaged in the SDN of device, virtual machine, main virtual switch and standby virtual interchanger is run on the physical server.Wherein, SDN is controlled Device processed can be VCF controller, and the main virtual switch and standby virtual interchanger run on physical server can the OVS based on With backup OVS.
As shown in Fig. 2, main virtual switch needs to bind the corresponding Microsoft Loopback Adapter of virtual machine, i.e., main virtual switch and void Quasi- network interface card connection.Standby virtual interchanger needs to bind the corresponding Microsoft Loopback Adapter of virtual machine, i.e. standby virtual interchanger and virtual Network interface card connection.
When the working condition of main virtual switch is non-failure, SDN controller gives flow table issuance to main virtual switch, SDN controller is handed down to the flow table storage of this main virtual switch to the database of physical server by main virtual switch In.Further, main virtual switch reads message from the corresponding Microsoft Loopback Adapter of virtual machine, and is issued using SDN controller Message is handled to the flow table of main virtual switch.Main virtual switch is read from the corresponding physical network card of physical server Message is taken, and message is handled using the flow table that SDN controller is handed down to main virtual switch.
Based on above-mentioned processing, the message of virtual machine can be sent to other network equipments by main virtual switch, and can The message of other network equipments is sent to virtual machine.
Under the above-mentioned application scenarios including main virtual switch and standby virtual interchanger, as shown in figure 3, the virtual friendship Message processing method when failure of changing planes, can specifically include following steps:
Step 301, the working condition of the standby virtual exchange main virtual switch of machine monitoring.
In the embodiment of the present invention, when the working condition of main virtual switch is non-failure, standby virtual interchanger needs Monitor the working condition of main virtual switch.When the working condition that standby virtual interchanger monitors virtual switch is non-failure When, standby virtual interchanger needs to continue to monitor the working condition of main virtual switch.When standby virtual interchanger monitors void When the working condition of quasi- interchanger is failure, standby virtual interchanger can no longer monitor the working condition of main virtual switch, And execute step 302.
In the embodiment of the present invention, standby virtual exchanges the process of the working condition of the main virtual switch of machine monitoring, specific to wrap It includes but is not limited to such as under type: the working condition keep-alive report of the standby virtual exchange main virtual switch periodicity sending of machine monitoring Text;If standby virtual interchanger receives working condition keep alive Packet within a preset time, it is determined that the work of main virtual switch Making state is non-failure;If standby virtual interchanger does not receive working condition keep alive Packet within a preset time, it is determined that main The working condition of virtual switch is failure.
Wherein, main virtual switch chance periodically sends working condition keep alive Packet, period to standby virtual interchanger The time of property can carry out any setting based on practical experience, as the time can be set to 50us.Based on this, if backup is empty Quasi- interchanger does not receive working condition keep alive Packet in 50us, then will be considered that the working condition of main virtual switch is failure. If standby virtual interchanger receives working condition keep alive Packet in 50us, the working condition of main virtual switch will be considered that For non-failure.
Step 302, when the working condition of main virtual switch is failure, standby virtual interchanger obtains message, if from The SDN controller obtained in the database of physical server is handed down in the flow table of main virtual switch, and there are message matchings List item E-Packets according to the list item of message matching.
In the embodiment of the present invention, standby virtual interchanger obtains SDN controller from the database of physical server and issues It to the mode of the flow table of main virtual switch, is specifically including but not limited to such as under type: mode one, in the work of main virtual switch Make state as before failure, standby virtual interchanger is periodically obtained under SDN controller from the database of physical server Issue the flow table of main virtual switch.Mode two, main virtual switch working condition be failure when, standby virtual interchanger The flow table that SDN controller is handed down to main virtual switch is obtained from the database of physical server.
For mode one, in a kind of specific implementation of the embodiment of the present invention, in the working condition of main virtual switch Before failure, standby virtual interchanger obtains SDN controller periodically from the database of physical server and is handed down to master The corresponding flow table of virtual switch, and unactivated state is set by the flow table that SDN controller is handed down to main virtual switch.? When the working condition of main virtual switch is failure, SDN controller is handed down to main virtual switch by standby virtual interchanger Flow table is set as state of activation.When the flow table that SDN controller is handed down to main virtual switch is unactivated state, standby virtual Interchanger refusal obtains message from the Microsoft Loopback Adapter of virtual machine, and refuses to obtain report from the physical network card of physical server Text.When the flow table that SDN controller is handed down to main virtual switch is state of activation, void of the standby virtual interchanger from virtual machine Message is obtained on quasi- network interface card, and obtains message from the physical network card of physical server.
In the embodiment of the present invention, standby virtual interchanger utilizes the matching carried in the message after getting message Information (such as purpose MAC (Media Access Control Address, media access control) address, purpose IP address etc.) is looked into Ask the flow table that SDN controller is handed down to main virtual switch.It is deposited if SDN controller is handed down in the flow table of main virtual switch In the list item of message matching, i.e., SDN controller, which is handed down in the flow table of main virtual switch, the match information carried in message, Then standby virtual interchanger E-Packets according to the list item of message matching.If SDN controller is handed down to main virtual switch The list item of message matching is not present in flow table, i.e., SDN controller, which is handed down in the flow table of main virtual switch, does not have recorded message The match information of middle carrying, then message is sent to SDN controller by standby virtual interchanger, calculates the message by SDN controller Corresponding flow table, and give the corresponding flow table issuance of the message to standby virtual interchanger, standby virtual interchanger is controlled according to SDN The corresponding flow table of the message that device is handed down to this standby virtual interchanger forwards the message.
In order to guarantee the consistency of operation data and operation data on main virtual switch on standby virtual interchanger, standby Part virtual switch periodically obtains the stream that SDN controller is handed down to main virtual switch from the database of physical server On the basis of table, standby virtual interchanger can also periodically obtain the port of virtual machine from the database of physical server The information such as information, the exit port state (i.e. network interface card information state) of the port status of virtual machine, main virtual switch.Further , virtual machine port status on standby virtual interchanger can be state of activation, and the exit port shape of standby virtual interchanger State can be state of activation.
For mode two, in a kind of specific implementation of the embodiment of the present invention, in the working condition of main virtual switch Before failure, standby virtual interchanger does not need the acquisition SDN controller from the database of physical server and is handed down to main void The quasi- corresponding flow table of interchanger.When the working condition of main virtual switch is failure, standby virtual interchanger is by the void of itself Quasi- machine port status is set as state of activation, and sets state of activation for exit port state.Meanwhile standby virtual interchanger from SDN controller is obtained in the database of physical server and is handed down to the flow table of main virtual switch, and SDN controller is handed down to The flow table of main virtual switch is set as state of activation.It does not obtain SDN controller on standby virtual interchanger and is handed down to main void When the flow table of quasi- interchanger, standby virtual interchanger refusal obtains message from the Microsoft Loopback Adapter of virtual machine, and refuses from physics Message is obtained on the physical network card of server.SDN controller is obtained on standby virtual interchanger is handed down to main virtual switch Flow table, and SDN controller is handed down to the flow table of main virtual switch when being state of activation, and standby virtual interchanger is from virtual machine Microsoft Loopback Adapter on obtain message, and obtain message from the physical network card of physical server.
In the embodiment of the present invention, standby virtual interchanger utilizes the matching carried in the message after getting message Information (such as target MAC (Media Access Control) address, purpose IP address) inquiry SDN controller is handed down to the flow table of main virtual switch.If SDN Controller is handed down to the list item in the flow table of main virtual switch there are message matching, i.e. SDN controller is handed down to main virtual friendship There is the match information carried in message in the flow table changed planes, standby virtual interchanger E-Packets according to the list item of message matching. If SDN controller is handed down to the list item that message matching is not present in the flow table of main virtual switch, i.e. SDN controller is handed down to There is no the match information carried in recorded message in the flow table of main virtual switch, then message is sent to by standby virtual interchanger SDN controller calculates the corresponding flow table of the message by SDN controller, and by the corresponding flow table issuance of the message to standby virtual Interchanger, standby virtual interchanger turn according to the corresponding flow table of the message that SDN controller is handed down to this standby virtual interchanger Send out the message.
In the embodiment of the present invention, when the working condition of main virtual switch is failure, standby virtual interchanger can be with The information that main virtual switch breaks down is notified to give SDN controller, so that SDN controller is by the flow table issuance of generation to standby Part virtual switch.
Specifically, standby virtual interchanger the information that main virtual switch breaks down notify to SDN controller it Afterwards, SDN controller knows that main virtual switch breaks down, and know standby virtual interchanger will replace main virtual switch into Row work.Based on this, when do not have in the flow table that SDN controller is handed down to main virtual switch the matching carried in recorded message letter Breath, and after message is sent to SDN controller by standby virtual interchanger, SDN controller can will be under the corresponding flow tables of the message Standby virtual interchanger is issued, rather than gives the corresponding flow table issuance of the message to main virtual switch.
As shown in Fig. 2, main virtual switch is connect with SDN controller, and standby virtual interchanger and SDN controller connect It connects, still, the corresponding UUID (Universally Unique Identifier, Universally Unique Identifier) of main virtual switch UUID corresponding with standby virtual interchanger is inconsistent.When the working condition of main virtual switch is failure, standby virtual is handed over It changes planes and the corresponding UUID of standby virtual interchanger is sent to SDN controller, SDN controller is corresponding according to standby virtual interchanger UUID determine replace main virtual switch work standby virtual interchanger, it can determine by flow table issuance to standby virtual Interchanger.
There is no the match information carried in recorded message in the flow table that SDN controller is handed down to main virtual switch, it is standby When message is sent to SDN controller by part virtual switch, standby virtual interchanger is that message is encapsulated in packet in (to enter Data) message, which is sent to by SDN controller by packet in message.
In the embodiment of the present invention, if the SDN controller that standby virtual interchanger is obtained from the database of physical server It is handed down to the list item in the flow table of main virtual switch there are message matching, then standby virtual interchanger is according to message matching On the basis of list item E-Packets, standby virtual interchanger can also replicate the message, and by the message up sending after duplication to SDN Controller, so that SDN controller gives the corresponding flow table issuance of the message to standby virtual interchanger.Wherein, SDN controller is obtaining Know that main virtual switch breaks down, and knows that standby virtual interchanger will replace after main virtual switch be worked, SDN For controller in the message sent on receiving standby virtual interchanger, which can be by the corresponding flow table issuance of the message Standby virtual interchanger is given, rather than gives the corresponding flow table issuance of the message to main virtual switch.Wherein, standby virtual exchanges Machine is that the message after duplication is encapsulated in packet in message, is sent to the message after the duplication by packet in message SDN controller.
Further, standby virtual interchanger receives the corresponding flow table of message that SDN controller issues, and deletion of physically takes The SDN controller for being engaged in storing in the database of device is handed down to the list item of the message matching in the flow table of main virtual switch, with And delete the message from the flow table that the SDN controller obtained in the database of physical server is handed down to main virtual switch Matched list item.
For example, the SDN controller that standby virtual interchanger is obtained from the database of physical server is handed down to master virtually There are the matched flow table 1 of message 1 in the flow table of interchanger, then standby virtual interchanger according to flow table 1 E-Packet 1 basis On, standby virtual interchanger can be with copy packet 1, and will send on the message 1 after duplication to SDN controller.SDN controller exists Know that main virtual switch breaks down, and knows that standby virtual interchanger replaces after main virtual switch worked, SDN Controller when receiving message 1, SDN controller can generate the corresponding flow table of the message 12 (flow table 2 may be identical as flow table 1, May also be different from flow table 1), and the corresponding flow table 2 of message 1 is handed down to standby virtual interchanger.Standby virtual interchanger The corresponding flow table 2 of message 1 that SDN controller issues is received, since SDN controller had been issued to main virtual switch before The corresponding flow table 1 of message 1, and main virtual switch had stored the corresponding stream of message 1 in the database of physical server Table 1, and standby virtual interchanger had obtained the corresponding flow table 1 of message 1 from the database of physical server.Therefore, standby Part virtual switch also needs after receiving SDN controller and being handed down to the corresponding flow table 2 of message 1 of standby virtual interchanger The SDN controller stored in the database of deletion of physically server is wanted to be handed down to the corresponding flow table of message 1 of main virtual switch 1, and delete the SDN controller that standby virtual interchanger is obtained from the database of physical server and be handed down to main virtual switch The corresponding flow table 1 of message 1.After standby virtual interchanger receives the message of matching flow table 2 again, standby virtual interchanger The message is no longer replicated, is not also needed message up sending to SDN controller.
In the embodiment of the present invention, SDN controller by the corresponding flow table issuance of message to standby virtual interchanger after, backup Virtual switch, can also be by this standby virtual after receiving SDN controller and being handed down to the flow table of this standby virtual interchanger The corresponding flow table storage of interchanger is into the database of physical server.
In the embodiment of the present invention, after the fault recovery of main virtual switch, main virtual switch is no longer taken over The standby virtual interchanger of operation, but the standby virtual interchanger as the standby virtual interchanger being currently running, monitoring is just In the working condition of the standby virtual interchanger of operation.
Based on the above-mentioned technical proposal, in the embodiment of the present invention, by run on physical server main virtual switch and Standby virtual interchanger, to not have to when main virtual switch breaks down through SDN controller, standby virtual interchanger It directly takes over main virtual switch to work, i.e., replaces main virtual switch to carry out message by standby virtual interchanger Reason, i.e., by standby virtual switch processes message, to avoid passing through the business for the virtual machine that main virtual switch E-Packets It interrupts.
Based on inventive concept same as the above method, a kind of standby virtual exchange is additionally provided in the embodiment of the present invention Machine runs main virtual switch and the standby virtual interchanger on physical server, as shown in figure 4, the standby virtual is handed over It changes planes and specifically includes:
Monitoring module 11, for monitoring the working condition of the main virtual switch;
Processing module 12, for message being obtained, if from described when the working condition of the main virtual switch is failure The software defined network SDN controller obtained in the database of physical server is handed down to the flow table of the main virtual switch In, there are the list items of the message matching, then forward the message according to the list item of the message matching.
The monitoring module 11, specifically for monitoring the working condition keep-alive report of the main virtual switch periodicity sending Text;If receiving the working condition keep alive Packet within a preset time, it is determined that the working condition of the main virtual switch For non-failure;If not receiving the working condition keep alive Packet within a preset time, it is determined that the main virtual switch Working condition is failure.
The processing module 12 is also used to before the working condition of main virtual switch is failure, periodically from institute It states and obtains the flow table that SDN controller is handed down to the main virtual switch in the database of physical server;Alternatively, main virtual When the working condition of interchanger is failure, SDN controller is obtained from the database of the physical server and is handed down to the master The flow table of virtual switch.
The processing module 12 is also used to notify the information that main virtual switch breaks down to the SDN controller, So that the SDN controller gives the flow table issuance of generation to the standby virtual interchanger.
The processing module 12, if the SDN controller for being also used to obtain from the database of the physical server issues To there are the list items of the message matching in the flow table of the main virtual switch, then the message is replicated, and will be after duplication Message up sending is to the SDN controller, so that the SDN controller is empty to the backup by the corresponding flow table issuance of the message Quasi- interchanger;
The corresponding flow table of the message that the SDN controller issues is received, and deletes the data of the physical server The SDN controller stored in library is handed down to the list item of the message matching in the flow table of the main virtual switch, with And delete the stream that the SDN controller obtained from the database of the physical server is handed down to the main virtual switch The list item of the message matching in table.
Wherein, the modules of apparatus of the present invention can integrate in one, can also be deployed separately.Above-mentioned module can close And be a module, multiple submodule can also be further split into.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be by Software adds the mode of required general hardware platform to realize, naturally it is also possible to which by hardware, but in many cases, the former is more Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art Part can be embodied in the form of software products, which is stored in a storage medium, if including Dry instruction is used so that a computer equipment (can be personal computer, server or the network equipment etc.) executes this hair Method described in bright each embodiment.It will be appreciated by those skilled in the art that attached drawing is the schematic diagram of a preferred embodiment, Module or process in attached drawing are not necessarily implemented necessary to the present invention.It will be appreciated by those skilled in the art that in embodiment Device in module can according to embodiment describe be distributed in the device of embodiment, corresponding change position can also be carried out In the one or more devices for being different from the present embodiment.The module of above-described embodiment can be merged into a module, can also be with It is further split into multiple submodule.The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.With Upper disclosed several specific embodiments only of the invention, still, the present invention is not limited to this, any those skilled in the art Member can think of variation should all fall into protection scope of the present invention.

Claims (10)

1. message processing method when a kind of virtual switch failure, which is characterized in that run main virtual friendship on physical server It changes planes and standby virtual interchanger, the described method comprises the following steps:
The working condition of main virtual switch described in the standby virtual exchange machine monitoring;
When the working condition of the main virtual switch is failure, the standby virtual interchanger obtains message, if described standby The software defined network SDN controller that part virtual switch is obtained from the database of the physical server is handed down to the master In the flow table of virtual switch, there are the list items of the message matching, then forward the report according to the list item of the message matching Text.
2. the method as described in claim 1, which is characterized in that main virtual switch described in the standby virtual exchange machine monitoring Working condition process, specifically include:
The working condition keep alive Packet of main virtual switch periodicity sending described in the standby virtual exchange machine monitoring;
If the standby virtual interchanger receives working condition keep alive Packet within a preset time, it is determined that main virtual switch Working condition be non-failure;
If the standby virtual interchanger does not receive working condition keep alive Packet within a preset time, it is determined that main virtual switch The working condition of machine is failure.
3. the method as described in claim 1, which is characterized in that the method also includes:
Before the working condition of main virtual switch is failure, the standby virtual interchanger is periodically taken from the physics It is engaged in obtaining the flow table that SDN controller is handed down to the main virtual switch in the database of device;Alternatively, in main virtual switch When working condition is failure, the standby virtual interchanger obtains under SDN controller from the database of the physical server Issue the flow table of the main virtual switch.
4. the method as described in claim 1, which is characterized in that the method also includes:
The standby virtual interchanger notifies the information that the main virtual switch breaks down to the SDN controller, with Make the SDN controller by the flow table issuance of generation to the standby virtual interchanger.
5. method as claimed in claim 4, which is characterized in that the method also includes:
If the SDN controller that the standby virtual interchanger is obtained from the database of the physical server is handed down to the master There are the list items of the message matching in the flow table of virtual switch, then the standby virtual interchanger replicates the message, and By the message up sending after duplication to the SDN controller, so that the SDN controller gives the corresponding flow table issuance of the message The standby virtual interchanger;
The standby virtual interchanger receives the corresponding flow table of the message that the SDN controller issues, and deletes the object Manage the message that the SDN controller stored in the database of server is handed down in the flow table of the main virtual switch Matched list item, and delete the SDN controller obtained from the database of the physical server and be handed down to the master The list item of the message matching in the flow table of virtual switch.
6. a kind of standby virtual interchanger, which is characterized in that run main virtual switch on physical server and the backup is empty Quasi- interchanger, the standby virtual interchanger specifically include:
Monitoring module, for monitoring the working condition of the main virtual switch;
Processing module, for obtaining message when the working condition of the main virtual switch is failure, if being taken from the physics The software defined network SDN controller for being engaged in obtaining in the database of device is handed down in the flow table of the main virtual switch, is existed The list item of the message matching then forwards the message according to the list item of the message matching.
7. standby virtual interchanger as claimed in claim 6, which is characterized in that
The monitoring module, specifically for monitoring the working condition keep alive Packet of the main virtual switch periodicity sending;Such as Fruit receives the working condition keep alive Packet within a preset time, it is determined that the working condition of the main virtual switch is not event Barrier;If not receiving the working condition keep alive Packet within a preset time, it is determined that the work shape of the main virtual switch State is failure.
8. standby virtual interchanger as claimed in claim 6, which is characterized in that
The processing module is also used to before the working condition of main virtual switch is failure, periodically from the physics The flow table that SDN controller is handed down to the main virtual switch is obtained in the database of server;Alternatively, in main virtual switch Working condition when being failure, obtain SDN controller from the database of the physical server and be handed down to the master and virtually hand over The flow table changed planes.
9. standby virtual interchanger as claimed in claim 6, which is characterized in that
The processing module, is also used to notify the information that the main virtual switch breaks down to the SDN controller, with Make the SDN controller by the flow table issuance of generation to the standby virtual interchanger.
10. standby virtual interchanger as claimed in claim 9, which is characterized in that
The processing module, if the SDN controller for being also used to obtain from the database of the physical server be handed down to it is described There are the list items of the message matching in the flow table of main virtual switch, then replicate the message, and will be on the message after duplication It send to the SDN controller, so that the SDN controller exchanges the corresponding flow table issuance of the message to the standby virtual Machine;
The corresponding flow table of the message that the SDN controller issues is received, and is deleted in the database of the physical server The SDN controller of storage is handed down to the list item of the message matching in the flow table of the main virtual switch, and deletes Except being handed down in the flow table of the main virtual switch from the SDN controller obtained in the database of the physical server The message matching list item.
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 CN104243205A (en) 2014-12-24
CN104243205B true 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)

Families Citing this family (13)

* 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
US11082515B2 (en) 2015-09-26 2021-08-03 Intel Corporation Technologies 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
CN105429946A (en) * 2015-10-28 2016-03-23 广州西麦科技股份有限公司 System and method of preventing forging IP address based on SDN virtual switch
CN105262753A (en) * 2015-10-28 2016-01-20 广州西麦科技股份有限公司 System and method for achieving security policy 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
CN106878082B (en) * 2017-02-28 2020-03-31 郑州云海信息技术有限公司 Virtual network card hot migration method and device
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
CN111726251B (en) * 2020-06-12 2023-04-25 浪潮电子信息产业股份有限公司 Networking method, system and device for SDS (sodium dodecyl sulfate) storage domain in virtualized system
CN113472900B (en) * 2021-09-01 2022-02-22 阿里云计算有限公司 Message processing method, device, storage medium and computer program product

Citations (4)

* 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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103986651B (en) * 2014-05-30 2018-03-06 新华三技术有限公司 A kind of software defined network controller and its control method

Patent Citations (4)

* 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

Also Published As

Publication number Publication date
CN104243205A (en) 2014-12-24

Similar Documents

Publication Publication Date Title
CN104243205B (en) Message processing method and equipment when a kind of virtual switch failure
CN105407117B (en) The methods, devices and systems of distributed backup data
CN105165054B (en) Network service failure processing method, service management system and system management module
WO2018113556A1 (en) Network operation support system and network device management method
CN106713487A (en) Data synchronization method and device
CN107003983A (en) Configuration network
CN104811476B (en) A kind of High Availabitity deployment implementation method of application-oriented service
CN107508722B (en) Service monitoring method and device
CN103729280A (en) High availability mechanism for virtual machine
CN105681077B (en) Fault handling method, apparatus and system
CN104320401A (en) Big data storage and access system and method based on distributed file system
CN102857371B (en) A kind of dynamic allocation management method towards group system
CN105391586B (en) A kind of method and system of fault locating analysis
US20150363340A1 (en) Providing multiple synchronous serial console sessions using data buffering
US9832255B2 (en) Event distribution method, control device, and processor on software-defined network
CN105653425A (en) Complicated event processing engine based monitoring system
CN105516292A (en) Hot standby method of cloud platform of intelligent substation
CN107357688A (en) Distributed system and its fault recovery method and device
CN104426968B (en) Data managing method and device
CN107682411A (en) A kind of extensive SDN controllers cluster and network system
CN104811403B (en) Group list processing method, apparatus and group table configuration unit based on open flows
CN112202746A (en) RPC member information acquisition method and device, electronic equipment and storage medium
CN105591801B (en) A kind of virtual network function VNF fault handling method and VNF management equipment
CN108156040A (en) A kind of central control node in distribution cloud storage system
CN104641606A (en) Method for network resource equalization processing, and virtual network management entity

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