CN110166448B - Heterogeneous protocol conversion middleware and method for heterogeneous controller cluster - Google Patents

Heterogeneous protocol conversion middleware and method for heterogeneous controller cluster Download PDF

Info

Publication number
CN110166448B
CN110166448B CN201910410668.6A CN201910410668A CN110166448B CN 110166448 B CN110166448 B CN 110166448B CN 201910410668 A CN201910410668 A CN 201910410668A CN 110166448 B CN110166448 B CN 110166448B
Authority
CN
China
Prior art keywords
heterogeneous
controller
module
information
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910410668.6A
Other languages
Chinese (zh)
Other versions
CN110166448A (en
Inventor
杨力
智一方
李兴华
杨超
郭晶晶
张晓涵
潘晓波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xidian University
Original Assignee
Xidian University
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 Xidian University filed Critical Xidian University
Priority to CN201910410668.6A priority Critical patent/CN110166448B/en
Publication of CN110166448A publication Critical patent/CN110166448A/en
Application granted granted Critical
Publication of CN110166448B publication Critical patent/CN110166448B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/80Actions related to the user profile or the type of traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses heterogeneous protocol conversion middleware and a method for a heterogeneous controller cluster. The heterogeneous controller clustering method comprises the following steps: the heterogeneous controller information reading module and the heterogeneous controller instruction issuing module package northbound interfaces of the heterogeneous controller; the topological view aggregation module constructs a network topological view of the data plane; the flow table generating module issues the flow table through the heterogeneous controller instruction issuing module; and the switch migration module migrates the switch of the failed heterogeneous controller. The method has higher reliability and convenience, and can construct the heterogeneous controller cluster in a large-scale SDN network environment.

Description

Heterogeneous protocol conversion middleware and method for heterogeneous controller cluster
Technical Field
The invention belongs to the technical field of communication, and further relates to heterogeneous protocol conversion middleware and a method for a heterogeneous controller cluster in the technical field of network communication. In the invention, a centralized heterogeneous protocol conversion middleware is constructed under the environment of a Software Defined Network (SDN) (software defined network) so as to realize the cooperative work among heterogeneous controllers supporting a vertical architecture to form a heterogeneous controller cluster.
Background
The controller is responsible for centralized control of the whole SDN, plays a very important role in mastering resources of the whole SDN and improving delivery quality of the network resources, is the core of the whole SDN architecture, and once the controller cannot provide effective guarantee on performance or safety, the service capability of the whole SDN is degraded even the whole SDN is paralyzed. With the continuous expansion of the scale of the SDN network, the load of a single controller is also continuously increased, and a problem of single point failure exists. Therefore, a cluster is formed by a plurality of controllers, and problems in reliability, expansibility, performance and the like caused by a single controller node are avoided. Currently, clustering technology can be used to solve the above-mentioned problems, but the east-west interface standard for clustering among different kinds of controllers has not been defined yet, so there are more difficulties in clustering among heterogeneous controllers.
When constructing an SDN controller cluster, there are three problems to be solved: the first is abstract unification of northbound interfaces, and the key of a cluster formed by controllers is that a plurality of controllers work cooperatively, the plurality of controllers provide unified services to the outside, and transparent operation is realized for users, that is, in the controller cluster, the users do not need to care which controller service interface is called currently, and the northbound interfaces are used as the most main service interfaces provided by the SDN controllers to the outside and need to realize abstract unification on the cluster; secondly, forwarding the flow of the data plane, wherein the main equipment of the data plane under the SDN network architecture is a switch, different controllers control part of switches on the data plane under the control of a controller cluster, in order to realize the flow forwarding of the data plane, the controllers forming the cluster need to share the topology information of the whole data plane, and the flow of the data plane is forwarded by issuing a flow table; the third problem is the reliability problem of the controller cluster, that is, once a controller fails, a new controller needs to be selected from the controller cluster to control the switch controlled by the failed controller. The invention realizes the heterogeneous controller cluster on the basis of solving the three problems.
The patent application document "a communication method and system between heterogeneous controllers" (patent application No. 201611129381.9, publication No. 106549873a) of the beijing post and telecommunications university provides a method for forming a cluster between heterogeneous controllers in an SDN. The method comprises the specific steps of receiving a first link layer discovery protocol message sent by an intra-domain switch of a first domain controller; determining a second link layer discovery protocol message according to the first link layer discovery protocol message; packaging the second link layer discovery protocol message to obtain a southbound protocol bearing message; sending a southbound protocol bearer message to a super controller, and acquiring inter-domain link information by the super controller; acquiring intra-domain network information of each domain controller; encapsulating the intra-domain network information to obtain a first message; and sending the first message to a super controller, wherein the super controller acquires intra-domain network information of each domain controller, and performs communication between heterogeneous controllers according to the inter-domain link information and the intra-domain network information. The method realizes the flow forwarding of the data plane, thereby realizing the cluster formation among heterogeneous controllers. However, the method still has the following defects: the abstraction unification of the northbound interfaces of the heterogeneous controllers is not realized, and the transparent operation of the controller cluster on users cannot be realized.
Zhengzhou yunhai information technology limited provides a method for cooperative work among SDN heterogeneous controllers to form a cluster in a patent document "an SDN heterogeneous multi-controller cooperative method and system" (patent application No. 201711140596.5, publication No. 107819774a) applied by zhengzhou yunhai information technology limited. The method provides a controller communication protocol according to the OpenFlow protocol and the communication characteristics of the controllers, develops related applications on different controllers based on a programming interface opened by the controllers to realize the provided controller communication protocol, and solves the problems of expansion and cooperation among heterogeneous controllers; the method and the system do not need user participation, realize the expansion between heterogeneous controllers and the seamless interconnection of homogeneous controllers through the east-west direction expansion mechanism of the controllers, have universality, and effectively improve the computing power and the network operation stability of the controllers. However, the method still has the following defects: customized development is required on each heterogeneous controller, however, the programming interfaces opened by different controllers are different, so the heterogeneous controller cluster scheme has no expansibility.
Pingping Lin et al, in its published paper, "WE-bridge: West-east bridge for SDNinter-domain network engineering" (IEEE Conference on Computer communications works, 2014), propose a method of interaction of routing information and network topology information between heterogeneous controllers. The method comprises the steps that all SDN controllers are regarded as peer-to-peer entities and are connected through West-East Bridge designed in the paper, then basic routing information and network topology information are exchanged among the controllers through West-East Bridge and data of a uniform JSON structure, a global network topology view is built, then network applications on different controllers convert the routing information and the network topology information into flow tables and send the flow tables to a switch of a data plane, and therefore the cooperative work among heterogeneous controllers is achieved to form a cluster. However, the method still has the following defects: when a controller fails, the cluster has a reliability problem, and after a controller fails, the data forwarding process of the switch managed by the controller is affected.
Disclosure of Invention
The invention aims to provide a heterogeneous protocol conversion middleware and a heterogeneous protocol conversion method for a heterogeneous controller cluster aiming at the defects of the prior art, and the heterogeneous protocol conversion middleware and the heterogeneous protocol conversion method are used for solving the problems of non-uniform northbound interfaces, poor expansibility and poor reliability of heterogeneous controllers in the prior art.
The idea for realizing the purpose of the invention is as follows: firstly, a heterogeneous controller information reading module and a heterogeneous controller instruction issuing module call northbound interfaces of various heterogeneous controllers, and the northbound interfaces of various heterogeneous controllers are packaged, so that the northbound interfaces of the heterogeneous controllers are abstracted and unified; then, the topological view aggregation module acquires network topological information controlled by each heterogeneous controller through the heterogeneous controller information reading module, and summarizes the topological information of each heterogeneous controller to construct a network topological view of a bottom data plane; then the flow table generating module issues the flow table through the heterogeneous controller instruction issuing module according to the network topology view of the bottom data plane, so as to realize the flow forwarding of the data plane; and finally, the heterogeneous controller information reading module transmits the switch information controlled by the failed heterogeneous controller to the switch migration module, and the switch migration module migrates the switch of the failed heterogeneous controller.
The heterogeneous protocol conversion middleware for the heterogeneous controller cluster comprises a heterogeneous controller information reading module, a topological view aggregation module, a flow table generating module, a heterogeneous controller instruction issuing module and a switch migration module, wherein:
the heterogeneous controller information reading module is used for creating RPC reading interfaces with the number equal to that of the RESTful API reading interfaces and establishing a one-to-one corresponding relation between the RPC reading interfaces and the RESTful API reading interfaces; adding an HTTP client in each RPC read interface realization class, accessing an RESTful API read interface corresponding to the HTTP client by the HTTP client, and taking an access result as a return value of the read interface realization class; after each synchronous updating period is finished, sequentially reading key information of the heterogeneous controllers, and storing the read key information into the heterogeneous controller information reading module; periodically acquiring and storing key information of each heterogeneous controller, and judging the heterogeneous controllers which do not acquire the key information in continuous 3 synchronous updating periods as failure heterogeneous controllers; transmitting the switch information controlled by the failure heterogeneous controller and the number of switches controlled by each heterogeneous controller to a switch migration module;
the topology view aggregation module is used for acquiring the state information and the network topology information of each port of the switch controlled by each heterogeneous controller from the heterogeneous controller information reading module and summarizing the acquired state information and topology information to the network topology view of the bottom data plane; transmitting the network topology view of the bottom data plane to a flow table generating module;
the flow table generating module is used for issuing the flow tables to the switches controlled by the heterogeneous controllers through the heterogeneous controller instruction issuing module, and the switches forward the network flow of the data plane according to the flow tables;
the heterogeneous controller instruction issuing module is used for creating RPC writing interfaces with the same number as the RESTful API writing interfaces and establishing a one-to-one corresponding relation between the RPC writing interfaces and the RESTful API writing interfaces; in each implementation class of RPC writing interfaces, converting parameters received by the interface into input parameters of an RESTful API writing interface corresponding to the interface, adding an HTTP client in each implementation class of RPC writing interfaces, accessing the RESTful API writing interface corresponding to the interface by the HTTP client, and taking an access result as a return value of the writing interface implementation class;
the switch migration module is used for selecting the heterogeneous controller with the least number of switches from the heterogeneous controllers; and transferring the switch controlled by the failed heterogeneous controller to the heterogeneous controller with the least number of switches.
The method for the heterogeneous controller cluster comprises the following specific steps:
(1) encapsulating the northbound interfaces of the heterogeneous controllers:
(1a) the heterogeneous controller information reading module creates RPC reading interfaces with the number equal to that of the RESTful API reading interfaces, and establishes a one-to-one correspondence relationship between the RPC reading interfaces and the RESTful API reading interfaces;
(1b) the heterogeneous controller information reading module adds an HTTP client in each RPC reading interface realization class, the HTTP client accesses a RESTful API reading interface corresponding to the HTTP client, and an access result is used as a return value of the reading interface realization class;
(1c) the heterogeneous controller instruction issuing module creates RPC writing interfaces with the same number as the RESTful API writing interfaces, and establishes a one-to-one correspondence relationship between the RPC writing interfaces and the RESTful API writing interfaces;
(1d) the heterogeneous controller instruction issuing module converts parameters received by the interface into input parameters of an RESTful API (application programming interface) write interface corresponding to the interface in each implementation class of the RPC write interface, adds an HTTP client in each implementation class of the RPC write interface, the HTTP client accesses the RESTful API write interface corresponding to the interface, and an access result is used as a return value of the write interface implementation class;
(2) collecting and storing key information of each heterogeneous controller:
(2a) the heterogeneous controller information reading module sets a synchronous updating period, and the value of the synchronous updating period is the maximum value in RESTful API access time intervals supported by various heterogeneous controllers;
(2b) after each synchronous updating period is finished, the heterogeneous controller information reading module sequentially reads the key information of the heterogeneous controller and stores the read key information into the heterogeneous controller information reading module;
(3) forwarding traffic of the underlying data plane:
(3a) the topological view aggregation module acquires the state information and the network topological information of each port of the switch controlled by each heterogeneous controller from the heterogeneous controller information reading module, and summarizes the acquired state information and the acquired topological information into a network topological view of a bottom data plane;
(3b) the topology view aggregation module transmits the network topology view of the bottom data plane to the flow table generation module;
(3c) the flow table generating module issues flow tables to the switches controlled by the heterogeneous controllers through the heterogeneous controller instruction issuing module, and the switches forward the network traffic of the data plane according to the flow tables;
(4) migrating a switch controlled by a failed heterogeneous controller:
(4a) the heterogeneous controller information reading module periodically collects and stores the key information of each heterogeneous controller, and judges the heterogeneous controllers which do not obtain the key information in 3 continuous synchronous updating periods as failure heterogeneous controllers;
(4b) the heterogeneous controller information reading module transmits the switch information controlled by the failed heterogeneous controller and the number of switches controlled by each heterogeneous controller to the switch migration module;
(4c) the switch migration module selects the heterogeneous controller with the least number of switches from the heterogeneous controllers;
(4d) the switch migration module transfers the switch controlled by the failed heterogeneous controller to the heterogeneous controller with the least number of switches.
Compared with the prior art, the invention has the following advantages:
first, the heterogeneous controller information reading module and the heterogeneous controller instruction issuing module in the heterogeneous protocol conversion middleware have a function of calling a northbound interface of the heterogeneous controller, so that the problem of isomerization of the northbound interface of the heterogeneous controller in the prior art is solved, and the heterogeneous protocol conversion middleware has the advantage of unified management and control of the heterogeneous controller.
Secondly, since the heterogeneous controller information reading module and the heterogeneous controller instruction issuing module in the heterogeneous protocol conversion middleware of the invention mainly call the RESTful API interface opened by the heterogeneous controller, the heterogeneous controller itself is not changed, the problem of insufficient cluster expansibility of the heterogeneous controller in the prior art is overcome, and the invention has the advantage of easy expansion.
Thirdly, the heterogeneous controller information reading module in the heterogeneous controller clustering method transfers the switch information controlled by the failed heterogeneous controller and the number of switches controlled by each heterogeneous controller to the switch migration module, and the switch migration module transfers the switch controlled by the failed heterogeneous controller to the heterogeneous controller with the least number of switches for control, so that the problem of poor reliability of the heterogeneous controller clustering method in the prior art is solved, and the heterogeneous controller clustering method has the advantage of high reliability.
Drawings
FIG. 1 is a diagram illustrating a heterogeneous protocol conversion middleware according to the present invention;
FIG. 2 is a flow chart of a method for a heterogeneous controller cluster.
Detailed Description
The invention is further described below with reference to the accompanying drawings.
The heterogeneous protocol conversion middleware for a heterogeneous controller cluster of the present invention is further described with reference to fig. 1.
The invention discloses a heterogeneous protocol conversion middleware for a heterogeneous controller cluster, which comprises a heterogeneous controller information reading module, a topological view aggregation module, a flow table generating module, a heterogeneous controller instruction issuing module and a switch migration module.
Wherein:
the heterogeneous controller information reading module is used for creating RPC reading interfaces with the number equal to that of the RESTful API reading interfaces and establishing a one-to-one corresponding relation between the RPC reading interfaces and the RESTful API reading interfaces; adding an HTTP client in each RPC read interface realization class, accessing an RESTful API read interface corresponding to the HTTP client by the HTTP client, and taking an access result as a return value of the read interface realization class; after each synchronous updating period is finished, sequentially reading key information of the heterogeneous controllers, and storing the read key information into the heterogeneous controller information reading module; periodically acquiring and storing key information of each heterogeneous controller, and judging the heterogeneous controllers which do not acquire the key information in continuous 3 synchronous updating periods as failure heterogeneous controllers; and transmitting the switch information controlled by the failed heterogeneous controller and the number of switches controlled by each heterogeneous controller to a switch migration module.
The topology view aggregation module is used for acquiring the state information and the network topology information of each port of the switch controlled by each heterogeneous controller from the heterogeneous controller information reading module and summarizing the acquired state information and topology information to the network topology view of the bottom data plane; and transmitting the network topology view of the bottom data plane to the flow table generating module.
The flow table generating module is used for issuing the flow tables to the switches controlled by the heterogeneous controllers through the heterogeneous controller instruction issuing module, and the switches forward the network flow of the data plane according to the flow tables.
The heterogeneous controller instruction issuing module is used for creating RPC writing interfaces with the same number as the RESTful API writing interfaces and establishing a one-to-one corresponding relation between the RPC writing interfaces and the RESTful API writing interfaces; in each implementation class of RPC writing interfaces, parameters received by the interface are converted into input parameters of RESTful API writing interfaces corresponding to the interface, an HTTP client is added in each implementation class of RPC writing interfaces, the HTTP client accesses the RESTful API writing interfaces corresponding to the interface, and an access result is used as a return value of the writing interface implementation class.
The switch migration module is used for selecting the heterogeneous controller with the least number of switches from the heterogeneous controllers; and transferring the switch controlled by the failed heterogeneous controller to the heterogeneous controller with the least number of switches.
The specific steps of the method of the present invention for a heterogeneous controller cluster are further described with reference to fig. 2.
Step 1, encapsulating the northbound interfaces of the heterogeneous controllers.
The heterogeneous controller information reading module creates RPC reading interfaces with the number equal to that of the RESTful API reading interfaces, and establishes a one-to-one correspondence relationship between the RPC reading interfaces and the RESTful API reading interfaces.
The RESTful API read interface is a RESTful API interface which has a function of acquiring information of the heterogeneous controllers in RESTful API interfaces of all the heterogeneous controllers.
And the heterogeneous controller information reading module adds an HTTP client in each RPC reading interface realization class, the HTTP client accesses the RESTful API reading interface corresponding to the interface, and an access result is used as a return value of the reading interface realization class.
The RESTful API read interface is a RESTful API interface which has a function of acquiring information of the heterogeneous controllers in RESTful API interfaces of all the heterogeneous controllers.
The steps of adding the HTTP client are as follows:
step 1, creating an http client object in each implementation class of the RPC interface, and initializing http client, InputStream and buffereder objects in the http client object.
And step 2, setting the url attribute value of the HTTP connection object as the access address of the RESTful API interface which needs to be accessed by the corresponding RPC interface, and setting the method attribute value as the HTTP method type of the RESTful API interface which needs to be accessed by the corresponding RPC interface.
And 3, calling a connection method of the HttpURLConnection object, assigning a value obtained by calling the connection method to the InputStream object, and packaging the assigned InputStream object into a BufferReader object.
And 4, calling a toString method of the buffer reader object, and taking a value obtained by calling the toString method as a return value of the HttpClient object.
The heterogeneous controller instruction issuing module creates RPC writing interfaces with the same number as the RESTful API writing interfaces, and establishes a one-to-one correspondence relationship between the RPC writing interfaces and the RESTful API writing interfaces.
The RESTful API writing interface is a RESTful API interface which has functions of configuring the heterogeneous controllers and issuing the flow tables in RESTful API interfaces of all the heterogeneous controllers.
The heterogeneous controller instruction issuing module converts parameters received by the interface into input parameters of an RESTful API write interface corresponding to the interface in each implementation class of the RPC write interface, adds an HTTP client in each implementation class of the RPC write interface, the HTTP client accesses the RESTful API write interface corresponding to the interface, and an access result is used as a return value of the write interface implementation class.
The RESTful API writing interface is a RESTful API interface which has functions of configuring the heterogeneous controllers and issuing the flow tables in RESTful API interfaces of all the heterogeneous controllers.
The steps of adding the HTTP client are as follows:
step 1, creating an http client object in each implementation class of the RPC interface, and initializing http client, InputStream and buffereder objects in the http client object.
And step 2, setting the url attribute value of the HTTP connection object as the access address of the RESTful API interface which needs to be accessed by the corresponding RPC interface, and setting the method attribute value as the HTTP method type of the RESTful API interface which needs to be accessed by the corresponding RPC interface.
And 3, calling a connection method of the HttpURLConnection object, assigning a value obtained by calling the connection method to the InputStream object, and packaging the assigned InputStream object into a BufferReader object.
And 4, calling a toString method of the buffer reader object, and taking a value obtained by calling the toString method as a return value of the HttpClient object.
And 2, collecting and storing key information of each heterogeneous controller.
The heterogeneous controller information reading module sets a synchronous updating period, and the value of the synchronous updating period is the maximum value of RESTful API access time intervals supported by various heterogeneous controllers.
And after each synchronous updating period is finished, the heterogeneous controller information reading module sequentially reads the key information of the heterogeneous controller and stores the read key information into the heterogeneous controller information reading module.
The key information of the heterogeneous controller comprises flow table information of each switch, state information of each port of the switch and network topology information controlled by the heterogeneous controller.
And 3, forwarding the flow of the bottom data plane.
And the topological view aggregation module acquires the state information and the network topological information of each port of the switch controlled by each heterogeneous controller from the heterogeneous controller information reading module, and summarizes the acquired state information and the acquired topological information into the network topological view of the bottom data plane.
The step of summarizing the acquired state information and topology information to a network topology view of a bottom data plane is as follows:
and step 1, numbering all the switches controlled by the heterogeneous controller in sequence.
And 2, sequentially selecting one switch.
And step 3, judging whether a port with an open port exists in the selected switch, if so, executing step 4, and otherwise, executing step 6.
And 4, judging whether the selected switch is positioned at the network topology boundary, if so, executing the step 5, and otherwise, executing the step 6.
And 5, adding the selected switch into the boundary switch set and then executing the 6 th step.
And 6, judging whether all the switches controlled by the heterogeneous controller are selected or not, if so, executing the step 7, and otherwise, executing the step 2.
And 7, sending an LLDP link detection packet to the switches in the boundary switch set, and detecting the connection relation among the switches in the boundary switch set.
And 8, connecting the network topology information of each heterogeneous controller according to the connection relation of the switches in the boundary switch set to obtain a network topology view of the bottom data plane.
And the topology view aggregation module transmits the network topology view of the bottom data plane to the flow table generation module.
The flow table generating module issues the flow tables to the switches controlled by the heterogeneous controllers through the heterogeneous controller instruction issuing module, and the switches forward the network traffic of the data plane according to the flow tables.
And 4, migrating the switch controlled by the failure heterogeneous controller.
The heterogeneous controller information reading module periodically collects and stores the key information of each heterogeneous controller, and judges the heterogeneous controllers which do not obtain the key information in 3 continuous synchronous updating periods as invalid heterogeneous controllers.
The key information of the heterogeneous controller comprises flow table information of each switch, state information of each port of the switch and network topology information controlled by the heterogeneous controller.
The heterogeneous controller information reading module transmits the switch information controlled by the failed heterogeneous controller and the number of switches controlled by each heterogeneous controller to the switch migration module.
And the switch migration module selects the heterogeneous controller with the least number of switches from the heterogeneous controllers.
The switch migration module transfers the switch controlled by the failed heterogeneous controller to the heterogeneous controller with the least number of switches.

Claims (7)

1. The utility model provides a heterogeneous protocol conversion middleware for heterogeneous controller cluster which characterized in that, includes heterogeneous controller information reading module, topological view aggregate module, flow table generation module, heterogeneous controller instruction issue module, switch migration module, wherein:
the heterogeneous controller information reading module is used for creating RPC reading interfaces with the number equal to that of the RESTful API reading interfaces and establishing a one-to-one corresponding relation between the RPC reading interfaces and the RESTful API reading interfaces; adding an HTTP client in each RPC read interface realization class, accessing an RESTful API read interface corresponding to the HTTP client by the HTTP client, and taking an access result as a return value of the read interface realization class; after each synchronous updating period is finished, sequentially reading key information of the heterogeneous controllers, and storing the read key information into the heterogeneous controller information reading module; periodically acquiring and storing key information of each heterogeneous controller, and judging the heterogeneous controllers which do not acquire the key information in continuous 3 synchronous updating periods as failure heterogeneous controllers; transmitting the switch information controlled by the failure heterogeneous controller and the number of switches controlled by each heterogeneous controller to a switch migration module;
the topology view aggregation module is used for acquiring the state information and the network topology information of each port of the switch controlled by each heterogeneous controller from the heterogeneous controller information reading module and summarizing the acquired state information and topology information to the network topology view of the bottom data plane; transmitting the network topology view of the bottom data plane to a flow table generating module;
the flow table generating module is used for issuing the flow tables to the switches controlled by the heterogeneous controllers through the heterogeneous controller instruction issuing module, and the switches forward the network flow of the data plane according to the flow tables;
the heterogeneous controller instruction issuing module is used for creating RPC writing interfaces with the same number as the RESTful API writing interfaces and establishing a one-to-one corresponding relation between the RPC writing interfaces and the RESTful API writing interfaces; in each implementation class of RPC writing interfaces, converting parameters received by the interface into input parameters of an RESTful API writing interface corresponding to the interface, adding an HTTP client in each implementation class of RPC writing interfaces, accessing the RESTful API writing interface corresponding to the interface by the HTTP client, and taking an access result as a return value of the writing interface;
the switch migration module is used for selecting the heterogeneous controller with the least number of switches from the heterogeneous controllers; and transferring the switch controlled by the failed heterogeneous controller to the heterogeneous controller with the least number of switches.
2. A method for a heterogeneous controller cluster is characterized in that a centralized heterogeneous protocol conversion middleware is used for uniformly encapsulating northbound interfaces of heterogeneous controllers, topology information of the heterogeneous controllers is used for forwarding network traffic of a data plane, the centralized heterogeneous protocol conversion middleware is used for monitoring states of the heterogeneous controllers, and switches controlled by failed heterogeneous controllers are migrated, and the method comprises the following steps:
(1) encapsulating the northbound interfaces of the heterogeneous controllers:
(1a) the heterogeneous controller information reading module creates RPC reading interfaces with the number equal to that of the RESTful API reading interfaces, and establishes a one-to-one correspondence relationship between the RPC reading interfaces and the RESTful API reading interfaces;
(1b) the heterogeneous controller information reading module adds an HTTP client in each RPC reading interface realization class, the HTTP client accesses a RESTful API reading interface corresponding to the HTTP client, and an access result is used as a return value of the reading interface realization class;
(1c) the heterogeneous controller instruction issuing module creates RPC writing interfaces with the same number as the RESTful API writing interfaces, and establishes a one-to-one correspondence relationship between the RPC writing interfaces and the RESTful API writing interfaces;
(1d) the heterogeneous controller instruction issuing module converts parameters received by the interface into input parameters of an RESTful API write interface corresponding to the interface in each implementation class of the RPC write interface, adds an HTTP client in each implementation class of the RPC write interface, the HTTP client accesses the RESTful API write interface corresponding to the interface, and an access result is used as a return value of the write interface implementation class;
(2) collecting and storing key information of each heterogeneous controller:
(2a) the heterogeneous controller information reading module sets a synchronous updating period, and the value of the synchronous updating period is the maximum value in RESTful API access time intervals supported by various heterogeneous controllers;
(2b) after each synchronous updating period is finished, the heterogeneous controller information reading module sequentially reads the key information of the heterogeneous controller and stores the read key information into the heterogeneous controller information reading module;
(3) forwarding traffic of the underlying data plane:
(3a) the topological view aggregation module acquires the state information and the network topological information of each port of the switch controlled by each heterogeneous controller from the heterogeneous controller information reading module, and summarizes the acquired state information and the acquired topological information into a network topological view of a bottom data plane;
(3b) the topology view aggregation module transmits the network topology view of the bottom data plane to the flow table generation module;
(3c) the flow table generating module issues flow tables to the switches controlled by the heterogeneous controllers through the heterogeneous controller instruction issuing module, and the switches forward the network traffic of the data plane according to the flow tables;
(4) migrating a switch controlled by a failed heterogeneous controller:
(4a) the heterogeneous controller information reading module periodically collects and stores the key information of each heterogeneous controller, and judges the heterogeneous controllers which do not obtain the key information in 3 continuous synchronous updating periods as failure heterogeneous controllers;
(4b) the heterogeneous controller information reading module transmits the switch information controlled by the failed heterogeneous controller and the number of switches controlled by each heterogeneous controller to the switch migration module;
(4c) the switch migration module selects the heterogeneous controller with the least number of switches from the heterogeneous controllers;
(4d) the switch migration module transfers the switch controlled by the failed heterogeneous controller to the heterogeneous controller with the least number of switches.
3. The method of claim 2, wherein the RESTful API read interface in step (1a) or step (1b) is a RESTful API interface having a function of acquiring information of the heterogeneous controllers in RESTful API interfaces of all the heterogeneous controllers.
4. The method of claim 2, wherein the RESTful API write interface in step (1c) or step (1d) is a RESTful API interface having functions of configuring a heterogeneous controller and issuing a flow table among RESTful API interfaces of all heterogeneous controllers.
5. The method for heterogeneous controller cluster according to claim 2, wherein the step of adding HTTP client in step (1b) and step (1d) is as follows:
firstly, creating an http client object in each implementation class of the RPC interface, and initializing an http client object, an http connection object, an InputStream object and a bufferReader object in the http client object;
secondly, setting a url attribute value of the HTTP URL object as an access address of a RESTful API interface which needs to be accessed by a corresponding RPC interface, and setting a method attribute value as an HTTP method type of the RESTful API interface which needs to be accessed by the corresponding RPC interface;
thirdly, calling a connection method of the HttpURLConnection object, assigning a value obtained by calling the connection method to the InputStream object, and packaging the assigned InputStream object into a BufferReader object;
and fourthly, calling a toString method of the buffer reader object, and taking a value obtained by calling the toString method as a return value of the HttpClient object.
6. The method of claim 2, wherein the key information of the heterogeneous controllers in the steps (2b) and (4a) comprises flow table information of each switch controlled by the heterogeneous controllers, state information of each port of the switch, and network topology information.
7. The method for a heterogeneous controller cluster according to claim 2, wherein the step of summarizing the obtained status information and topology information to a network topology view of an underlying data plane in step (3a) is as follows:
the first step, numbering all the exchangers controlled by the heterogeneous controller in sequence;
secondly, sequentially selecting a switch;
step three, judging whether a port with an open port exists in the selected switch, if so, executing the step four, otherwise, executing the step six;
step four, judging whether the selected switch is positioned at the network topology boundary, if so, executing the step five, otherwise, executing the step six;
fifthly, adding the selected switch into the boundary switch set and then executing the sixth step;
sixthly, judging whether all the switches controlled by the heterogeneous controller are selected, if so, executing the seventh step, otherwise, executing the second step;
seventhly, sending an LLDP link detection packet to the switches in the boundary switch set, and detecting the connection relation between the switches in the boundary switch set;
and eighthly, connecting the network topology information of each heterogeneous controller according to the connection relation of the switches in the boundary switch set to obtain a network topology view of the bottom data plane.
CN201910410668.6A 2019-05-16 2019-05-16 Heterogeneous protocol conversion middleware and method for heterogeneous controller cluster Active CN110166448B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910410668.6A CN110166448B (en) 2019-05-16 2019-05-16 Heterogeneous protocol conversion middleware and method for heterogeneous controller cluster

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910410668.6A CN110166448B (en) 2019-05-16 2019-05-16 Heterogeneous protocol conversion middleware and method for heterogeneous controller cluster

Publications (2)

Publication Number Publication Date
CN110166448A CN110166448A (en) 2019-08-23
CN110166448B true CN110166448B (en) 2020-04-14

Family

ID=67631111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910410668.6A Active CN110166448B (en) 2019-05-16 2019-05-16 Heterogeneous protocol conversion middleware and method for heterogeneous controller cluster

Country Status (1)

Country Link
CN (1) CN110166448B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111585958B (en) * 2020-04-01 2021-10-29 西安电子科技大学 Self-adaptive access method and system for heterogeneous equipment of Internet of things platform
CN113114494B (en) * 2021-04-02 2024-03-01 新疆大学 Heterogeneous network communication equipment of Internet of things of SDN and data transmission method
CN115225624A (en) * 2022-07-22 2022-10-21 济南浪潮数据技术有限公司 Network control method, system, equipment and storage medium based on cloud platform

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618475A (en) * 2015-01-28 2015-05-13 清华大学 Horizontal direction communication method for heterogeneous SDN (self-defending network) and SDN system
CN106549873A (en) * 2016-12-09 2017-03-29 北京邮电大学 Communication means and system between a kind of isomery controller
CN106656846A (en) * 2017-01-17 2017-05-10 大连理工大学 Construction method of coordination layer in software defined network (SDN) architecture
CN107819774A (en) * 2017-11-16 2018-03-20 郑州云海信息技术有限公司 A kind of SDN isomeries multi-controller Synergistic method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10103969B2 (en) * 2015-06-30 2018-10-16 Hewlett Packard Enterprise Development Lp Open shortest path first routing for hybrid networks
US20170063660A1 (en) * 2015-08-27 2017-03-02 Hewlett Packard Enterprise Development Lp Application-specific integrated circuit data flow entity counting
CN105915419A (en) * 2015-11-25 2016-08-31 北京邮电大学 Wireless access controller deployment method based on SDN (Software Defined Network)
CN106028372B (en) * 2016-05-05 2019-06-18 华中科技大学 A kind of system based on SDN fusion heterogeneous wireless network
CN106851757B (en) * 2017-03-09 2019-11-26 西安电子科技大学 A kind of heterogeneous network switch method based on SDN and SDR

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618475A (en) * 2015-01-28 2015-05-13 清华大学 Horizontal direction communication method for heterogeneous SDN (self-defending network) and SDN system
CN106549873A (en) * 2016-12-09 2017-03-29 北京邮电大学 Communication means and system between a kind of isomery controller
CN106656846A (en) * 2017-01-17 2017-05-10 大连理工大学 Construction method of coordination layer in software defined network (SDN) architecture
CN107819774A (en) * 2017-11-16 2018-03-20 郑州云海信息技术有限公司 A kind of SDN isomeries multi-controller Synergistic method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
OXP:一种面向SDN移动自组网的东西向协议;杨帆 等;《电信工程技术与标准化》;20160915;第29卷(第228期);第32-36页 *
WE-Bridge: West-East Bridge for SDN Inter-domain Network Peering;Pingping Lin;《IEEE Conference on Computer Communications Workshops》;20140708;第111-112页 *

Also Published As

Publication number Publication date
CN110166448A (en) 2019-08-23

Similar Documents

Publication Publication Date Title
CN110166448B (en) Heterogeneous protocol conversion middleware and method for heterogeneous controller cluster
CN109660466A (en) A kind of more live load balance realizing methods towards cloud data center tenant
CN102833141B (en) CAN (control area network) open slave station system based on DSP (digital signal processor) 28335
JP2022511008A (en) Transmission method and server of OPC UA message by CoAP
CN109639484B (en) Industrial fusion network management method based on software definition and network manager thereof
CN102164184A (en) Computer entity access and management method for cloud computing network and cloud computing network
CN114189444B (en) Method for nano-tube industrial end equipment, time sensitive network controller and system
CN111885439B (en) Optical network integrated management and duty management system
CN102932431A (en) Message-routing-based state monitoring data interface configuration method
CN103119400A (en) State synchronization of serial data link sessions connected across an IP network
CN103685572A (en) Method and system for building data center management platform based on SOA (service-oriented architecture)
CN102402218B (en) Intelligent industrial network monitoring system
CN102882979A (en) System and method for collecting, gathering and distributing data on basis of cloud computing system
CN104243172A (en) Expanded input/output device of decentralized control system, and method thereof
CN101247663B (en) Considerable routing system and its forwarding table generation method
CN115208920B (en) Distributed internet of things service unit
Pu et al. Practical implementation of an OPC UA multi-server aggregation and management architecture for IIoT
CN105847428A (en) Mobile cloud platform
CN112929211B (en) Method for realizing non-IP management and control equipment to be accessed to IP DCN network to be managed
CN112910959B (en) SDN-based network interconnection method for multiple Kubernetes clusters
CN204425403U (en) A kind of power distribution automation framework
CN114884769A (en) Dual communication protocol redundant communication system
CN111835574A (en) SDN-based virtualized data center network management method and device
Lai et al. Dynamic adjustment mechanism based on OPC-UA architecture for IIoT applications
CN113179228A (en) Method, device, equipment and medium for improving switch stacking reliability

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