CN105591776A - Method and device for main and standby link switching in SDN (Software Defined Network) device - Google Patents

Method and device for main and standby link switching in SDN (Software Defined Network) device Download PDF

Info

Publication number
CN105591776A
CN105591776A CN201410571748.7A CN201410571748A CN105591776A CN 105591776 A CN105591776 A CN 105591776A CN 201410571748 A CN201410571748 A CN 201410571748A CN 105591776 A CN105591776 A CN 105591776A
Authority
CN
China
Prior art keywords
link
packet
message
controller
sdn
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
CN201410571748.7A
Other languages
Chinese (zh)
Other versions
CN105591776B (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 CN201410571748.7A priority Critical patent/CN105591776B/en
Publication of CN105591776A publication Critical patent/CN105591776A/en
Application granted granted Critical
Publication of CN105591776B publication Critical patent/CN105591776B/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 method and a device for main and standby link switching in a SDN (Software Defined Network) device. The method comprises steps: the ability of the main link is set to receive a packet_in message but not process a packet_out message, a target main link is built, and the original main link is switched to a standby link; the standby link is set to be an equivalent link, the ability of the standby link is set to receive a packet_out message but not report a packet_in message, and the original main controller processes the packet_in message via the equivalent link; after processing of the stored packet_in message is completed, the equivalent link is set to be a standby link, and the target main controller is informed to begin to process the packet_in message and the packet_out message. When the embodiment of the invention is applied, service data packet loss phenomena for the SDN device in the case of main and standby link switching can be reduced or even avoided.

Description

The active/standby link switchover method and apparatus of the SDN network equipment
Technical field
The present invention relates to communication technical field, particularly relate to the active/standby link switchover method of the SDN network equipmentAnd device.
Background technology
SDN network (SoftwareDefinedNetwork, software defined network) is established by SDN network conventionallyStandby (Switch) and SDN controller (Controller) composition. Wherein, SDN controller is in controllingThe heart, sends to the SDN network equipment according to the protocol generation stream table of user's configuration or dynamic operation. SDNThe network equipment receives the stream table that SDN controller issues, and carries out message processing according to stream table. SDN controlsDevice and the SDN network equipment communicate according to SDN communication interface standard, and wherein, Openflow is conventionalSDN communication interface standard.
In the SDN network organizing application that adopts Openflow agreement, exist SDN controller cluster,Each SDN controller cluster comprises multiple SDN controllers, and the SDN network equipment is with one in described clusterIndividual SDN controller is primary controller, and other one or more SDN controllers are spare controller. WhenCertain SDN controller in SDN controller cluster is upgraded, recovery, fault, establish with SDN networkWhen standby connection disconnection etc. relates to the action of SDN controller switching in cluster, will cause with this SDN and controlDevice is the active/standby link switchover of the SDN network equipment of primary controller, that is, by this SDN network equipment withActive link between current primary controller switches to reserve link, with other SDN controllers in clusterSet up active link, thus by the business data flow of this SDN network equipment from current primary SDN controllerBe switched in other SDN controllers.
In the time carrying out the active/standby link switchover of the SDN network equipment, how to reduce and even avoid SDN network to establishStandby business data packet packet loss phenomenon is the current technical problem of needing solution badly.
Summary of the invention
In view of this, the present invention proposes the active/standby link switchover method and apparatus of the SDN network equipment, canAdopt Openflow agreement the SDN network equipment carry out active/standby link switchover time, reduce and even avoidThe business data packet packet loss phenomenon of the SDN network equipment.
The technical scheme that the present invention proposes is:
An active/standby link switchover method for the SDN network equipment, the method comprises:
Active link ability is set for to receive and to store packet_in message and not process packet_out message,Set up target active link, former active link is converted to reserve link;
It is equal-cost link that described reserve link is set, the ability of this equal-cost link for receive packet_out message,And not, send packet_in message, described former primary controller is stored by described equal-cost link processingPacket_in message;
After the packet_in message of described storage is disposed, it is reserve link that described equal-cost link is set, logicalKnow that the primary controller of described target starts to process packet_in message and packet_out message.
An active/standby link switchover device in SDN controller, this device comprises that link arranges module and reportLiterary composition processing module, when this SDN controller is during as the former primary controller of the SDN network equipment:
Described link arranges module, for arrange active link ability for receive and store packet_in message,And do not process Packet_out message, in the time setting up active link and set up, former active link is converted to chain for subsequent useRoad, it is equal-cost link that described reserve link is set, the ability of this equal-cost link for receive packet_out message,And not, send packet_in message, after the packet_in message of described storage is disposed, arrange described etc.Valency link is reserve link;
Described message processing module (MPM), for being received and stored by former active link, the SDN network equipment uploadsPacket_in message and do not process Packet_out message, processes storage by described equal-cost linkPacket_in message, after the packet_in message of described storage is disposed, notifies described target primary controlDevice starts to process packet_in message and packet_out message.
As seen from the above technical solution, in the embodiment of the present invention, in Openflow network, carry out SDN netWhen the active/standby link switchover of network equipment, first, active link ability is set and reports for receiving and store packet_inLiterary composition and do not process Packet_out message, it is primary that the primary controller of target of the SDN network equipment is set up targetLink, former active link is converted to reserve link, then, the former primary controller setting of the SDN network equipmentDescribed reserve link is equal-cost link, and the ability of this equal-cost link is for receiving packet_out message and not going upSend packet_in message, described former primary controller is processed the packet_in of storage by described equal-cost linkMessage, last, after the packet_in of described storage message is disposed, it is standby that described equal-cost link is setWith link, notify the primary controller of described target to start to process packet_in message and packet_out message.
In Openflow network, between the SDN network equipment and SDN controller, pass through packet_in messageWith packet_out message interaction business data packet, therefore, as long as carrying out the active and standby chain of the SDN network equipmentWhen switch on road, reduce the packet loss phenomenon of even avoiding packet_in message and packet_out message, just canReduce the business data packet packet loss phenomenon of even avoiding the SDN network equipment.
For packet_in message, in the embodiment of the present invention, first by the SDN network equipment and former primaryPacket_in message is uploaded to former primary controller by former active link between controller, when SDN networkWhen the primary controller of equipment and target is set up active link, due to the atomicity of main/slave link, former active linkBe automatically converted to reserve link, at this moment, the SDN network equipment by and the primary controller of target between primaryLink is uploaded packet_in message. Upload to former primary controller for the SDN network equipmentPacket_in message, is set to equivalence by the link between the SDN network equipment and former primary controllerLink, utilizes described equal-cost link to be stored in the result of the packet_in message on former primary controllerIssue the SDN network equipment, realized before active link is switched to target controller, upload to former primaryThe not packet loss of packet_in message of controller.
And, because the ability of described equal-cost link is set to receive only packet_out message, send on notPacket_in message, therefore, receives former primary controller pair at the SDN network equipment by equal-cost linkWhen the result of packet_in message, the SDN network equipment still uploads to target by packet_in messageIn primary controller, and can not upload to former primary controller, therefore, make active/standby link switchover process energyEnough proceed, and can ensure the packet_in producing after active link is switched to target controllerMessage is packet loss not.
For packet_out message, due to the SDN network equipment by active link by former primary controller switchingTo on the primary controller of target time, former active link is automatically converted to reserve link, and the SDN network equipment cannotReceive packet_out message by reserve link, therefore, the embodiment of the present invention is passed through in advance by former primary chainThe capabilities setting on road, for not processing packet_out message, has been avoided being switched to the primary control of target at active linkThe moment of device processed, former primary controller has normally sent packet_out message, but SDN network is establishedStandby but because being converted to reserve link, former active link cannot receive that former primary controller sendsPacket_out message, thereby avoided the packet_out message on former primary controller to occur packet loss phenomenon.
By in advance by the capabilities setting of the active link of setting up with the primary controller of target for not processingPacket_out message, then receives the packet_out message of former primary controller by equal-cost linkAfter, then arrange with the active link of the primary controller of target foundation and can process packet_out message, that is,The primary controller of notification target is processed packet_in message and packet_out message, can realize packet_outThe order-preserving of message, avoids because sequence error causes packet_out message packet loss.
Brief description of the drawings
Fig. 1 is the active/standby link switchover method flow diagram of the SDN network equipment that provides of the embodiment of the present invention.
Fig. 2 carries out SDN network under the scene of the SDN controller upgrading that provides of the embodiment of the present invention to establishThe flow chart of standby active/standby link switchover.
Fig. 3 is the networking schematic diagram of the application example one that provides of the embodiment of the present invention.
Fig. 4 is that the network of step 301 in the active/standby link switchover process of application example one connects and data flowTo schematic diagram.
Fig. 5 is that the network of step 302 in the active/standby link switchover process of application example one connects and data flowTo schematic diagram.
Fig. 6 is that the network of step 303 in the active/standby link switchover process of application example one connects and data flowTo schematic diagram.
Fig. 7 is that the network of step 304 in the active/standby link switchover process of application example one connects and data flowTo schematic diagram.
Fig. 8 is that the network of step 305 in the active/standby link switchover process of application example one connects and data flowTo schematic diagram.
Fig. 9 is that the SDN controller that the embodiment of the present invention provides is newly started working in controller clusterUnder scene, carry out the flow chart of SDN network equipment active/standby link switchover.
Figure 10 is the networking schematic diagram of the application example two that provides of the embodiment of the present invention.
Figure 11 is that the network of step 1002 in the active/standby link switchover process of application example two connects and dataFlow to schematic diagram.
Figure 12 is that the network of step 1003 in the active/standby link switchover process of application example two connects and dataFlow to schematic diagram.
Figure 13 is that the network of step 1004 in the active/standby link switchover process of application example two connects and dataFlow to schematic diagram.
Figure 14 is that the network of step 1005 in the active/standby link switchover process of application example two connects and dataFlow to schematic diagram.
Figure 15 is that the network of step 1006 in the active/standby link switchover process of application example two connects and dataFlow to schematic diagram.
Figure 16 is the hardware configuration connection layout of embodiment of the present invention SDN controller.
Figure 17 is the active/standby link switchover apparatus structure schematic diagram that the embodiment of the present invention provides.
Detailed description of the invention
In Openflow network, the SDN network equipment usually needs giving them in some business datums mainProcess with controller, in the time carrying out the active/standby link switchover of the SDN network equipment, generally, SDNA part of business datum of the network equipment is given former primary controller and is processed, and, constantly haveNew business datum is given primary controller on needing and is processed. In the SDN network equipment and the primary control of targetWhen device processed is set up active link, based on the atomicity of main/slave link, former active link is automatically converted to standbyWith link, because the data-handling capacity of active link and reserve link is different, for example, reserve link is not permittedPermitted to process packet_out message, under default situations, active link both can have been processed packet_in message, alsoCan process packet_out message, therefore, how will deliver to the business datum of former primary controller onBe switched in the primary controller of target and packet loss not, and how ensure to give on new needs primary controllerNot packet loss of business datum, be the technology that the current SDN network equipment need to solve while carrying out active/standby link switchoverProblem.
Fig. 1 is the active/standby link switchover method flow diagram of the SDN network equipment that provides of the embodiment of the present invention.
As shown in Figure 1, this flow process comprises:
Step 101, arrange primary (Master) link capability for receive and store packet_in message andDo not process Packet_out message, set up target active link, former active link is converted to (Slave) for subsequent useLink.
Step 102, arranges described reserve link for (Equal) link of equal value, and the ability of this equal-cost link isReceive packet_out message and not on send packet_in message, described former primary controller is by described etc.The packet_in message of valency link processing storage.
Step 103, after the packet_in message of described storage is disposed, it is standby that described equal-cost link is setWith link, notify the primary controller of described target to start to process packet_in message and packet_out message.
As long as the various actions of SDN controller shown in can execution graph 1, just can apply the embodiment of the present invention,For example, under the scene of SDN controller upgrading, or newly open in controller cluster at SDN controllerUnder the scene of beginning work, such as after the eliminating of SDN controller failure or after having upgraded, this will be belonged to originallyThe scene of the SDN network equipment switchback of SDN controller, can application drawing 1 shown in method.
Fig. 2 carries out the SDN network equipment under the scene of the SDN controller upgrading that provides of the embodiment of the present inventionThe flow chart of active/standby link switchover.
As shown in Figure 2, this flow process comprises:
Step 201, former primary controller is by the former active link ability between self and this SDN network equipmentBe set to receive and store packet_in message and do not process Packet_out message, described former primary controlDevice receives and stores the packet_in message that the described SDN network equipment sends.
In this step, the packet_in message that former primary controller sends the SDN network equipment all deposits inBuffer queue does not do other processing.
Step 202, former primary controller notify the primary controller of described target by the described SDN network equipment withLink between the primary controller of described target is updated to active link, and active link after renewal is setAbility is for to receive and to store packet_in message and not process Packet_out message.
In this step, former primary controller will be upgraded event notice to the primary controller of target, the primary control of targetDevice processed receives after the notice of former primary controller, first on the primary controller of this target by described SDN networkLink between equipment and the primary controller of this target is set to active link, and the energy of this active link is setPower is for to receive and to store packet_in message and not process Packet_out message, then, and described target masterWith controller to the described SDN network equipment issue by this SDN network equipment and the primary controller of this target itBetween the link switching more new information that is active link, the described SDN network equipment receive described in new information moreAfter, be active link by the link switching between this SDN network equipment and the primary controller of this target, now,Due to the atomicity of active/standby link switchover on the SDN network equipment, the described SDN network equipment and former primary controlLink between device processed is automatically converted to reserve link.
Step 203, former primary controller arranges link between self and the described SDN network equipment in equivalenceThe ability of pattern is sent packet_in message for reception packet_out message and not, to described SDN netNetwork equipment issues link between described former primary controller and is set to the message of equal-cost link, former primaryThe packet_in message of storage in controller treatment step 201.
Step 204, after former primary controller is all disposed the packet_in message of storage, former masterWith controller, described equal-cost link being set is reserve link.
Preferably, after former primary controller is all disposed the packet_in message of storage, also carry outFollowing operation: described former primary controller by the link between self and the described SDN network equipment at mould of equal valueThe capabilities setting of formula for acquiescence state, be set to receive packet_out message and can on send packet_inMessage, thus avoid the later Business Processing of former primary controller to exert an influence.
Step 205, former primary controller notifies the primary controller of described target to start to process packet_in messageWith packet_out message.
So far, the active/standby link switchover process of the SDN network equipment completes, and the business zero of the SDN network equipment is lostBag ground from former primary controller switching to the primary controller of target.
About flow process shown in Fig. 2, further illustrate below in conjunction with application example one, specifically refer to Fig. 3-Tu8. In Fig. 3-Fig. 8, the direction that the direction of arrow is flow.
Fig. 3 is the networking schematic diagram of the application example one that provides of the embodiment of the present invention.
As shown in Figure 3, controller A and a controller cluster of controller B composition, controller A isThe primary controller of this cluster, the spare controller that controller B is this cluster, controller and SDN netBetween network equipment, adopt openflow agreement to communicate. Openflow on SDN network equipment A is realOpenflow example B (DpidB) on example A (DpidA) and SDN network equipment B and this controlDevice cluster processed is connected.
The cluster of controller shown in Fig. 3 is operated under load-sharing mode, and the primary controller of DpidA is controlDevice A processed, the primary controller of DpidB is controller B, the link between DpidA and controller ADpidA-ConA is active link, and the link DpidA-ConB between DpidA and controller B isReserve link, the link DpidB-ConA between DpidB and controller A is reserve link, DpidLink DpidB-ConB between B and controller B is active link.
In the time that controller A need to upgrade, by user interface (UI), controller A is set and enters upgradingSBR, the backup group module (Region module) in controller A receives that upgrading prepares after message,Carry out following steps:
Step 301 is set to receive only packet_in report for DpidA-ConA on controller ALiterary composition and do not process packet_out message, all deposit the packet_in message receiving in buffer queue.About step 301, specifically refer to Fig. 4.
Fig. 4 is that the network of step 301 in the active/standby link switchover process of application example one connects and data flowSchematic diagram.
As shown in Figure 4, the data flow of link DpidA-ConA becomes unidirectional, i.e. controller A coupleReceive only packet_in message in DpidA, do not issue packet_out message.
Step 302, by the upgrading event notice of controller A to controller B. Controller B receives upgradingAfter message, on controller B, the role of DpidA-ConB is updated to by reserve link (Slave)Active link (Master), by this DpidA-ConB receive and buffer memory packet_in message andDo not process packet_out message. Then controller B issues DpidA-Con to SDN network equipment AB switches to the message of active link. Now, due to the upper active/standby link switchover of SDN network equipment AAtomicity, the role of DpidA-ConA becomes reserve link. About step 302, specifically refer to figure5。
Fig. 5 is that the network of step 302 in the active/standby link switchover process of application example one connects and data flowSchematic diagram.
As shown in Figure 5, link DpidA-ConA becomes reserve link, and DpidA-ConB becomes masterWith link, and the data flow of DpidA-ConB is unidirectional, that is, controller B for DpidA onlyReceive packet_in message, do not issue packet_out message.
Step 303, controller A is by the SET_ASYNC function setting SDN of openflow agreementThe DpidA-ConA of network equipment A in (Equal) pattern of equal value for receiving only packet_out message,Not, send packet_in message. Controller A issues DpidA-ConA's to SDN network equipment ARole switching is the message of Equal state, and now, controller A processes and in step 301, is stored in bufferingPacket_in message in queue. About step 303, specifically refer to Fig. 6.
Fig. 6 is that the network of step 303 in the active/standby link switchover process of application example one connects and data flowSchematic diagram.
As shown in Figure 6, link DpidA-ConA becomes equal-cost link, and the number of DpidA-ConAAccording to flowing to as unidirectional, that is, controller A does not receive packet_in message for DpidA, only issuesPacket_out message.
Step 304, after the upper overstocked packet_in message of controller A is disposed, upgrades controllerThe role of the upper DpidA-ConA of A is reserve link, and issues Dpid to SDN network equipment AThe update of role of A-ConA is the message of reserve link, and then controller A is by openflow agreementSET_ASYNC function setting controller A DpidA-ConA equivalent formulations can on givePacket_in message and reception packet_out message. About step 304, specifically refer to Fig. 7.
Fig. 7 is that the network of step 304 in the active/standby link switchover process of application example one connects and data flowSchematic diagram.
As shown in Figure 7, link DpidA-ConA changes to reserve link.
Step 305, controller A notification controller B starts to process packet_in message and packet_outMessage. So far, the active/standby link switchover process of DpidA completes, and the business zero packet loss ground of DpidA becomesMerit is switched on controller B. About step 305, specifically refer to Fig. 8.
Fig. 8 is that the network of step 305 in the active/standby link switchover process of application example one connects and data flowSchematic diagram.
As shown in Figure 8, the data flow of link DpidA-ConB becomes two-way, that is, and and controller BBoth can receive the packet_in message sending on DpidA, also can issue packet_out to DpidAMessage.
Fig. 9 is the scene that SDN controller that the embodiment of the present invention provides is newly started working in controller clusterUnder carry out the active/standby link switchover of the SDN network equipment flow chart.
As shown in Figure 9, this flow process comprises:
Step 901, needs synchronous upper layer application data to be synchronized to that this newly starts working controller clusterIn SDN controller, usually, the application data that depends on Region module need to be carried out synchronously, to protectController and other controllers that card is newly started working have identical disposal ability. This is newly started workingAfter the synchronous complete upper layer application data of SDN controller, described in judging and self should be according to load-balancing algorithmWhen the primary controller of target of the SDN network equipment, judged result is notified to the described SDN network equipmentFormer primary controller.
Step 902, with step 201.
Step 903, the primary controller of target by the described SDN network equipment and the primary controller of described target itBetween link be updated to active link, and the ability that the active link after renewal is set is for to receive and to storePacket_in message and do not process Packet_out message. Then, the primary controller of target is notified former primaryController execution step 904.
Step 904-step 906, with step 203-step 205.
About flow process shown in Fig. 9, be further described below in conjunction with application example two, specifically refer to figure10-Figure 15.
Figure 10 is the networking schematic diagram of the application example two that provides of the embodiment of the present invention.
As shown in figure 10, controller A and a controller cluster of controller B composition, controller and SDNBetween the network equipment, adopt openflow agreement to communicate. Openflow on SDN network equipment AOpenflow example B (DpidB) on example A (DpidA) and SDN network equipment B and thisController cluster is connected, and wherein, DpidA and DpidB, taking controller B as primary controller, are controlledDevice A processed upgraded or just fixed a breakdown after recover start.
After controller A recovers, need to will on another controller in cluster, originally belong to selfOpenflow example (in Figure 10, being the DpidA being positioned on network equipment A) switches back,To ensure the load balancing of two controllers.
Net when network equipment switchback process when SDN controller recovers to start and the upgrading of SDN controllerThe difference of network equipment handoff procedure is, needs to ensure that upper layer application data backup completes in switchback processAfter carry out again the active/standby link switchover of the SDN network equipment. And SDN controller when upgrading, primary controlUpper layer application data on device and spare controller are backed up in realtime, and both are consistent. Therefore, needGuarantee that after controller A startup wait upper layer data has backed up, processing openflow connects again.
As shown in figure 10, controller A recovers to start, network equipment A, network equipment B and controllerA sets up openflow and connects DpidA-ConA and DpidB-ConA, link DpidA-ConABe equal-cost link with DpidB-ConA. Now, if controller A does not also complete upper layer application dataBackup, the region module of controller A is not just carried out role selecting, the packet_in sending on nowPacket loss is not processed.
After the upper layer application data backup on controller A completes, enter switchback flow process, this switchback flow processComprise:
Step 1001, controller A, by load balancing algorithm, calculates the primary controller of DpidAShould switchback go up to controller A, the primary controller of DpidB still should be controller B.
Step 1002, controller A notification controller B is for the packet_in sending on DpidA-ConBReceive only, do not process packet_out message, the packet_in message receiving all deposits buffer memory team inRow. About step 1002, specifically refer to Figure 11.
Figure 11 is that the network of step 1002 in the active/standby link switchover process of application example two connects and dataFlow to schematic diagram.
As shown in figure 11, the data flow of link DpidA-ConB is unidirectional, receives only packet_inMessage, does not process packet_out message.
Step 1003, controller A is active link (Master) by the update of role of DpidA-ConA,Receive and buffer memory packet_in message and do not process packet_out message by this DpidA-ConA.Then controller A issues DpidA-ConA is switched to active link to SDN network equipment AMessage. Now, due to the atomicity of the upper active/standby link switchover of SDN network equipment A, DpidA-ConBRole become reserve link. About step 1003, specifically refer to Figure 12.
Figure 12 is that the network of step 1003 in the active/standby link switchover process of application example two connects and data flowTo schematic diagram.
As shown in figure 12, DpidA-ConA is active link, and DpidA-ConB is reserve link,And DpidA-ConA receives only packet_in message, do not issue packet_out message.
Step 1004, controller A notification controller B is by the SET_ASYNC of openflow agreementThe DpidA-ConB of function setting SDN network equipment A in (Equal) pattern of equal value for receiving onlyPacket_out message, send packet_in message on not. Controller B to SDN network equipment A issue byThe role switching of DpidA-ConB is the message of Equal state, and now, controller B processes in stepIn 1002, be stored in the packet_in message in buffer queue. About step 1004, specifically refer to figure13。
Figure 13 is that the network of step 1004 in the active/standby link switchover process of application example two connects and data flowTo schematic diagram.
As shown in figure 13, link DpidA-ConB becomes equal-cost link, and DpidA-ConBData flow is unidirectional, that is, controller B does not receive packet_in message for DpidA, only issuesPacket_out message.
Step 1005, after the upper overstocked packet_in message of controller B is disposed, upgrades controllerThe role of the upper DpidA-ConB of B is reserve link, and issues Dpid to SDN network equipment AThe update of role of A-ConB is the message of reserve link, and then controller B is by openflow agreementSET_ASYNC function setting controller B DpidA-ConB equivalent formulations can on givePacket_in message and reception packet_out message. About step 1005, specifically refer to Figure 14.
Figure 14 is that the network of step 1005 in the active/standby link switchover process of application example two connects and data flowTo schematic diagram.
As shown in figure 14, link DpidA-ConB changes to reserve link.
Step 1006, controller B notification controller A starts to process packet_in message and packet_outMessage. So far, the active/standby link switchover process of DpidA completes, and the business zero packet loss ground of DpidA becomesMerit is switched on controller A. About step 1006, specifically refer to Figure 15.
Figure 15 is that the network of step 1006 in the active/standby link switchover process of application example two connects and data flowTo schematic diagram.
As shown in figure 15, the data flow of link DpidA-ConA becomes two-way, that is, and and controller ABoth can receive the packet_in message sending on DpidA, also can issue packet_out to DpidAMessage.
From foregoing description, the embodiment of the present invention has following useful technique effect:
In the embodiment of the present invention, by the link between the SDN network equipment and former primary controller itBetween link and and the primary controller of target between link arrange, comprise arrange link state andThe data-handling capacity of link under corresponding state, the SDN network equipment and SDN controller are according to correspondingLink arranges, and carries out corresponding data processing operation, can avoid the master who carries out the SDN network equipmentWhile switching, there is business data packet packet loss phenomenon in standby link. Particularly:
For packet_in message, first former by between the SDN network equipment and former primary controllerPacket_in message is uploaded to former primary controller by active link, as the SDN network equipment and target masterWhile setting up active link with controller, the SDN network equipment by and the primary controller of target between masterUpload packet_in message with link. Upload to former primary controller for the SDN network equipmentPacket_in message, is set to by the link between the SDN network equipment and former primary controller etc.Valency link, utilizes described equal-cost link to be stored in locating of packet_in message on former primary controllerReason result issue the SDN network equipment, realized before active link is switched to target controller onPass to the not packet loss of packet_in message of former primary controller.
And, because the ability of described equal-cost link is set to receive only packet_out message, does not go upSend packet_in message, therefore, receive former primary controller at the SDN network equipment by equal-cost linkDuring to the result of packet_in message, the SDN network equipment still uploads to packet_in messageIn the primary controller of target, and can not upload to former primary controller, therefore, can ensure by primaryThe not packet loss of packet_in message that link switching produces after target controller.
For packet_out message, due to the SDN network equipment by active link by former primary controllerWhile being switched on the primary controller of target, former active link is automatically converted to reserve link, SDN networkEquipment cannot receive packet_out message by reserve link, and therefore, the embodiment of the present invention is by advanceThe capabilities setting of former active link, for not processing packet_out message, has been avoided switching at active linkTo the moment of the primary controller of target, former primary controller has normally sent packet_out message,But the SDN network equipment but cannot receive former master because former active link has been converted to reserve linkThe packet_out message sending with controller, thereby avoided the packet_out on former primary controllerThere is packet loss phenomenon in message.
By in advance by the capabilities setting of the active link of setting up with the primary controller of target for not processingPacket_out message, is receiving the packet_out message of former primary controller by equal-cost linkBi Yihou, then arrange with the active link of the primary controller of target foundation and can process packet_out message,, the primary controller of notification target is processed packet_in message and packet_out message, can realizeThe order-preserving of packet_out message, avoids because sequence error causes packet_out message packet loss.
Between the SDN network equipment and SDN controller, pass through packet_in message and packet_out messageInteractive service data bag, the embodiment of the present invention in the time carrying out the active/standby link switchover of the SDN network equipment,Avoid the packet loss phenomenon of packet_in message and packet_out message, therefore can avoid SDN netThe business data packet packet loss phenomenon of network equipment.
For said method, the present invention also discloses a kind of SDN controller.
Figure 16 is the hardware configuration connection layout of embodiment of the present invention SDN controller.
As shown in figure 16, this SDN controller comprises processor, network interface, internal memory and non-volatile depositingReservoir, and above-mentioned each hardware connects by bus, wherein:
Nonvolatile memory, for store instruction codes; It is complete when described instruction code is executed by processorThe operation becoming is mainly the function that the apparatus for forwarding message in internal memory completes.
Processor, for communicating by letter with nonvolatile memory, reads and carries out in nonvolatile memory and depositThe described instruction code of storage, completes the function that above-mentioned apparatus for forwarding message completes.
Internal memory, the operation completing in the time that the described instruction code in nonvolatile memory is performed is mainlyThe function that apparatus for forwarding message in internal memory completes.
Say from software view, be applied to active/standby link switchover device in SDN controller as Figure 17 instituteShow.
Figure 17 is the active/standby link switchover apparatus structure schematic diagram that the embodiment of the present invention provides.
As shown in figure 17, this active/standby link switchover device comprises:
Link arranges module 1701, for arrange active link ability for receive and store packet_in message,And do not process Packet_out message, in the time that target active link is set up, former active link is converted to chain for subsequent useRoad, it is equal-cost link that described reserve link is set, the ability of this equal-cost link for receive packet_out message,And not, send packet_in message, after the packet_in message of described storage is disposed, arrange described etc.Valency link is reserve link.
Message processing module (MPM) 1702, uploads for receiving and store the SDN network equipment by former active linkPacket_in message and do not process Packet_out message, process storage by described equal-cost linkPacket_in message, after the packet_in message of described storage is disposed, notifies described target primary controlDevice starts to process packet_in message and packet_out message.
Link arranges module 1701, for arrange described former primary controller and the described SDN network equipment itBetween link the ability of equivalent formulations for receive packet_out message and not on send packet_in message,The link issuing between described former primary controller to the described SDN network equipment is set to equal-cost linkMessage.
Link arranges module 1701, for arranging after described equal-cost link is reserve link, described in arrangingLink between former primary controller and the described SDN network equipment is reception in the ability of equivalent formulationsPacket_out message and can on send packet_in message.
The SDN controller being positioned at when described active/standby link switchover device is as the target master of the SDN network equipmentWhile using controller:
Link arranges module 1701, for by the described SDN network equipment and the primary controller of described target itBetween link be updated to active link, and the ability that the active link after renewal is set is for to receive and to storePacket_in message and do not process Packet_out message.
Message processing module (MPM) 1702, for starting to process packet_in what receive that former primary controller sendsAfter the notice of message and packet_out message, start to process packet_in message and packet_out message.
If the SDN controller that described active/standby link switchover device is arranged in newly starts work at controller clusterDo, and described controller cluster is operated under load-sharing mode, described active/standby link switchover device also wrapsDraw together synchronization module and load balancing module.
Described synchronization module, for be set to receive and store in the ability of active link packet_in message,Before not processing Packet_out message, in isochronous controller cluster, need synchronous upper layer application data.
Described load balancing module, self should be described SDN network for judging according to load-balancing algorithmWhen the primary controller of target of equipment, notify the former primary control to the described SDN network equipment by judged resultDevice.
Above-mentioned active/standby link switchover device is as the device on a logical meaning, and it is to pass through processorComputer program instructions corresponding in nonvolatile memory is read in internal memory to operation forms. When rightWhen the computer program instructions of answering is performed, the active/standby link switchover device of formation is used for according to above-mentioned enforcementActive/standby link switchover method in example is carried out corresponding operating.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all at thisAny amendment of making within the spirit of invention and principle, be equal to replacements, improvement etc., all should be included inWithin the scope of invention protection.

Claims (10)

1. an active/standby link switchover method for the SDN network equipment, is characterized in that, the method comprises:
Active link ability is set for to receive and to store packet_in message and not process Packet_out message,Set up target active link, former active link is converted to reserve link;
It is equal-cost link that described reserve link is set, the ability of this equal-cost link for receive packet_out message,And not, send packet_in message, described former primary controller is stored by described equal-cost link processingPacket_in message;
After the packet_in message of described storage is disposed, it is reserve link that described equal-cost link is set, logicalKnow that the primary controller of described target starts to process packet_in message and packet_out message.
2. method according to claim 1, is characterized in that, the described active link ability that arranges is for connecingReceive and store packet_in message and do not process Packet_out message, setting up target active link and comprise:
Described former primary controller is by the former active link capabilities setting between self and this SDN network equipmentFor receiving and store packet_in message and not processing Packet_out message, described former primary controller connectsReceive and store the packet_in message that the described SDN network equipment sends;
The primary controller of described target is by between the described SDN network equipment and the primary controller of described targetLink is updated to active link, and the ability that the active link after renewal is set is for receiving and store packet_inMessage and do not process Packet_out message.
3. method according to claim 1, is characterized in that, describedly described reserve link is set is etc.Valency link, the ability that this equal-cost link is set is sent packet_in report for reception packet_out message and notLiterary composition comprises:
Described former primary controller arranges link between self and the described SDN network equipment in equivalent formulationsAbility for receive packet_out message and not on send packet_in message, establish to described SDN networkGet the link of sending out between described former primary controller ready and be set to the message of equal-cost link.
4. method according to claim 1, is characterized in that, it is chain for subsequent use that described equal-cost link is setAfter road, the method also comprises:
Described former primary controller arranges link between self and the described SDN network equipment in equivalent formulationsAbility for receive packet_out message and can on send packet_in message.
5. method according to claim 1, is characterized in that, when controller cluster, to be operated in load equalUnder weighing apparatus pattern, and have the SDN controller of newly starting working in described controller cluster time, arrange primaryThe ability of link for receiving and store packet_in message, do not process Packet_out message before, the methodAlso comprise:
Needing synchronous upper layer application data to be synchronized to this SDN newly starting working controller cluster controlsIn device, this SDN controller of newly starting working is judged and self be should be described SDN according to load-balancing algorithmWhen the primary controller of target of the network equipment, notify former primary to the described SDN network equipment by judged resultController.
6. the active/standby link switchover device in SDN controller, is characterized in that, this device comprises chainRoad arranges module and message processing module (MPM), when this SDN controller is as the former primary control of the SDN network equipmentWhen device processed:
Described link arranges module, for arrange active link ability for receive and store packet_in message,And do not process Packet_out message, in the time that target active link is set up, former active link is converted to chain for subsequent useRoad, it is equal-cost link that described reserve link is set, the ability of this equal-cost link for receive packet_out message,And not, send packet_in message, after the packet_in message of described storage is disposed, arrange described etc.Valency link is reserve link;
Described message processing module (MPM), for being received and stored by former active link, the SDN network equipment uploadsPacket_in message and do not process Packet_out message, processes storage by described equal-cost linkPacket_in message, after the packet_in message of described storage is disposed, notifies described target primary controlDevice starts to process packet_in message and packet_out message.
7. device according to claim 6, is characterized in that,
Described link arranges module, for arranging between described former primary controller and the described SDN network equipmentLink the ability of equivalent formulations for receive packet_out message and not on send packet_in message, toThe described SDN network equipment issues link between described former primary controller and is set to equal-cost linkMessage.
8. device according to claim 6, is characterized in that,
Described link arranges module, for arranging after described equal-cost link is reserve link, described in arrangingLink between former primary controller and the described SDN network equipment is reception in the ability of equivalent formulationsPacket_out message and can on send packet_in message.
9. device according to claim 6, is characterized in that, when this SDN controller is as SDNWhen the primary controller of target of the network equipment:
Described link arranges module, for by between the described SDN network equipment and the primary controller of described targetLink be updated to active link, and the ability that the active link after renewal is set is for to receive and to storePacket_in message and do not process Packet_out message;
Described message processing module (MPM), for starting to process packet_in what receive that former primary controller sendsAfter the notice of message and packet_out message, start to process packet_in message and packet_out message.
10. device according to claim 6, is characterized in that, if described SDN controller is in controlIn device cluster processed, newly start working, and described controller cluster is operated under load-sharing mode, described inSDN controller also comprises synchronization module and load balancing module;
Described synchronization module, for be set to receive and store in the ability of active link packet_in message,Before not processing Packet_out message, in isochronous controller cluster, need synchronous upper layer application data;
Described load balancing module, self should be described SDN network for judging according to load-balancing algorithmWhen the primary controller of target of equipment, notify the former primary control to the described SDN network equipment by judged resultDevice.
CN201410571748.7A 2014-10-23 2014-10-23 The active/standby link switchover method and apparatus of SDN network equipment Active CN105591776B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410571748.7A CN105591776B (en) 2014-10-23 2014-10-23 The active/standby link switchover method and apparatus of SDN network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410571748.7A CN105591776B (en) 2014-10-23 2014-10-23 The active/standby link switchover method and apparatus of SDN network equipment

Publications (2)

Publication Number Publication Date
CN105591776A true CN105591776A (en) 2016-05-18
CN105591776B CN105591776B (en) 2019-03-15

Family

ID=55931042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410571748.7A Active CN105591776B (en) 2014-10-23 2014-10-23 The active/standby link switchover method and apparatus of SDN network equipment

Country Status (1)

Country Link
CN (1) CN105591776B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737265A (en) * 2017-04-19 2018-11-02 波音公司 Controller coordinate system
CN111865659A (en) * 2020-06-10 2020-10-30 新华三信息安全技术有限公司 Method and device for switching master controller and slave controller, controller and network equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7483370B1 (en) * 2003-12-22 2009-01-27 Extreme Networks, Inc. Methods and systems for hitless switch management module failover and upgrade
CN101667963A (en) * 2009-09-09 2010-03-10 中兴通讯股份有限公司 Link switching method and device
CN102045263A (en) * 2011-01-25 2011-05-04 神州数码网络(北京)有限公司 Automatic gapless smooth switching method of backup link of multi protocol label switching virtual private network (MPLS VPN) tunnel

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7483370B1 (en) * 2003-12-22 2009-01-27 Extreme Networks, Inc. Methods and systems for hitless switch management module failover and upgrade
CN101667963A (en) * 2009-09-09 2010-03-10 中兴通讯股份有限公司 Link switching method and device
CN102045263A (en) * 2011-01-25 2011-05-04 神州数码网络(北京)有限公司 Automatic gapless smooth switching method of backup link of multi protocol label switching virtual private network (MPLS VPN) tunnel

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737265A (en) * 2017-04-19 2018-11-02 波音公司 Controller coordinate system
CN108737265B (en) * 2017-04-19 2022-01-28 波音公司 Software defined wireless network system and management method thereof
CN111865659A (en) * 2020-06-10 2020-10-30 新华三信息安全技术有限公司 Method and device for switching master controller and slave controller, controller and network equipment
CN111865659B (en) * 2020-06-10 2023-12-29 新华三信息安全技术有限公司 Main and standby controller switching method and device, controller and network equipment

Also Published As

Publication number Publication date
CN105591776B (en) 2019-03-15

Similar Documents

Publication Publication Date Title
CN101447884B (en) Method for achieving software upgrade by cooperation among network elements, equipment and system therefor
JP5625998B2 (en) Information processing system
CN102137017B (en) Working method and device used for virtual network unit
CN102937925A (en) Distributed communication device software upgrading method and system
CN114079615B (en) Application synchronization method, system, medium and electronic equipment in multi-cluster environment
CN112416969B (en) Parallel task scheduling system in distributed database
CN105357048A (en) Method and system for data synchronization of network equipment
CN102968357A (en) Software upgrading method and system for distributed communication device
CN103002065A (en) Method and device for sharing internet protocol (IP) address by host device and standby device
CN104486394A (en) Non-interrupting service software upgrading method and device
CN104639615A (en) Data processing method and data processing device in controller cluster
CN110958297B (en) Data migration method and system
CN103441878A (en) Method and device for processing ownership of PE device in VCF network
CN104125089A (en) Network transaction control method and execution method, and network controller and forwarding equipment
CN105591776A (en) Method and device for main and standby link switching in SDN (Software Defined Network) device
CN107911250B (en) Stacking system and method for preventing traffic loss
CN102355414A (en) Processing method and device of APS (automatic protection switching) state machine
CN102231699B (en) Route processing method in distributed system and distributed system
CN114115138A (en) Industrial field device replacement system
CN106569858B (en) A kind of update method and circuit board of configuration file
CN111371680B (en) Route management method, device, equipment and storage medium for dual-computer hot standby
CN103929455A (en) Asynchronous file transmission system and method comprising network storage equipment
WO2017000586A1 (en) Method and device for upgrading virtual network element, and computer storage medium
CN105791337A (en) Upgrading method, device and cluster system
CN103888283A (en) SCTP communication method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant