CN104468231A - SDN interchanger and controller dynamic registration method - Google Patents

SDN interchanger and controller dynamic registration method Download PDF

Info

Publication number
CN104468231A
CN104468231A CN201410806658.1A CN201410806658A CN104468231A CN 104468231 A CN104468231 A CN 104468231A CN 201410806658 A CN201410806658 A CN 201410806658A CN 104468231 A CN104468231 A CN 104468231A
Authority
CN
China
Prior art keywords
controller
switch
sdn
controllers
registration method
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.)
Pending
Application number
CN201410806658.1A
Other languages
Chinese (zh)
Inventor
翟跃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201410806658.1A priority Critical patent/CN104468231A/en
Publication of CN104468231A publication Critical patent/CN104468231A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses an SDN interchanger and controller dynamic registration method. The SDN interchanger and controller dynamic registration method comprises the following steps that S1, an SDN is initialized, an external configuration module informs an interchange and n controllers to establish TCP connection, and main connection is established between the interchanger and one controller and auxiliary connection is established between the interchanger and other controllers according to the priority algorithm; S2, when the main connection becomes abnormal, the interchanger sends a registration application message to one of the other controllers randomly; S3, a certain controller of the other controllers returns a registration agreeing message to the interchanger, and then new main connection is established between the controller and the interchanger. According to the SDN interchanger and controller dynamic registration method, when a fault occurs, normal services of the interchanger are not affected, and the reliability of the SDN controllers is greatly improved; meanwhile, seamless and rapid switching can be achieved, load balancing of the controllers is achieved, the method is simple and effective, and the burden of the controller is prevented from being increased.

Description

SDN switch and controller dynamic registration method
Technical field
The present invention relates to the method for a kind of SDN switch registration, particularly a kind of SDN switch and controller dynamic registration method.
Background technology
SDN(Software Defined Network, software defined network) one of core concept be that controlling functions is stripped out from the network switching equipment, thus reach reduction equipment complexity, promote the object of network management and control efficiency.The forwarding decision of the SDN switch of " going intellectuality " to packet comes from the southbound interface of controller.The control plane of switching equipment moves in the controller of centralization by SDN technology, utilizes standardized southbound interface to substituted for control plane in switching equipment.Therefore whether SDN switch and controller be efficient and simple alternately, and what become particularly is important.
Because the scale of SDN is more and more huger, the distributed type assemblies that many motors control device is formed will replace single controller.Present implementation, there is not dynamic registration algorithm in SDN switch and controller, but by OF-Config or OVSDB protocol configuration SDN Controller address, then sets up TCP and connect.There is very large integrity problem in this implementation.Once controller breaks down, SDN switch can not other controllers of Active Registration, thus cause this SDN switch to be in without controlled state, have influence on normal business.
And now active and standby controller technology mainly solves the problem that master controller breaks down, if in the link fails of controller and switch, be difficult to link failure effectively be detected, carry out active-standby switch.Although active and standby controller technology can solve the integrity problem of single-point controller well, autgmentability difference cannot be overcome, the problem that the transmission delay of poor performance and OpenFlow packet is large.
Summary of the invention
The object of this invention is to provide a kind of SDN switch and controller dynamic registration method, when breaking down, the regular traffic of switch can not be affected, greatly improve the reliability of SDN controller, can realize seamless and switch rapidly simultaneously, realize the load balancing of controller, the method is simply effective, without the need to increasing the burden of controller.
In order to realize above object, the present invention is achieved by the following technical solutions:
A kind of SDN switch and controller dynamic registration method, comprise following steps:
S1:SDN netinit, outside Configuration Manager informs that switch is set up TCP with n platform controller and is connected, and by priority algorithm, switch sets up main connection with a controller, sets up auxiliary connection with other controllers;
S2: described main connection occurs abnormal, switch sends application for registration message in other controllers at random;
S3: in other controllers, certain controller is replied to switch and agreed to logon message, then this controller and switch set up new to be mainly connected.
In described S1, described priority algorithm comprises following sub-step:
During S1.1:SDN netinit, switch is set up TCP with n platform controller and is connected, generation array (1,2,3 ... n) the corresponding n platform controller of difference;
S1.2: according to array (1,2,3 ... n), generate n numeral in the corresponding array of new n random number, namely n random number distinguishes corresponding n platform controller, as the 1st priority to n-th controller;
S1.3: the controller that switch selects priority maximum sends application for registration message;
S1.4: if this controller is replied agree to logon message, then this controller and switch set up main connection.
Described S1 also comprises following sub-step: S1.5: if if refusal logon message replied by controller, then switch is according to the controller transmission application for registration message of the order of decreasing priority to correspondence, until set up main connection with certain controller.
In described S2 main connect occur abnormal reason including but not limited to: controller breaks down, the link of switch and controller occurs abnormal.
Application for registration message that described switch sends to controller is including but not limited to the IP address of switch, the MAC Address of switch.
The described controller agreement logon message of replying is including but not limited to the IP address of controller.
Change at the database of a controller, then the automatic real-time synchronization of database of described n platform controller upgrades; Standby the dividing of n platform controller dereliction, the channel between controller is used for synchronous and adopts proprietary Fast Ethernet passage or bus.
Described every platform switch only and a controller set up main connection, and auxiliary connection set up by some controllers, and during described main connection work, auxiliary connection does not carry data.
Described S3 comprises following sub-step:
S3.1: the maximum main linking number that setting separate unit controller is set up;
S3.2: the application for registration message that controller desampler sends, if the main linking number of controller equals maximum main linking number, then replys refusal logon message; Otherwise then reply and agree to logon message, set up main connection with switch, the main linking number of this controller adds 1.
The present invention compared with prior art, has the following advantages:
When breaking down, can not affect the regular traffic of switch, greatly improving the reliability of SDN controller, can realize seamless and switch rapidly simultaneously, realizing the load balancing of controller, the method is simply effective, without the need to increasing the burden of controller.
Accompanying drawing explanation
Fig. 1 is the connection status schematic diagram of SDN switch of the present invention and controller;
Fig. 2 is the method flow diagram of SDN switch of the present invention and controller dynamic registration method;
Fig. 3 is the flow chart of the priority algorithm of SDN switch of the present invention and controller dynamic registration method;
Fig. 4 is the flow chart of the S3 of SDN switch of the present invention and controller dynamic registration method.
Embodiment
Below in conjunction with accompanying drawing, by describing a preferably specific embodiment in detail, the present invention is further elaborated.
A kind of SDN switch and controller dynamic registration method, as shown in Figure 2, comprise following steps:
S1:SDN netinit, outside Configuration Manager informs that switch is set up TCP with n platform controller and is connected, and by priority algorithm, switch sets up main connection with a controller, sets up auxiliary connection with other controllers.As shown in Figure 3, the step of this step medium priority algorithm is:
During S1.1:SDN netinit, switch is set up TCP with n platform controller and is connected, generation array (1,2,3 ... n) the corresponding n platform controller of difference;
S1.2: according to array (1,2,3 ... n), generate n numeral in the corresponding array of new n random number, namely n random number distinguishes corresponding n platform controller, as the 1st priority to n-th controller;
S1.3: the controller that switch selects priority maximum sends application for registration message (Register); In the present embodiment, the switch application for registration message that sends to controller is including but not limited to the IP address of switch, the MAC Address of switch.
S1.4: if this controller is replied agree to logon message (Register Reply(OK)), then this controller and switch set up main connection; In the present embodiment, the controller agreement logon message of replying is including but not limited to the IP address of controller.
S1.5: if if refusal logon message (Register Reply(NOK) replied by controller), then switch is according to the controller transmission application for registration message of the order of decreasing priority to correspondence, until set up main connection with certain controller.
S2: when the main connection in step 1 occurs abnormal, switch sends application for registration message in other controllers at random; Main connect occur abnormal reason including but not limited to: controller breaks down, the link of switch and controller occurs abnormal.
S3: in other controllers, certain controller is replied to switch and agreed to logon message, then this controller and switch set up new to be mainly connected, and refer to Fig. 1.As shown in Figure 4, the concrete steps of this step are as follows:
S3.1: the maximum main linking number (that is: threshold value) that setting separate unit controller is set up; In the present embodiment, the main linking number that controller is set up can only be less than or equal to maximum main linking number, but maximum main linking number can be modified based on the network application of reality.Due to switch adopt Stochastic choice algorithm and controller maximum number of connections is fixing, the flow of therefore thousands of switches can be shared and going above many motors control device, thus realizes the load balancing of controller.
S3.2: the application for registration message that controller desampler sends, if the main linking number of controller equals maximum main linking number, then replys refusal logon message; Otherwise then reply and agree to logon message, set up main connection with switch, the main linking number of this controller adds 1.
In the present embodiment, change at the database of a controller, then the automatic real-time synchronization of the database of n platform controller upgrades, controller be synchronously divided into real-time synchronization and cycle synchronisation, real-time synchronization is increment synchronization, cause the factor of real-time synchronization including but not limited to 4 points: statistical information changes, composer changes, and north orientation application change and the message from switch change; Cycle synchronisation is the synchronous of full database, because spended time is longer, answers background process.Standby the dividing of n platform controller dereliction, the channel between controller is used for synchronous and adopts proprietary Fast Ethernet passage or bus.Database due to all controllers is synchronous, to other controllers, therefore can accomplish seamlessly to switch, improve the reliability of controller node largely when a controller breaks down time without the need to derived data again.
And in order to obtain efficient search efficiency, the database of controller adopts Hash tissue, hash key to be adopt discrete logarithm to generate according to the IP address of switch and MAC Address.Except connection type, the data-base content of each controller should be consistent.Hash array size according to the demand of networking, can be modified.In order to obtain efficient recall precision, the degree of depth of chained list should more than 5 grades.
In the present embodiment, every platform switch only sets up main connection with a controller, and auxiliary connection set up by some controllers, and when main connection work, auxiliary connection does not carry data.Only have when connection type is main connection time, controller just can configure and manage switch, just can effectively the traffic sharing of thousands of switches be gone above many motors control device.
In sum, SDN switch of the present invention and controller dynamic registration method, when breaking down, the regular traffic of switch can not be affected, greatly improve the reliability of SDN controller, can realize seamless and switch rapidly simultaneously, realizing the load balancing of controller, the method is simply effective, without the need to increasing the burden of controller.
Although content of the present invention has done detailed introduction by above preferred embodiment, will be appreciated that above-mentioned description should not be considered to limitation of the present invention.After those skilled in the art have read foregoing, for multiple amendment of the present invention and substitute will be all apparent.Therefore, protection scope of the present invention should be limited to the appended claims.

Claims (9)

1. SDN switch and a controller dynamic registration method, is characterized in that, comprise following steps:
S1:SDN netinit, outside Configuration Manager informs that switch is set up TCP with n platform controller and is connected, and by priority algorithm, switch sets up main connection with a controller, sets up auxiliary connection with other controllers;
S2: described main connection occurs abnormal, switch sends application for registration message in other controllers at random;
S3: in other controllers, certain controller is replied to switch and agreed to logon message, then this controller and switch set up new to be mainly connected.
2. SDN switch as claimed in claim 1 and controller dynamic registration method, it is characterized in that, in described S1, described priority algorithm comprises following sub-step:
During S1.1:SDN netinit, switch is set up TCP with n platform controller and is connected, generation array (1,2,3 ... n) the corresponding n platform controller of difference;
S1.2: according to array (1,2,3 ... n), generate n numeral in the corresponding array of new n random number, namely n random number distinguishes corresponding n platform controller, as the 1st priority to n-th controller;
S1.3: the controller that switch selects priority maximum sends application for registration message;
S1.4: if this controller is replied agree to logon message, then this controller and switch set up main connection.
3. SDN switch as claimed in claim 2 and controller dynamic registration method, it is characterized in that, described S1 also comprises following sub-step: S1.5: if if refusal logon message replied by controller, then switch is according to the controller transmission application for registration message of the order of decreasing priority to correspondence, until set up main connection with certain controller.
4. SDN switch as claimed in claim 1 and controller dynamic registration method, is characterized in that, in described S2 main connect occur abnormal reason including but not limited to: controller breaks down, the link of switch and controller occurs abnormal.
5. SDN switch as claimed in claim 1 and controller dynamic registration method, is characterized in that, application for registration message that described switch sends to controller is including but not limited to the IP address of switch, the MAC Address of switch.
6. the SDN switch as described in claim 1 or 5 and controller dynamic registration method, is characterized in that, the described controller agreement logon message of replying is including but not limited to the IP address of controller.
7. SDN switch as claimed in claim 1 and controller dynamic registration method, is characterized in that, change at the database of a controller, then the automatic real-time synchronization of database of described n platform controller upgrades; Standby the dividing of n platform controller dereliction, the channel between controller is used for synchronous and adopts proprietary Fast Ethernet passage or bus.
8. SDN switch as claimed in claim 1 and controller dynamic registration method, it is characterized in that, described every platform switch only sets up main connection with a controller, and auxiliary connection set up by some controllers, during described main connection work, auxiliary connection does not carry data.
9. SDN switch as claimed in claim 1 and controller dynamic registration method, it is characterized in that, described S3 comprises following sub-step:
S3.1: the maximum main linking number that setting separate unit controller is set up;
S3.2: the application for registration message that controller desampler sends, if the main linking number of controller equals maximum main linking number, then replys refusal logon message; Otherwise then reply and agree to logon message, set up main connection with switch, the main linking number of this controller adds 1.
CN201410806658.1A 2014-12-23 2014-12-23 SDN interchanger and controller dynamic registration method Pending CN104468231A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410806658.1A CN104468231A (en) 2014-12-23 2014-12-23 SDN interchanger and controller dynamic registration method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410806658.1A CN104468231A (en) 2014-12-23 2014-12-23 SDN interchanger and controller dynamic registration method

Publications (1)

Publication Number Publication Date
CN104468231A true CN104468231A (en) 2015-03-25

Family

ID=52913640

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410806658.1A Pending CN104468231A (en) 2014-12-23 2014-12-23 SDN interchanger and controller dynamic registration method

Country Status (1)

Country Link
CN (1) CN104468231A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106888152A (en) * 2015-12-16 2017-06-23 华为技术有限公司 A kind of message treatment method, device and system
CN107046486A (en) * 2017-06-16 2017-08-15 郑州云海信息技术有限公司 A kind of fail-over system acted on behalf of based on controller
CN107179912A (en) * 2017-06-07 2017-09-19 广州市品高软件股份有限公司 A kind of hot upgrade method of distributed structure/architecture software defined network controller
CN107317887A (en) * 2017-08-23 2017-11-03 北京知道创宇信息技术有限公司 A kind of load-balancing method, device and system
CN108011815A (en) * 2016-10-28 2018-05-08 中国电信股份有限公司 Network control method and software defined network equipment and system
CN108881059A (en) * 2018-05-29 2018-11-23 新华三技术有限公司 Controller role determines method, the network switching equipment, controller and network system
CN109561127A (en) * 2017-09-27 2019-04-02 上海诺基亚贝尔股份有限公司 Method, equipment and the computer-readable medium synchronous for the data in software defined network
CN110321175A (en) * 2019-07-05 2019-10-11 武汉斗鱼鱼乐网络科技有限公司 A kind of controller initial method and relevant apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102640464A (en) * 2009-11-26 2012-08-15 日本电气株式会社 Load distribution system, load distribution method, and program
CN102882719A (en) * 2012-09-26 2013-01-16 盛科网络(苏州)有限公司 Method and system for implementation of redundant backup of controllers in Openflow switch system
CN103428031A (en) * 2013-08-05 2013-12-04 浙江大学 Inter-domain link fast failure recovery method based on software defined network
US20140301192A1 (en) * 2013-04-05 2014-10-09 Futurewei Technologies, Inc. Software Defined Networking (SDN) Controller Orchestration and Network Virtualization for Data Center Interconnection
CN104158642A (en) * 2014-08-08 2014-11-19 上海斐讯数据通信技术有限公司 Method and system for providing backup for software defined network controller

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102640464A (en) * 2009-11-26 2012-08-15 日本电气株式会社 Load distribution system, load distribution method, and program
CN102882719A (en) * 2012-09-26 2013-01-16 盛科网络(苏州)有限公司 Method and system for implementation of redundant backup of controllers in Openflow switch system
US20140301192A1 (en) * 2013-04-05 2014-10-09 Futurewei Technologies, Inc. Software Defined Networking (SDN) Controller Orchestration and Network Virtualization for Data Center Interconnection
CN103428031A (en) * 2013-08-05 2013-12-04 浙江大学 Inter-domain link fast failure recovery method based on software defined network
CN104158642A (en) * 2014-08-08 2014-11-19 上海斐讯数据通信技术有限公司 Method and system for providing backup for software defined network controller

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
邵必林,边根庆等: "《海量信息存储安全技术及其应用》", 30 April 2014, 西北工业大学出版社 *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106888152B (en) * 2015-12-16 2019-11-12 华为技术有限公司 A kind of message treatment method, device and system
CN106888152A (en) * 2015-12-16 2017-06-23 华为技术有限公司 A kind of message treatment method, device and system
US10592316B2 (en) 2015-12-16 2020-03-17 Huawei Technologies Co., Ltd. Message processing method, apparatus, and system
CN108011815A (en) * 2016-10-28 2018-05-08 中国电信股份有限公司 Network control method and software defined network equipment and system
CN108011815B (en) * 2016-10-28 2020-12-01 中国电信股份有限公司 Network control method and software defined network device and system
CN107179912A (en) * 2017-06-07 2017-09-19 广州市品高软件股份有限公司 A kind of hot upgrade method of distributed structure/architecture software defined network controller
CN107179912B (en) * 2017-06-07 2020-09-01 广州市品高软件股份有限公司 Hot upgrading method for distributed architecture software defined network controller
CN107046486A (en) * 2017-06-16 2017-08-15 郑州云海信息技术有限公司 A kind of fail-over system acted on behalf of based on controller
CN107317887A (en) * 2017-08-23 2017-11-03 北京知道创宇信息技术有限公司 A kind of load-balancing method, device and system
CN107317887B (en) * 2017-08-23 2019-10-18 北京知道创宇信息技术股份有限公司 A kind of load-balancing method, device and system
CN109561127A (en) * 2017-09-27 2019-04-02 上海诺基亚贝尔股份有限公司 Method, equipment and the computer-readable medium synchronous for the data in software defined network
CN108881059A (en) * 2018-05-29 2018-11-23 新华三技术有限公司 Controller role determines method, the network switching equipment, controller and network system
CN108881059B (en) * 2018-05-29 2022-05-24 新华三技术有限公司 Controller role determination method, network switching equipment, controller and network system
CN110321175A (en) * 2019-07-05 2019-10-11 武汉斗鱼鱼乐网络科技有限公司 A kind of controller initial method and relevant apparatus
CN110321175B (en) * 2019-07-05 2023-10-10 珠海市胜威科自动化设备有限公司 Controller initialization method and related device

Similar Documents

Publication Publication Date Title
CN104468231A (en) SDN interchanger and controller dynamic registration method
US9686383B2 (en) Synchronization of traffic multiplexing in link aggregation
CN103596652A (en) Network control method and device
CN101820435A (en) Synchronization method and device for MAC (Media Access Control) address table information of distributed network processing system
CN104168193A (en) Virtual router redundancy protocol fault detection method and router equipment
CN105516292A (en) Hot standby method of cloud platform of intelligent substation
CN104038570B (en) A kind of data processing method and device
CN104158642A (en) Method and system for providing backup for software defined network controller
CN105357048A (en) Method and system for data synchronization of network equipment
CN108737574A (en) A kind of node off-line judgment method, device, equipment and readable storage medium storing program for executing
CN108768698B (en) SDN-based multi-controller dynamic deployment method and system
CN103166800B (en) Message transmission method for dual-network redundant message bus in cross failure
CN110401651A (en) A kind of distributed type assemblies node monitoring method, apparatus and system
CN107682411A (en) A kind of extensive SDN controllers cluster and network system
CN103825839A (en) Message transmission method and equipment based on aggregated link
CN103220189A (en) Multi-active detection (MAD) backup method and equipment
CN113489149B (en) Power grid monitoring system service master node selection method based on real-time state sensing
CN104767664A (en) Ring communication network slave node increasing and decreasing method, device and system
CN102857436B (en) Flow transmission method and flow transmission equipment based on IRF (intelligent resilient framework) network
CN111880932A (en) Data storage method and device based on multiple network ports
CN103841047A (en) Link aggregation method and device
CN116545842A (en) Communication fault network reconstruction method, system, electronic equipment and storage medium
CN103414591A (en) Method and system for fast converging when port failure is recovered
US11916768B2 (en) Information sharing method and apparatus in redundancy network, and computer storage medium
CN104954439A (en) Cloud server, node interconnection method thereof and cloud server system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150325

RJ01 Rejection of invention patent application after publication