CN102821055A - Method for inter-board communication - Google Patents

Method for inter-board communication Download PDF

Info

Publication number
CN102821055A
CN102821055A CN2012103312947A CN201210331294A CN102821055A CN 102821055 A CN102821055 A CN 102821055A CN 2012103312947 A CN2012103312947 A CN 2012103312947A CN 201210331294 A CN201210331294 A CN 201210331294A CN 102821055 A CN102821055 A CN 102821055A
Authority
CN
China
Prior art keywords
communication
plates
data
wireless controller
kernel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012103312947A
Other languages
Chinese (zh)
Other versions
CN102821055B (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.)
Beijing Autelan Technology Co ltd
Beijing Hua Xinaotian Network Technology Co ltd
Original Assignee
AUTELAN TECHNOLOGY Inc
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 AUTELAN TECHNOLOGY Inc filed Critical AUTELAN TECHNOLOGY Inc
Priority to CN201210331294.7A priority Critical patent/CN102821055B/en
Publication of CN102821055A publication Critical patent/CN102821055A/en
Application granted granted Critical
Publication of CN102821055B publication Critical patent/CN102821055B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A method for inter-board communication includes that a first application process in a first wireless controller board conducts application program custom format package on data which are transmitted to a second application process of a second wireless controller board and used for inter-board communication and transmits the packaged data to a first kernel. The first kernel conduct network socket package on the data transmitted by the first application process and adds attribute of network space used for inter-board communication. The first kernel finds an inter-board communication port between the first wireless controller board and the second wireless controller board according to aim internet protocol (IP) address in the packaged data. The first kernel compares the attribute of the network space used for inter-board communication and added in the packaged data with attribute of the network space and added in advance for the inter-board communication port. When the attributes of the network space are identical, the first kernel transmits the packaged data to the second wireless controller board through the inter-board communication port, and the second wireless controller board receives data transmitted by the first wireless controller board.

Description

The method of communication between plates
Technical field
The master control borad that the present invention relates to wireless controller is communicated by letter with the plate between the professional version, more particularly, relates to a kind of master control borad of wireless controller and plate method for communicating between the professional version of being used for.
Background technology
In the communications field, communication between plates is meant through certain technology realizes the communication between each integrated circuit board on the same equipment.Present prior art scheme, in the realization of communication between plates, the address that all need take a public network IP section is used for communication between plates.When communication between plates, scarcely use the IP agreement, or after using the IP agreement, the communication between plates data are carried out 2 encapsulation, the other problems that directly uses the IP agreement to bring such as avoid between AC business and plate professional port numbers to exist conflicting.
Fig. 1 is the sketch map of the method for a communication between plates of the prior art.
In the prior art, the communication between plates interface all uses the IP address field of a self-defined network segment, and takies the network segment of public network IP.
As shown in Figure 1, the first application process APP1 of wireless controller (AC) master control borad sends the data to the second application process APP2 of AC business board through the communication between plates process.
Specifically, the flow process of the communication between plates among Fig. 1 can comprise the steps:
Step 1: the first application process APP1 carries out application program customized format encapsulation (being the application data encapsulation) to the data that will send to the second application process APP2.
Step 2: the first application process APP1 delivers to the communication between plates process with packaged data.
Step 3:AC master control borad communication between plates process is carried out the encapsulation of application program customized format to the communication between plates data of the first application process APP1; Through (generally being to specify interface name in assigned ip address or the code in the configuration file after searching and navigate to the communication between plates interface; The communication between plates process reads communication between plates interface IP address), be sent to the communication between plates interface of AC business board through the IP agreement.As shown in Figure 1, the IP address of the communication between plates interface in the AC master control borad is 192.168.1.1/24, and the IP address of the communication between plates interface in the AC business board is 192.168.1.2/24.
Step 4:AC business board is sent into IP stack after receiving the communication between plates data from the AC master control borad.
The data that the IP stack of step 5:AC business board is sent the first application process APP1 are delivered to the communication between plates process of AC business board.
The communication between plates process of step 6:AC business board through the data of receiving being carried out application program after ordering the parsing of data format, is transmitted to the second application process APP2.
Fig. 2 is the sketch map of the method for another communication between plates of the prior art.
The flow process of the communication between plates among Fig. 2 can comprise the steps:
Step 1: the first application process APP1 carries out application program customized format encapsulation (being the application data encapsulation) to the data that will send to APP2.
Step 2: the first application process APP1 is sent to AC business board communication between plates interface through the communication between plates interface with other agreement (non-ip protocol, for example TIPC (transparent interprocess communication)) with packaged data.
After step 3:AC business board is received the communication between plates data from the AC master control borad, send into the protocol stack of other agreement.
After the data processing of the protocol stack of other agreements of step 4:AC business board with first application process APP1 transmission, the communication between plates data of the first application process APP1 are delivered to the second application process APP2.
Communication between plates scheme of the prior art like above description; The communication between plates interface need take the IP address field of a self-defined network segment; Therefore the outer net IP address of inserting AC can not re-use the IP address in this network segment, and this mode can easily not adapt to variety of network environments.Simultaneously; The service server end that AC is last; Basically all be the mode of binding arbitrary address+port numbers; If the certain server end between plate need use identical port numbers with service server end on the AC, with regard to having brought the problem of port collision, in order to address these problems; The process of communication between plates uses some other agreements to substitute IP agreement (for example TIPC agreement) mostly; Or after the IP agreement, carry out self-defining agreement and realize that encapsulation (the communication between plates uniform data is done agency's forwarding of data with an own communication between plates module that realizes, finally this module sends to data through the IP agreement communication module between the respective panels of Target Board) evades above problem, can bring decline for the transmission performances of data between plate like this or to making troubles during data between analysis plates.With the TIPC agreement is example, and stability and the performance of this agreement when message transmissions will be lower than the IP agreement.
Summary of the invention
The object of the present invention is to provide a kind of IP agreement of can directly using to carry out communication between plates, port collision do not occur and can not cause with the AC business interface.
To achieve these goals; A kind of method that is used for communication between plates is provided; Wherein, Second kernel in first kernel in the first wireless controller plate and the second wireless controller plate is respectively the attribute of first application process and second application process, communication between plates interface and the routing table configuration communication between plates cyberspace that is used for communication between plates in advance and stores; Said method comprises: first application process in the first wireless controller plate is carried out the encapsulation of application program customized format to the data that are used for communication between plates that will send to second application process, and the data after the encapsulation of application program customized format are sent to first kernel; First kernel is searched the attribute of the cyberspace at first application program place, the data that first application process is sent are carried out the web socket encapsulation, and the data after the web socket encapsulation is added the attribute of the cyberspace that is used for communication between plates; The communication between plates interface between the first wireless controller plate and the second wireless controller plate is found in purpose IP address in the data after first kernel encapsulates according to web socket; In the data of first kernel after with encapsulation the attribute of the communication between plates cyberspace of adding with compare for the attribute of the cyberspace of communication between plates interface interpolation in advance; When the attribute of cyberspace was identical, the data after first kernel will encapsulate sent to the second wireless controller plate via this communication between plates interface; The second wireless controller plate receives the data that the first controlled in wireless plate sends.
Preferably, the method that is used for communication between plates can also comprise: the second wireless controller plate is sent the data that the first controlled in wireless plate sends into IP stack; After IP stack is handled the data of sending, send to second application process of the second wireless controller plate.
Preferably; When any one cyberspace in mobile first application process and second application process, communication between plates interface and the routing table, check the attribute of cyberspace in first kernel and second in the first wireless controller plate and the second wireless controller plate and make amendment.
Description of drawings
Fig. 1 is the sketch map of the method for a communication between plates of the prior art;
Fig. 2 is the sketch map of the method for another communication between plates of the prior art;
Fig. 3 illustrates the sketch map of communication between plates according to an exemplary embodiment of the present invention;
Fig. 4 illustrates the flow chart of the method for communication between plates according to an exemplary embodiment of the present invention.
Embodiment
Now, describe embodiments of the invention in detail, its example representes that in the accompanying drawings wherein, identical label is represented identical parts all the time.Below through embodiment being described with reference to the drawings to explain the present invention.
In the technical scheme of the present invention, communication between plates and public network mailing address in two various network spaces, simultaneously IP address and routing forwarding at communication between plates with all independently of one another during public network is communicated by letter.
Through in kernel, each application process, routing table and the network equipment being added an attribute of distinguishing cyberspace, that each routing table and each network equipment in heterogeneous networks space is independent mutually.
Specifically, check the application process of carrying out communication between plates in and add the attribute of the cyberspace of user's communication between plates.When the packet of application process sends to kernel, kernel in this packet, add this packet from the attribute of cyberspace, for example, kernel adds the marker bit of cyberspace in this packet.If this packet is used for communication between plates, then in this packet, add the attribute of the cyberspace that is used for communication between plates.
Equally, check the network equipment (like the communication between plates interface) that is used for communication between plates in and add the attribute of the cyberspace that is used for communication between plates.In addition, check the routing table that is used for communication between plates in and add the attribute of the cyberspace that is used for communication between plates.
Therefore, through application processes, routing table and the network equipment attribute of cyberspace is set, application process directly across a network space visits, is provided with the network equipment and the routing table of other cyberspaces, reaches the complete independence of cyberspace like this.
Fig. 3 illustrates the sketch map of communication between plates according to an exemplary embodiment of the present invention.Fig. 4 illustrates the flow chart of the method for communication between plates according to an exemplary embodiment of the present invention.
As shown in Figure 3, the kernel in AC master control borad and the AC business board is respectively the attribute that the first application process APP1 and the second application process APP2, communication between plates interface and routing table are added the communication between plates cyberspace that is used for communication between plates in advance.As shown in Figure 3, the communication between plates cyberspace in the left side of Fig. 3 for being provided with, in the initial network space of right side for being provided with of Fig. 3, communication between plates cyberspace and initial network space are independent.
In addition, during any one cyberspace in moving the first application process APP1 and the second application process APP2, communication between plates interface and routing table, check the attribute of cyberspace in AC master control borad and the AC business board and make amendment.
Below with reference to Fig. 4 being described in detail to the method for communication between plates according to an exemplary embodiment of the present invention.
As shown in Figure 4; At step S41; The first application process APP1 in the AC master control borad carries out the encapsulation of application program customized format to the data that are used for communication between plates that will send to the second application process APP2, and the data after the encapsulation of application program customized format are sent to its kernel.
At step S42; Kernel in the AC master control borad is searched the attribute of the cyberspace at first application program place; Data to the first application process APP1 sends are carried out the web socket encapsulation, and the data after the web socket encapsulation are added the attribute of the cyberspace (being the communication between plates cyberspace) that is used for communication between plates.
At step S43, the communication between plates interface between AC master control borad and the AC business board is found in the purpose IP address in the data after the kernel in the AC master control borad encapsulates according to web socket.
At step S44, in the data of the kernel in the AC master control borad after with encapsulation the attribute of the communication between plates cyberspace of adding with compare for the attribute of the cyberspace of communication between plates interface interpolation in advance.
If confirm that at step S44 cyberspace is identical, then at step S45, the data after the kernel in the AC master control borad will encapsulate send to the AC business board via this communication between plates interface.
If confirm that at step S44 cyberspace is different, then kernel abandons these data and finishes this processing.
At step S46, the kernel in the AC business board receives the data that the AC master control borad sends, and these data are sent into IP stack.
At step S47, after the IP stack of AC business board was handled these data, the data after IP stack will be handled sent to the second application process APP2 of AC business board.
Therefore; Because AC plate communication between plates interface and AC business interface are in the various network space; Therefore their functions separately are independent of each other; And AC communication between plates cyberspace is not conflicted with the IP address interconnect between the AC master network space, and AC communication between plates cyberspace and AC master network space have separately independently routing table.
Although specifically shown and described the present invention with reference to embodiments of the invention; But it should be appreciated by those skilled in the art; Under the situation that does not break away from the spirit and scope of the present invention that are defined by the claims, can carry out the various changes on form and the details to it.

Claims (3)

1. method that is used for communication between plates; Wherein, Second kernel in first kernel in the first wireless controller plate and the second wireless controller plate is the attribute of first application process and second application process, communication between plates interface and the routing table configuration communication between plates cyberspace that is used for communication between plates and stores that said method comprises respectively in advance:
First application process in the first wireless controller plate is carried out the encapsulation of application program customized format to the data that are used for communication between plates that will send to second application process, and the data after the encapsulation of application program customized format are sent to first kernel;
First kernel is searched the attribute of the cyberspace at first application program place, the data that first application process is sent are carried out the web socket encapsulation, and the data after the web socket encapsulation is added the attribute of the cyberspace that is used for communication between plates;
The communication between plates interface between the first wireless controller plate and the second wireless controller plate is found in purpose IP address in the data after first kernel encapsulates according to web socket;
In the data of first kernel after with encapsulation the attribute of the communication between plates cyberspace of adding with compare for the attribute of the cyberspace of communication between plates interface interpolation in advance;
When the attribute of cyberspace was identical, the data after first kernel will encapsulate sent to the second wireless controller plate via this communication between plates interface;
The second wireless controller plate receives the data that the first controlled in wireless plate sends.
2. the method for claim 1 also comprises:
The second wireless controller plate is sent the data that the first controlled in wireless plate sends into IP stack;
After IP stack is handled the data of sending, send to second application process of the second wireless controller plate.
3. the method for claim 1; Wherein, When any one cyberspace in mobile first application process and second application process, communication between plates interface and the routing table, check the attribute of cyberspace in first kernel and second in the first wireless controller plate and the second wireless controller plate and make amendment.
CN201210331294.7A 2012-09-07 2012-09-07 Method for inter-board communication Active CN102821055B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210331294.7A CN102821055B (en) 2012-09-07 2012-09-07 Method for inter-board communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210331294.7A CN102821055B (en) 2012-09-07 2012-09-07 Method for inter-board communication

Publications (2)

Publication Number Publication Date
CN102821055A true CN102821055A (en) 2012-12-12
CN102821055B CN102821055B (en) 2014-12-31

Family

ID=47304916

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210331294.7A Active CN102821055B (en) 2012-09-07 2012-09-07 Method for inter-board communication

Country Status (1)

Country Link
CN (1) CN102821055B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104993959A (en) * 2015-06-29 2015-10-21 山东超越数控电子有限公司 Method for network communication between management board and business boards
CN105939365A (en) * 2015-06-29 2016-09-14 杭州迪普科技有限公司 Method and device for obtaining data from service panel kernel mode by main control panel user mode
CN105959198A (en) * 2015-12-01 2016-09-21 杭州迪普科技有限公司 Message transmission method and network device
WO2018149361A1 (en) * 2017-02-17 2018-08-23 中兴通讯股份有限公司 Method implementing out-of-band management, device, and data storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100260181A1 (en) * 2008-01-08 2010-10-14 Hangzhou H3C Technologies Co., Ltd. Method, program, and system for implementing centralized control plane and distributed data plane
CN101867520A (en) * 2010-06-12 2010-10-20 迈普通信技术股份有限公司 Method for exchanging data between board cards in distribution type system
CN101986594A (en) * 2010-11-18 2011-03-16 中兴通讯股份有限公司 Method and device for realizing communication between single boards

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100260181A1 (en) * 2008-01-08 2010-10-14 Hangzhou H3C Technologies Co., Ltd. Method, program, and system for implementing centralized control plane and distributed data plane
CN101867520A (en) * 2010-06-12 2010-10-20 迈普通信技术股份有限公司 Method for exchanging data between board cards in distribution type system
CN101986594A (en) * 2010-11-18 2011-03-16 中兴通讯股份有限公司 Method and device for realizing communication between single boards

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104993959A (en) * 2015-06-29 2015-10-21 山东超越数控电子有限公司 Method for network communication between management board and business boards
CN105939365A (en) * 2015-06-29 2016-09-14 杭州迪普科技有限公司 Method and device for obtaining data from service panel kernel mode by main control panel user mode
CN105939365B (en) * 2015-06-29 2019-03-15 杭州迪普科技股份有限公司 Master control borad User space obtains the method and device of data from business intralaminar nuclei state
CN105959198A (en) * 2015-12-01 2016-09-21 杭州迪普科技有限公司 Message transmission method and network device
CN105959198B (en) * 2015-12-01 2019-05-07 杭州迪普科技股份有限公司 Message transmitting method and the network equipment
WO2018149361A1 (en) * 2017-02-17 2018-08-23 中兴通讯股份有限公司 Method implementing out-of-band management, device, and data storage medium

Also Published As

Publication number Publication date
CN102821055B (en) 2014-12-31

Similar Documents

Publication Publication Date Title
CN104185969B (en) PROFINET Ethernet Adaptation Units
CN101207604B (en) Virtual machine system and communication processing method thereof
CN101409670B (en) Management component transport protocol interconnect filtering and routing
CN114365464B (en) Method, equipment and system for forwarding message in SR network
EP3175602A2 (en) Server for device location registration in an internet of things (iot)
CN102055637B (en) Wide band network system and realizing method thereof
CN103051737A (en) Providing network capability over a converged interconnect fabric
JP6540283B2 (en) Communication apparatus, communication method, and communication program
CN106688277A (en) Efficient centralized resource and schedule management in time slotted channel hopping networks
CN104253840A (en) Device for implementing communication among varieties of security carriers and communication method thereof
WO2011106984A1 (en) Method for transmitting data in parallel by mobile terminal and mobile terminal thereof
CN101022464A (en) Method and system for obtaining Internet protocol address and establishing operation maintenance link
CN104584640A (en) Layer 2 address management in 3 address only capable access points in networks with relays
WO2017040922A1 (en) Enhanced neighbor discovery for communication networks
CN105323229A (en) CPE-based data transmission method, network element, platform and system
CN102821055A (en) Method for inter-board communication
CN107005430A (en) A kind of communication means based on data link layer, equipment and system
CN104202313A (en) Data forwarding method and gateway
CN111182611B (en) Communication method and device
CN105450585A (en) Information transmission method and device
CN102546407A (en) Message sending method and device
CN108206783A (en) Address configuration method and its device in a kind of software defined network system
CN105827496B (en) Manage the method and device of PE equipment
CN102025598A (en) Method for updating local mapping table of access router, and local access router
WO2016119269A1 (en) Service data stream data packet processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 100193 Beijing city Haidian District Dongbeiwang West Road No. 8 Zhongguancun Software Park Building 5 Building 2 layer Hanvon Technology

Applicant after: BEIJING AUTELAN TECHNOLOGY Co.,Ltd.

Address before: 100085 Beijing city Haidian District Dongbeiwang West Road No. 8 Zhongguancun Software Park Building 5 Building 2 layer Hanvon Technology

Applicant before: Beijing AUTELAN Technology Co.,Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: AUTELAN TECHNOLOGY INC. TO: BEIJING AUTELAN TECHNOLOGY CO., LTD.

C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
C56 Change in the name or address of the patentee
CP03 Change of name, title or address

Address after: 100193, No. 1, building three, zone 9, Zhongguancun Software Park, 8 West Wang Xi Road, Beijing, Haidian District

Patentee after: Beijing AUTELAN Technology Co.,Ltd.

Address before: Beijing City, Haidian District China Dongbeiwang West Road No. 8 Zhongguancun Software Park Building 5 Building 2 layer Hanvon Technology

Patentee before: BEIJING AUTELAN TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right

Effective date of registration: 20151117

Address after: 100085 Beijing, East Road, No. 1, building on the north side of the building, room 313, room 3

Patentee after: Beijing Hua Xinaotian network technology Co.,Ltd.

Address before: 100193, No. 1, building three, zone 9, Zhongguancun Software Park, 8 West Wang Xi Road, Beijing, Haidian District

Patentee before: Beijing AUTELAN Technology Co.,Ltd.