CN104158642A - Method and system for providing backup for software defined network controller - Google Patents

Method and system for providing backup for software defined network controller Download PDF

Info

Publication number
CN104158642A
CN104158642A CN201410387804.1A CN201410387804A CN104158642A CN 104158642 A CN104158642 A CN 104158642A CN 201410387804 A CN201410387804 A CN 201410387804A CN 104158642 A CN104158642 A CN 104158642A
Authority
CN
China
Prior art keywords
controller
priority
backup
master controller
candidate
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
CN201410387804.1A
Other languages
Chinese (zh)
Other versions
CN104158642B (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.)
Xi'an Ruisike Pharmaceutical Technology Co.,Ltd.
Original Assignee
Shanghai Feixun Data Communication Technology 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201410387804.1A priority Critical patent/CN104158642B/en
Publication of CN104158642A publication Critical patent/CN104158642A/en
Application granted granted Critical
Publication of CN104158642B publication Critical patent/CN104158642B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method for providing backup for a software defined network controller. The method comprises the following steps: in an initial stage, defining a plurality of controllers as candidate master controllers, and transmitting a first protocol message among the candidate master controllers; extracting the priority of the first protocol message; detecting whether the priority of each candidate master controller is higher than that of the first protocol message; if so, defining the candidate master controller as a master controller; transmitting a second protocol message by the master controller; respectively transmitting the first protocol message to each backup controller within a first preset time by the master controller; judging whether each backup controller receives the first protocol message within a second preset time or not; if so, extracting the priority of the message, and continuing to judge whether the priority of each backup controller is higher than that of the first protocol message or not; if not, defining the candidate master controller as the master controller. According to the method and the system, the problems about reliability, expansibility and performance of controllers are solved, and the reliability of network is increased.

Description

A kind ofly provide the method and system of backup for software defined network controller
Technical field
The invention belongs to computer communication network field, relate to a kind of method and system that backup is provided, particularly relate to and a kind ofly provide the method and system of backup for software defined network controller.
Background technology
SDN (Software Defined Network) network, thisly will control and forward the new network framework that is separated, make complicated network management become easily a lot, controller is wherein responsible for the centralization control of whole SDN network, for holding the whole network resource view, improve Internet resources and pay and all have very important effect.But along with the increase of network size, the problem that Single Controller exists aspect extensibility also becomes more and more obvious, and the centralization of the control ability of its middle controller, also mean that the fail safe of controller and performance become the bottleneck of the whole network, these single controllers cannot be tackled the SND network problem across multiple regions, need the transmeridional expansion of multiple SDN controllers, once controller can not get guarantee in performance or fail safe, the thing followed is degradation or even the paralysis of the service ability of the whole network.In order to solve the problem of reliability that SDN network design Single Controller may face, autgmentability, aspect of performance, people have proposed multi-controller control plane.The main thought of multi-controller control plane is exactly that existing network is divided into different regions, affixes one's name to one or more controllers at each intra-zone, and these controllers are by ensureing the consistency of network state, realize the coordinating and unifying management to network.This multi-controller control plane both can show as every switch in realization by multiple controller control, can be again the multiple switches of each controller control, and each switch was only by a controller control.As for concrete way of realization, academia and industrial quarters have proposed some schemes one after another, but also there is no so far relatively ripe product.
In order to solve the reliability of controller centralized control single node, autgmentability, the Clustering of controller is extremely urgent.At present, also do not have definition standard for the East and West direction interface of linking up between multiple controllers and contacting.Controller concentrating type solves one of important technology of controller East and West direction expansion, has the technology of a lot of maturations with successfully experience can be for reference although current, for SDN network, also has many contents to need further research.
So, how to provide a kind of and provide the method and system of backup for software defined network controller, cannot tackle the SDN network across multiple regions to solve Single Controller of the prior art, cannot solve Single Controller in reliability, autgmentability, the poor many disadvantages of aspect of performance, the real practitioner in the art's technical problem urgently to be resolved hurrily that become.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind ofly provides the method and system of backup for software defined network controller, the SDN network across multiple regions cannot be tackled for solving prior art Single Controller, Single Controller cannot be solved in reliability, autgmentability, the poor problem of aspect of performance.
For achieving the above object and other relevant objects, one aspect of the present invention provides a kind of and provides the method for backup for software defined network controller, be applied in the network system that comprises switch and multiple controllers, said method comprising the steps of: step 1, in the starting stage, multiple controllers are defined as to candidate's master controller, between described multiple candidate's master controllers, send first protocol massages with priority attribute; Step 2, respectively this candidate's master controller receives described the first protocol massages, extracts the priority of described the first protocol massages according to the priority attribute of described the first protocol massages; Step 3, compares the priority of described the first protocol massages extracting and the each priority of this candidate's master controller self, and whether the priority that detects each this candidate's master controller self is higher than the priority of described the first protocol massages; Step 4, if the priority of described candidate's main controller self higher than the priority of described the first protocol massages, defining described candidate's master controller is master controller, residue candidate master controller is backup controller; Step 5, described master controller sends second protocol message to switch; Step 6, described master controller sends respectively described the first protocol massages to each backup controller in the first Preset Time; Step 7, whether judgement respectively this backup controller receives described the first protocol massages in the second Preset Time section; If so, extract message priority, whether the priority that judges described backup controller self is higher than the priority of described the first protocol massages; If the priority of described backup controller self is higher than the priority of described the first protocol massages, defining described backup controller is master controller, returns to step 5; If the priority of described backup controller self, lower than the priority of described the first protocol massages, is returned to step 6; If not, defining described alternative master controller is master controller, returns to step 5.
Alternatively, describedly for providing the method for backup, software defined network controller also comprises: if the priority of described candidate's main controller self is not higher than the priority of described the first protocol massages, described candidate's master controller is defined as to backup controller, and described backup controller is placed in and waits for the state that receives described the first protocol massages, proceed to step 7.
Alternatively, describedly for software defined network controller provides in the method for backup, the priority of described the first protocol massages extracting and the each priority of this candidate's master controller self are compared, whether the priority that detects each this candidate's master controller self is equivalent to and judges whether the IP address of described Virtual Controller overlaps with the IP address of candidate's master controller in described multiple candidate's master controllers higher than the step of the priority of described the first protocol massages; If overlap, represent that the candidate's master controller overlapping with the IP address of described Virtual Controller has limit priority, described candidate's master controller with limit priority is master controller, residue candidate master controller is backup controller, and described master controller sends described the first protocol massages in described the first Preset Time section described backup controller.
Alternatively, the priority limit of described the first protocol massages is between 0~255, and limit priority is 255.
Alternatively, describedly for providing the method for backup, software defined network also comprises: when described candidate's master controller is defined as master controller, described master controller sends second protocol message to described switch, and described switch generates the IP address of recording described Virtual Controller and the mapping table that receives the port numbers of the inbound port of described second protocol message.
Alternatively, in the time that in described the second Preset Time section, described multiple backup controllers do not receive described the first protocol massages, represent that described master controller breaks down, described multiple backup controller declaration oneself is master controller, re-elects and produce new master controller in multiple backup controllers; The new described master controller producing sends second protocol message to described switch, and described switch upgrades described mapping table.
Alternatively, described the first protocol massages is virtual router redundancy protocol message, and described second protocol message is address analysis protocol message.
The present invention also provides on the other hand a kind of and provides the system of backup for software defined network controller, comprise: multiple controllers, described multiple controller comprises: sending module, for in the time that multiple controllers are defined as candidate's master controller by the starting stage, between described multiple candidate's master controllers, send first protocol massages with priority attribute; And described sending module is also for sending second protocol message to switch; Receiver module, for receiving the first protocol massages that respectively this candidate's master controller sends; Extraction module, for receiving after described the first protocol massages, extracts respectively the priority of described the first protocol massages according to the priority attribute of described the first protocol massages; Comparison module, for the priority of described the first protocol massages extracting and the each priority of this candidate's master controller self are compared, whether the priority that detects each this candidate's master controller self is higher than the priority of described the first protocol massages; If, defining described candidate's master controller is master controller, residue candidate master controller is backup controller, call described sending module and in the first Preset Time section, send second protocol message to described switch, and in the first Preset Time section, send respectively described the first protocol massages to each backup controller; If not, defining described candidate's master controller is backup controller, and described backup controller is placed in to the state that receives described the first protocol massages of waiting for; Judge module, for judging respectively whether this backup controller receives described the first protocol massages in the second Preset Time section, if, call described extraction module and comparison module and extract respectively the first protocol massages priority, whether the priority that detects described backup controller self is higher than the priority of described the first protocol massages, if so, defining described backup controller is master controller, and calls described sending module transmission second protocol message to described switch; If not, call described sending module and in described the first Preset Time section, send respectively described the first protocol massages to each backup controller; If not, defining described backup controller is master controller, calls described sending module and sends second protocol message to described switch.
Alternatively, describedly for providing the system of backup, software defined network controller also comprises virtual module, the Virtual Controller of described virtual module for being made up of described multiple controllers according to the first agreement is described multiple controllers and described Virtual Controller pre-configured IP address and priority.
Alternatively, whether described comparison module also overlaps with the IP address of candidate's master controller of described multiple candidate's master controllers for the IP address that judges described Virtual Controller, if overlap, represent that the candidate's master controller overlapping with the IP address of described Virtual Controller has limit priority, described candidate's master controller with limit priority is master controller, residue candidate master controller is backup controller, and described master controller sends the first protocol massages in a Preset Time section described backup controller.
As mentioned above, of the present invention for software defined network controller provides the method and system of backup, there is following beneficial effect:
The present invention is by arranging the IP address of Virtual Controller of VRRP controller group, switch is without the IP address of all controllers of perception, only need the virtual ip address of Virtual Controller described in perception, switch is without linking up with each controller, master controller meeting active and switch in VRRP controller group go to set up contact, and then switch only can be mutual with master controller.The invention solves the problem of reliability, autgmentability and the aspect of performance of single-point controller, increased the reliability of network, realized Single Controller and can tackle the SDN network across multiple regions, and realized the transmeridional expansion of multiple SDN controllers.
Brief description of the drawings
Fig. 1 is shown as and of the present inventionly provides the method flow diagram of backup for software defined network controller.
Fig. 2 is shown as and of the present inventionly provides the system entity structure chart of backup for software defined network controller.
Fig. 3 is shown as and of the present inventionly provides the system middle controller principle assumption diagram of backup for software defined network controller.
Element numbers explanation
1 provides the system of backup for software defined network controller
11 controllers
110 virtual modules
111 sending modules
112 receiver modules
113 extraction modules
114 comparison modules
115 judge modules
12 switches
13 Virtual Controllers
S1~S10 step
Embodiment
Below, by specific instantiation explanation embodiments of the present invention, those skilled in the art can understand other advantages of the present invention and effect easily by the disclosed content of this specification.The present invention can also be implemented or be applied by other different embodiment, and the every details in this specification also can be based on different viewpoints and application, carries out various modifications or change not deviating under spirit of the present invention.It should be noted that, in the situation that not conflicting, the feature in following examples and embodiment can combine mutually.
It should be noted that, the diagram providing in following examples only illustrates basic conception of the present invention in a schematic way, then in diagram, only show with assembly relevant in the present invention but not component count, shape and size drafting while implementing according to reality, when its actual enforcement, kenel, quantity and the ratio of each assembly can be a kind of random change, and its assembly layout kenel also may be more complicated.
Of the present inventionly provide the know-why of method and system of backup as follows for software defined network controller:
In SDN environment, datum plane separates with control plane, is connected as the switch of datum plane and the controller of control plane, is responsible to define forwarding strategy and is come the switch of guide data plane by controller.The present invention sets up a Virtual Controller by VRRP agreement, is referred to as a backup group.The responsibility of Virtual Controller can be dynamically distributed on certain concrete controller by VRRP, this virtual controller has oneself IP address, and (this IP address can be identical with the address of certain controller in backup group, identical be called IP owner), backup controller also has the IP address of oneself.Switch is only known the IP address of this Virtual Controller, and and does not know the IP address of master controller and backup controller.If the master controller of backup group breaks down, the controller of backup will elect a new master controller, and continuing provides service to switch.In VRRP controller group, according to priority elect master controller, the scope of VRRP agreement medium priority is 0-255, if the interface IP address of the IP address of VRRP controller and Virtual Controller is identical, this VRRP controller is called as the owner of this IP address, and the IP address owner has limit priority: 255.Configurable priority limit is 0-254.For candidate's controller of equal priority, according to the election of IP address size order.VRRP also provides priority preemptive policy, if the high priority of configuration, just the backup router of high priority could be deprived the master control controller of current low priority and become new master control controller.Only have master control controller can process the message from switch, and remove to control switch, backup controller is also processed the message from switch, but can not remove to control switch.Backup controller also can be accepted the VRRP message of master controller, and the priority of oneself contrast, if priority ratio oneself is low, oneself becomes master controller from backup controller.Meanwhile, backup controller and master controller can synchronization message carry out the synchronous of exchanger information and stream table, when become master control controller from backup controller, can know the state that current switch is up-to-date.
Embodiment mono-
The present embodiment provides a kind of and provides the method for backup for software defined network controller, be applied in the network system that comprises switch and multiple controllers, refer to Fig. 1, be shown as the flow chart that the method for backup is provided for software defined network controller, describedly comprise for software defined network controller provides the method for backup:
S1, in the starting stage, initialization comprises the network system of switch and multiple controllers, described multiple controllers are defined as to candidate's master controller, between described multiple candidate's master controller, send first protocol massages with priority attribute, and according to the first agreement, described multiple controllers are bundled and create a Virtual Controller, be described multiple controllers and described Virtual Controller pre-configured IP address and priority.Described the first protocol massages is Virtual Router Redundancy Protocol (VRRP) message.Wherein, described Virtual Controller is also referred to as controller backup group.
S2, described respectively this candidate's master controller receives described the first protocol massages that other candidate's master controllers send, and extracts the priority of described the first protocol massages according to the priority attribute of described the first protocol massages.The priority limit of described the first protocol massages is between 0~255, and limit priority is 255, and the scope of other configurable priority is 0-254.
S3, described multiple candidate's master controller compares the priority of described the first protocol massages extracting and the each priority of this candidate's master controller self respectively, and whether the priority that detects each this candidate's master controller self is higher than the priority of described the first protocol massages; If so, perform step S4; If not, perform step S7.In described step S3, the priority of described the first protocol massages extracting and the each priority of this candidate's master controller self are compared, whether the priority that detects each this candidate's master controller self is equivalent to and judges whether the IP address of described Virtual Controller overlaps with the IP address of candidate's master controller in described multiple candidate's master controllers higher than the step of the priority of described the first protocol massages, if overlap, perform step S4; If do not overlap, perform step S5.
S4, through priority ratio after, candidate's master controller the highest priority is defined as to master controller, represent that the candidate's master controller overlapping with the IP address of described Virtual Controller has limit priority, described candidate's master controller with limit priority is master controller, and residue candidate master controller is backup controller.
S5, described master controller sends second protocol message to described switch, and described switch generates the IP address of recording described Virtual Controller and the mapping table that receives the port numbers of the inbound port of described second protocol message.Described second protocol message is address resolution protocol (ARP) message.Wherein the message source IP of second protocol message is the IP address of described Virtual Controller, and the IP address of controller itself is used for VRRP broadcast, and described switch is the IP address of sensing controller not.When described switch is received second protocol message, can send the 3rd protocol massages based on OPEN FLOW agreement to controller according to the described mapping table generating, and proceed to step S8.
S6, described master controller sends described the first protocol massages to respectively in the first Preset Time each backup controller of mentioning in step S4.
S7, after priority, the priority of candidate's master controller self is not defined as to backup controller higher than candidate's master controller of the first protocol massages priority, and described backup controller is placed in and waits for the state that receives described the first protocol massages, and proceed to step S8.
S8, whether judgement respectively this backup controller receives described the first protocol massages in the second Preset Time section, if not, performs step S5; If so, perform step S9.In the present embodiment, this step S8 is in order to prevent that the phenomenon breaking down from appearring in the controller that is defined as master controller.In the time that in described the second Preset Time section, described multiple backup controllers do not receive described the first protocol massages, represent that described master controller breaks down, described multiple backup controller declaration oneself is master controller, re-elects and produce new master controller in multiple backup controllers; The new described master controller producing sends second protocol message to described switch, and described switch upgrades described mapping table.
S9, extracts the priority of described the first protocol massages according to the priority attribute of described the first protocol massages, and whether the priority that judges described backup controller self is higher than the priority of described the first protocol massages, if so, performs step S10; If not, represent through priority ratio after, if the priority of described backup controller self is lower than the priority of described the first protocol massages, return to step S6.
S10, through priority ratio after, if the priority of described backup controller self is higher than the priority of described the first protocol massages, backup controller higher priority is defined as to master controller, return to step S5;
What provide at the present embodiment also comprises in the time that in described another Preset Time section, described multiple backup controllers do not receive described the first protocol massages for software defined network controller provides in the method for backup, represent that described master controller breaks down, described multiple backup controller declaration oneself is master controller, in multiple backup controllers, re-elect, produce new master controller; The new master controller producing sends second protocol message to described switch, and described switch upgrades described mapping table.
The method that provides backup for software defined network controller described in the present embodiment is by arranging the IP address of Virtual Controller of VRRP controller group, switch is without the IP address of all controllers of perception, only need the virtual ip address of Virtual Controller described in perception, switch is without linking up with each controller, master controller meeting active and switch in VRRP controller group go to set up contact, and then switch only can be mutual with master controller.The invention solves the problem of reliability, autgmentability and the aspect of performance of single-point controller, increased the reliability of network, realized Single Controller and can tackle the SDN network across multiple hell, and realized the transmeridional expansion of multiple SDN controllers.
Embodiment bis-
The present embodiment provides a kind of and provides the system 1 of backup for software defined network controller, refer to Fig. 2, be shown as the entity structure diagram that the system of backup is provided for software defined network controller, describedly comprise multiple controllers 11, multiple switch 12 for software defined network controller provides the system 1 of backup, wherein described multiple controllers 11 are bundled and create a Virtual Controller 13.Described multiple controller 11 comprises master controller and backup controller.
Refer to Fig. 3, be shown as the system middle controller principle assumption diagram that backup is provided for software defined network controller, described multiple controllers 11 comprise virtual module 110, sending module 111, receiver module 112, extraction module 113, comparison module 114 and judge module 115.
Wherein, described sending module 111, in the time that multiple controllers are defined as candidate's master controller by the starting stage, sends the first protocol massages to controller described in other 11, i.e. candidate's master controller described in other, and described the first protocol massages has priority attribute.Described the first protocol massages is Virtual Router Redundancy Protocol (VRRP) message.Sending the first protocol massages to before other controllers 11, described virtual module 110 bundles described multiple controllers to create a Virtual Controller 13 according to the first agreement, is described multiple controllers 11 and described Virtual Controller 13 pre-configured IP address and priority.Wherein, described Virtual Controller 13 is also referred to as controller backup group.
The receiver module 112 being connected with described sending module 111 is for receiving other controllers 11, the first protocol massages that respectively this candidate's master controller sends.
The extraction module 113 being connected with described receiver module 112, for receiving after described the first protocol massages, extracts respectively the priority of described the first protocol massages according to the priority attribute of described the first protocol massages.The priority limit of described the first protocol massages is between 0~255, and limit priority is 255, and the scope of other configurable priority is 0-254.
The comparison module 114 being connected with described extraction module 113 is for comparing the priority of described the first protocol massages extracting and the each priority of this candidate's master controller self, and whether the priority that detects controller 11 (respectively this candidate's master controller) self is higher than the priority of described the first protocol massages; If so, defining the controller 11 that priority is the highest (candidate's master controller that priority is the highest) is master controller, and residue controller 11 (residue candidate master controller) is backup controller; If not, the priority that defines candidate's master controller self is not backup controller higher than candidate's master controller (controller 11) of the first protocol massages priority, and described backup controller is placed in to the state that receives described the first protocol massages of waiting for.Described comparison module 114 comprises timer A, and described timer A is used for starting described the first Preset Time section.Described comparison module 114 compares the priority of the priority of described the first protocol massages extracting and controller self, detect the respectively priority of this candidate's master controller self and whether judge higher than being functionally equivalent to of priority of described the first protocol massages whether the IP address of described Virtual Controller overlaps with the IP address of candidate's master controller in described multiple candidate's master controllers, if overlap, represent that the candidate's master controller overlapping with the IP address of described Virtual Controller has limit priority, described candidate's master controller with limit priority is master controller, residue candidate master controller is backup controller, described master controller sends the first protocol massages in a Preset Time section described backup controller, if do not overlap, definition priority is not backup controller higher than the controller 11 of the first protocol massages priority, and these controllers 11 are placed in to the state that receives described the first protocol massages of waiting for.
In the present embodiment, through priority ratio after, described sending module 111 is also for being sent to second protocol message described switch 12.Described switch 12 is for generating the IP address of recording described Virtual Controller 13 and the mapping table that receives the port numbers of the inbound port of described second protocol message.Described second protocol message is address resolution protocol (ARP) message.Wherein the message source IP of second protocol message is the IP address of described Virtual Controller 13, and the IP address of controller itself is used for VRRP broadcast, and described switch is the IP address of sensing controller not.When described switch 12 is received second protocol message, can send the 3rd protocol massages based on OPEN FLOW agreement to controller 11 according to the described mapping table generating.And described sending module 111 also for sending respectively described the first protocol massages to each backup controller in described the first Preset Time section.
The judge module 115 being connected with described comparison module 114 is for judging whether multiple backup controllers receive described the first protocol massages in the second Preset Time section, if not, continue to call described sending module 111, second protocol message is sent to described switch 12 by described sending module 111.Described switch 12 is for generating the IP address of recording described Virtual Controller 13 and the mapping table that receives the port numbers of the inbound port of described second protocol message.Described second protocol message is address resolution protocol (ARP) message.Wherein the message source IP of second protocol message is the IP address of described Virtual Controller 13, and the IP address of controller itself is used for VRRP broadcast, and described switch is the IP address of sensing controller not.When described switch 12 is received second protocol message, can send the 3rd protocol massages based on OPEN FLOW agreement to controller 11 according to the described mapping table generating.Described judge module 115 has timer B, and described timer B is used for starting described the second Preset Time section; If, call the priority that described extraction module 113 and comparison module 114 are respectively used to extract according to the priority attribute that detects described the first protocol massages that backup controller receives in the second Preset Time section described the first protocol massages, whether the priority that detects described backup controller self is higher than the priority of described the first protocol massages, if, backup controller higher priority is defined as to master controller, makes described sending module 111 for second protocol message being sent to described switch 12.Described switch 12 is for generating the IP address of recording described Virtual Controller 13 and the mapping table that receives the port numbers of the inbound port of described second protocol message.Described second protocol message is address resolution protocol (ARP) message.Wherein the message source IP of second protocol message is the IP address of described Virtual Controller 13, and the IP address of controller itself is used for VRRP broadcast, and described switch is the IP address of sensing controller not.When described switch 12 is received second protocol message, can send the 3rd protocol massages based on OPEN FLOW agreement to controller 11 according to the described mapping table generating.If not, make described sending module 111 send the first protocol massages.
The method and system that provide backup for software defined network controller of the present invention are by arranging the IP address of Virtual Controller of VRRP controller group, switch is without the IP address of all controllers of perception, only need the virtual ip address of Virtual Controller described in perception, switch is without linking up with each controller, master controller meeting active and switch in VRRP controller group go to set up contact, and then switch only can be mutual with master controller.The invention solves the problem of reliability, autgmentability and the aspect of performance of single-point controller, increased the reliability of network, realized Single Controller and can tackle the SDN network across multiple hell, and realized the transmeridional expansion of multiple SDN controllers.
So the present invention has effectively overcome various shortcoming of the prior art and tool high industrial utilization.
State only illustrative principle of the present invention and effect thereof of embodiment, but not for limiting the present invention.Any person skilled in the art scholar all can, under spirit of the present invention and category, modify or change above-described embodiment.Therefore, such as in affiliated technical field, have and conventionally know that the knowledgeable, not departing from all equivalence modifications that complete under disclosed spirit and technological thought or changing, must be contained by claim of the present invention.

Claims (10)

1. the method that backup is provided for software defined network controller, is applied in the network system that comprises switch and multiple controllers, it is characterized in that, said method comprising the steps of:
Step 1, in the starting stage, is defined as candidate's master controller by multiple controllers, sends first protocol massages with priority attribute between described multiple candidate's master controllers;
Step 2, respectively this candidate's master controller receives described the first protocol massages, extracts the priority of described the first protocol massages according to the priority attribute of described the first protocol massages;
Step 3, compares the priority of described the first protocol massages extracting and the each priority of this candidate's master controller self, and whether the priority that detects each this candidate's master controller self is higher than the priority of described the first protocol massages;
Step 4, if the priority of described candidate's main controller self higher than the priority of described the first protocol massages, defining described candidate's master controller is master controller, residue candidate master controller is backup controller;
Step 5, described master controller sends second protocol message to switch;
Step 6, described master controller sends respectively described the first protocol massages to each backup controller in the first Preset Time;
Step 7, whether judgement respectively this backup controller receives described the first protocol massages in the second Preset Time section; If so, extract message priority, whether the priority that judges described backup controller self is higher than the priority of described the first protocol massages; If the priority of described backup controller self is higher than the priority of described the first protocol massages, defining described backup controller is master controller, returns to step 5; If the priority of described backup controller self, lower than the priority of described the first protocol massages, is returned to step 6; If not, defining described alternative master controller is master controller, returns to step 5.
2. according to claim 1 for software defined network controller provides the method for backup, it is characterized in that: describedly also comprise for software defined network controller provides the method for backup:
If the priority of described candidate's main controller self, higher than the priority of described the first protocol massages, is not defined as backup controller by described candidate's master controller, and described backup controller is placed in and waits for the state that receives described the first protocol massages, proceed to step 7.
3. according to claim 1ly provide the method for backup for software defined network controller, it is characterized in that: describedly for software defined network controller provides in the method for backup, the priority of described the first protocol massages extracting and the each priority of this candidate's master controller self are compared, whether the priority that detects each this candidate's master controller self is equivalent to and judges whether the IP address of described Virtual Controller overlaps with the IP address of candidate's master controller in described multiple candidate's master controllers higher than the step of the priority of described the first protocol massages; If overlap, represent that the candidate's master controller overlapping with the IP address of described Virtual Controller has limit priority, described candidate's master controller with limit priority is master controller, residue candidate master controller is backup controller, and described master controller sends described the first protocol massages in described the first Preset Time section described backup controller.
4. according to claim 3 for software defined network controller provides the method for backup, it is characterized in that: the priority limit of described the first protocol massages is between 0~255, and limit priority is 255.
5. according to claim 1 for software defined network controller provides the method for backup, it is characterized in that: describedly also comprise for software defined network provides the method for backup:
When described candidate's master controller is defined as master controller, described master controller sends second protocol message to described switch, and described switch generates the IP address of recording described Virtual Controller and the mapping table that receives the port numbers of the inbound port of described second protocol message.
6. according to claim 5ly provide the method for backup for software defined network controller, it is characterized in that: in the time that in described the second Preset Time section, described multiple backup controllers do not receive described the first protocol massages, represent that described master controller breaks down, described multiple backup controller declaration oneself is master controller, re-elects and produce new master controller in multiple backup controllers; The new described master controller producing sends second protocol message to described switch, and described switch upgrades described mapping table.
7. according to claim 1ly it is characterized in that: described the first protocol massages is virtual router redundancy protocol message for software defined network controller provides the method for backup, described second protocol message is address analysis protocol message.
8. the system that backup is provided for software defined network controller, is characterized in that, comprising:
Multiple controllers, described multiple controllers comprise:
Sending module in the time that multiple controllers are defined as candidate's master controller by the starting stage, sends first protocol massages with priority attribute between described multiple candidate's master controllers; And described sending module is also for sending second protocol message to switch;
Receiver module, for receiving the first protocol massages that respectively this candidate's master controller sends;
Extraction module, for receiving after described the first protocol massages, extracts respectively the priority of described the first protocol massages according to the priority attribute of described the first protocol massages;
Comparison module, for the priority of described the first protocol massages extracting and the each priority of this candidate's master controller self are compared, whether the priority that detects each this candidate's master controller self is higher than the priority of described the first protocol massages; If, defining described candidate's master controller is master controller, residue candidate master controller is backup controller, call described sending module and in the first Preset Time section, send second protocol message to described switch, and in the first Preset Time section, send respectively described the first protocol massages to each backup controller; If not, defining described candidate's master controller is backup controller, and described backup controller is placed in to the state that receives described the first protocol massages of waiting for;
Judge module, for judging respectively whether this backup controller receives described the first protocol massages in the second Preset Time section, if, call described extraction module and comparison module and extract respectively the first protocol massages priority, whether the priority that detects described backup controller self is higher than the priority of described the first protocol massages, if so, defining described backup controller is master controller, and calls described sending module transmission second protocol message to described switch; If not, call described sending module and in described the first Preset Time section, send respectively described the first protocol massages to each backup controller; If not, defining described backup controller is master controller, calls described sending module and sends second protocol message to described switch.
9. according to claim 8ly provide the system of backup for software defined network controller, it is characterized in that: describedly also comprise virtual module for software defined network controller provides the system of backup, the Virtual Controller of described virtual module for being made up of described multiple controllers according to the first agreement is described multiple controllers and described Virtual Controller pre-configured IP address and priority.
10. according to claim 9ly provide the system of backup for software defined network controller, it is characterized in that: whether described comparison module also overlaps with the IP address of candidate's master controller of described multiple candidate's master controllers for the IP address that judges described Virtual Controller, if overlap, represent that the candidate's master controller overlapping with the IP address of described Virtual Controller has limit priority, described candidate's master controller with limit priority is master controller, residue candidate master controller is backup controller, described master controller sends the first protocol massages in a Preset Time section described backup controller.
CN201410387804.1A 2014-08-08 2014-08-08 A kind of method and system that backup is provided for software defined network controller Active CN104158642B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410387804.1A CN104158642B (en) 2014-08-08 2014-08-08 A kind of method and system that backup is provided for software defined network controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410387804.1A CN104158642B (en) 2014-08-08 2014-08-08 A kind of method and system that backup is provided for software defined network controller

Publications (2)

Publication Number Publication Date
CN104158642A true CN104158642A (en) 2014-11-19
CN104158642B CN104158642B (en) 2018-03-27

Family

ID=51884058

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410387804.1A Active CN104158642B (en) 2014-08-08 2014-08-08 A kind of method and system that backup is provided for software defined network controller

Country Status (1)

Country Link
CN (1) CN104158642B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104410730A (en) * 2014-12-10 2015-03-11 上海斐讯数据通信技术有限公司 Seamless handover method of SDN (software defined network) main backup controller based on NAT (network address translation) technique
CN104468231A (en) * 2014-12-23 2015-03-25 上海斐讯数据通信技术有限公司 SDN interchanger and controller dynamic registration method
CN104639615A (en) * 2015-01-07 2015-05-20 杭州华三通信技术有限公司 Data processing method and data processing device in controller cluster
CN105812161A (en) * 2014-12-31 2016-07-27 中国电信股份有限公司 Controller fault backup method and system
CN106230622A (en) * 2016-07-22 2016-12-14 杭州华三通信技术有限公司 A kind of cluster implementation method and device
CN107211013A (en) * 2015-01-28 2017-09-26 诺基亚通信公司 Software definition director of networking
CN108011815A (en) * 2016-10-28 2018-05-08 中国电信股份有限公司 Network control method and software defined network equipment and system
CN108809684A (en) * 2017-05-05 2018-11-13 中国航空无线电电子研究所 A kind of optical fiber network system for avionics system
CN109660367A (en) * 2018-11-21 2019-04-19 语联网(武汉)信息技术有限公司 Reach method, apparatus and electronic equipment based on the common recognition for improving Raft algorithm
CN110838935A (en) * 2018-08-15 2020-02-25 上海宽带技术及应用工程研究中心 High-availability SDN controller clustering method, system, storage medium and equipment
CN111698096A (en) * 2020-06-18 2020-09-22 湖南大学 NDN-based intelligent home network system and equipment automatic safe login method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101702681A (en) * 2009-11-26 2010-05-05 福建星网锐捷网络有限公司 Switching method and device of main/standby router in virtual route redundancy protocol
CN101951345A (en) * 2010-10-15 2011-01-19 杭州华三通信技术有限公司 Message transmitting method and equipment
EP2337279A1 (en) * 2009-12-18 2011-06-22 Alcatel Lucent Method of protecting a data transmission through a network
CN103596652A (en) * 2013-07-30 2014-02-19 华为技术有限公司 Network control method and device
CN103929333A (en) * 2014-05-08 2014-07-16 陈桂芳 Implementation method for SDN controller pool

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101702681A (en) * 2009-11-26 2010-05-05 福建星网锐捷网络有限公司 Switching method and device of main/standby router in virtual route redundancy protocol
EP2337279A1 (en) * 2009-12-18 2011-06-22 Alcatel Lucent Method of protecting a data transmission through a network
CN101951345A (en) * 2010-10-15 2011-01-19 杭州华三通信技术有限公司 Message transmitting method and equipment
CN103596652A (en) * 2013-07-30 2014-02-19 华为技术有限公司 Network control method and device
CN103929333A (en) * 2014-05-08 2014-07-16 陈桂芳 Implementation method for SDN controller pool

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104410730A (en) * 2014-12-10 2015-03-11 上海斐讯数据通信技术有限公司 Seamless handover method of SDN (software defined network) main backup controller based on NAT (network address translation) technique
CN104410730B (en) * 2014-12-10 2018-04-10 上海斐讯数据通信技术有限公司 SDN active and standby controller seamless handover methods based on NAT technologies
CN104468231A (en) * 2014-12-23 2015-03-25 上海斐讯数据通信技术有限公司 SDN interchanger and controller dynamic registration method
CN105812161A (en) * 2014-12-31 2016-07-27 中国电信股份有限公司 Controller fault backup method and system
CN105812161B (en) * 2014-12-31 2019-08-06 中国电信股份有限公司 A kind of controller failure backup method and system
CN104639615B (en) * 2015-01-07 2018-10-09 新华三技术有限公司 Data processing method and device in a kind of controller cluster
CN104639615A (en) * 2015-01-07 2015-05-20 杭州华三通信技术有限公司 Data processing method and data processing device in controller cluster
CN107211013A (en) * 2015-01-28 2017-09-26 诺基亚通信公司 Software definition director of networking
CN106230622A (en) * 2016-07-22 2016-12-14 杭州华三通信技术有限公司 A kind of cluster implementation method and device
CN106230622B (en) * 2016-07-22 2020-02-11 新华三技术有限公司 Cluster implementation method and device
CN108011815A (en) * 2016-10-28 2018-05-08 中国电信股份有限公司 Network control method and software defined network equipment and system
CN108011815B (en) * 2016-10-28 2020-12-01 中国电信股份有限公司 Network control method and software defined network device and system
CN108809684A (en) * 2017-05-05 2018-11-13 中国航空无线电电子研究所 A kind of optical fiber network system for avionics system
CN110838935A (en) * 2018-08-15 2020-02-25 上海宽带技术及应用工程研究中心 High-availability SDN controller clustering method, system, storage medium and equipment
CN109660367A (en) * 2018-11-21 2019-04-19 语联网(武汉)信息技术有限公司 Reach method, apparatus and electronic equipment based on the common recognition for improving Raft algorithm
CN109660367B (en) * 2018-11-21 2021-03-26 语联网(武汉)信息技术有限公司 Consensus achieving method and device based on improved Raft algorithm and electronic equipment
CN111698096A (en) * 2020-06-18 2020-09-22 湖南大学 NDN-based intelligent home network system and equipment automatic safe login method
CN111698096B (en) * 2020-06-18 2021-08-27 湖南大学 Automatic safe login method for intelligent household equipment based on NDN

Also Published As

Publication number Publication date
CN104158642B (en) 2018-03-27

Similar Documents

Publication Publication Date Title
CN104158642A (en) Method and system for providing backup for software defined network controller
EP3016316B1 (en) Network control method and apparatus
CN101511042B (en) Data synchronization method and device
CN105656645A (en) Decision making method and device for fault processing of stacking system
CN104184756A (en) Data synchronization method, device and system
CN111049747B (en) Intelligent virtual network path planning method for large-scale container cluster
CN105516292A (en) Hot standby method of cloud platform of intelligent substation
CN102437933A (en) Fault tolerance system and method of server
CN102523118A (en) Redundancy control system consisting of multiple control computers in local area network and method for redundancy control system
CN108924272A (en) A kind of port resource distribution method and device
CN101764706A (en) Link redundant control method based on EPA network bridge
EP4131871A1 (en) Method and apparatus for generating network topology
CN104468231A (en) SDN interchanger and controller dynamic registration method
CN106341249A (en) Redundant port switching method and device
CN114371912A (en) Virtual network management method of data center and data center system
CN106911597A (en) A kind of board-spanning forwarding method and apparatus
EP3255838A1 (en) Method, switching device and network controller for protecting links in software-defined network (sdn)
CN107302849A (en) The distribution method and device of a kind of light path
US11438420B2 (en) Method and device for establishing multi-domain multi-layer connectivity service
CN111741175A (en) Call center system, signal transmission method, device, server and medium
CN108881070A (en) Method and apparatus for the selection port in Smart Link group
CN105262692A (en) Method and device for realizing flow meter information real-time synchronization of openflow switches
CN105591902A (en) Main-standby switching method and device
CN104079440A (en) Synchronous configuration method of primary equipment and stand-by equipment and SNMP (Simple Network Management Protocol) system
CN104869041A (en) Method for dynamic path planning in ring network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201215

Address after: 313028 Industrial Park, balidian Town, Huzhou City, Zhejiang Province

Patentee after: HUZHOU FENGYUAN AGRICULTURAL EQUIPMENT MANUFACTURE Co.,Ltd.

Address before: 201616 No. 3666 Sixian Road, Songjiang District, Shanghai

Patentee before: Phicomm (Shanghai) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240407

Address after: 710000, Room 2903, Wealth Building, Sanqiao Street, Fengdong New City, Xi'an City, Shaanxi Province

Patentee after: Xi'an Ruisike Pharmaceutical Technology Co.,Ltd.

Country or region after: China

Address before: 313028 Industrial Park, balidian Town, Huzhou City, Zhejiang Province

Patentee before: HUZHOU FENGYUAN AGRICULTURAL EQUIPMENT MANUFACTURE Co.,Ltd.

Country or region before: China