CN104270260B - A kind of method and device of the resilient expansion of SDN controllers cluster scale - Google Patents
A kind of method and device of the resilient expansion of SDN controllers cluster scale Download PDFInfo
- Publication number
- CN104270260B CN104270260B CN201410482187.3A CN201410482187A CN104270260B CN 104270260 B CN104270260 B CN 104270260B CN 201410482187 A CN201410482187 A CN 201410482187A CN 104270260 B CN104270260 B CN 104270260B
- Authority
- CN
- China
- Prior art keywords
- controller
- sdn
- clusters
- supervisor
- cluster
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Telephonic Communication Services (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present invention provides a kind of resilient expansion method and device of SDN controllers cluster scale, and SDN controllers cluster includes supervisor's controller and multiple member's controllers, and multiple member's controllers are connected with supervisor's controller respectively, and this method includes:Supervisor's controller receives the solicited message for the addition SDN controller clusters that member's controller is sent or exits the solicited message of SDN controller clusters;Supervisor's controller changes member's controller of SDN controller clusters according to adding the solicited message of SDN controller clusters or exiting the solicited message of SDN controller clusters.According to the present invention, member's controller in SDN controller clusters is changed, so that member's controller after change manages currently managed switch device enough, and cause member's controller unnecessary in SDN controller clusters to carry out other business, realize that dynamic increases or decreases member's amount controller in SDN controller clusters.
Description
Technical field
The present invention relates to net application technology field, more particularly to a kind of resilient expansion side of SDN controllers cluster scale
Method and device.
Background technology
SDN (Software-defined networking, software defined network) is a kind of network virtualization technology, by
Stanford university of U.S. Clean State plan to propose.Using SDN agreements, the key-course (control of the network equipment
Plane) separated from data Layer (data plane).This framework can allow network manager, be set not changing hardware
On the premise of standby, with center control, with program again planning network, new method provided for control network traffics, is also carried
Core network and the good platform of application innovation are supplied.
In the prior art, when creating SDN controller clusters, it is necessary first to define SDN controller cluster internal controllers
Number, for example, a controller can control 100 interchangers, now it is required to a SDN controller cluster be created, to control
450 interchangers are made, then need to comprise at least 5 controllers in the SDN controller clusters now created, therefore control this 5
Device processed creates SDN controller clusters.If however, when the interchanger increasing number in network, such as increase to 800 exchanges
Machine, then now because the amount controller in SDN controller clusters pre-defines, therefore increased or decreased when business
When, the amount controller in SDN controller clusters can not be dynamically increased or decreased, so as to which the dynamic need of business can not be met.
The content of the invention
In view of this, the present invention provides a kind of resilient expansion method and device of SDN controllers cluster scale, existing to solve
Have in technology when business increases or decreases, the problem of can not dynamically adjusting SDN controller cluster internal controller quantity.
The invention provides a kind of resilient expansion method of SDN controllers cluster scale, the SDN controllers cluster includes
Controller and multiple member's controllers are responsible for, the multiple member's controller is connected with supervisor's controller respectively, the side
Method is applied to supervisor's controller, including:
Supervisor's controller receives the solicited message for the addition SDN controller clusters that member's controller is sent or exited
The solicited message of SDN controller clusters;
Supervisor's controller is according to the solicited messages of the addition SDN controller clusters or described exits SDN controllers
The solicited message of cluster, change member's controller of the SDN controllers cluster.
Preferably, it is described to be responsible for controller according to the solicited message of the addition SDN controller clusters or exit SDN controls
The solicited message of device cluster, member's controller of the SDN controllers cluster is changed, including:
The situation of the solicited message for the addition SDN controller clusters that member's controller is sent is received in supervisor's controller
Under, and supervisor's controller is it is determined that the SDN controller clusters of the solicited message carrying of the additions SDN controller clusters
When identifying consistent with the mark of itself configuration, establish member with member's controller and be connected;
The situation for the solicited message for exiting SDN controller clusters that member's controller is sent is received in supervisor's controller
Under, and supervisor's controller is it is determined that the SDN controller clusters that the solicited message for exiting SDN controller clusters carries
When identifying consistent with the mark of itself configuration, disconnect member with member's controller and be connected.
Preferably, the request letter for the addition SDN controller clusters that member's controller is sent is received in supervisor's controller
Cease or exit before the solicited message of SDN controller clusters, in addition to:
Supervisor's controller triggers the member changed to needs and controlled when it is determined that meeting the condition of change member's controller
Device processed sends the command information for adding SDN controller clusters or the command information for exiting SDN controller clusters, with described in change
Member's controller of SDN controller clusters.
Preferably, it is described supervisor controller determine meet change member's controller condition, trigger to needs change into
Member's controller sends the command information for adding SDN controller clusters or the command information for exiting SDN controller clusters, including:
Obtain member's controller information current in the SDN controllers cluster and the SDN controllers cluster is current
The facility information managed;
When current member's controller is not enough to manage the currently managed equipment, it is determined that meet change
The condition of member's controller, trigger the member's controller changed to needs and send the command information for adding SDN controller clusters;
Or,
When equipment currently managed described in current member's controller management also has unnecessary member's controller,
The condition for meeting change member's controller is then determined, the member's controller transmission changed to needs is triggered and exits SDN controller collection
The command information of group.
Present invention also offers a kind of resilient expansion method of SDN controllers cluster scale, the SDN controllers cluster bag
Supervisor's controller and multiple member's controllers are included, the multiple member's controller is connected with supervisor's controller respectively, described
Method is applied to member's controller, including:
Member's controller receives the command information for adding SDN controller clusters or the finger for exiting SDN controller clusters
Make information;
Member's controller sends to supervisor's controller according to the command information of the addition SDN controller clusters and added
The solicited message of SDN controller clusters, so that itself adds the SDN controllers cluster;Or, member's controller is according to institute
State the command information for exiting SDN controller clusters, to supervisor controller send exit SDN controller clusters solicited message so that
Itself exit SDN controller clusters.
Preferably, member's controller according to the command informations of the addition SDN controller clusters to supervisor's controller
The solicited message for adding or exiting SDN controller clusters is sent, including:
Member's controller receives the instruction of the addition SDN controller clusters of management level or supervisor's controller transmission
Information or the command information for exiting SDN controller clusters, the command information of the addition SDN controller clusters or described are exited
The command information of SDN controller clusters carries the mark of SDN controller clusters;
The mark of the SDN controller clusters carried in the command information of the addition SDN controller clusters and itself institute
When the mark of configuration is identical, member's controller sends the request letter for adding SDN controller clusters to supervisor's controller
Breath, or the command information for exiting SDN controller clusters the described mark of SDN controller clusters that carries is with itself being configured
When identifying identical, the solicited message for exiting SDN controller clusters is sent to supervisor's controller.
Present invention also offers a kind of resilient expansion device of SDN controllers cluster scale, the SDN controllers cluster bag
Supervisor's controller and multiple member's controllers are included, the multiple member's controller is connected with supervisor's controller respectively, described
Device is applied to supervisor's controller, including:
Receiving unit, for receive member's controller transmission addition SDN controller clusters solicited message or exit SDN
The solicited message of controller cluster;
Changing unit, for the solicited message according to the addition SDN controller clusters or described exit SDN controller collection
The solicited message of group, change member's controller of the SDN controllers cluster.
Preferably,
The changing unit, for receiving the solicited message for the addition SDN controller clusters that member's controller is sent
In the case of, and it is determined that the SDN controller clusters carried in the solicited message of the addition SDN controller clusters mark with from
When the mark of body configuration is consistent, establishes member with member's controller and be connected;
In the case of exiting the solicited message of SDN controller clusters receive that member's controller sends, and it is determined that institute
The mark for stating the SDN controller clusters carried in the solicited message for exiting SDN controller clusters is consistent with the mark of itself configuration
When, disconnect member with member's controller and be connected.
Preferably, in addition to:
Trigger element, for when it is determined that meeting the condition of change member's controller, triggering the member changed to needs and controlling
Device processed sends the command information for adding SDN controller clusters or the command information for exiting SDN controller clusters, with described in change
Member's controller of SDN controller clusters.
Preferably,
The trigger element, for obtaining member's controller information current in the SDN controllers cluster and described
The currently managed facility information of SDN controller clusters;
When current member's controller is not enough to manage the currently managed equipment, it is determined that meet change
The condition of member's controller, trigger the member's controller changed to needs and send the command information for adding SDN controller clusters;
Or,
When equipment currently managed described in current member's controller management also has unnecessary member's controller,
The condition for meeting change member's controller is then determined, the member's controller transmission changed to needs is triggered and exits SDN controller collection
The command information of group.
Present invention also offers a kind of resilient expansion device of SDN controllers cluster scale, the SDN controllers cluster bag
Supervisor's controller and multiple member's controllers are included, the multiple member's controller is connected with supervisor's controller respectively, described
Device is applied to member's controller, including:
Receiving unit, for receiving the command information for adding SDN controller clusters or the instruction for exiting SDN controller clusters
Information;
Transmitting element, send and add to supervisor's controller for the command information according to the addition SDN controller clusters
The solicited message of SDN controller clusters, so that itself adds the SDN controllers cluster;Or, exit SDN controls according to described
The command information of device cluster, sent to supervisor's controller and exit the solicited message of SDN controller clusters so as to itself exit SDN controls
Device cluster processed.
Preferably,
The receiving unit, for the addition SDN controller clusters for receiving management level or supervisor's controller is sent
Command information or the command information for exiting SDN controller clusters, the command information of the addition SDN controller clusters or described are moved back
The command information for going out SDN controller clusters carries the mark of SDN controller clusters;
The transmitting element, for the SDN controller collection carried in the command information of the addition SDN controller clusters
When the mark of group is identical with the mark that itself is configured, the request for adding SDN controller clusters is sent to supervisor's controller
Information, or the mark of the SDN controller clusters carried in the command information for exiting SDN controller clusters are configured with itself
Mark it is identical when, sent to supervisor's controller and exit the solicited messages of SDN controller clusters.
The present invention provides a kind of resilient expansion method and device of SDN controllers cluster scale, in SDN controller clusters
Supervisor's controller receiving member's controller transmission addition SDN controller clusters solicited message or exit SDN controls
During the solicited message of device cluster, member's controller in SDN controller clusters is changed, so that member's control after change
Device manages currently managed switch device enough, and member's controller unnecessary in SDN controller clusters is carried out
Other business, realize that dynamic increases or decreases member's amount controller in SDN controller clusters.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are this hairs
Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can be with root
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is method flow diagram provided in an embodiment of the present invention;
Fig. 2 is SDN controllers aggregated structure schematic diagram provided in an embodiment of the present invention;
Fig. 3 is the method flow diagram that another embodiment of the present invention provides;
Fig. 4 is the method flow diagram that another embodiment of the present invention provides;
Fig. 5 is that member's controller provided in an embodiment of the present invention adds SDN controller cluster schematic diagrames;
Fig. 6 is that member's controller refusal provided in an embodiment of the present invention adds SDN controller cluster schematic diagrames;
Fig. 7 is the method flow diagram that another embodiment of the present invention provides;
Fig. 8 is the hardware environment Organization Chart of plant running provided in an embodiment of the present invention;
Fig. 9 is apparatus structure schematic diagram provided in an embodiment of the present invention;
Figure 10 is the hardware environment Organization Chart for the plant running that another embodiment of the present invention provides;
Figure 11 is the apparatus structure schematic diagram that another embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Based on this
Embodiment in invention, the every other reality that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example is applied, belongs to the scope of protection of the invention.
For when the business of SDN controller clusters increases or decreases, can not dynamically adjust SDN controllers in the prior art
In cluster the problem of amount controller, a kind of resilient expansion method of SDN controllers cluster scale is provided for the present invention.Such as Fig. 1
Shown, the SDN controllers cluster includes supervisor's controller and multiple member's controllers, the multiple member's controller respectively with
Supervisor's controller connection, this method are applied to supervisor's controller, when needing to carry out elastic expansion to SDN controllers cluster scale
Zhan Shi, it may include steps of:
Step 101:Supervisor's controller receives the solicited message for the addition SDN controller clusters that member's controller is sent or moved back
Go out the solicited message of SDN controller clusters.
Step 102:Supervisor's controller is according to the solicited message for adding SDN controller clusters or exits SDN controller clusters
Solicited message, change SDN controller clusters member's controller.
As shown in Fig. 2 being the configuration diagram of SDN controller clusters, include altogether in the exemplary figure:Supervisor's control
Device 1, member's controller 11, member's controller 12, the member's controller 13 being connected respectively with supervisor's controller 1.Wherein, supervisor's control
Device 1 processed is managed for pair member's controller being connected with itself, and supervisor's controller 1 can also carry out pipe to switch device
Reason.Member's controller is mainly used in being managed switch device.
, can be with according to the present invention program when the quantity for the switch device that SDN controller clusters are managed changes
The quantity of member's controller in SDN controller clusters is changed.
Wherein, in supervisor controller side, the change for member's amount controller in SDN controller clusters can be with
Including two methods:
1st, controller is responsible for actively to change
Supervisor's controller it is determined that member's controller current in SDN controller clusters be not enough to manage it is currently managed
During switch device, for example, current member's controller is 3, the switch device being managed can be 320, if one
Member's controller can manage 100 switch devices, then the person's of being added to controller is needed in SDN controller clusters, is responsible for
Controller sends the invitation request for adding SDN controller clusters to member's controller, invites request to carry the SDN controllers collection
The mark of group, and the solicited message of the addition SDN controller clusters of member's controller return is received, it is determined that addition SDN is controlled
The mark for the SDN controller clusters that the solicited message of device cluster processed carries controls when consistent with the mark of itself configuration with the member
Device establishes member's connection.Wherein, member's controller is the controller outside SDN controller clusters.
Controller is responsible for it is determined that the currently managed interchanger of member's controller management current in SDN controller clusters
When equipment also has unnecessary member's controller, for example, current member's controller is 3, the switch device being managed can be with
For 180, if member's controller can manage 100 switch devices, then have in SDN controller clusters it is unnecessary into
Member's controller, supervisor's controller determine unnecessary target members' controller and sent to unnecessary target members' controller to disconnect
Instruction, open command carry the mark of SDN controller clusters, and receive exiting for unnecessary target members' controller transmission
The solicited message of SDN controller clusters, it is determined that the SDN controller clusters that the solicited message for exiting SDN controller clusters carries
Mark it is consistent with the mark of itself configuration when, be connected with unnecessary purpose member controller disconnection member, and by the member
Controller is deleted from cluster member list.
2nd, supervisor's controller passively changes
When request of the member's controller outside SDN controller clusters to itself transmission addition SDN controller cluster
During information, the mark of SDN controller clusters is carried in addition cluster request, supervisor's controller is it is determined that SDN controller clusters
Mark it is consistent with the mark of itself configuration when, member's controller for being located at this outside SDN controller clusters is established member and connected
Connect.
When member's controller unnecessary in SDN controller clusters to itself send exit SDN controller clusters request believe
During breath, the solicited message for exiting SDN controller clusters carries the mark of SDN controller clusters, and supervisor's controller is it is determined that SDN
When the mark of controller cluster is consistent with the mark configured, disconnects member with member's controller and be connected, and the member is controlled
Device is deleted from cluster member list.
According to such scheme, supervisor's controller in SDN controller clusters is receiving adding for member's controller transmission
When entering the solicited message of SDN controller clusters or exiting the solicited message of SDN controller clusters, in SDN controller clusters
Member's controller is changed, so that member's controller after change manages currently managed switch device enough, and
So that member's controller unnecessary in SDN controller clusters carries out other business, realize that dynamic increases or decreases SDN controller collection
Member's amount controller in group.
As shown in figure 3, the embodiments of the invention provide a kind of resilient expansion method of SDN controllers cluster scale, it is described
SDN controllers cluster includes supervisor's controller and multiple member's controllers, the multiple member's controller respectively with the supervisor
Controller connects, and this method is applied to peripheral control unit, can included:
Step 301:Member's controller receives the command information for adding SDN controller clusters or exits SDN controller clusters
Command information.
Step 302:Member's controller is sent according to the command information of the addition SDN controller clusters to supervisor's controller
The solicited message of SDN controller clusters is added, so that itself adds the SDN controllers cluster;Or, member's controller root
According to the command information for exiting SDN controller clusters, the solicited message for exiting SDN controller clusters is sent to supervisor's controller
So as to itself exit SDN controller clusters.
Wherein, in member's controller side, the change for member's amount controller in SDN controller clusters can be with
Including two methods:
1st, management level trigger
Wherein, management level can be webmastering software, or other application software.
Member's controller outside SDN controller clusters receives the addition SDN controller clusters that management level are sent
Command information, the cluster identity of SDN controller clusters is carried in the command information of addition SDN controller clusters, SDN should be located at
Member's controller outside controller cluster is sent according to the command information of addition SDN controller clusters to supervisor's controller to be added
Enter the solicited message of SDN controller clusters, SDN controller clusters are carried in the solicited message of addition SDN controller clusters
Cluster identity, so that supervisor's controller is connected with itself establishing member.
SDN controller clusters are exited positioned at what member's controller of SDN controller cluster internals received that management level send
Command information, it should be sent positioned at member's controller of SDN controller cluster internals to supervisor's controller and exit SDN controller clusters
Solicited message, this exits in the solicited messages of SDN controller clusters the cluster identity for carrying SDN controller clusters, so that main
Tube controller is connected with itself disconnecting member.
2nd, it is responsible for controller triggering
Member's controller outside SDN controller clusters receives the addition SDN controller collection that supervisor's controller is sent
The invitation solicited message of group, the cluster identity of SDN controller clusters is carried in the invitation solicited message, it is determined that itself configuration
When identifying consistent with inviting the cluster identity carried in solicited message, sent to supervisor's controller and add SDN controller collection
The solicited message of group, the solicited message of the addition SDN controller clusters carry the cluster identity of the SDN controllers cluster,
It is connected so that supervisor's controller establishes member with member's controller that should be outside SDN controller clusters.
SDN controller collection is exited positioned at what member's controller reception supervisor's controller of SDN controller cluster internals was sent
The open command information of group, the cluster identity of SDN controller clusters is carried in the open command information, sent to supervisor's controller
The solicited message of SDN controller clusters is exited, so that supervisor's controller positioned at the member of SDN controller cluster internals with should control
Device disconnects member's connection.
According to such scheme, the addition SDN controller clusters that member's controller receives supervisor's controller or management level are sent
Command information, and to supervisor controller send add SDN controller clusters solicited message, or receive exit SDN controllers
The command information of cluster, the solicited message for exiting SDN controller clusters is sent to supervisor's controller, to be established with supervisor's controller
Member connects or disconnected member's connection, so that member's controller after change manages currently managed interchanger and set enough
It is standby, and cause member's controller unnecessary in SDN controller clusters to carry out other business, realize that dynamic increases or decreases SDN
Member's amount controller in controller cluster.
Active change and passive change below according to supervisor's controller are specifically addressed respectively.
As shown in figure 4, a kind of resilient expansion method of SDN controllers cluster scale provided in an embodiment of the present invention, this reality
It is to be responsible for controller actively to change member's amount controller in SDN controller clusters to apply example, and this method can include following step
Suddenly:
Step 401:It is responsible for controller and obtains member's controller information current in SDN controller clusters and SDN controls
The currently managed facility information of device cluster.
Wherein, member's controller information is the quantity of member's controller in SDN controller clusters, the facility information managed
The quantity of the switch device managed by SDN controller clusters.For example, as shown in figure 5, in current SDN controllers cluster into
The quantity of member's controller is 3 (member's controller 11, member's controller 12, member's controllers 13), and each member's controller divides
It is other that multiple switch equipment is managed, it is assumed that each member's controller can manage 100 switch devices.
Step 402:It is current according to member's controller information and SDN controller clusters current in SDN controller clusters
The facility information managed, it is determined whether meet the condition of change member's controller, if current member's controller is not enough to pipe
When managing currently managed switch device, then step 403 is performed;If the currently managed exchange of current membership's controller management
When machine equipment also includes unnecessary member's controller, then step 408 is performed.
For example, the currently managed switch device quantity of SDN controller clusters in Fig. 5 is totally 320, then meet condition
In current member's controller be not enough to manage currently managed equipment, then need increase new in SDN controller clusters
Member's controller.
If currently managed number of devices is 180 in SDN controller clusters, meet current member's control in condition
Device processed, which manages the currently managed equipment, includes unnecessary member's controller.Therefore, it is necessary to it is more in SDN controller clusters
Remaining member's controller disconnects, to ensure the peak use rate of member's controller.
Step 403:The member's controller changed to needs sends the invitation solicited message for adding SDN controller clusters, should
Invite the cluster identity that SDN controller clusters are carried in solicited message.
In order to ensure the safety of SDN controller clusters, prevent the controller of non-cluster from illegally adding this cluster, be SDN
Controller cluster configuration cluster identity, the cluster identity is carried on each controller in SDN controller clusters.The cluster mark
It can be a secure ID character string by encryption to know, and be made up of letter, numeral, underscore.
Where it is assumed that need to increase the new member's controller of n platforms in SDN controller clusters, then to outside more than or equal to n platforms
Controller, which is sent, invites request.The present embodiment is only sent with a peripheral control unit thereto invites request to carry out the present invention
Explanation.
Such as member's controller that member's controller 14 in Fig. 5 changes for needs, member's controller 14 is located at SDN controllers
The outside of cluster.
Step 404:The member's controller for needing to change receives inviting for the addition SDN controller clusters that supervisor's controller is sent
Please solicited message, according to the mark that management level configure for itself in advance and the SDN controller collection that carries in the invitation solicited message
The cluster identity of group is compared, if identical, is performed step 405, is otherwise performed step 407.
Step 405:Member's controller of needs change sends the request for adding SDN controller clusters to supervisor's controller
Information.
In the present embodiment, if management level are that the mark that member's controller 14 configures is taken with inviting in solicited message in Fig. 5
The cluster identity of the SDN controller clusters of band is identical, then it is standby for the SDN controller clusters to show member's controller 14
Controller, therefore member's controller 14 receive supervisor controller invitation, and to supervisor controller send add SDN controllers
The solicited message of cluster.
Step 406:Supervisor's controller receives asking for the addition SDN controller clusters for the member's controller transmission for needing to change
Information is sought, when it is determined that the cluster identity for adding the solicited message carrying of SDN controller clusters is consistent with the mark that itself is configured
Member is established with member's controller to be connected, and peripheral control unit mark is added to the cluster member list of itself preservation
In.
In Fig. 5, supervisor's controller is established member with member's controller 4 and is connected.
Wherein, being responsible for the cluster member list preserved in controller includes:Member's controller identifier and member's controller
IP address corresponding relation, be responsible for controller cluster member list be mainly used in it is synchronous to member's controller for newly adding
The data of other member's controllers in SDN controllers cluster, and the cluster member list is utilized, to other member's controllers
The notification message of member's controller newly added is sent, so that other member's controllers are by member's controller of the new addition
Mark and IP address are added in the cluster member list of itself preservation, wherein, what is preserved in each member's controller is clustered into
Member's list, for when supervisor's controller delays machine, selecting new supervisor.
Step 407:The member's controller for needing to change sends the sound of refusal addition SDN controller clusters to supervisor's controller
Answer information.
As shown in fig. 6, management level are configured with SDN controllers for member's controller 24 outside SDN controller clusters
The cluster identity of cluster 2, member's controller 24 is mainly the spare controller of SDN controllers cluster 2, if above-mentioned control to member
What device 24 processed sent the invitation solicited message of addition SDN controller clusters is SDN controllers cluster 1, then member's controller 24
When it is determined that the mark of itself configuration is with the cluster identity difference of SDN controllers cluster 1, sends refusal to supervisor's controller and add
The response message of SDN controller clusters.Member's controller 24 continues waiting for the addition SDN controller clusters of SDN controllers cluster 2
2 invitation solicited message, the addition SDN controller clusters of SDN controllers cluster 2 are carried when member's controller 24 receives
When inviting solicited message, add in SDN controllers cluster 2, as the member's controller newly added.
Step 408:It is responsible for the controller member controller transmission unnecessary into SDN controller clusters and exits SDN controllers
The command information of cluster, this exits in the command information of SDN controller clusters the cluster identity for carrying SDN controller clusters.
Step 409:Unnecessary member's controller exits SDN controller clusters receive that supervisor's controller sends
Command information, this is exited in the command information of SDN controller clusters the SDN controller clusters carried cluster identity and itself
The mark of configuration is compared, and when comparative result is identical, the request letter for exiting SDN controller clusters is sent to supervisor's controller
Breath, it is connected with disconnecting member with supervisor's controller.
In embodiment, after supervisor's controller is connected with unnecessary member's controller disconnection member, controller is responsible for
Information deletion corresponding to the unnecessary member's controller of this in the cluster member list that itself is preserved, and will be unnecessary with this
The message that member's controller disconnects member's connection is sent to other member's controllers in SDN controller clusters so that other into
Member's controller deletes the information in own cluster members list corresponding to unnecessary member's controller.
In order to disconnect the maximum service efficiency for the controller that member is connected with supervisor's controller, should be disconnected with supervisor's controller
The controller of member's connection can discharge the cluster identity of SDN controller clusters, to be that the controller configures cluster identity again,
So that other SDN controllers clusters use the controller.
Or the controller that should be connected with supervisor controller disconnection member can also retain the collection of the SDN controller clusters
Group identification, in the case of needing to increase member's controller when the SDN controller clusters, this is controlled again according to the above method
Device is added in SDN controller clusters.
According to such scheme, supervisor's controller in SDN controller clusters is receiving adding for member's controller transmission
When entering the solicited message of SDN controller clusters or exiting the solicited message of SDN controller clusters, in SDN controller clusters
Member's controller is changed, so that member's controller after change manages currently managed switch device enough, and
So that member's controller unnecessary in SDN controller clusters carries out other business, realize that dynamic increases or decreases SDN controller collection
Member's amount controller in group.
As shown in fig. 7, the embodiments of the invention provide a kind of resilient expansion method of SDN controllers cluster scale, this reality
It is to be responsible for controller passively to change member's amount controller in SDN controller clusters to apply example, and this method can include following step
Suddenly:
Step 701:Management level determine member's controller information current in SDN controller clusters and SDN controller collection
The currently managed facility information of group;It is determined that current member's controller is not enough to manage currently managed switch device
When, perform step 702;It is determined that the currently managed equipment of current member's controller management also has unnecessary member's controller
When, then perform step 704.
Step 702:Management level send to member's controller outside SDN controller clusters and add SDN controller clusters
Command information, so that member's controller outside SDN controller clusters sends to supervisor's controller and adds SDN controller clusters
Solicited message, the cluster identity of SDN controller clusters is carried in the solicited message of addition SDN controller clusters.
Wherein, management level can be webmastering software or other application software.User can also pass through pointing device
On button carry out to trigger.
Step 703:It is responsible for controller and receives the addition SDN controls that member's controller outside SDN controller clusters is sent
The solicited message of device cluster, and the cluster identity of the solicited message carrying to addition SDN controller clusters and itself configuration
Mark is compared, and in the case of comparative result identical, member's controller outside SDN controller clusters is located at this and is established
Member connects, and this be located to the mark of member's controller outside SDN controller clusters and IP address is added to itself preservation
Cluster member list in.
If the as shown in figure 5, SDN carried in the solicited message for the addition SDN controller clusters that member's controller 14 is sent
The cluster identity of controller cluster is identical with the mark that itself is configured, then shows member's controller 14 SDN controls where itself
The spare controller of device cluster processed, then it is responsible for controller and establishes member with member's controller 14 and be connected.
If the as shown in fig. 6, SDN carried in the solicited message for the addition SDN controller clusters that member's controller 24 is sent
The cluster identity of controller cluster is different from the mark that itself is configured, then it may be SDN controllers to show member's controller 24
The spare controller of cluster 2, therefore member's controller 24 can not establish member company with supervisor's controller of SDN controllers cluster 1
Connect.
Step 704:Management level send the command information for exiting SDN controller clusters to unnecessary member's controller, with
Unnecessary member's controller is set to send the solicited message for exiting SDN controller clusters to supervisor's controller, this exits SDN controls
The cluster identity of SDN controller clusters is carried in the solicited message of device cluster.
Step 705:Supervisor's controller exits in the solicited message of SDN controller clusters the cluster identity carried and oneself to this
The mark of body configuration is compared, and in the case of comparative result identical, is disconnected member with unnecessary member's controller and is connected,
And information deletion corresponding to unnecessary member's controller in the cluster member list for preserving itself.
According to such scheme, when management level determine to need the person's of being added to controller in SDN controller clusters, SDN is triggered
Member's controller outside controller cluster sends the solicited message for adding SDN controller clusters to supervisor's controller, so that main
Tube controller is established member with member's controller of outside and is connected.It is determined that need to disconnect in SDN controller clusters it is unnecessary into
During member's controller, trigger unnecessary member's controller and the solicited message for exiting SDN controller clusters sent to supervisor's controller,
It is connected with disconnecting member with supervisor's controller, so as to realize that dynamic increases or decreases member's controller in SDN controller clusters
Quantity.
As shown in Figure 8, Figure 9, the embodiments of the invention provide a kind of resilient expansion device of SDN controllers cluster scale,
The SDN controllers cluster includes supervisor's controller and multiple member's controllers, the multiple member's controller respectively with it is described
Controller connection is responsible for, described device is applied to supervisor's controller.Device embodiment can be realized by software, can also pass through
The mode of hardware or software and hardware combining is realized.For hardware view, as shown in figure 8, the equipment where apparatus of the present invention
A kind of hardware structure diagram, in addition to the CPU shown in Fig. 8, internal memory, network interface and nonvolatile memory, in embodiment
Equipment where device can also generally include other hardware, such as be responsible for the forwarding chip of processing message.It is implemented in software
Exemplified by, it is by nonvolatile memory by the CPU of equipment where it as shown in figure 9, as the device on a logical meaning
In corresponding computer program instructions read in internal memory what operation was formed.The SDN controller cluster scales that the present embodiment provides
Resilient expansion device 90 include:
Receiving unit 901, for receive member's controller transmission addition SDN controller clusters solicited message or exit
The solicited message of SDN controller clusters;
Changing unit 902, for the solicited message according to the addition SDN controller clusters or described exit SDN controls
The solicited message of device cluster, change member's controller of the SDN controllers cluster.
Further, the changing unit, specifically for receiving the addition SDN controller clusters of member's controller transmission
Solicited message in the case of, and it is determined that the SDN controller collection carried in the solicited message of the addition SDN controller clusters
When group identification is consistent with the mark that itself is configured, establishes member with member's controller and be connected;Receiving member's controller hair
In the case of the solicited message for exiting SDN controller clusters sent, and it is determined that the request letter for exiting SDN controller clusters
When the SDN controllers cluster identity carried in breath is consistent with the mark that itself is configured, disconnects member with member's controller and be connected.
Further, described device also includes:
Trigger element 903, for when it is determined that meeting the condition of change member's controller, triggering the member changed to needs
Controller sends the command information for adding SDN controller clusters or the command information for exiting SDN controller clusters, with described in change
Member's controller of SDN controller clusters.
Further, the trigger element, specifically for obtaining member's controller current in the SDN controllers cluster
Information and the currently managed facility information of the SDN controllers cluster;Pipe is not enough in current member's controller
When managing the currently managed equipment, it is determined that meet the condition of change member's controller, trigger the member changed to needs
Controller sends the command information for adding SDN controller clusters;Or, in current institute described in current member's controller management
When the equipment of management also has unnecessary member's controller, it is determined that meet the condition of change member's controller, trigger to needing to become
Member's controller more sends the command information for exiting SDN controller clusters.
As shown in Figure 10, Figure 11, the embodiments of the invention provide a kind of resilient expansion of SDN controllers cluster scale dress
Put, the SDN controllers cluster includes supervisor's controller and multiple member's controllers, the multiple member's controller respectively with institute
Supervisor's controller connection is stated, described device is applied to member's controller.Device embodiment can be realized by software, can also lead to
The mode for crossing hardware or software and hardware combining is realized.It is equipment where apparatus of the present invention as shown in Figure 10 for hardware view
A kind of hardware structure diagram, in addition to the CPU shown in Figure 10, internal memory, network interface and nonvolatile memory, implement
Equipment in example where device can also generally include other hardware, such as be responsible for the forwarding chip of processing message.
It is by equipment where it as the device on a logical meaning as shown in figure 11 exemplified by implemented in software
Corresponding computer program instructions in nonvolatile memory are read what operation in internal memory was formed by CPU.The present embodiment provides
The resilient expansion devices 110 of SDN controller cluster scales include:
Receiving unit 1101, the command information of SDN controller clusters is added for receiving or exits SDN controller clusters
Command information;
Transmitting element 1102, sent for the command information according to the addition SDN controller clusters to supervisor's controller
The solicited message of SDN controller clusters is added, so that itself adds the SDN controllers cluster;Or, exit SDN according to described
The command information of controller cluster, the solicited message for exiting SDN controller clusters is sent so that itself is exited to supervisor's controller
SDN controller clusters.
Further,
The receiving unit, the addition SDN controller collection specifically for receiving management level or supervisor's controller transmission
The command information of group or the command information for exiting SDN controller clusters, the command information of the addition SDN controller clusters or institute
State the mark for the command information carrying SDN controller clusters for exiting SDN controller clusters;
The transmitting element, controlled specifically for the SDN carried in the command information of the addition SDN controller clusters
When the mark of device cluster is identical with the mark that itself is configured, is sent to supervisor's controller and add SDN controller clusters
Solicited message, or the mark of the SDN controller clusters carried in the command information for exiting SDN controller clusters and itself institute
When the mark of configuration is identical, the solicited message for exiting SDN controller clusters is sent to supervisor's controller.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
God any modification, equivalent substitution and improvements done etc., should be included within the scope of protection of the invention with principle.
Claims (8)
1. a kind of resilient expansion method of SDN controllers cluster scale, the SDN controllers cluster includes supervisor's controller and more
Individual member's controller, the multiple member's controller are connected with supervisor's controller respectively, and methods described is applied to supervisor and controlled
Device processed, it is characterised in that including:
Supervisor's controller receives the solicited message for the addition SDN controller clusters that member's controller is sent or exits SDN controls
The solicited message of device cluster processed;
Supervisor's controller is according to the solicited messages of the addition SDN controller clusters or described exits SDN controller clusters
Solicited message, change member's controller of the SDN controllers cluster;Wherein, member's control is received in supervisor's controller
In the case of the solicited message for the addition SDN controller clusters that device processed is sent, and supervisor's controller is it is determined that the addition
It is and described when the mark for the SDN controller clusters that the solicited messages of SDN controller clusters carries is consistent with the mark that itself is configured
Member's controller establishes member's connection;SDN controller clusters are exited what supervisor's controller reception member controller was sent
Solicited message in the case of, and it is described supervisor controller it is determined that it is described exit SDN controller clusters solicited message carry
SDN controller clusters mark with itself configuration mark it is consistent when, with member's controller disconnection member be connected.
2. according to the method for claim 1, it is characterised in that receive what member's controller was sent in supervisor's controller
Add the solicited message of SDN controller clusters or exit before the solicited message of SDN controller clusters, in addition to:
Supervisor's controller triggers the member's controller changed to needs when it is determined that meeting the condition of change member's controller
The command information for adding SDN controller clusters or the command information for exiting SDN controller clusters are sent, is controlled with changing the SDN
Member's controller of device cluster processed.
3. according to the method for claim 2, it is characterised in that supervisor's controller determines to meet change member's controller
Condition, trigger the member's controller changed to needs and send the command information for adding SDN controller clusters or exit SDN controls
The command information of device cluster, including:
Obtain member's controller information current in the SDN controllers cluster and the SDN controllers cluster is currently managed
The facility information of reason;
When current member's controller is not enough to manage the currently managed equipment, it is determined that meet change member
The condition of controller, trigger the member's controller changed to needs and send the command information for adding SDN controller clusters;Or,
When equipment currently managed described in current member's controller management also has unnecessary member's controller, then really
The fixed condition for meeting change member's controller, trigger the member's controller transmission changed to needs and exit SDN controller clusters
Command information.
4. a kind of resilient expansion method of SDN controllers cluster scale, the SDN controllers cluster includes supervisor's controller and more
Individual member's controller, the multiple member's controller are connected with supervisor's controller respectively, and methods described is controlled applied to member
Device processed, it is characterised in that including:
Member's controller receives the command information of the addition SDN controller clusters of management level or supervisor's controller transmission
Or exit the command information of SDN controller clusters;The command information of the addition SDN controller clusters or the SDN that exits are controlled
The command information of device cluster processed carries the mark of SDN controller clusters;
The mark of the SDN controller clusters carried in the command information of the addition SDN controller clusters is configured with itself
Mark it is identical when, member's controller to it is described supervisor controller send add SDN controller clusters solicited message, with
Make itself to add the SDN controllers cluster;Or, the SDN controls carried in the command information for exiting SDN controller clusters
When the mark of device cluster is identical with the mark that itself is configured, is sent to supervisor's controller and exit SDN controller clusters
Solicited message, so as to itself exit SDN controller clusters.
5. a kind of resilient expansion device of SDN controllers cluster scale, the SDN controllers cluster includes supervisor's controller and more
Individual member's controller, the multiple member's controller are connected with supervisor's controller respectively, and described device is applied to supervisor and controlled
Device processed, it is characterised in that including:
Receiving unit, for receive member's controller transmission addition SDN controller clusters solicited message or exit SDN controls
The solicited message of device cluster;
Changing unit, for solicited message according to the addition SDN controller clusters or the SDN controller clusters that exit
Solicited message, change member's controller of the SDN controllers cluster;Wherein, the addition SDN of member's controller transmission is being received
In the case of the solicited message of controller cluster, and it is determined that carrying in the solicited message of the addition SDN controller clusters
When the mark of SDN controller clusters is consistent with the mark of itself configuration, establishes member with member's controller and be connected;Receiving
In the case of the solicited message for exiting SDN controller clusters of member's controller transmission, and it is determined that described exit SDN controllers
When the mark of the SDN controller clusters carried in the solicited message of cluster is consistent with the mark of itself configuration, controlled with the member
Device disconnects member's connection.
6. device according to claim 5, it is characterised in that also include:
Trigger element, for when it is determined that meeting the condition of change member's controller, triggering the member's controller changed to needs
The command information for adding SDN controller clusters or the command information for exiting SDN controller clusters are sent, is controlled with changing the SDN
Member's controller of device cluster processed.
7. device according to claim 6, it is characterised in that
The trigger element, for obtaining member's controller information current in the SDN controllers cluster and SDN controls
The currently managed facility information of device cluster processed;
When current member's controller is not enough to manage the currently managed equipment, it is determined that meet change member
The condition of controller, trigger the member's controller changed to needs and send the command information for adding SDN controller clusters;Or,
When equipment currently managed described in current member's controller management also has unnecessary member's controller, then really
The fixed condition for meeting change member's controller, trigger the member's controller transmission changed to needs and exit SDN controller clusters
Command information.
8. a kind of resilient expansion device of SDN controllers cluster scale, the SDN controllers cluster includes supervisor's controller and more
Individual member's controller, the multiple member's controller are connected with supervisor's controller respectively, and described device is controlled applied to member
Device processed, it is characterised in that including:
Receiving unit, the command information of the addition SDN controller clusters for receiving management level or supervisor's controller transmission
Or exit the command information of SDN controller clusters;The command information of the addition SDN controller clusters or the SDN that exits are controlled
The command information of device cluster processed carries the mark of SDN controller clusters;
Transmitting element, for the mark of the SDN controller clusters carried in the command information of the addition SDN controller clusters
When identical with the mark that itself is configured, the solicited message for adding SDN controller clusters is sent to supervisor's controller, so that
Itself adds the SDN controllers cluster;Or, the SDN controllers carried in the command information for exiting SDN controller clusters
When the mark of cluster is identical with the mark that itself is configured, is sent to supervisor's controller and exit asking for SDN controller clusters
Information is sought, so as to itself exit SDN controller clusters.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410482187.3A CN104270260B (en) | 2014-09-19 | 2014-09-19 | A kind of method and device of the resilient expansion of SDN controllers cluster scale |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410482187.3A CN104270260B (en) | 2014-09-19 | 2014-09-19 | A kind of method and device of the resilient expansion of SDN controllers cluster scale |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104270260A CN104270260A (en) | 2015-01-07 |
CN104270260B true CN104270260B (en) | 2017-12-08 |
Family
ID=52161754
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410482187.3A Active CN104270260B (en) | 2014-09-19 | 2014-09-19 | A kind of method and device of the resilient expansion of SDN controllers cluster scale |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104270260B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106230622B (en) * | 2016-07-22 | 2020-02-11 | 新华三技术有限公司 | Cluster implementation method and device |
CN106533751B (en) * | 2016-11-07 | 2020-12-25 | 新华三技术有限公司 | SDN controller cluster merging method and device |
CN111641564B (en) * | 2020-05-11 | 2023-08-29 | 紫光云技术有限公司 | Cluster system of SDN controller and issuing configuration method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014114119A1 (en) * | 2013-01-23 | 2014-07-31 | Hangzhou H3C Technologies Co., Ltd. | Redundant server operation by a software defined network controller |
CN103973676A (en) * | 2014-04-21 | 2014-08-06 | 蓝盾信息安全技术股份有限公司 | Cloud computing safety protection system and method based on SDN |
-
2014
- 2014-09-19 CN CN201410482187.3A patent/CN104270260B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014114119A1 (en) * | 2013-01-23 | 2014-07-31 | Hangzhou H3C Technologies Co., Ltd. | Redundant server operation by a software defined network controller |
CN103973676A (en) * | 2014-04-21 | 2014-08-06 | 蓝盾信息安全技术股份有限公司 | Cloud computing safety protection system and method based on SDN |
Non-Patent Citations (1)
Title |
---|
"Towards an Elastic Distributed SDN Controller";Advait Dixit etc;《Proceeding of the second ACM SIGCOMM workshop on Hot topic in software defined networking》;20130816;第1、3部分 * |
Also Published As
Publication number | Publication date |
---|---|
CN104270260A (en) | 2015-01-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106657330B (en) | Migration of subscriber data method and user data backup method, apparatus and system | |
CN105791175B (en) | The method and apparatus of transfer resource is controlled in software defined network | |
CN108738086A (en) | A kind of method and device of user plane gravity treatment | |
CN106713406A (en) | Method and system for accessing to slice network | |
CN109600768A (en) | Management method, equipment and the system of network slice | |
CN105429811B (en) | network management system and method | |
CN106453124A (en) | Traffic scheduling method and device | |
CN102647295B (en) | A kind of method of equipment control and device | |
CN108365979A (en) | Across the controller management method of cluster, SDN controllers and storage medium | |
CN104539558B (en) | Extendible capacity IP phone interchanger rolling reamer machine system and automatic expansion method | |
CN104270260B (en) | A kind of method and device of the resilient expansion of SDN controllers cluster scale | |
CN109150808B (en) | Communication method, device and system | |
CN108882305A (en) | A kind of shunt method and device of data packet | |
CN108271227A (en) | A kind of SOT state of termination across RAT determines method and terminal | |
CN104243608B (en) | A kind of communication means, cloud management server and virtual switch | |
EP2790424A1 (en) | Mobility management method, system and equipment for group terminals | |
CN106878084A (en) | A kind of authority control method and device | |
CN107819602A (en) | Customer flow distribution method and system | |
CN107770826A (en) | A kind of network section system of selection and relevant device | |
CN104486174B (en) | The network-building method and device of a kind of intelligent terminal | |
CN104641606B (en) | The method and virtual network management entity of Internet resources equilibrium treatment | |
CN109309624A (en) | Traffic scheduling method and system, software defined network controller | |
WO2015110020A1 (en) | Openflow-based group table processing method and device, and group table configuration unit | |
CN103716230B (en) | Message sending method, device and server | |
CN107404759A (en) | A kind of paging method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant after: Xinhua three Technology Co., Ltd. Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant before: Huasan Communication Technology Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |