CN102882719A - Method and system for implementation of redundant backup of controllers in Openflow switch system - Google Patents

Method and system for implementation of redundant backup of controllers in Openflow switch system Download PDF

Info

Publication number
CN102882719A
CN102882719A CN2012103631730A CN201210363173A CN102882719A CN 102882719 A CN102882719 A CN 102882719A CN 2012103631730 A CN2012103631730 A CN 2012103631730A CN 201210363173 A CN201210363173 A CN 201210363173A CN 102882719 A CN102882719 A CN 102882719A
Authority
CN
China
Prior art keywords
message
controller
equipment
weighted value
main equipment
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
CN2012103631730A
Other languages
Chinese (zh)
Other versions
CN102882719B (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.)
Suzhou Centec Communications Co Ltd
Original Assignee
Centec Networks Suzhou 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 Centec Networks Suzhou Co Ltd filed Critical Centec Networks Suzhou Co Ltd
Priority to CN201210363173.0A priority Critical patent/CN102882719B/en
Publication of CN102882719A publication Critical patent/CN102882719A/en
Application granted granted Critical
Publication of CN102882719B publication Critical patent/CN102882719B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method and a system for implementation of redundant backup of controllers in an Openflow switch system. The method includes: deploying a plurality of controllers communicated with a switch, wherein the controllers can be a plurality of peer devices, a combination of a master device and a plurality of slave devices or a combination of a plurality of peer devices and a plurality of slave devices; and when the controllers are deployed to the combination of the master device and the slave devices, monitoring whether network reachability of the current master device is normal or not in real time, maintaining the current configuration if yes, while selecting one from the slave devices as the master device of the current system if not. By the aid of the method and the system, the network reachability of the controllers in the switch system is monitored in real time, and one of the slave devices is selected as the master device when the master device in the system is in network disconnection, so that the master device capable of working normally in the system exists at any time, and further, system stability is improved.

Description

Realize the method and system of Openflow switch system middle controller redundancy backup
Technical field
The present invention relates to the Ethernet art, relate in particular to a kind of method and system of the Openflow of realization switch system middle controller redundancy backup.
Background technology
At present internet development is rapid, it uses the importance of the huge and status of scale, head and shoulders above designers' the imagination, and present the Internet mainly contains following drawback: do not have in the specific scope that unified management, forwarded mechanism are single with strategy, operator is difficult to optimize to greatest extent self network and conventional switch to be used for function and the agreement transmitted many and assorted, be difficult to configuration, system's problem such as make mistakes easily.For tackling above-mentioned drawback, people have proposed the Openflow switch, and it separates the message repeating on the conventional switch and forwarding strategy, adopt a special controller (controller) to be connected with switch by netting twine.Message repeating function (hardware chip realization) on the original like this switch device that coexists just has been separated on the different hardware devices with message repeating strategy (various software protocol).And a controller (controller) can also be controlled many Openflow switches, thereby has realized unified forwarding control end, has more effectively controlled network.
At present, in the Openflow switch system, no matter be controller itself or the control channel of controller (control path), all might cause it unreliable for various reasons, for example, the control network congestion, the problems such as the unavailable or controller deadlock of network, at this moment, if the network disconnection has appearred in certain controller, and the function of this controller can not be substituted by other controllers, and what certainly will cause so whole switch system can not normal operation.
Summary of the invention
The object of the present invention is to provide a kind of method of the Openflow of realization switch system middle controller redundancy backup, improve the stability of switch system.
Corresponding to said method, another object of the present invention is to provide a kind of system of the Openflow of realization switch system middle controller redundancy backup.
For achieving the above object, technical scheme of the present invention is as follows: the comprising the steps: of described realization Openflow switch system middle controller redundancy backup
A plurality of controllers of S1, deployment and switch communication, wherein, described a plurality of controllers can be a plurality of peer devices or a main equipment and some combination or a plurality of peer device and some combinations from equipment from equipment;
S2, when described controller is deployed as a main equipment and some combinations from equipment, whether the network reachability of the current main equipment of Real-Time Monitoring normal, if keep current configuration; If not, jump to step S3;
S3, select a main equipment that is set to current system with described from equipment.
As the further improvement of said method, described step S2 specifically comprises: periodically send hello message to described main equipment, to learn the network reachability of described main equipment.
As the further improvement of said method, described step S3 specifically comprises: send the solicited message of " needing main equipment " to all from equipment, and wait for the described response message of returning accordingly " can become main equipment " from equipment; That feeds back at first described response message is set to the main equipment of current system from equipment.
Further improvement as said method, when described controller is deployed as a plurality of peer devices or a plurality of peer device and some combinations from equipment, the method also comprises: when described peer device is made amendment operation to switch, sent the asynchronous message of " revising the stream table " and " not revising at present the stream table " to all controllers by switch, wherein, the message of " revising the stream table " comprises the stream Table I D that is modified and the controller ID that revises the stream table.
As the further improvement of said method, the method also comprises the steps:
Receive network message;
Calculate the corresponding message weighted value of each message and the corresponding controller weighted value of each controller;
According to described message weighted value, it is interval to obtain a plurality of message weighted values, and according to each controller weighted value, is the interval corresponding controller of each message weighted value, and wherein, the number in described message weighted value interval equates with the number of controller;
Interval according to the present message weighted value of the message weighted value of current message, this message is sent to and the interval corresponding controller of this message weighted value.
Correspondingly, the system of described realization Openflow switch system middle controller redundancy backup comprises:
The controller deployment unit, be used for to dispose a plurality of controllers with switch communication, wherein, described a plurality of controllers can be a plurality of peer devices or a main equipment and some combination or a plurality of peer device and some combinations from equipment from equipment;
The network monitor unit, when described controller is deployed as a main equipment and some combinations from equipment, whether the network reachability that this unit is used for the current main equipment of Real-Time Monitoring at least normal, if keep current configuration; If not, then carry out main equipment and reset the unit;
Main equipment resets the unit, be used for selecting a main equipment that is set to current system with described from equipment.
As the further improvement of said system, described network monitor unit specifically is used for: periodically send hello message to described main equipment, to learn the network reachability of described main equipment.
As the further improvement of said system, described main equipment is reseted the unit and specifically is used for: send the solicited message of " needing main equipment " to all from equipment, and wait for the described response message of returning accordingly " can become main equipment " from equipment; That feeds back at first described response message is set to the main equipment of current system from equipment.
Further improvement as said system, when described controller is deployed as a plurality of peer devices or a plurality of peer device and some combinations from equipment, this system also comprises an asynchronous message transmitting element, it is used for: when described peer device is made amendment operation to switch, sent the asynchronous message of " revising the stream table " and " not revising at present the stream table " to all controllers by switch, wherein, the message of " revising the stream table " comprises the stream Table I D that is modified and the controller ID that revises the stream table.
As the further improvement of said system, this system also comprises such as lower unit:
The message receiving element, be used for to receive network message;
Weight calculation unit, be used for to calculate the corresponding message weighted value of each message and the corresponding controller weighted value of each controller;
The controller corresponding unit, be used for according to described message weighted value, it is interval to obtain a plurality of message weighted values, and according to each controller weighted value, is the interval corresponding controller of each message weighted value, wherein, the number in described message weighted value interval equates with the number of controller;
The message Dispatching Unit, be used for according to the present message weighted value of the message weighted value of current message intervally, this message is sent to and the interval corresponding controller of this message weighted value.
The invention has the beneficial effects as follows: the present invention is by the network reachability of Real-Time Monitoring switch system middle controller, and when the network of main equipment disconnects in system, select that a ground is a certain to be set to main equipment from equipment, thereby realized constantly having the main equipment that can work in the system, and then improved the stability of a system.
Description of drawings
Fig. 1 is the network architecture schematic diagram of Openflow switch system in an embodiment of the present invention;
Fig. 2 is the network architecture schematic diagram of Openflow switch system in another execution mode of the present invention;
Fig. 3 is the flow chart of realizing the method for Openflow switch system middle controller redundancy backup in the specific embodiment of the invention;
Fig. 4 is the flow chart of realizing the method for Openflow switch system middle controller load balance in the specific embodiment of the invention;
Fig. 5 is the cell schematics that realizes the system of Openflow switch system middle controller redundancy backup in the specific embodiment of the invention;
Fig. 6 is the cell schematics that realizes the system of Openflow switch system middle controller load balance in the specific embodiment of the invention.
Embodiment
Describe the present invention below with reference to embodiment shown in the drawings.But these execution modes do not limit the present invention, and the conversion on the structure that those of ordinary skill in the art makes according to these execution modes, method or the function all is included in protection scope of the present invention.
The ginseng Figure 1 and Figure 2, it has schematically illustrated respectively the network architecture of two kinds of Openflow switch systems of the present invention, this framework comprises a plurality of controllers (controller1, controller2, controller3 ... controllerN), link to each other by the control network between controller and the Openflow switch, the Openflow switch other end connects a plurality of terminal equipments (terminal 1, terminal 2, terminal 3 by multiservice port ... terminal N), above-mentioned terminal equipment can comprise mobile phone, computer, PDA(personal digital assistant) etc.Described terminal can intercom mutually by data channel and Openflow switch, realizes that message sends.Wherein, the present invention is each different role of controller configuration, and the role can be for: main equipment (Master), from equipment (Slave) and peer device (Peer).The controller of different role has following functions:
Main equipment, it can only have one in system, this equipment has the authority of all Openflow behaviors of controlling the switch that is being connected, comprises interpolation/deletion/modification stream, obtains the statistical information of port/stream/stream table, the change port arrangement sends the functions such as special packet;
From equipment, this equipment can only monitor/check/receive the information of the switch that connects, can not control/revise the configuration on the switch;
Peer device, identical with the behavior of main equipment institute namely possesses all authorities of main equipment, and difference is that can there be many peer devices in a switch system.
Be the above, in the same switch system, described a plurality of controllers can be a plurality of peer devices or a main equipment and some combination or a plurality of peer device and some combinations from equipment from equipment.Wherein, the controller role has following mutual exclusion characteristics: one, can only have a controller can be set to main equipment, when detect an equipment requirement as main equipment after, other equipment all can be set to from equipment; Two, when detect have controller to be set as main equipment on the switch after, all play the equipment that he connects and all can be set as from equipment; Three, when detect have controller to be set as main equipment on the switch after, this equipment will be configured to from equipment, if detect other controllers on the switch for from equipment, or peer device, this equipment still is peer device.
Join shown in Figure 3, in the specific embodiment of the invention, the method for described realization Openflow switch system middle controller redundancy backup, it comprises the steps:
A plurality of controllers of S1, deployment and switch communication, described a plurality of controllers can be a plurality of peer devices or a main equipment and some combination or a plurality of peer device and some combinations from equipment from equipment; Wherein, in the present embodiment, can one of them be set to main equipment (perhaps peer device) by manual controller, other equipment then is set to from equipment automatically.
S2, when described controller is deployed as a main equipment and some combinations from equipment, whether the network reachability of the current main equipment of Real-Time Monitoring normal (whether network disconnects), if keep current configuration; If not, jump to step S3;
Particularly, in the preferred embodiment of the invention, the step of " monitoring the network reachability of current main equipment " in this step is specially: periodically send hello message to described main equipment, to learn the network reachability of described main equipment.
S3, select a main equipment that is set to current system with described from equipment.Wherein, after original some from equipment is set to main equipment, in the system all the other all controllers then Lookup protocol be from equipment.
Particularly, in the preferred embodiment of the invention, described step S3 specifically comprises:
Switch sends the solicited message (OFP_MASTER_CONTROLLER_REQUEST) of " needing main equipment " to all from equipment, and waits for the described response message (OFP_MASTER_CONTRLLER_RESPOND) of returning accordingly " can become main equipment " from equipment; What switch fed back described response message (OFP_MASTER_CONTRLLER_RESPOND) at first is set to the main equipment of current system from equipment, thereby has realized the redundancy backup of many master-slave controllers equipment.
In addition, in the method for the present invention, as above introduce, can also be configured to peer device to many controllers, to operate separately the stream table on a part of switch, according to client's strategy, realize to a certain extent distributed control or load balance like this.But many peer devices are done another problem of mutual redundancy backup: since a plurality of peer devices can be simultaneously to the switch operation (as adding that stream, deletion flow etc.) of making amendment, and under present Openflow exchange board structure, controller reads the blanking time very long (being that sync interval is chronic) of switch stream table at every turn, so can bring different peer devices carrying out the switch operation hour according to nonsynchronous problem.For defects, the present invention is deployed as a plurality of peer devices at described controller, perhaps when a plurality of peer devices and some combinations from equipment, the method also comprises step S4: when described peer device is made amendment operation to switch, sent the asynchronous message of " revising the stream table " and " not revising at present the stream table " to all controllers by switch, wherein, the message of " revising the stream table " comprises the stream Table I D that is modified and the controller ID that revises the stream table, can in time notify all peer devices with the extremely short time like this, prevent peer device because untimely synchronously, and switch is carried out misoperation, realized reciprocity controller equiment redundancy backup.
At present, because the control channel (control path) in the Openflow switch system and the uncertainty of the network connection between a plurality of controller (controller) (interrupting such as network), cause the reaction speed of controller slow, and when the packet_in message is too much, over-burden easily to cause controller in the system, and then cause to a certain extent system unstable.Join shown in Figure 4ly, the present invention has also been merged a kind of method of the Openflow of realization switch system middle controller load balance for solving this technical problem in said method, and it specifically comprises the steps:
S5, reception come from the network message of each terminal equipment;
S6, calculate the corresponding message weighted value of each message and the corresponding controller weighted value of each controller;
Wherein, in the specific embodiment of the invention, in step S6, the step of " calculating the message weighted value " specifically comprises:
S61, be weighted according to the precedence field of each message self, obtaining wrapping weights packet_priority(weights scope is 0 ~ 100); Wherein, message field (MFLD) comprises based on the message priority of VLAN message (VLAN Priority), based on the message priority (DSCP/ToS) of IP message, based on message priority (MPLS Exp Bit) of MPLS message etc., for above-mentioned all types of message, message priority is higher, and its weighted value is also just higher.
S62, be weighted according to the priority of Openflow stream self, obtain flowing weights flow_priority; Similarly, the scope of stream weights flow_priority also is 0 ~ 100.
S63, according to described bag weights packet_priority and stream weights flow_priority, calculating described message weighted value overall_packet_priority(weights scope is 0 ~ 100), wherein, message weighted value=(2/3) * bag weights+(1/3) * flows weights.It is worth mentioning that the calculating of above-mentioned packet_priority and overall_packet_priority all can be realized by the chip of specific function.
Wherein, switch of the present invention need to be collected the controller weighted value of each controller, this controller weighted value overall_controller_priority(weights scope is 0 ~ 100) be to obtain according to the current state of network link between Openflow switch and the controller and the state of controller, particularly, among the above-mentioned steps S6, the step of " computing controller weighted value " specifically comprises:
S64, the speed weights link_priority(weights scope of obtaining the network link between controller and the switch are 0 ~ 100); Wherein, particularly, timing sends Echo Request message for each controller by switch, behind the certain interval of time, exchange opportunity receives the Echo Reply message that controller is replied, at this moment, switch can be calculated the speed of network link between switch and the controller, link-speeds=Echo Request message length/(2 * blanking time).
It is 0 ~ 100 that S65, the number of switches that connects according to controller obtain quantity weights concurrent_connection_priority(weights scope);
S66, to obtain Quality Weight service_quality_priority(weights scope according to the current service quality of controller be 0 ~ 100); Wherein, service quality comprise one hour in the past CPU/ EMS memory occupation ratio, controller hardware performance and restart number of times etc.;
S67, comprehensive described speed weights link_priority, quantity weights concurrent_connection_priority, and Quality Weight service_quality_priority calculate controller weighted value ovserall_controller_priority, wherein, controller weighted value=(2/4) * speed weights+(1/4) * quantity weights+(1/4) * Quality Weight.
In the preferred execution mode of the present invention, the weighted data of network link between Openflow switch and the controller, at set intervals (30 seconds), switch all will be to the controller request once; And every 1 minute, switch need to calculate the aggregative weighted value.
The present invention is take switch system that three controllers are set as example, switch obtains the corresponding form of a message weighted value and controller weighted value according to the weighted value of each subitem, only need the per minute stochastical sampling to choose 12 messages (sampling this paper number not necessarily), according to the ordering of weights size, it is as follows to obtain form (table 1):
Message The message weighted value The controller identifier The controller weighted value
Message 1 90 Controller 1 80
Message 2 85 Controller 2 70
Message 3 80 Controller 3 40
Message 4 76 ? ?
Message 5 50 ? ?
Message 6 45 ? ?
Message 7 34 ? ?
Message 8 32 ? ?
Message 9 30 ? ?
Message 10 20 ? ?
Message 11 18 ? ?
Message 12 10 ? ?
S7, according to described message weighted value, it is interval to obtain a plurality of message weighted values, and according to each controller weighted value, is the interval corresponding controller of each message weighted value, wherein, the number in described message weighted value interval equates with the number of controller;
Wherein, preferably, in the present embodiment, in described step S7, the step of " it is interval to obtain a plurality of message weighted values " specifically comprises:
S71, all message weighted values are sorted by size, and evenly be divided into N message group, wherein, N is the number of controller; The ginseng table 1 shown in, be 3 such as N, packet sampling 12, that is divided into 3 groups, every group of 4 message weighted values: (90,85,80,76), (50,45,34,32), (30,20,18,10).
S72, according to message weighted value in each message group, it is interval to obtain N initial weight;
The 1st group of message: message 1 ~ 4, message weighted value interval [76,90];
The 2nd group of message: message 5 ~ 8, message weighted value interval [32,50];
The 3rd group of message: message 9 ~ 12, message weighted value interval [10,30].
The interval upper limit in the initial weight interval of S73, low priority is set to equate with the interval lower limit in the initial weight interval of high priority; So far, each the weights interval that obtains is:
The 1st group of message: message 1 ~ 4, message weighted value interval [76,90];
The 2nd group of message: message 5 ~ 8, message weighted value interval [32,76];
The 3rd group of message: message 9 ~ 12, message weighted value interval [10,32].
S74, with limit priority the interval upper limit in initial weight interval be made as 100, with lowest priority the interval lower limit in initial weight interval be made as 0.So far, the final message weights interval that obtains is:
The 1st group of message: message 1 ~ 4, message weighted value interval [76,100];
The 2nd group of message: message 5 ~ 8, message weighted value interval [32,76];
The 3rd group of message: message 9 ~ 12, message weighted value interval [0,32].
In the present embodiment, preferably, described step S3 also specifically comprises:
S75, the message weighted value that is positioned at according to controller weighted value corresponding to current controller are interval, and this controller is corresponding with this message weighted value interval.
According to the specific embodiment of table 1, the corresponding relation that draws is:
The 1st group of message: message 1 ~ 4, message weighted value interval [76,100], corresponding controller 1 (weighted value: 80); The 2nd group of message: message 5 ~ 8, message weighted value interval [32,76], corresponding controller 2 (weighted value: 70); The 3rd group of message: message 9 ~ 12, message weighted value interval [0,32], corresponding controller 3 (weighted value: 40).
S8, interval according to the present message weighted value of the message weighted value of current message is sent to this message and the interval corresponding controller of this message weighted value, just can realize each controller load balance.Wherein, it is worth mentioning that the message of same TCP session need to mail to same controller, prevents packet out-ordering.
Next, shown in please refer to the drawing 5, in the specific embodiment of the invention, a kind of system 100 that uses the realization Openflow switch system middle controller redundancy backup of said method, it comprises such as lower unit:
Controller deployment unit 101, be used for to dispose a plurality of controllers with switch communication, described a plurality of controllers can be a plurality of peer devices or a main equipment and some combination or a plurality of peer device and some combinations from equipment from equipment; Wherein, in the present embodiment, can one of them be set to main equipment (perhaps peer device) by manual controller, other equipment then is set to from equipment automatically.
Network monitor unit 102, when described controller is deployed as a main equipment and some combinations from equipment, whether the network reachability that this unit is used for the current main equipment of Real-Time Monitoring at least normal, if keep current configuration; If not, then carry out main equipment and reset unit 103;
Particularly, in the preferred embodiment of the invention, this network monitor unit 102 specifically is used for: periodically send hello message to described main equipment, to learn the network reachability of described main equipment.
Main equipment resets unit 103, be used for selecting a main equipment that is set to current system with described from equipment.Wherein, after original some from equipment is set to main equipment, in the system all the other all controllers then Lookup protocol be from equipment.
Particularly, in the preferred embodiment of the invention, described main equipment is reseted unit 103 and specifically is used for:
Switch sends the solicited message (OFP_MASTER_CONTROLLER_REQUEST) of " needing main equipment " to all from equipment, and waits for the described response message (OFP_MASTER_CONTRLLER_RESPOND) of returning accordingly " can become main equipment " from equipment; What switch fed back described response message (OFP_MASTER_CONTRLLER_RESPOND) at first is set to the main equipment of current system from equipment, thereby has realized the redundancy backup of many master-slave controllers equipment.
In addition, in the system of the present invention, as above introduce, can also be configured to peer device to many controllers, to operate separately the stream table on a part of switch, according to client's strategy, realize to a certain extent distributed control or load balance like this.But many peer devices are done another problem of mutual redundancy backup: since a plurality of peer devices can be simultaneously to the switch operation (as adding that stream, deletion flow etc.) of making amendment, and under present Openflow exchange board structure, controller reads the blanking time very long (being that sync interval is chronic) of switch stream table at every turn, so can bring different peer devices carrying out the switch operation hour according to nonsynchronous problem.For defects, the present invention is deployed as a plurality of peer devices at described controller, perhaps when a plurality of peer devices and some combinations from equipment, this system also comprises an asynchronous message transmitting element 104, it is used for: when described peer device is made amendment operation to switch, sent the asynchronous message of " revising the stream table " and " not revising at present the stream table " to all controllers by switch, wherein, the message of " revising the stream table " comprises the stream Table I D that is modified and the controller ID that revises the stream table, can in time notify all peer devices with the extremely short time like this, prevent peer device because untimely synchronously, and switch is carried out misoperation, realized reciprocity controller equiment redundancy backup.
At present, because the control channel (control path) in the Openflow switch system and the uncertainty of the network connection between a plurality of controller (controller) (interrupting such as network), cause the reaction speed of controller slow, and when the packet_in message is too much, over-burden easily to cause controller in the system, and then cause to a certain extent system unstable.
Join shown in Figure 6ly, the present invention has also been merged a kind of mode of the Openflow of realization switch system middle controller load balance for solving this technical problem in said system 100, so said system 100 also comprises such as lower unit:
Message receiving element 105, be used for to receive the network message that comes from each terminal equipment;
Weight calculation unit 106, be used for to calculate the corresponding message weighted value of each message and the corresponding controller weighted value of each controller; Described weight calculation unit 106 comprises a message weight calculation unit 1061 and a controller weight calculation unit 1062, and both concrete account forms please be joined above, do not repeat them here.
Controller corresponding unit 107, be used for according to described message weighted value, it is interval to obtain a plurality of message weighted values, and according to each controller weighted value, is the interval corresponding controller of each message weighted value, wherein, the number in described message weighted value interval equates with the number of controller;
Message Dispatching Unit 108, be used for according to the present message weighted value of the message weighted value of current message intervally, this message is sent to and the interval corresponding controller of this message weighted value.
In sum, the present invention is by the network reachability of Real-Time Monitoring switch system middle controller, and when the network of main equipment disconnects in system, select that a ground is a certain to be set to main equipment from equipment, thereby realized constantly having the main equipment that can work in the system, and then improved the stability of a system.The present invention also can be by obtaining the interval and corresponding a plurality of controller weights with it of a plurality of message weighted values, and the message that will be in certain weights interval sends to corresponding controller, thereby realize the load balance of each controller in the Openflow switch system, improved the stability of a system.
It is worth mentioning that, in the method that the present invention introduces, mentioned step number " S1 ", " S2 " ... might not there be sequencing between " Sn " etc., hereby statement.
Device embodiments described above only is schematic, wherein said unit as the separating component explanation can or can not be physically to separate also, the parts that show as the unit can be or can not be physical locations also, namely can be positioned at a place, perhaps also can be distributed on a plurality of network element.Can select according to the actual needs wherein some or all of module to realize the purpose of present embodiment scheme.Those of ordinary skills namely can understand and implement in the situation of not paying creative work.
Be to be understood that, although this specification is described according to execution mode, but be not that each execution mode only comprises an independently technical scheme, this narrating mode of specification only is for clarity sake, those skilled in the art should make specification as a whole, technical scheme in each execution mode also can through appropriate combination, form other execution modes that it will be appreciated by those skilled in the art that.
Above listed a series of detailed description only is specifying for feasibility execution mode of the present invention; they are not to limit protection scope of the present invention, allly do not break away from equivalent execution mode or the change that skill spirit of the present invention does and all should be included within protection scope of the present invention.

Claims (10)

1. method that realizes Openflow switch system middle controller redundancy backup is characterized in that the method comprises:
A plurality of controllers of S1, deployment and switch communication, wherein, described a plurality of controllers can be a plurality of peer devices or a main equipment and some combination or a plurality of peer device and some combinations from equipment from equipment;
S2, when described controller is deployed as a main equipment and some combinations from equipment, whether the network reachability of the current main equipment of Real-Time Monitoring normal, if keep current configuration; If not, jump to step S3;
S3, select a main equipment that is set to current system with described from equipment.
2. method according to claim 1 is characterized in that, described step S2 specifically comprises:
Periodically send hello message to described main equipment, to learn the network reachability of described main equipment.
3. method according to claim 1 is characterized in that, described step S3 specifically comprises:
Send the solicited message of " needing main equipment " to all from equipment, and wait for the described response message of returning accordingly " can become main equipment " from equipment;
That feeds back at first described response message is set to the main equipment of current system from equipment.
4. method according to claim 1 is characterized in that, when described controller was deployed as a plurality of peer devices or a plurality of peer device and some combinations from equipment, the method also comprised:
When described peer device is made amendment operation to switch, sent the asynchronous message of " revising the stream table " and " not revising at present the stream table " to all controllers by switch, wherein, the message of " revising the stream table " comprises the stream Table I D that is modified and the controller ID that revises the stream table.
5. the described method of any one in 4 according to claim 1 is characterized in that the method also comprises the steps:
Receive network message;
Calculate the corresponding message weighted value of each message and the corresponding controller weighted value of each controller;
According to described message weighted value, it is interval to obtain a plurality of message weighted values, and according to each controller weighted value, is the interval corresponding controller of each message weighted value, and wherein, the number in described message weighted value interval equates with the number of controller;
Interval according to the present message weighted value of the message weighted value of current message, this message is sent to and the interval corresponding controller of this message weighted value.
6. system that realizes Openflow switch system middle controller redundancy backup is characterized in that this system comprises:
The controller deployment unit, be used for to dispose a plurality of controllers with switch communication, wherein, described a plurality of controllers can be a plurality of peer devices or a main equipment and some combination or a plurality of peer device and some combinations from equipment from equipment;
The network monitor unit, when described controller is deployed as a main equipment and some combinations from equipment, whether the network reachability that this unit is used for the current main equipment of Real-Time Monitoring at least normal, if keep current configuration; If not, then carry out main equipment and reset the unit;
Main equipment resets the unit, be used for selecting a main equipment that is set to current system with described from equipment.
7. system according to claim 6 is characterized in that, described network monitor unit specifically is used for: periodically send hello message to described main equipment, to learn the network reachability of described main equipment.
8. system according to claim 6 is characterized in that, described main equipment is reseted the unit and specifically is used for:
Send the solicited message of " needing main equipment " to all from equipment, and wait for the described response message of returning accordingly " can become main equipment " from equipment;
That feeds back at first described response message is set to the main equipment of current system from equipment.
9. system according to claim 6 is characterized in that, when described controller was deployed as a plurality of peer devices or a plurality of peer device and some combinations from equipment, this system also comprised an asynchronous message transmitting element, and it is used for:
When described peer device is made amendment operation to switch, sent the asynchronous message of " revising the stream table " and " not revising at present the stream table " to all controllers by switch, wherein, the message of " revising the stream table " comprises the stream Table I D that is modified and the controller ID that revises the stream table.
10. according to claim 6 to the described system of 9 any one, it is characterized in that this system also comprises such as lower unit:
The message receiving element, be used for to receive network message;
Weight calculation unit, be used for to calculate the corresponding message weighted value of each message and the corresponding controller weighted value of each controller;
The controller corresponding unit, be used for according to described message weighted value, it is interval to obtain a plurality of message weighted values, and according to each controller weighted value, is the interval corresponding controller of each message weighted value, wherein, the number in described message weighted value interval equates with the number of controller;
The message Dispatching Unit, be used for according to the present message weighted value of the message weighted value of current message intervally, this message is sent to and the interval corresponding controller of this message weighted value.
CN201210363173.0A 2012-09-26 2012-09-26 Method and system for implementation of redundant backup of controllers in Openflow switch system Active CN102882719B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210363173.0A CN102882719B (en) 2012-09-26 2012-09-26 Method and system for implementation of redundant backup of controllers in Openflow switch system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210363173.0A CN102882719B (en) 2012-09-26 2012-09-26 Method and system for implementation of redundant backup of controllers in Openflow switch system

Publications (2)

Publication Number Publication Date
CN102882719A true CN102882719A (en) 2013-01-16
CN102882719B CN102882719B (en) 2015-06-17

Family

ID=47483873

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210363173.0A Active CN102882719B (en) 2012-09-26 2012-09-26 Method and system for implementation of redundant backup of controllers in Openflow switch system

Country Status (1)

Country Link
CN (1) CN102882719B (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103346904A (en) * 2013-06-21 2013-10-09 西安交通大学 Fault-tolerant OpenFlow multi-controller system and control method thereof
CN103546697A (en) * 2013-10-12 2014-01-29 中央电视台 Peer-to-peer control playing method of star structure
CN103618621A (en) * 2013-11-21 2014-03-05 华为技术有限公司 Method, device and system for automatic configuration of SDN
CN103888313A (en) * 2014-03-11 2014-06-25 浙江大学 Method for forecasting optimal timeout of flow table item
CN104092774A (en) * 2014-07-23 2014-10-08 杭州华三通信技术有限公司 Software defined network connection establishment control method and device
WO2014179923A1 (en) * 2013-05-06 2014-11-13 华为技术有限公司 Network configuration method, device and system based on sdn
CN104253767A (en) * 2013-06-27 2014-12-31 华为技术有限公司 Virtual shard network implementing method and switch
CN104412560A (en) * 2013-05-06 2015-03-11 华为技术有限公司 SDN-based network configuration method, apparatus and system
CN104468236A (en) * 2014-12-19 2015-03-25 上海斐讯数据通信技术有限公司 SDN controller cluster, SDN switch and SDN switch connecting control method
CN104468231A (en) * 2014-12-23 2015-03-25 上海斐讯数据通信技术有限公司 SDN interchanger and controller dynamic registration method
CN104641606A (en) * 2013-06-13 2015-05-20 华为技术有限公司 Method for network resource equalization processing, and virtual network management entity
WO2015096761A1 (en) * 2013-12-27 2015-07-02 Huawei Technologies Co., Ltd. Traffic behavior driven dynamic zoning for distributed traffic engineering in sdn
CN104980296A (en) * 2014-04-11 2015-10-14 华为技术有限公司 OpenFlow multi-controller system and management method thereof
CN105262692A (en) * 2015-09-23 2016-01-20 盛科网络(苏州)有限公司 Method and device for realizing flow meter information real-time synchronization of openflow switches
CN105490955A (en) * 2014-09-24 2016-04-13 杭州华三通信技术有限公司 Flow switching method and flow switching equipment
US9397917B2 (en) 2014-01-10 2016-07-19 Huawei Technologies Co., Ltd. System and method for zoning in software defined networks
CN107046486A (en) * 2017-06-16 2017-08-15 郑州云海信息技术有限公司 A kind of fail-over system acted on behalf of based on controller

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1533108A (en) * 2003-03-21 2004-09-29 ��Ϊ�������޹�˾ Method for realizing dynamic gateway load sharing and backup
US20110286324A1 (en) * 2010-05-19 2011-11-24 Elisa Bellagamba Link Failure Detection and Traffic Redirection in an Openflow Network
CN102349268A (en) * 2009-03-09 2012-02-08 日本电气株式会社 Openflow communication system and openflow communication method
CN102594697A (en) * 2012-02-21 2012-07-18 华为技术有限公司 Load balancing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1533108A (en) * 2003-03-21 2004-09-29 ��Ϊ�������޹�˾ Method for realizing dynamic gateway load sharing and backup
CN102349268A (en) * 2009-03-09 2012-02-08 日本电气株式会社 Openflow communication system and openflow communication method
US20110286324A1 (en) * 2010-05-19 2011-11-24 Elisa Bellagamba Link Failure Detection and Traffic Redirection in an Openflow Network
CN102594697A (en) * 2012-02-21 2012-07-18 华为技术有限公司 Load balancing method and device

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014179923A1 (en) * 2013-05-06 2014-11-13 华为技术有限公司 Network configuration method, device and system based on sdn
CN104412560B (en) * 2013-05-06 2018-03-13 华为技术有限公司 Network collocating method, apparatus and system based on SDN
CN104429028B (en) * 2013-05-06 2018-01-12 华为技术有限公司 Network collocating method, apparatus and system based on SDN
CN104412560A (en) * 2013-05-06 2015-03-11 华为技术有限公司 SDN-based network configuration method, apparatus and system
CN104641606A (en) * 2013-06-13 2015-05-20 华为技术有限公司 Method for network resource equalization processing, and virtual network management entity
CN103346904B (en) * 2013-06-21 2016-03-30 西安交通大学 A kind of fault-tolerant OpenFlow multi controller systems and control method thereof
CN103346904A (en) * 2013-06-21 2013-10-09 西安交通大学 Fault-tolerant OpenFlow multi-controller system and control method thereof
CN104253767B (en) * 2013-06-27 2017-11-17 华为技术有限公司 A kind of implementation method of virtual burst network and a kind of interchanger
CN104253767A (en) * 2013-06-27 2014-12-31 华为技术有限公司 Virtual shard network implementing method and switch
CN103546697A (en) * 2013-10-12 2014-01-29 中央电视台 Peer-to-peer control playing method of star structure
CN103546697B (en) * 2013-10-12 2016-09-28 中央电视台 The equity of a kind of star structure controls player method
CN103618621A (en) * 2013-11-21 2014-03-05 华为技术有限公司 Method, device and system for automatic configuration of SDN
CN103618621B (en) * 2013-11-21 2017-08-11 华为技术有限公司 A kind of software defined network SDN method of automatic configuration, equipment and system
WO2015096761A1 (en) * 2013-12-27 2015-07-02 Huawei Technologies Co., Ltd. Traffic behavior driven dynamic zoning for distributed traffic engineering in sdn
CN105900393A (en) * 2013-12-27 2016-08-24 华为技术有限公司 Traffic behavior driven dynamic zoning for distributed traffic engineering in SDN
US9432257B2 (en) 2013-12-27 2016-08-30 Huawei Technologies Co., Ltd. Traffic behavior driven dynamic zoning for distributed traffic engineering in SDN
US9397917B2 (en) 2014-01-10 2016-07-19 Huawei Technologies Co., Ltd. System and method for zoning in software defined networks
CN103888313B (en) * 2014-03-11 2017-04-12 浙江大学 Method for forecasting optimal timeout of flow table item
CN103888313A (en) * 2014-03-11 2014-06-25 浙江大学 Method for forecasting optimal timeout of flow table item
CN104980296A (en) * 2014-04-11 2015-10-14 华为技术有限公司 OpenFlow multi-controller system and management method thereof
CN104980296B (en) * 2014-04-11 2018-06-19 华为技术有限公司 OpenFlow multi controller systems and its management method
CN104092774A (en) * 2014-07-23 2014-10-08 杭州华三通信技术有限公司 Software defined network connection establishment control method and device
CN105490955A (en) * 2014-09-24 2016-04-13 杭州华三通信技术有限公司 Flow switching method and flow switching equipment
CN105490955B (en) * 2014-09-24 2019-01-22 新华三技术有限公司 A kind of method and apparatus of flow switching
CN104468236B (en) * 2014-12-19 2017-11-14 上海斐讯数据通信技术有限公司 SDN controllers cluster, SDN switch and its connection control method
CN104468236A (en) * 2014-12-19 2015-03-25 上海斐讯数据通信技术有限公司 SDN controller cluster, SDN switch and SDN switch connecting control method
CN104468231A (en) * 2014-12-23 2015-03-25 上海斐讯数据通信技术有限公司 SDN interchanger and controller dynamic registration method
CN105262692A (en) * 2015-09-23 2016-01-20 盛科网络(苏州)有限公司 Method and device for realizing flow meter information real-time synchronization of openflow switches
CN107046486A (en) * 2017-06-16 2017-08-15 郑州云海信息技术有限公司 A kind of fail-over system acted on behalf of based on controller

Also Published As

Publication number Publication date
CN102882719B (en) 2015-06-17

Similar Documents

Publication Publication Date Title
CN102882719B (en) Method and system for implementation of redundant backup of controllers in Openflow switch system
CN102868645A (en) Open flow switchboard system and message processing method of open flow switchboard system
EP2553886B1 (en) Aggregating data traffic from access domains
CN101136921B (en) Communication apparatus and communication system
EP2608459B1 (en) Router, virtual cluster router system and establishing method thereof
CN102368727B (en) Crossed IP network TRILL network communication method, system thereof and devices
CN100544286C (en) A kind of method and system that realize backup link of virtual private LAN service network
CN102843300A (en) Method and system for achieving controller load balance in Openflow switchboard system
CN102843299A (en) Method and system for realizing Openflow multi-stage flow tables on basis of ternary content addressable memory (TCAM)
CN102119510A (en) A multi-path network
CN102404234A (en) Flow transfer method and equipment
CN102821050A (en) Processing method for applying rapid spanning tree protocol to monocyclic network topology
JP2006262169A (en) Inter-ring connection method and device
CN103916319B (en) Link selecting method and stack equipment in LACP stacking networkings
CN102164081B (en) Routing computation method of fat-tree topology, node equipment and communication system
CN103166800B (en) Message transmission method for dual-network redundant message bus in cross failure
CN103607293B (en) A kind of flow rate protecting method and equipment
US20130301404A1 (en) Communication system, communication method, and communication apparatus
CN104618254A (en) Method and controller capable of avoiding network congestion in software defined network
CN102970231A (en) Multicast flow forwarding implementation method and routing bridge (RB)
CN101483571B (en) RRPP configuring method, system and device
CN104301417A (en) Load balancing method and device
CN106027352A (en) Service message forwarding method and device
CN103580932A (en) Status switching method and system based on Ethernet linear protection switching
CN102857436B (en) Flow transmission method and flow transmission equipment based on IRF (intelligent resilient framework) network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 215000 unit 13 / 16, 4th floor, building B, No.5 Xinghan street, Suzhou Industrial Park, Jiangsu Province

Patentee after: Suzhou Shengke Communication Co.,Ltd.

Address before: 215021 unit 13 / 16, floor 4, building B, No. 5, Xinghan street, Suzhou Industrial Park, Suzhou, Jiangsu

Patentee before: CENTEC NETWORKS (SU ZHOU) Co.,Ltd.