CN105704205A - Communication frame system and method for multiple controllers - Google Patents
Communication frame system and method for multiple controllers Download PDFInfo
- Publication number
- CN105704205A CN105704205A CN201511009218.4A CN201511009218A CN105704205A CN 105704205 A CN105704205 A CN 105704205A CN 201511009218 A CN201511009218 A CN 201511009218A CN 105704205 A CN105704205 A CN 105704205A
- Authority
- CN
- China
- Prior art keywords
- communication
- layer
- controller
- core central
- business
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
- H04L65/1073—Registration or de-registration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
Abstract
The invention discloses a communication frame system and method for multiple controllers. The system is applied to controllers, and includes an application layer, a communication core layer and a communication device layer. The application includes all source service modules which communicate with other controllers, wherein the source service modules in the application layer send service data to the communication core layer, the communication core layer performs corresponding sending communication logical processing on the service data to obtain service data packets, and the communication device layer controls the service data packets to be transmitted to target service modules in other controllers through communication lines. Thus, the communication core layer can provide unified communication interfaces for each service module that needs communication, and unified planning is performed on the communication device layer, so that each communication device easily provides communication services for each service module, thereby effectively solving the problem in the prior art that each service module respectively processes respective communication logic, causing redundancy of code logic and waste of communication resources.
Description
Technical field
The present invention relates to field of computer technology, particularly relate to the communication construction system and method between a kind of multi-controller。
Background technology
At present, along with the development of many Ore-controlling Role, many Ore-controlling Role need the business module intercomed mutually get more and more。In a distributed system, between multi-controller, collaborative process task is indispensable, and each business module has corresponding data to exist on each controller。
Under normal circumstances, when multiple controllers provide service simultaneously, each business module is in order to reach data unification on each controller, it is necessary to carry out the communication between each controller。But, each business module does not have unified communication construction between multi-controller, even the business module on same controller, they are also each process respective communication logic, although the communication of self can be carried out relative optimization process by each business module in some, but, for whole distributed system, this is not only the redundancy of code logic, is also the waste of the communication resource and unnecessary consumption。
Therefore, need the communication construction system and method between a kind of multi-controller badly, to solve the problems referred to above in prior art: each business module each processes respective communication logic, cause the redundancy of code logic and the waste of the communication resource。
Summary of the invention
In view of this, the invention provides the communication construction system and method between a kind of multi-controller, each process respective communication logic solving each business module in prior art, cause the redundancy of code logic and the problem of the waste of the communication resource。
For solving above-mentioned technical problem, the present invention provides the communication construction system between a kind of multi-controller, and this system is applied to described controller, and described system includes:
Application layer, communication core central layer and communication equipment layer;Described application layer includes all source business modules communicated with other controller;
Wherein, described source business module in described application layer sends business datum to described communication core central layer, described business datum is carried out sending communication logic process accordingly and obtains business data packet by described communication core central layer, and described communication equipment layer controls described business data packet via the target service module in communication line to other controller described。
In said system, preferably, in other controller described, described communication equipment layer receives described business data packet from described communication line, and described business data packet is carried out receiving communication logic accordingly and processes and process obtains described business datum transmission extremely described target service module by described communication core central layer。
In said system, it is preferable that described communication core central layer includes fault-tolerant processing unit;
Described business datum is carried out transmission fault-tolerant communications logical process accordingly by described fault-tolerant processing unit;Or, described business data packet is carried out reception fault-tolerant communications logical process accordingly by described fault-tolerant processing unit;
Wherein, described fault-tolerant processing unit includes timeout treatment subelement, priority processing subelement and message and abandons subelement。
In said system, it is preferable that described communication core central layer has the first communication functions interface, described application layer is passed through between each described business module and described communication core central layer call described first communication functions interface and realizes data interaction。
In said system, it is preferable that described communication core central layer has second communication function interface, pass through to call described second communication function interface between described communication equipment layer and described communication core central layer and realize data interaction。
Present invention also offers a kind of communication construction method between multi-controller, described method includes:
Source business module in application layer sends business datum to communication core central layer;
Described business datum is carried out sending communication logic process accordingly and obtains business data packet by described communication core central layer;
Communication equipment layer controls described business data packet via the target service module in communication line to other controller;
Wherein, described application layer includes the described source business module that other controller all and described communicates。
Above in the communication construction system and method between a kind of multi-controller provided by the invention, this system includes application layer, communication core central layer and communication equipment layer, wherein, application layer includes all source business modules communicated with other controller, specifically, such scheme is applied to controller, and further, the described source business module in described application layer sends business datum to described communication core central layer;Described business datum is carried out sending communication logic process accordingly and obtains business data packet by described communication core central layer, is namely transmitted communication logic by the business datum that the unification of communication core central layer is active business module and processes;Described communication equipment layer controls described business data packet via the target service module in communication line to other controller described。
Visible, the present invention utilizes the division of logical level, make communication core central layer can provide unified communication interface for each business module needing communication, communication equipment layer is carried out unified planning simultaneously, allow each communication equipment provide communication service for each business module easily。Visible, the present invention efficiently solves each business module in prior art and each processes respective communication logic, causes the redundancy of code logic and the problem of the waste of the communication resource。
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to the accompanying drawing provided。
The structured flowchart schematic diagram of the communication construction system between a kind of multi-controller that Fig. 1 provides for the embodiment of the present invention;
Communication construction systematic difference scene graph between a kind of multi-controller that Fig. 2 provides for the embodiment of the present invention;
The flow chart of the communication construction method between a kind of multi-controller that Fig. 3 provides for the embodiment of the present invention。
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments。Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention。
The core of the present invention is to provide the communication construction system and method between a kind of multi-controller, each processes respective communication logic solving each business module in prior art, causes the redundancy of code logic and the problem of the waste of the communication resource。
In order to make those skilled in the art be more fully understood that the present invention program, below in conjunction with the drawings and specific embodiments, the present invention is described in further detail。
Illustrate the structured flowchart schematic diagram of the communication construction system between a kind of multi-controller that the embodiment of the present invention provides with reference to Fig. 1 and Fig. 2, Fig. 1, Fig. 2 illustrates the communication construction systematic difference scene graph between a kind of multi-controller that the embodiment of the present invention provides。
Communication construction system between a kind of multi-controller that the embodiment of the present invention provides includes application layer, communication core central layer and communication equipment layer, it is applied to controller, in actual applications, all controllers all apply said system, for the ease of understanding, controller containing active business module is regarded as this controller A, and the source business module in this controller A can carry out data interaction with the target service module in other controllers A '。
In the present invention, business module is also referred to as application。Application layer is not in the basic details paying close attention to communication, and Retransmission timeout, sequentially reach etc. becomes transparent functional。Specifically, for application layer, communication core central layer is a function interface, and detail application is unconcerned。Communication core central layer pays close attention to the full details that communication logic is relevant, such as carries out fault-tolerant processing, but the transmission of data stream is not concerned with。The transmission of the data stream that communication equipment layer is only responsible on communication line, and be not concerned with communication logic, is not concerned with burst, the concrete communication logic such as fault-tolerant processes。Above three-tier architecture system is depending therefrom, cooperates with one another, and jointly completes communication task。
Specifically, from the angle of this controller A, said system specifically can include application layer 100, communication core central layer 101 and communication equipment layer 102;Wherein, application layer 100 includes all source business modules communicated with other controller in this controller, the unified business datum by active business module of communication core central layer be transmitted communication logic and process。Its operation principle is as follows: the source business module in application layer 100 sends business datum to communication core central layer, business datum is carried out sending communication logic process accordingly and obtains business data packet by communication core central layer, and communication equipment layer controls business data packet via the target service module in communication line to other controller。
Owing to the source business module in this controller A can carry out data interaction with the target service module in other controllers A ', correspondingly, from the angle of other controller A ', it includes application layer 100 ', communication core central layer 101 ' and communication equipment layer 102 ' equally, communication equipment layer 102 ' receives business data packet from communication line, and business data packet is carried out receiving communication logic process accordingly and process being obtained business datum sending to the target service module being positioned at application layer 100 ' by communication core central layer 101 '。
It is understood that for the controller applying the communication construction system between multi-controller provided by the invention, perform different still corresponding contents respectively when sending data and receiving data。In other words, this controller A and other controllers A ' is actually the same, and what only perform when sending data is the content relevant to sending data, and what perform when receiving data is the content relevant to receiving content。
In actual applications, application layer 100 uses the API (mcc_tx) of the offer of communication core central layer 101 just can complete the communication task of correspondence, is not the fault-tolerant processing flow process increasing self again for the fault-tolerant processing in communication;And communication equipment layer 102, have only to communication core central layer 101 provide the service of sending (tx function) and receives service (rx function) to be just not concerned with the concrete logic of application on upper strata, free also processing from corresponding communication fault-tolerance simultaneously。
Further, load concrete communication core central layer 101, the application registration interface of application layer 100 calling communication core layer 101 is registered, show that oneself being desirable for unified interface communicates, and communication equipment layer 102, use the facility registration interface of communication core central layer 101, carry out the registration of self, it was shown that oneself can provide the service of communication。Concrete communication process is as follows, and application layer 100 is called unified API (mcc_tx) and sent business datum, through communication core central layer 101, uses the transmission service (tx) of communication equipment layer 102 to send message。And the other end that communicates, receive message by the reception service (rx) of mechanical floor 102 ', after receiving message, pass to communication core central layer 101 ', the application layer 100 ' that communication core central layer 101 ' notice is corresponding。
It addition, for communication core central layer, the communication logic relevant treatment of its primary responsibility data, such as fault-tolerant processing, burst, order etc. process, and this can be configured the present invention by those skilled in the art according to real needs and not do considered critical。At this, illustrating for fault-tolerant processing, namely communication core central layer includes fault-tolerant processing unit;Business datum is carried out transmission fault-tolerant communications logical process accordingly by fault-tolerant processing unit;Or, business data packet is carried out reception fault-tolerant communications logical process accordingly by fault-tolerant processing unit;Wherein, fault-tolerant processing unit includes timeout treatment subelement, priority processing subelement and message and abandons subelement etc.。Wherein, timeout treatment subelement mainly processes Retransmission timeout task;Priority unit mainly processes the preferential prioritizing selection sent with communication equipment of message;Message abandons subelement and mainly processes the active of message and abandon and passively the abandoning of error message。
Visible, the present invention utilizes the division of logical level, make communication core central layer can provide unified communication interface for each business module needing communication, application layer can use unified communication interface, for application layer, bring very big benefit undoubtedly: the unnecessary logic unrelated with this module need not be increased again for communication, also can avoid having influence on because of the problem in communication the realization of this module simultaneously。In specific implementation process, communication core central layer has the first communication functions interface, passes through to call the first communication functions interface and realize data interaction in application layer between each business module and communication core central layer。It is understood that the first communication functions interface can include sending accordingly function interface and receiver function interface。
Simultaneously for communication equipment layer, had unified service interface, as long as realizing corresponding service interface just can provide corresponding communication service for various application, will not because of with apply agreeing with problem and causing self puzzlement。In specific implementation process, communication core central layer has second communication function interface, passes through to call second communication function interface and realize data interaction between communication equipment layer and communication core central layer。It can also be appreciated that second communication function interface can include sending accordingly function interface and receiver function interface。
To sum up, the present invention utilizes the division of logical level, make communication core central layer can provide unified communication interface for each business module needing communication, communication equipment layer is carried out unified planning simultaneously, allow each communication equipment provide communication service for each business module easily。Visible, the present invention efficiently solves each business module in prior art and each processes respective communication logic, causes the redundancy of code logic and the problem of the waste of the communication resource。
Based on the communication construction system between the multi-controller that the invention described above embodiment provides, the embodiment of the present invention additionally provides a kind of communication construction method between multi-controller, and with reference to Fig. 3, the method specifically may include steps of:
Source business module in step S300, application layer sends business datum to communication core central layer。
Business datum is carried out sending communication logic process accordingly and obtains business data packet by step S301, communication core central layer。
Step S302, communication equipment layer control business data packet via the target service module in communication line to other controller。
Wherein, application layer includes all source business modules communicated with other controller。
It should be noted that each embodiment in this specification all adopts the mode gone forward one by one to describe, what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually referring to。For method class embodiment, due to itself and embodiment of the method basic simlarity, so describing fairly simple, relevant part illustrates referring to the part of embodiment of the method。
Above the communication construction system and method between a kind of multi-controller provided by the present invention is described in detail。Principles of the invention and embodiment are set forth by specific case used herein, and the explanation of above example is only intended to help to understand method and the core concept thereof of the present invention。It should be pointed out that, for those skilled in the art, under the premise without departing from the principles of the invention, it is also possible to the present invention carries out some improvement and modification, these improve and modify in the protection domain also falling into the claims in the present invention。
Claims (6)
1. the communication construction system between a multi-controller, it is characterised in that this system is applied to described controller, and described system includes:
Application layer, communication core central layer and communication equipment layer;Described application layer includes all source business modules communicated with other controller;
Wherein, described source business module in described application layer sends business datum to described communication core central layer, described business datum is carried out sending communication logic process accordingly and obtains business data packet by described communication core central layer, and described communication equipment layer controls described business data packet via the target service module in communication line to other controller described。
2. the system as claimed in claim 1, it is characterized in that, in other controller described, described communication equipment layer receives described business data packet from described communication line, and described business data packet is carried out receiving communication logic accordingly and processes and process obtains described business datum transmission extremely described target service module by described communication core central layer。
3. system as claimed in claim 1 or 2, it is characterised in that described communication core central layer includes fault-tolerant processing unit;
Described business datum is carried out transmission fault-tolerant communications logical process accordingly by described fault-tolerant processing unit;Or, described business data packet is carried out reception fault-tolerant communications logical process accordingly by described fault-tolerant processing unit;
Wherein, described fault-tolerant processing unit includes timeout treatment subelement, priority processing subelement and message and abandons subelement。
4. system as claimed in claim 3, it is characterised in that described communication core central layer has the first communication functions interface, passes through to call described first communication functions interface and realizes data interaction between each described business module and described communication core central layer in described application layer。
5. system as claimed in claim 3, it is characterised in that described communication core central layer has second communication function interface, passes through to call described second communication function interface and realizes data interaction between described communication equipment layer and described communication core central layer。
6. the communication construction method between a multi-controller, it is characterised in that described method includes:
Source business module in application layer sends business datum to communication core central layer;
Described business datum is carried out sending communication logic process accordingly and obtains business data packet by described communication core central layer;
Communication equipment layer controls described business data packet via the target service module in communication line to other controller;
Wherein, described application layer includes the described source business module that other controller all and described communicates。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511009218.4A CN105704205A (en) | 2015-12-29 | 2015-12-29 | Communication frame system and method for multiple controllers |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511009218.4A CN105704205A (en) | 2015-12-29 | 2015-12-29 | Communication frame system and method for multiple controllers |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105704205A true CN105704205A (en) | 2016-06-22 |
Family
ID=56225972
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201511009218.4A Pending CN105704205A (en) | 2015-12-29 | 2015-12-29 | Communication frame system and method for multiple controllers |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105704205A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102739450A (en) * | 2012-06-29 | 2012-10-17 | 深圳市博瑞得科技有限公司 | Distributed platform framework of signaling monitoring system and processing method thereof |
CN102855143A (en) * | 2012-09-29 | 2013-01-02 | 南京国电南自轨道交通工程有限公司 | Universal communication frame in SCADA (supervisory control and data acquisition) system |
US20140185450A1 (en) * | 2012-12-28 | 2014-07-03 | Futurewei Technologies, Inc. | Apparatus for a High Performance and Highly Available Multi-Controllers in a Single SDN/OpenFlow Network |
CN105072037A (en) * | 2015-07-23 | 2015-11-18 | 北京航空航天大学 | Dynamic flow generating method for distributed SDN controllers |
-
2015
- 2015-12-29 CN CN201511009218.4A patent/CN105704205A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102739450A (en) * | 2012-06-29 | 2012-10-17 | 深圳市博瑞得科技有限公司 | Distributed platform framework of signaling monitoring system and processing method thereof |
CN102855143A (en) * | 2012-09-29 | 2013-01-02 | 南京国电南自轨道交通工程有限公司 | Universal communication frame in SCADA (supervisory control and data acquisition) system |
US20140185450A1 (en) * | 2012-12-28 | 2014-07-03 | Futurewei Technologies, Inc. | Apparatus for a High Performance and Highly Available Multi-Controllers in a Single SDN/OpenFlow Network |
CN105072037A (en) * | 2015-07-23 | 2015-11-18 | 北京航空航天大学 | Dynamic flow generating method for distributed SDN controllers |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Schmidt | A family of design patterns for applications-level gateways | |
CN109313623B (en) | Method and device for switching serial port data transmission state | |
CN1798105A (en) | Virtual multicast routing for a cluster having state synchronization | |
JPH01112839A (en) | Method of information transmission | |
JP2010231759A (en) | Mobile terminal device including mobile cloud platform | |
WO2007149745A4 (en) | Methods, systems and protocols for application to application communications | |
CN107547278B (en) | Device and method for interfacing OpenStack with enterprise virtualization environment | |
CN102546839B (en) | Efficient and reliable software distribution method for large scale network | |
CN104317661A (en) | Intersystem communication method and device of dual embedded systems | |
US20180262560A1 (en) | Method and system for transmitting communication data | |
CN103618590A (en) | Overtime control method and device of business processing process | |
CN102722377B (en) | Network video application processing system based on adaptive communication environment (ACE) framework | |
CN105528254A (en) | Business processing method and apparatus | |
US20130326541A1 (en) | Enabling legacy applications to achieve end-to-end communication with corresponding legacy device services | |
CN110995504B (en) | Micro-service node exception handling method, device and system | |
CN110430110B (en) | On-site bus gateway and protocol conversion method thereof | |
US20030088661A1 (en) | Method for constructing distributed software components | |
CN104320322A (en) | Message control method and equipment | |
CN105704205A (en) | Communication frame system and method for multiple controllers | |
US10893001B2 (en) | Method for coordinating access to a resource of a distributed computer system, computer system and computer program | |
CN104636206A (en) | Optimization method and device for system performance | |
KR20160083336A (en) | Apparatus and method for managing network module based on software defined network | |
CN115208920A (en) | Distributed Internet of things service unit | |
CN113992740A (en) | Middleware based on autonomous control and data transmission method | |
CN102932475A (en) | Software design framework of gateway for internet of things |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160622 |