CN108881059A - Controller role determines method, the network switching equipment, controller and network system - Google Patents
Controller role determines method, the network switching equipment, controller and network system Download PDFInfo
- Publication number
- CN108881059A CN108881059A CN201810531903.0A CN201810531903A CN108881059A CN 108881059 A CN108881059 A CN 108881059A CN 201810531903 A CN201810531903 A CN 201810531903A CN 108881059 A CN108881059 A CN 108881059A
- Authority
- CN
- China
- Prior art keywords
- controller
- role
- equipment
- priority
- request message
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
- H04L47/2425—Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
This disclosure relates to which a kind of controller role determines method, the network switching equipment, controller and network system, network switching equipment Role Information in recognizing first role request message is master controller, the priority that precedence information is the first controller, and first controller priority be higher than second controller priority when, to second controller send role state message;When receiving the Role Information of second role request message of second controller transmission is from controller, change the role of second controller and the first controller in this equipment, change success message is sent to second controller and the first controller, by determining that cluster Central Plains applies to become after controller as the second controller of master controller, the role of each controller on the network switching equipment is changed again, method is determined according to the controller role of the embodiment of the present disclosure, the network switching equipment, controller and network system can reduce the possibility that multiple master controllers are existed simultaneously in cluster.
Description
Technical field
This disclosure relates to which field of communication technology more particularly to a kind of controller role determine method, the network switching equipment, control
Device processed and network system.
Background technique
SDN (Soft Define Network, software defined network) is a kind of new network of Emulex network innovation framework, and core is thought
Want to separate the control layer of the network equipment with forwarding, to realize the flexible control to network flow.
In SDN network, using Openflow agreement as control layer and forwarding between controller and the network switching equipment
The signalling path of layer, controller can be configured and be managed the Openflow network switching equipment by the signalling path.Network exchange
Equipment can establish Openflow with multiple controllers and connect.Allow a master controller occur in controller cluster, in cluster
Remaining member is from controller.Under master controller is for receiving the packet-in message sent on the network switching equipment and being responsible for
Hair forwarding flow table, the status inquiry of the network switching equipment is then substantially carried out from controller.When master controller exception, in cluster
Other controllers can apply for being master controller by the Status Change of oneself, and the network switching equipment can be actively by the control in cluster
Device state advertisement processed gives all controllers, to guarantee the uniqueness of master controller in cluster.
When network switching equipment access controller cluster, if in cluster master controller selection work do not complete or network
Connection is abnormal, then may cause the case where there are multiple master controllers in cluster in a period of time.Multi host control device will lead to collection
Business in group can not be successfully issued on the network switching equipment, and a configuration distributing failure, will lead to the long period
Business cutout, although the periodical configuration comparison between controller and the network switching equipment can be relied on to find configuration failure
Problem, but the configuration of collection network switching equipment needs the long period in large-scale data center, the business in network by
To influence a possibility that it is larger.
Summary of the invention
In view of this, the present disclosure proposes a kind of controller roles to determine method, the network switching equipment, controller and network
System can reduce a possibility that there are multiple master controllers in controller cluster.
According to the disclosure in a first aspect, providing a kind of controller role determines that method, the method are applied to network
Switching equipment, the method includes:The information that identification carries in the first role request message from the first controller, wherein
It include the Role Information of controller request and the precedence information of controller in character request message;It is asked in the first role
Seeking the Role Information that controller is requested in message is the priority of controller in master controller and the first role request message
In the case that information is the priority of the first controller, what is stored in the priority and this equipment of first controller works as
The priority of the preceding second controller as master controller;When the priority of the first controller is higher than the priority of second controller
When, role state message is sent to second controller, includes in the role state message:The equipment mark of first controller
The precedence information of knowledge, the Role Information of first controller request and first controller;When receiving described
When the second role request message that two controllers are sent, Role Information is from controller in the second role request message
In the case of, the role of second controller described in this equipment is set as being arranged from the role of controller, first controller
For master controller, and to the second controller send the change success message in response to the second role request message, to
First controller sends the change success message in response to the first role request message, so that the second controller
The role of itself is set to be set as master controller from controller, first controller by the role of itself.
According to the disclosure in a first aspect, providing a kind of controller role determines that method, the method are applied to control
The first controller in device cluster, the method includes:When controller in cluster does not elect master controller, according to originally setting
Standby priority generates character request message, and the Role Information carried in the character request message is master controller, the angle
The precedence information of the controller carried in color request message is the priority of this equipment;The angle is sent to the network switching equipment
Color request message, in order to which the network switching equipment is determined whether according to the information carried in the character request message
Described equipment serves as master controller;If receiving the change that the network switching equipment is returned in response to the character request message
More success message, the then role for changing this equipment are master controller.
According to the third aspect of the disclosure, a kind of network switching equipment is provided, which includes:Message is known
Other module, the information carried in the first role request message from the first controller for identification, wherein character request message
In include controller request Role Information and controller precedence information;Priority comparison module, for described the
The Role Information that controller is requested in one character request message is controller in master controller and the first role request message
Precedence information be the first controller priority in the case where, in the priority of first controller and this equipment
The priority of the current second controller as master controller of storage;Message transmission module, for working as the excellent of the first controller
When first grade is higher than the priority of second controller, role state message is sent to second controller, is wrapped in the role state message
It includes:The Role Information and first controller of the device identification of first controller, first controller request
Precedence information;First role setup module, for when the second role request message for receiving the second controller transmission
When, in the case that Role Information is from controller in the second role request message, by the second control described in this equipment
The role of device is set as being set as master controller from the role of controller, first controller, and to the second controller
It sends the change success message in response to the second role request message, send to first controller in response to described the
The change success message of one character request message, so that the second controller sets the role of itself to from controller, institute
It states the first controller and sets master controller for the role of itself.
According to the fourth aspect of the disclosure, a kind of controller is provided, which includes:First message generation module,
When not electing master controller for the controller in cluster, character request message, institute are generated according to the priority of this equipment
Stating the Role Information that carries in character request message is master controller, the controller carried in the character request message it is preferential
Grade information is the priority of this equipment;First message sending module disappears for sending the character request to the network switching equipment
Breath, in order to which the network switching equipment determines whether that described sets according to the information carried in the character request message
It is standby to serve as master controller;Role changes module, if disappearing for receiving the network switching equipment in response to the character request
The change success message returned is ceased, then the role for changing this equipment is master controller.
According to the 5th of the disclosure the aspect, a kind of network switching equipment is provided, including:Processor;It is handled for storage
The machine readable storage medium of device executable instruction;Wherein, the processor is configured to the method for executing above-mentioned first aspect.
According to the 6th of the disclosure the aspect, a kind of machine readable storage medium is provided, contains the executable finger of machine thereon
It enables, for the machine-executable instruction when being called and being executed by processor, the machine-executable instruction promotes the processor
The method for realizing above-mentioned first aspect.
According to the 7th of the disclosure the aspect, a kind of controller is provided, including:Processor;It can be held for storage processor
The machine readable storage medium of row instruction;Wherein, the processor is configured to the method for executing above-mentioned second aspect.
According to the eighth aspect of the disclosure, a kind of machine readable storage medium is provided, contains the executable finger of machine thereon
It enables, for the machine-executable instruction when being called and being executed by processor, the machine-executable instruction promotes the processor
The method for realizing above-mentioned second aspect.
According to the 9th of the disclosure the aspect, a kind of network system is provided, the network system includes above-mentioned 5th aspect
Controller described in the network switching equipment and above-mentioned 7th aspect.
The controller role of various aspects of the present disclosure embodiment determines method, the network switching equipment, controller and network system
In, the network switching equipment is by identifying the information carried in the first role request message from the first controller;Described
The Role Information that controller is requested in one character request message is master controller and precedence information is the preferential of the first controller
In the case where grade, compare the current second controller as master controller stored in the priority and this equipment of the first controller
Priority;When the priority of the first controller is higher than the priority of second controller, sending to second controller includes the
The role state of priority of the device identification of one controller, the Role Information of the first controller request and the first controller disappears
Breath;When receiving the second role request message that the second controller is sent, asked in the second role request message
The Role Information asked be in the case where the controller, by the role of second controller described in this equipment be set as from controller,
The role of first controller is set as master controller, and sends to the second controller and ask in response to the second role
The change success message for seeking message sends the change success in response to the first role request message to first controller
Message, thus, it is possible to determine that cluster Central Plains applies to become after controller as the second controller of master controller, then more
Change the role of each controller on the network switching equipment, agree to that other controllers become master controller, on such network switching equipment
Master controller role and cluster in the role of master controller be consistent, reduce and exist simultaneously multiple master controllers in cluster
A possibility that, improve the stability of Openflow control plane between the network switching equipment and controller.
According to below with reference to the accompanying drawings to detailed description of illustrative embodiments, the other feature and aspect of the disclosure will become
It is clear.
Detailed description of the invention
Comprising in the description and constituting the attached drawing of part of specification and specification together illustrates the disclosure
Exemplary embodiment, feature and aspect, and for explaining the principles of this disclosure.
Fig. 1 shows the flow chart that method is determined according to the controller role of one embodiment of the disclosure.
Fig. 2 shows the SDN network schematic diagrames according to one embodiment of the disclosure.
Fig. 3 shows the flow chart that method is determined according to the controller role of one embodiment of the disclosure.
Fig. 4 shows the flow chart that method is determined according to the controller role of one embodiment of the disclosure.
Fig. 5 shows the flow chart that method is determined according to the controller role of one embodiment of the disclosure.
Fig. 6 shows the flow chart that method is determined according to the controller role of one embodiment of the disclosure.
Fig. 7 shows the flow chart that method is determined according to the controller role of one embodiment of the disclosure.
Fig. 8 shows a kind of block diagram of network switching equipment according to one embodiment of the disclosure.
Fig. 9 shows a kind of block diagram of network switching equipment according to one embodiment of the disclosure.
Figure 10 shows a kind of block diagram of controller according to one embodiment of the disclosure.
Figure 11 shows a kind of block diagram of controller according to one embodiment of the disclosure.
Figure 12 is a kind of block diagram of network switching equipment shown according to an exemplary embodiment.
Figure 13 is a kind of block diagram of controller shown according to an exemplary embodiment.
Specific embodiment
Various exemplary embodiments, feature and the aspect of the disclosure are described in detail below with reference to attached drawing.It is identical in attached drawing
Appended drawing reference indicate element functionally identical or similar.Although the various aspects of embodiment are shown in the attached drawings, remove
It non-specifically points out, it is not necessary to attached drawing drawn to scale.
Dedicated word " exemplary " means " being used as example, embodiment or illustrative " herein.Here as " exemplary "
Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, giving numerous details in specific embodiment below to better illustrate the disclosure.
It will be appreciated by those skilled in the art that without certain details, the disclosure equally be can be implemented.In some instances, for
Method, means, element and circuit well known to those skilled in the art are not described in detail, in order to highlight the purport of the disclosure.
Fig. 1 shows the flow chart that method is determined according to the controller role of one embodiment of the disclosure.Fig. 2 shows according to this public affairs
Open the SDN network schematic diagram of an embodiment.As shown in Fig. 2, SW1, SW2, SW3 and SW4 be Openflow interchanger (hereinafter referred to as
Interchanger), GW is gateway, and Controller1 and Controller2 are Openflow controller (hereinafter referred to as controller).
Controller1 and Controller2 is the member in controller cluster (hereinafter referred to as cluster).Control in interchanger and cluster
Openflow connection is established between device processed, and TLS (Transport Layer can be used between interchanger and controller
Security, secure transport layer protocol) it encrypts to guarantee transmission safety, TCP (Transmission Control can also be used
Protocol, transmission control protocol) directly transmit.
As shown in Fig. 2, by taking SW1 accesses cluster as an example.Under original state, cluster network connection is normal, and SW1 accesses cluster
When, it is held consultation by cluster internal controller, selects master controller of the Controller1 as SW1.In the related technology, due to net
Network connection is abnormal, and the Openflow connection between SW1 and controller disconnects, and network recovery, SW1 rejoin SDN net later
It in network, and initiates in the case where being connected with the Openflow of controller, Controller1 and Controller2 are perceived simultaneously
The master controller of election SW1 is negotiated in the access of SW1 in cluster.If cluster network not yet restores completely at this time
(communication abnormality between Controller1 and Controller1), then Controller1 and Controller2 may can be to
SW1 applies to become master controller.It is less than on current SW1 in the generation id (generating mark) in the application that SW1 is received
When maximum generation id, SW1 does not allow to change master controller;Generation in the application that SW1 is received
When id is more than or equal to maximum generation id on current SW1, SW1 allows to change master controller.SW1 can successively be held
The application that row receives, it is assumed that SW1 first carries out the application from Controller1, then executes the Shen from Controller2
Please.SW1 receives the application from Controller1, if the generation id in this application is maximum greater than on current SW1
Generation id, then SW1 determines that Controller1 can become master controller, and SW1 is by Controller1 in this equipment
Role is set as master controller, sends change success message to Controller1.Controller1 receives change success message,
Itself is set for master controller.At this point, maximum generation id is in the application from Controller1 on SW1
generation id。
One can be generated when due to electing master controller in each cluster on the basis of original generation id more
The corresponding original generation id of big generation id, Controller1 and Controller2 be it is identical, because
The generation id carried in the application that this Controller1 and Controller2 is sent may be identical.SW1, which is received, to be come
From after the application of Controller2, if the generation id in this application is equal to maximum generation id on SW1
(the generation id in the application from Controller1), then the role of Controller1 in this equipment is arranged SW1
To be set as master controller from the role of controller, Controller2, is sent to Controller2 and change success message, and to
Controller1 sends role state message.Controller2 receives change success message, itself is arranged as master controller.
Controller1 receive role's status message, discovery Controller2 be master controller, Controller1 be arranged itself for from
Controller.If the Network status poor time for causing Controller1 to receive role state message is compared to Controller2
The time for receiving change success message is later or Controller1 can not receive always role state message, will go out
Existing Controller1 and Controller2 is used as the state of SW1 master controller simultaneously, at this point, Controller1 and
Controller2 can issue configuration to SW1, i.e., occur the situation of dual master control in cluster, it is thus possible to lead to controller
Sending down service is inconsistent between the network switching equipment.
Controller role shown in FIG. 1 determines that method can be applied to the network switching equipment, the network switching equipment and control
Device cluster processed establishes Openflow connection, which can be OpenFlow interchanger, such as shown in Fig. 2
SW1, SW2, SW3 and SW4 etc..As shown in Figure 1, controller role determines that method includes:
Step S11 identifies the information carried in the first role request message from the first controller, wherein role asks
Ask includes the Role Information of controller request and the precedence information of controller in message.
Before describing implementation of the disclosure example, in order to avoid obscuring for title, for two classes being related in embodiment
Message is illustrated, and includes two class message of character request message and role state message in the present embodiment.
Wherein, character request message is the message that controller is sent to the network switching equipment, and controller is disappeared by character request
It ceases to network switching equipment request and serves as certain role, for example, master controller is served as in request or request is served as from controller
Role;Alternatively, controller can pass through character request message request when controller cluster internal has elected master controller
The master controller recorded in the network switching equipment change network switching equipment and the information from controller.
Role state message is the message that the network switching equipment is sent to controller, is asked when the network switching equipment receives role
Message is asked to determine that the network switching equipment can pass through when having controller to request Counterchange roles to the network switching equipment in controller cluster
The relevant information of the controller of other controllers, the request Counterchange roles in role state message informing cluster.
Specifically, including the Role Information of controller request and the precedence information of controller in character request message.
The role of controller in this equipment can be arranged in the network switching equipment according to the Role Information in character request message,
Determine the role in the channel Openflow connected to the controller.The Role Information of controller include master controller (master), from
Controller (slave) and counterpart controllers (equal).The precedence information of controller can be somebody's turn to do in character request message to send
The priority of the controller of character request message, or null value.When the precedence information of controller is to send character request
Controller priority when, the network switching equipment need decide whether according to priority allow alteration control unit role.
When the precedence information of controller is null value, network switching equipment needs decide whether to allow according to generation id
The role of alteration control unit.
Certainly, character request message further includes requesting the device identification of the controller of Counterchange roles.
When the device identification that character request message includes is the first controller, character request message note in the present embodiment
For first role request message, when the device identification for including in character request message is second controller, in the present embodiment
Character request message is denoted as second role request message.
First role request message sends character request message to the network switching equipment for the first controller.First role is asked
The Role Information that controller is requested in message is asked to indicate that the first controller requests the role served as, which can be master control
Device processed, from controller or counterpart controllers.The precedence information of controller in first role request message can be first
The priority or null value of controller.
The network switching equipment, which can identify, carries which information and these information in first role request message
Value.In one example, in Openflow agreement, role request message is character request message, role
The role field of request message is the Role Information of controller request, role request message's
Priority field is the precedence information of controller.The value of Role field characterizes counterpart controllers when being 1, role field
Value characterizes master controller when being 2, characterize when the value of role field is 3 from controller.When the value of Priority field is 0
Null value is characterized, the value of Priority field is the priority of controller when the value of Priority field is non-zero.Network exchange is set
The standby value that can identify role field in role request message, so that it is determined that controller requests the angle served as out
Color.The network switching equipment can identify the value of priority field in role request message, to determine angle
Whether color, which allows, is changed.
First controller can be any one controller in controller collection group.
Step S12, the Role Information that controller is requested in the first role request message are master controller and described
In first role request message in the case where priority of the precedence information of controller for the first controller, more described first
The priority of the current second controller as master controller stored in the priority and this equipment of controller.
Priority represents the weight that controller is used as master controller in the cluster, the more high then controller application of priority at
It is higher for the success rate of master controller.Priority can be specified in controller when cluster is added.In a kind of possible realization side
In formula, the priority height of controller can be determined according to performances such as processing speed, the stability of controller.
When controller in cluster does not elect master controller, according to controller role determination side in the related technology
Method, it is possible that the state of multi host control device.In the embodiments of the present disclosure, a precedence information is set, in cluster
When controller does not elect master controller, controller into the character request message that the network switching equipment is sent controller it is preferential
Grade information is the priority of the controller;When controller in cluster elects master controller, controller is set to network exchange
Precedence information is null value in the character request message that preparation is sent.The network switching equipment can according in character request message whether
Precedence information is carried, determines whether the controller in cluster has elected master controller, and then determination is according to priority
Decide whether the role for allowing alteration control unit according further to generationg id.
When the Role Information that controller is requested in first role request message is master controller, the request of the first controller is indicated
Serve as master controller.Due to needing to guarantee the uniqueness of master controller in cluster, first role request message may be into
Other controllers of the triggering of one step change role, such as former master controller change self-role is from controller.First role is asked
When the precedence information of controller in message being asked to be the priority of the first controller, indicate that cluster where the first controller is not elected
Master controller out, the network switching equipment needs to determine whether that the first controller serves as master controller according to priority at this time.
Second controller is the controller that current character is master controller on the network switching equipment.Second controller can be
The master controller that controller in cluster elects in the way of load balancing, or the priority based on controller is true
Fixed.The priority of second controller is stored in the network switching equipment.
It should be noted that on the network switching equipment there are the controller that role is master controller but the controller be by
What the controller in cluster elected, the current second controller as master controller stored in the network switching equipment it is preferential
Grade is default priority.Specifically, the master controller on the network switching equipment is elected by the controller in cluster
When, the precedence information of controller is sky in the character request message from the master controller that the network switching equipment receives
Value, the network switching equipment also can not just get the priority of master controller, and therefore, the network switching equipment can will be in this equipment
The priority of the second controller of storage is set as default priority.
In one example, default priority can be lower than the lowest priority in the priority of each controller in cluster.
Step S13 is sent when the priority of the first controller is higher than the priority of second controller to second controller
Role state message includes in the role state message:The device identification of first controller, first controller request
Role Information and first controller precedence information.
When the priority of the first controller is higher than the priority of second controller, the network switching equipment allows controller
Role changes.The network switching equipment can send role state message to second controller, wrap in the role state message
Include device identification, the Role Information of the first controller request and the precedence information of the first controller of the first controller.Its
In, device identification can be used for identifying unique controller, and the device identification of the first controller can be used for identifying the first control
Device.The network switching equipment can obtain Role Information and the first control of the request of the first controller from first role request message
The precedence information of device processed, according to step S12 it is found that the Role Information of the first controller request is master controller, the first control
The precedence information of device is the priority of the first controller.
After second controller receives above-mentioned role state message, which is determined according to the device identification of the first controller
Color status message corresponds to the first controller, determines that the first controller is master control according to the Role Information that the first controller is requested
Device processed determines the priority of the first controller according to the precedence information of the first controller.When second controller determines first
When the priority of controller is higher than the priority of itself, it is from control that second controller, which sends Role Information to the network switching equipment,
The character request message of device, to request change role, i.e. itself current master controller role is changed to from controller by request
Role.
Step S14, when receiving the second role request message that the second controller is sent, in the second role
Controller Role Information is the role of second controller described in this equipment to be arranged in the case where the controller in request message
To be set as master controller from the role of controller, first controller, and send to the second controller in response to institute
The change success message of second role request message is stated, is sent to first controller and requests to disappear in response to the first role
The change success message of breath, so that the second controller sets the role of itself to from controller, first controller
Master controller is set by the role of itself.
Second role request message is the request message that second controller is sent to the network switching equipment.When the second request disappears
When Role Information is from controller in breath, shows that second controller is applied to become from controller, no longer make master controller.
The network switching equipment receives second role request message, shows that the network switching equipment is connect just with second controller
Often, at this point, the network switching equipment can set the role of second controller in this equipment to from controller, to second controller
The change success message in response to the second role request message is sent, to keep second on the network switching equipment and controller
The consistency of controller role.Meanwhile the network switching equipment can set master control for the role of the first controller in this equipment
Device processed, and the change success message in response to first role request message is sent to the first controller, to realize master controller
Change.After first controller receives change success message, master controller is set by the role of itself, maintains net in this way
The consistency of master controller role in network switching equipment and cluster, and there is only a master controllers during role's change.
By applying to become after controller in confirmation second controller (former master controller), the network switching equipment is changed again
The role of controller, permission second controller, which become from controller, the first controller, in this equipment (applies to become the control of main control
Device processed) become master controller, a possibility that existing simultaneously multi host control device is reduced in cluster in this way, maintains network friendship
The consistency of role in master controller role and cluster on exchange device on master controller, improves the network switching equipment and control
The correctness of configuration distributing between device processed, improves the stability of controller level.
Fig. 3 shows the flow chart that method is determined according to the controller role of one embodiment of the disclosure.As shown in figure 3, the control
Device role processed determines that method further includes:
Step S15, the Role Information in the first role request message is master controller and the first role is asked
In the case where seeking priority of the precedence information of controller in message for the first controller, if described second is not deposited in this equipment
Controller then sets master controller for the role of the first controller described in this equipment, and sends to first controller
In response to the change success message of the character request message, so that the role of itself is set master control by first controller
Device processed.
The information of the master controller elected may be not present on the network switching equipment.In one example, network exchange
After cluster is added in equipment, when not negotiating whose master controller as the network switching equipment in cluster, on the network switching equipment
There is no the information of master controller.In one example, when the network switching equipment connect exception with master controller in cluster, net
The information of master controller is not present on network switching equipment.
When the information of master controller being not present on the network switching equipment, show that, there is no master controller in cluster, network is handed over
After exchange device receives first role request message, main control directly can be set by the role of the first controller in this equipment
Device, and agree to that the role of itself is set master controller by the first controller, so that the first controller is issued configuration.
In one possible implementation, in the network switching equipment of step S14 or step S15 by this equipment
The role of one controller is set as after master controller, and the network switching equipment can be by the excellent of the master controller stored in this equipment
First grade is updated to the priority of the first controller.In this way, the priority sum aggregate of master controller on the network switching equipment can be kept
The priority of master controller is consistent in group, and the network switching equipment is allow to be according to the master controller priority determination being locally stored
The no change for carrying out master controller.It determines that the priority of first controller is higher than in this equipment when the network switching equipment to store
When the current priority as the second controller of master controller, the network switching equipment enters master controller changing process, executes
Step S13 and step S14.It determines that the priority of the first controller is below or equal in this equipment when the network switching equipment to deposit
When the current priority as the second controller of master controller of storage, network switching equipment refusal carries out the change of master controller
More, the change failed message in response to first role request message is sent to the first controller, so that the first controller is kept certainly
The role of body is constant.
In one possible implementation, it is also carried in cluster in first role request message when electing master controller
The generation id of generation.Generation id is the counter of monotonic increase, when each master-slave relationship changes, controller
New (bigger) generation mark can be distributed.For example, generating mark will increase whenever a specified new master controller.
Fig. 4 shows the flow chart that method is determined according to the controller role of one embodiment of the disclosure.As shown in figure 4, institute
After stating the information carried in first role request message of the identification from the first controller, controller role determines method also
Including:
Step S16, the Role Information that controller is requested in the first role request message are master controller and described
In the case that the precedence information of controller is null value in first role request message, in the first role request message
The generation id of carrying and maximum generation id in this equipment.
Step S17, when the generation id carried in the first role request message is greater than in described equipment most
When big generation id, master controller is set by the role of the first controller described in this equipment, and to described first
Controller sends the change success message in response to the character request message, so that first controller is by the role of itself
It is set as master controller.
The precedence information of controller is null value in first role request message, shows that the controller in cluster has passed through
Interaction between cluster controller has selected master controller.Role Information is master controller in first role request message, is shown
First controller is the master controller elected after the controller in cluster is interactive.At this point, the network switching equipment can be according to
The generation id carried in one character request message determines whether change master controller.
In one possible implementation, when in the first role request message carry generation id be less than
Or when being equal to maximum generation id in described equipment, the network switching equipment to the first controller send in response to
The change failed message of the first role request message, refusal carry out the change of master controller, protect first controller
The role for holding itself is constant.
In one possible implementation, it is changed in the role by the first controller described in this equipment of step S17
After master controller, the priority of the second controller stored in this equipment can also be set as defaulting by the network switching equipment
Priority.In one example, the priority that default priority can be minimum lower than priority in cluster.Due in step S16
The precedence information of controller is null value in first role request message, and the network switching equipment can not get the first controller
Priority, therefore the network switching equipment can set default priority for the priority of the second controller stored in this equipment
Grade.
It should be noted that being, in the above-described embodiments, controller role determines that method is applied to the network switching equipment, thus
Above-mentioned " this equipment " refers to the network switching equipment.
Following controller role is determined in method, applied to the controller in controller cluster, thus it is involved
To " this equipment " refer to execute this method controller.
Fig. 5 shows the flow chart that method is determined according to the controller role of one embodiment of the disclosure.This method can be applied
The first controller in controller cluster, first controller can be any one controller in cluster, such as shown in Fig. 2
Controller1 and Controller2 etc..As shown in figure 5, controller role determines that method includes:
Step S21 when the controller in cluster does not elect master controller, generates role according to the priority of this equipment
Request message, the Role Information carried in the character request message are master controller, are carried in the character request message
The precedence information of controller is the priority of this equipment.
Step S22 sends the character request message to the network switching equipment, in order to the network switching equipment according to
The information carried in the character request message determines whether that described equipment serves as master controller.
Step S23, if receiving the change success that the network switching equipment is returned in response to the character request message
Message, the then role for changing this equipment are master controller.
Character request message, Role Information, precedence information, change success message are referred to step S11 to step
S14, which is not described herein again.
When the network switching equipment accesses cluster, if being communicated between the member in cluster due to network connection exception etc.
Abnormal, the negotiation of master controller can not be normally carried out in cluster, at this time the controller in cluster to network switching equipment application at
The Role Information carried in the character request message sent for master controller be master controller, carrying controller priority
Information is the priority of this equipment.When cluster is added in each controller, respective priority is specified.
In one possible implementation, it is every in cluster when the controller in cluster does not elect master controller
A controller (controller that Openflow is connect each is established with the network switching equipment) can be according to the priority of this equipment
Character request message is generated, to apply to become the master controller of the network switching equipment to the network switching equipment.
In one possible implementation, the first controller it is available be added cluster when cluster in each controller it is excellent
First grade.If having got the priority of each controller, the priority of the first controller each controller, and work as
It is raw according to the priority of described equipment when the priority of this equipment is the highest priority in the priority of each controller
At role's request message.If the priority of each controller has not been obtained, the first controller is according to the priority of this equipment
Generate character request message.
If the first controller has got the priority of each controller, when showing that the network switching equipment accesses cluster, cluster
Interior controller has been completed the transmission of priority, i.e. the excellent of every other controller in cluster is saved on the first controller
First grade.When controller in cluster has been completed the transmission of priority, the controller of highest priority can be true in cluster
It is fixed oneself as applying to become the controller of master controller, and generate character request message, other interior controllers of cluster do not generate
Character request message.This way it is not necessary to which each controller sends character request message, the resource of controller is saved;Reduce
The quantity of character request message, saves Internet resources and the network switching equipment is used to handle the resource of character request message;Subtract
The number for having lacked controller role change, improves network stabilization.
If the priority of each controller has not been obtained in the first controller, show the network between the network switching equipment and cluster
Network connection of the establishment of connection earlier than cluster internal.At this point, each controller can generate character request message in cluster,
Master controller is applied to become to the network switching equipment, to guarantee that the higher controller of priority can become master controller.
Controller sends the mode of character request message to the network switching equipment and network switching equipment processing role asks
The mode of message is asked to be referred to step S11 to step S17, which is not described herein again.
Fig. 6 shows the flow chart that method is determined according to the controller role of one embodiment of the disclosure.As shown in fig. 6, to
Before the network switching equipment sends character request message, controller role determines that method further includes:
Step S24, however, it is determined that this equipment is elected as master controller, then is generated and wrapped according to the generation id of distribution
Include generation id, Role Information is master controller and precedence information is the character request message of null value.
Controller in cluster elects the first controller for after master controller, other controllers in cluster cannot participate in competing
It strives, only the first controller can send character request message, it is not necessarily to carry the priority of this equipment at this time in character request message,
Only need to carry newly assigned generation id.It should be noted that generationg id can be by cluster
Controller negotiates distribution, can also be distributed by third party, with no restrictions to this disclosure.
Fig. 7 shows the flow chart that method is determined according to the controller role of one embodiment of the disclosure.This method can be applied
Any controller in controller cluster.In the present embodiment, in this way applied to the first controller in above-described embodiment
For be illustrated, but it is to be understood that, any controller in controller cluster can execute this method.Wherein, under
It states the third controller in embodiment and refers to other controllers in controller cluster in addition to the first controller.Such as Fig. 7 institute
Show, which determines that method further includes:
Step S25 identifies the information carried in the role state message from the network switching equipment, the role state
The message message for being used to notice Role Information that the network switching equipment is sent when being third controller application Counterchange roles, should
The Role Information and described of device identification, third controller request in role state message including the third controller
The precedence information of third controller.
Step S26, when this equipment is master controller, the role of third controller request in the role state message
In the case that information is the priority that precedence information in master controller and the role state message is third controller, than
The priority of the third controller and the priority of this equipment.
Step S27 is set when the priority of the third controller is higher than the priority of this equipment to the network exchange
Preparation is sent for requesting for the role of this equipment to be changed to the character request message from controller.
The network switching equipment can notice Role Information by controller of the role state message into cluster.In order to guarantee
The uniqueness of master controller in cluster determines network exchange after the role state message that the master controller in cluster receives
When master controller in equipment is not this equipment, the controller in cluster can carry out the change of role.
The network switching equipment is sent when role state message in step s 25 is third controller application Counterchange roles
For noticing the message of Role Information.Specifically, third controller sends third role request message to the network switching equipment, it should
The mark of third controller, the Role Information and third controller of the request of third controller are carried in third role's request message
Precedence information.It is the in the precedence information that the Role Information of third controller request is master controller and third controller
In the case where the priority of three controllers, referring to step S11 to step S13, the network switching equipment can be sent out to the first controller
Role state message is sent, the role of device identification, the request of third controller in the role state message including third controller
The precedence information of information and third controller.
In step S26, when the Role Information that third controller is requested in role state message is master controller, show
Third controller applies to become master controller, and in order to guarantee the uniqueness of master controller in cluster, current is the of master controller
One controller needs changing process of getting inside the character that one is playing.When the priority that the precedence information in role state message is third controller
When (when precedence information is not null value), show the first controller need according to priority determine whether carry out role's change.
In step s 27, when the priority of third controller is higher than the priority of this equipment, the first controller can be more
The role for changing itself is from controller.When the corresponding priority of precedence information is below or equal to the priority of this equipment,
First controller can keep the role of itself constant.In this way, the higher controller master controller of priority can be made, preferentially
The lower controller of grade is from controller.
First controller changes itself role when being from controller, needs to send to the network switching equipment for asking
It asks and the role of this equipment is changed to character request message Role Information from controller, to keep the network switching equipment and control
The consistency of role on device.
In one possible implementation, when the cluster is split into multiple sub-clusters, with the affiliated subset of this equipment
Other controllers in group interact, and determine whether this equipment continues to survive;If it is determined that this equipment continues to survive, then build again
The vertical Openflow between the network switching equipment is connect;If it is determined that this equipment is no longer survived, then close and the network
The corresponding business of switching equipment.
When cluster is split into sub-cluster, the controller in sub-cluster can select a subset group to make according to majority's principle
For the cluster of survival.If the affiliated sub-cluster of controller continues to survive, controller continues to survive, and controller can be built again at this time
The vertical Openflow between the network switching equipment is connect, and controller is according to step S21 to step S27 and network later
Switching equipment determines the role of controller in sub-cluster according to step S11 to step S17.If the affiliated sub-cluster of controller is no longer
Survival, then controller is no longer survived, and controller can close business corresponding with the network switching equipment, the network switching equipment at this time
Openflow connection between controller can also disconnect automatically, and the network switching equipment only connects on the cluster for continuing survival.This
Sample, it is ensured that the network switching equipment is connectable on a normal cluster.
Using example
As shown in Fig. 2, there are two controllers Controller1 and Controller2 in cluster, Controller1's
The priority that priority is 1, Controller2 is that the priority of 2, Controller2 is higher than the priority of Controller.With
SW1 is accessed for cluster.Under original state, cluster network connection is normal, when SW1 accesses cluster, there is the progress of cluster internal controller
Negotiate, selects master controller of the Controller1 as SW1.
Due to the abnormal aspect of network connection, the Openflow connection between SW1 and controller is disconnected, later net
Network restores, and SW1 is rejoined in SDN network, while initiating to connect with the Openflow of Controller1 and Controller2
It connects.If cluster network not yet restores completely, Controller1 and Controller2 do not elect master controller, then
Controller1 and Controller2 can apply to become master controller to SW1.
Example 1
The priority of Controller1 and Controller2 are stored in Controller1 and Controller2.
Controller1 and Controller2 determines that the priority of Controller2 is high.Controller1 will not generate and to
SW1 sends character request message, and Controller2 can be generated according to the priority of itself and be sent character request message to SW1,
Request becomes master controller.
SW1 receives the character request message from Controller2, identifies that priority is believed in the character request message
Cease the priority for being Controller2, Role Information is master controller.If there is no the controls that role is master controller in SW1
Device, then the role of Controller2 in this equipment is set master controller by SW1, and changes successfully to Controller2 transmission
Message makes Controller2 set master controller for itself.
In this case, the master controller on SW1 is Controller2, and the master controller of SW1 is also in cluster
Controller2, the two is consistent and SW1 on and cluster in there is only a master controllers.
Example 2
Controller1 and Controller2 not yet obtains the priority of other side.Controller1 and Controller2
Character request message is generated according to the priority of itself respectively, and sends the character request message to SW1, request becomes main control
Device.
Assuming that SW1 has first handled the character request message from Controller1, priority in the character request is identified
Priority that information is Controller1, Role Information are master controller.If there is no the controls that role is master controller in SW1
Device processed, then the role of Controller1 in this equipment is set master controller by SW1, and is altered to Controller1 transmission
Function message, makes Controller1 set master controller for itself.By the priority of Controller1 1 as current in SW1
The priority of second controller as master controller is stored.
SW1 continues with the character request message from Controller2, identifies priority in the character request message
Priority that information is Controller2, Role Information are master controller.Since the priority of Controller2 is 2, it is higher than
The priority 1 stored in SW1, therefore SW1 determines that change needs to be accepted.SW1 sends role state to Controller1 and disappears
Breath, wherein the Role Information of device identification, the request of high priority controller in role state including high priority controller,
The precedence information of high priority controller.In the present embodiment, since the priority of Controller2 is higher than
The priority of Controller1, thus carried in the role state message Controller2 device identification,
The Role Information (master controller) that precedence information (priority 2), the Controller2 of Controller2 is requested.
Controller1 receives role state message, determines that the corresponding priority 2 of precedence information is higher than the excellent of itself
First grade 1 sends character request message to SW1, and request becomes from controller.
After SW1 receives the character request message from Controller1, by the role of Controller1 be changed to from
The role of Controller2 is changed to master controller, and sends change to Controller1 and Controller2 by controller
Success message.
Controller1 receive SW1 transmission change success message after, Controller1 itself will be set as from
Controller, for Controller2 after the change success message for receiving SW1 transmission, itself is set master control by Controller2
Device processed.
In this case, the master controller on SW1 is Controller2, and the master controller of SW1 is also in cluster
Controller2, the two is consistent, and only exists a master controller always.
Example 3
When cluster internal controller elects master controller, by taking to elect Controller1 be master controller as an example.
It includes generation id and the role that Role Information is master controller, precedence information is null value that Controller1, which is generated,
Request message, and the character request message is sent to SW1.
SW1 receives the character request message from Controller1, identifies precedence information in the character request message
For null value, changed according to the role of the generation id processing master controller in the character request message.
Fig. 8 shows a kind of block diagram of network switching equipment according to one embodiment of the disclosure.As shown in figure 8, the network is handed over
Exchange device 300 includes:
First message identification module 301 carries in the first role request message from the first controller for identification
Information, wherein include the Role Information of controller request and the precedence information of controller in character request message;
First comparison module 302, based on the Role Information of controller request in the first role request message
In controller and the first role request message in the case where priority of the precedence information of controller for the first controller,
Compare the preferential of the current second controller as master controller stored in the priority and this equipment of first controller
Grade;
First message sending module 303, when for being higher than the priority of second controller when the priority of the first controller,
Role state message is sent to second controller, includes in the role state message:The device identification of first controller, institute
State the Role Information of the first controller request and the precedence information of first controller;
First role setup module 304, for when the second role request message for receiving the second controller transmission
When, in the case that Role Information is from controller in the second role request message, by the second control described in this equipment
The role of device is set as being set as master controller from the role of controller, first controller, and to the second controller
It sends the change success message in response to the second role request message, send to first controller in response to described the
The change success message of one character request message, so that the second controller sets the role of itself to from controller, institute
It states the first controller and sets master controller for the role of itself.
Cluster Central Plains can determined as the second of master controller according to the network switching equipment of the embodiment of the present disclosure
Controller applies to become after controller, then change the role of each controller on the network switching equipment, agree to other controllers at
For master controller, the role of master controller is consistent in the master controller role and cluster on such network switching equipment, is dropped
A possibility that existing simultaneously multiple master controllers in low cluster, improves Openflow between the network switching equipment and controller
The stability of control plane.
Fig. 9 shows a kind of block diagram of network switching equipment according to one embodiment of the disclosure.As shown in figure 9, one kind can
In the implementation of energy, the network switching equipment 300 further includes:
Second role setup module 305 is master controller for the Role Information in the first role request message
And in the first role request message controller precedence information be the first controller priority in the case where, Ruo Ben is set
It is standby it is upper the second controller is not present, then set master controller for the role of the first controller described in this equipment, and to
First controller sends the change success message in response to the first role request message, so that first controller
Master controller is set by the role of itself.
In one possible implementation, it is also carried in the first role request message and elects master control in cluster
The generation mark generation id generated when device processed, the network switching equipment 300 further include:
Comparison module 306 is identified, based on the Role Information of controller request in the first role request message
In the case that the precedence information of controller is null value in controller and the first role request message, more described first jiao
The generation id carried in color request message and maximum generation id in this equipment;
Third role setup module 307 is big for working as the generation id carried in the first role request message
In described equipment when maximum generation id, master control is set by the role of the first controller described in this equipment
Device processed, and the change success message in response to the character request message is sent to first controller, so that described first
The role of itself is set master controller by controller.
In one possible implementation, the network switching equipment 300 further includes:
Priority setup module 308, it is excellent for the priority of the second controller stored in this equipment to be set as defaulting
First grade.
Figure 10 shows the block diagram of the controller according to one embodiment of the disclosure.As shown in Figure 10, which includes:
First message generation module 401, when not electing master controller for the controller in cluster, according to this equipment
Priority generate character request message, the Role Information carried in the character request message is master controller, the role
The precedence information of the controller carried in request message is the priority of this equipment;
Second message sending module 402, for sending the character request message to the network switching equipment, in order to described
The network switching equipment determines whether that described equipment serves as main control according to the information carried in the character request message
Device;
Role changes module 403, if returning for receiving the network switching equipment in response to the character request message
The change success message returned, the then role for changing this equipment are master controller.
In one possible implementation, the first message generation module 401 is also used to:
Obtain the priority of each controller in the cluster when cluster is added;
If having got the priority of each controller, the priority of each controller, and work as this equipment
Priority when being the highest priority in the priority of each controller, the role is generated according to the priority of this equipment
Request message;
If the priority of each controller has not been obtained, the character request is generated according to the priority of this equipment and is disappeared
Breath.
Figure 11 shows the block diagram of the controller according to one embodiment of the disclosure.As shown in figure 11, in a kind of possible realization
In mode, the controller 400 further includes:
Second message identification module 404 carries in the role state message from the network switching equipment for identification
Information, when which is third controller application Counterchange roles the network switching equipment send for noticing
The message of Role Information, the device identification for including the third controller in the role state message, the third controller are asked
The precedence information of the Role Information and the third controller asked;
Second comparison module 405, for when this equipment is master controller, third to be controlled in the role state message
The Role Information of device request is that the precedence information in master controller and the role state message is the preferential of third controller
In the case where grade, the priority of the third controller and the priority of this equipment;
Third message transmission module 406, when for being higher than the priority of this equipment when the priority of the third controller,
It sends to the network switching equipment for requesting for the role of this equipment to be changed to the character request message from controller.
In one possible implementation, the controller 400 further includes:
Second message generation module 407, for if it is determined that this equipment is elected as master controller, then according to distribution
It includes generation id that generation id, which is generated, Role Information is master controller and precedence information is the angle of null value
Color request message.
In one possible implementation, the controller 400 further includes:
It survives determining module 408, for when the cluster is split into multiple sub-clusters, in the affiliated sub-cluster of this equipment
Other controllers interact, determine whether this equipment continues to survive;
Connection establishment module 409, for if it is determined that this equipment continues to survive, then re-establishing and the network switching equipment
Between Openflow connection;
Business closedown module 410, for if it is determined that this equipment is no longer survived, then closing to be corresponding with the network switching equipment
Business.
Figure 12 is a kind of block diagram of network switching equipment 800 shown according to an exemplary embodiment.Referring to Fig.1 2, the net
Network switching equipment 800 may include processor 801, the machine readable storage medium 802 for being stored with machine-executable instruction.Processor
801 can communicate with machine readable storage medium 802 via system bus 803.Also, processor 801 is readable by read machine
The corresponding machine-executable instruction of logic is determined with controller role in storage medium 802 to execute and above be applied to network and hand over
The controller role of exchange device determines method.
Machine readable storage medium 802 referred to herein can be any electronics, magnetism, optics or other physical stores
Device may include or store information, such as executable instruction, data, etc..For example, machine readable storage medium can be:
RAM (Radom Access Memory, random access memory), volatile memory, nonvolatile memory, flash memory, storage are driven
Dynamic device (such as hard disk drive), solid state hard disk, any kind of storage dish (such as CD, dvd) or similar storage are situated between
Matter or their combination.
Figure 13 is a kind of block diagram of controller 900 shown according to an exemplary embodiment.Referring to Fig.1 3, the controller
900 may include processor 901, the machine readable storage medium 902 for being stored with machine-executable instruction.Processor 901 and machine
Readable storage medium storing program for executing 902 can be communicated via system bus 903.Also, processor 901 passes through read machine readable storage medium storing program for executing
Determine with controller role the corresponding machine-executable instruction of logic to execute the controller for being above applied to controller in 902
Role determines method.
Machine readable storage medium 902 referred to herein can be any electronics, magnetism, optics or other physical stores
Device may include or store information, such as executable instruction, data, etc..For example, machine readable storage medium can be:
RAM (Radom Access Memory, random access memory), volatile memory, nonvolatile memory, flash memory, storage are driven
Dynamic device (such as hard disk drive), solid state hard disk, any kind of storage dish (such as CD, dvd) or similar storage are situated between
Matter or their combination.
The embodiment of the present disclosure also provides a kind of network system, which includes the network switching equipment 800 and controller
900。
The presently disclosed embodiments is described above, above description is exemplary, and non-exclusive, and
It is not limited to disclosed each embodiment.Without departing from the scope and spirit of illustrated each embodiment, for this skill
Many modifications and changes are obvious for the those of ordinary skill in art field.The selection of term used herein, purport
In the principle, practical application or technological improvement to the technology in market for best explaining each embodiment, or lead this technology
Other those of ordinary skill in domain can understand each embodiment disclosed herein.
Claims (14)
1. a kind of controller role determines method, which is characterized in that the method is applied to the network switching equipment, the method packet
It includes:
The information that identification carries in the first role request message from the first controller, wherein include in character request message
The Role Information of controller request and the precedence information of controller;
The Role Information that controller is requested in the first role request message is master controller and the first role is requested
In message the precedence information of controller be the first controller priority in the case where, first controller it is preferential
The priority of the current second controller as master controller stored in grade and this equipment;
When the priority of the first controller is higher than the priority of second controller, role state is sent to second controller and is disappeared
It ceases, includes in the role state message:Role's letter of the device identification of first controller, first controller request
The precedence information of breath and first controller;
When receiving the second role request message that the second controller is sent, the angle in the second role request message
Color information is to set the role of second controller described in this equipment to from controller, described the in the case where the controller
The role of one controller is set as master controller, and sends to the second controller in response to the second role request message
Change success message, to first controller send in response to the first role request message change success message,
So that the role of itself is set as being set as from controller, first controller by the role of itself by the second controller
Master controller.
2. the method according to claim 1, wherein being asked in the first role of the identification from the first controller
After seeking the information carried in message, the method also includes:
It is to be controlled in master controller and the first role request message in the Role Information in the first role request message
In the case that the precedence information of device is the priority of the first controller, if the second controller is not present in this equipment,
Master controller is set by the role of the first controller described in this equipment, and is sent to first controller in response to described
The change success message of first role request message, so that the role of itself is set master controller by first controller.
3. the method according to claim 1, wherein also being carried in cluster in the first role request message
The generation mark generation id generated when electing master controller, in first jiao of the identification from the first controller
After the information carried in color request message, the method also includes:
The Role Information that controller is requested in the first role request message is master controller and the first role is requested
In the case that the precedence information of controller is null value in message, carried in the first role request message
Generation id and maximum generation id in this equipment;
When maximum in greater than described equipment of the generation id carried in the first role request message
When generation id, master controller is set by the role of the first controller described in this equipment, and control to described first
Device sends the change success message in response to the character request message, so that the role of itself is arranged first controller
For master controller.
4. according to the method described in claim 3, it is characterized in that, in the role by the first controller described in this equipment
It is changed to after master controller, the method also includes:
Default priority is set by the priority of the second controller stored in this equipment.
5. a kind of controller role determines method, which is characterized in that the method is applied to the controller in controller cluster, institute
The method of stating includes:
When controller in cluster does not elect master controller, character request message, institute are generated according to the priority of this equipment
Stating the Role Information that carries in character request message is master controller, the controller carried in the character request message it is preferential
Grade information is the priority of this equipment;
The character request message is sent to the network switching equipment, in order to which the network switching equipment is according to the character request
The information carried in message determines whether that described equipment serves as master controller;
If receiving the change success message that the network switching equipment is returned in response to the character request message, this is changed
The role of equipment is master controller.
6. according to the method described in claim 5, it is characterized in that, described disappear according to the priority of this equipment generation character request
Breath, including:
Obtain the priority of each controller in the cluster when cluster is added;
If having got the priority of each controller, the priority of each controller, and work as the excellent of this equipment
When first grade is the highest priority in the priority of each controller, the character request is generated according to the priority of this equipment
Message;
If the priority of each controller has not been obtained, the character request message is generated according to the priority of this equipment.
7. according to the method described in claim 5, it is characterized in that, the method also includes:
The information that identification carries in the role state message from the network switching equipment, the role state message are third control
The message for being used to notice Role Information that the network switching equipment is sent when device application Counterchange roles processed, the role state message
In include the third controller device identification, third controller request Role Information and the third controller
Precedence information;
When this equipment is master controller, the Role Information that third controller is requested in the role state message is main control
In the case that precedence information in device and the role state message is the priority of third controller, the third control
The priority of device processed and the priority of this equipment;
When the priority of the third controller is higher than the priority of this equipment, send to the network switching equipment for asking
Seek the character request message role of this equipment being changed to from controller.
8. according to the method described in claim 5, it is characterized in that, sending character request message to the network switching equipment
Before, the method also includes:
If it is determined that this equipment is elected as master controller, then being generated according to the generation id of distribution includes being somebody's turn to do
Generation id, Role Information are master controller and precedence information is the character request message of null value.
9. according to the method described in claim 5, it is characterized in that, the method also includes:
When the cluster is split into multiple sub-clusters, interacted with other controllers in the affiliated sub-cluster of this equipment, really
Whether this fixed equipment continues to survive;
If it is determined that this equipment continues to survive, then the Openflow re-established between the network switching equipment is connect;
If it is determined that this equipment is no longer survived, then business corresponding with the network switching equipment is closed.
10. a kind of network switching equipment, which is characterized in that including:
Processor and machine readable storage medium, the machine readable storage medium are stored with machine-executable instruction, the place
Reason device executes the machine-executable instruction to realize method described in any one of Claims 1-4.
11. a kind of machine readable storage medium, which is characterized in that the machine readable storage medium is stored with the executable finger of machine
It enables, for the machine-executable instruction when being called and being executed by processor, the machine-executable instruction promotes the processor
Realize method described in any one of Claims 1-4.
12. a kind of controller, which is characterized in that including:
Processor and machine readable storage medium, the machine readable storage medium are stored with machine-executable instruction, the place
Reason device executes the machine-executable instruction to realize method described in any one of claim 5 to 9.
13. a kind of machine readable storage medium, which is characterized in that the machine readable storage medium is stored with the executable finger of machine
It enables, for the machine-executable instruction when being called and being executed by processor, the machine-executable instruction promotes the processor
Realize method described in any one of claim 5 to 9.
14. a kind of network system, which is characterized in that the network system includes controller and the network switching equipment;
The network switching equipment includes:Processor and machine readable storage medium, the machine readable storage medium are stored with
Machine-executable instruction, the processor execute the machine-executable instruction to realize any one of Claims 1-4 institute
The method stated;
The controller includes:Processor and machine readable storage medium, the machine readable storage medium is stored with machine can
It executes instruction, the processor executes the machine-executable instruction to realize side described in any one of claim 5 to 9
Method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810531903.0A CN108881059B (en) | 2018-05-29 | 2018-05-29 | Controller role determination method, network switching equipment, controller and network system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810531903.0A CN108881059B (en) | 2018-05-29 | 2018-05-29 | Controller role determination method, network switching equipment, controller and network system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108881059A true CN108881059A (en) | 2018-11-23 |
CN108881059B CN108881059B (en) | 2022-05-24 |
Family
ID=64335554
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810531903.0A Active CN108881059B (en) | 2018-05-29 | 2018-05-29 | Controller role determination method, network switching equipment, controller and network system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108881059B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111586079A (en) * | 2019-02-15 | 2020-08-25 | 阿里巴巴集团控股有限公司 | Communication method, system, control terminal, controlled terminal, device and storage medium |
CN112583708A (en) * | 2020-12-25 | 2021-03-30 | 新华三技术有限公司 | Connection relation control method and device and electronic equipment |
CN113098720A (en) * | 2021-04-06 | 2021-07-09 | 辽宁大学 | Multiple safe SDN control system and control method thereof |
CN113225201A (en) * | 2021-02-05 | 2021-08-06 | 新华三大数据技术有限公司 | Information synchronization method and device |
WO2021167685A1 (en) * | 2020-02-18 | 2021-08-26 | Futurewei Technologies, Inc. | System and method for border gateway protocol (bgp) controlled network reliability |
CN116018810A (en) * | 2020-09-03 | 2023-04-25 | 瑞典爱立信有限公司 | Computer software module apparatus, circuit apparatus, device, system and method for improved control of media delivery |
CN113489601B (en) * | 2021-06-11 | 2024-05-14 | 海南视联通信技术有限公司 | Anti-destruction method and device based on autonomous cloud network architecture of video networking |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104468231A (en) * | 2014-12-23 | 2015-03-25 | 上海斐讯数据通信技术有限公司 | SDN interchanger and controller dynamic registration method |
CN104601365A (en) * | 2014-12-05 | 2015-05-06 | 杭州华三通信技术有限公司 | Monitoring method and device for node device |
US20150195162A1 (en) * | 2014-01-06 | 2015-07-09 | Google Inc. | Multi-Master Selection in a Software Defined Network |
CN106230622A (en) * | 2016-07-22 | 2016-12-14 | 杭州华三通信技术有限公司 | A kind of cluster implementation method and device |
CN107124300A (en) * | 2017-04-01 | 2017-09-01 | 西安交通大学 | A kind of interchanger moving method in software defined network |
CN107181720A (en) * | 2016-03-11 | 2017-09-19 | 中兴通讯股份有限公司 | A kind of method and device of software definition networking SDN secure communications |
-
2018
- 2018-05-29 CN CN201810531903.0A patent/CN108881059B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150195162A1 (en) * | 2014-01-06 | 2015-07-09 | Google Inc. | Multi-Master Selection in a Software Defined Network |
CN104601365A (en) * | 2014-12-05 | 2015-05-06 | 杭州华三通信技术有限公司 | Monitoring method and device for node device |
CN104468231A (en) * | 2014-12-23 | 2015-03-25 | 上海斐讯数据通信技术有限公司 | SDN interchanger and controller dynamic registration method |
CN107181720A (en) * | 2016-03-11 | 2017-09-19 | 中兴通讯股份有限公司 | A kind of method and device of software definition networking SDN secure communications |
CN106230622A (en) * | 2016-07-22 | 2016-12-14 | 杭州华三通信技术有限公司 | A kind of cluster implementation method and device |
CN107124300A (en) * | 2017-04-01 | 2017-09-01 | 西安交通大学 | A kind of interchanger moving method in software defined network |
Non-Patent Citations (1)
Title |
---|
李婉: "软件定义联网分布式控制机制和实现方法研究", 《CNKI优秀硕士学位论文全文库》 * |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111586079A (en) * | 2019-02-15 | 2020-08-25 | 阿里巴巴集团控股有限公司 | Communication method, system, control terminal, controlled terminal, device and storage medium |
CN111586079B (en) * | 2019-02-15 | 2022-04-12 | 阿里巴巴集团控股有限公司 | Communication method, system, control terminal, controlled terminal, device and storage medium |
WO2021167685A1 (en) * | 2020-02-18 | 2021-08-26 | Futurewei Technologies, Inc. | System and method for border gateway protocol (bgp) controlled network reliability |
CN115004655A (en) * | 2020-02-18 | 2022-09-02 | 华为技术有限公司 | System and method for Border Gateway Protocol (BGP) controlled network reliability |
CN115004655B (en) * | 2020-02-18 | 2023-10-10 | 华为技术有限公司 | System and method for Border Gateway Protocol (BGP) controlled network reliability |
CN116018810A (en) * | 2020-09-03 | 2023-04-25 | 瑞典爱立信有限公司 | Computer software module apparatus, circuit apparatus, device, system and method for improved control of media delivery |
CN112583708A (en) * | 2020-12-25 | 2021-03-30 | 新华三技术有限公司 | Connection relation control method and device and electronic equipment |
CN112583708B (en) * | 2020-12-25 | 2022-08-30 | 新华三技术有限公司 | Connection relation control method and device and electronic equipment |
CN113225201A (en) * | 2021-02-05 | 2021-08-06 | 新华三大数据技术有限公司 | Information synchronization method and device |
CN113225201B (en) * | 2021-02-05 | 2022-05-24 | 新华三大数据技术有限公司 | Information synchronization method and device |
CN113098720A (en) * | 2021-04-06 | 2021-07-09 | 辽宁大学 | Multiple safe SDN control system and control method thereof |
CN113489601B (en) * | 2021-06-11 | 2024-05-14 | 海南视联通信技术有限公司 | Anti-destruction method and device based on autonomous cloud network architecture of video networking |
Also Published As
Publication number | Publication date |
---|---|
CN108881059B (en) | 2022-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108881059A (en) | Controller role determines method, the network switching equipment, controller and network system | |
EP3352428B1 (en) | Load sharing method and system | |
EP3241312B1 (en) | Load balancing internet protocol security tunnels | |
US11682055B2 (en) | Partitioned private interconnects to provider networks | |
EP2710784B1 (en) | A method for load balancing of requests' processing of diameter servers | |
CN105637805B (en) | Enhance mobile alternate channel to solve the node failure in wired networks | |
CN106031116B (en) | A kind of correlating method, the apparatus and system of NS and VNF | |
CN102986169A (en) | Methods, systems, and computer readable media for providing peer routing at a DIAMETER node | |
CN109831548B (en) | Virtual content delivery network vCDN node establishment method and server | |
JP5146539B2 (en) | Group management device | |
EP3095229B1 (en) | Method and nodes for configuring a communication path for a media service | |
WO2012149718A1 (en) | Method for cloud terminal to access cloud server in cloud computing system, and cloud computing system | |
CN108964961A (en) | A kind of method, apparatus and system of management transmission network slice | |
EP2550839B1 (en) | Relay device and method for providing device management service | |
US20180098208A1 (en) | Scheduled group reformation among multiple p2p groups following switching schedule | |
US9119180B2 (en) | Transport independent architecture | |
JP2013150068A (en) | Network system | |
CN111600795B (en) | Virtual edge device establishing method, controller and server | |
WO2016177135A1 (en) | Resource management method, device, and control terminal | |
JPWO2013133355A1 (en) | Route request arbitration device, control device, route request arbitration method, and program | |
JP2014233028A (en) | Communication control device, information processing device, storage device, communication control method, and communication control program | |
US10715390B2 (en) | Service optimization method, transport controller, client controller, and system | |
CN110166506B (en) | Method for connecting hypertext transfer protocol Http and node equipment | |
WO2022135207A1 (en) | Method, apparatus and system for capability negotiation, and storage medium | |
JP2018038001A (en) | Communication system, selection method, authentication device, and selection program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230609 Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd. Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466 Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd. |
|
TR01 | Transfer of patent right |