WO2013056569A1 - Method and device for communication between boards - Google Patents

Method and device for communication between boards Download PDF

Info

Publication number
WO2013056569A1
WO2013056569A1 PCT/CN2012/077678 CN2012077678W WO2013056569A1 WO 2013056569 A1 WO2013056569 A1 WO 2013056569A1 CN 2012077678 W CN2012077678 W CN 2012077678W WO 2013056569 A1 WO2013056569 A1 WO 2013056569A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication
channel
main control
control board
optimal channel
Prior art date
Application number
PCT/CN2012/077678
Other languages
French (fr)
Chinese (zh)
Inventor
刘亮
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2013056569A1 publication Critical patent/WO2013056569A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • G06F15/163Interprocessor communication
    • G06F15/17Interprocessor communication using an input/output type connection, e.g. channel, I/O port

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and communication device for inter-board communication. Background technique
  • the communication device is usually composed of a main control board and a plurality of service boards.
  • the service boards are connected to the main control board and are registered on the main control board during startup.
  • the main control board and the service board are connected through communication channels. The information is exchanged.
  • the main control board sends a command to the service board.
  • the service board responds to the main control board or reports status information.
  • the technical problem to be solved by the present invention is to provide a method and a communication device for communication between boards, so that the device can meet different practical application scenarios.
  • the present invention provides a method for inter-board communication.
  • the method includes: the main control board and the service board select an optimal channel by using a negotiated communication mode, and perform communication by using the selected optimal channel.
  • the main control board and the service board select an optimal channel by using a negotiated communication manner, including the following steps:
  • the main control board initiates the communication mode negotiation on the service board.
  • the service board supports the communication mode supported by the service board.
  • the main control board selects the optimal channel according to the communication mode supported by the service board and responds to the service board.
  • the board's response selects the optimal channel.
  • the present invention further provides a communication device, which includes a main control board and at least one service board, and further includes: the main control board and the service board select the most through negotiation communication A channel negotiation module of the excellent channel, and a communication module for communicating using the optimal channel.
  • the communication module includes a first communication module located on the main control board and a second communication module located on the service board;
  • the channel negotiation module includes a sending unit, a response unit, and a first selection unit located on the main control board, and is located in the service a reporting unit and a second selecting unit on the board, where: the sending unit is configured to initiate a communication mode negotiation command to the service board; the first selecting unit is configured to select an optimal channel according to the communication mode supported by the service board; The unit is used to answer the service board;
  • the reporting unit is configured to report the communication mode supported by the service board, and the second selection unit is configured to select an optimal channel according to the response of the response unit.
  • the communication mode between the main control board and the service board can be determined according to the actual environment configuration, thereby improving the flexibility of the system application and adapting to various actual environment requirements.
  • FIG. 1 is a flowchart of a method for communication between boards according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a method for communicating between a new main control board and a new service board according to Embodiment 3 of the present invention
  • FIG. 3 is a schematic structural diagram of a communication device according to Embodiment 4 of the present invention. detailed description
  • the core idea of the present invention is that the main control board and the service board negotiate a communication mode, and the communication is performed by using an optimal channel.
  • FIG. 1 is a flowchart of a method for communication between boards according to the embodiment.
  • the main control board initiates a communication mode negotiation with the service board.
  • the main control board sends a communication mode negotiation command to the service board to initiate communication mode negotiation.
  • the negotiation message is fixed to the original communication channel.
  • the main control board sends a negotiation command at a fixed time interval, and initiates negotiation at a time.
  • Step 102 The service board supports the communication mode supported by the service board;
  • the service board After receiving the communication mode negotiation command, the service board reports its supported communication mode, indicating that it supports the new communication mode or only supports the original communication mode.
  • the negotiation packet is also fixed to the original communication channel.
  • Step 103 The main control board selects an optimal channel according to the communication mode reported on the service card.
  • the main control board selects the optimal communication mode according to the communication mode reported on the service card and the communication mode supported by the service board: If the board supports multiple communication modes, the optimal channel is selected as the communication channel, and the communication channel currently used is determined to be the optimal channel. If not, the communication mode with the service board is switched to the optimal channel.
  • the optimal channel is a communication channel with a wide bandwidth and a high rate.
  • the main control board and the service board support the two communication modes of the HDLC communication mode and the UDP communication mode, and the communication channel supporting the UDP communication mode is For the optimal channel, select the communication channel that supports UDP communication as the optimal channel.
  • Step 104 The main control board responds to the service board.
  • the communication mode supported by the optimal channel or its own is answered to the service board.
  • the negotiation packet is also fixed to the original communication channel.
  • Step 105 The service board selects an optimal channel according to the response of the main control board.
  • the main control board answers the optimal channel, it is judged whether the currently used communication mode is the optimal communication mode. If not, the communication channel with the main control board is switched to the optimal channel.
  • the service board selects the optimal channel as the communication mode with the main control board. Then, it is further determined whether the currently used communication mode is the optimal communication mode, and if not, the communication channel with the main control board is switched to the optimal channel.
  • Steps 101 to 105 above are the steps of negotiating the communication channel between the main control board and the service board.
  • the main control board and the service board select the optimal channel by negotiation.
  • Step 106 The main control board and the service board communicate using the optimal channel.
  • the communication channel is negotiated in the process of step 101 to step 105, and when the new main control board cooperates with the old service board.
  • the service board can also report the communication mode that it supports.
  • the main control board initiates the communication mode negotiation with the service board.
  • the two parties use the default default communication mode to negotiate the communication channel.
  • the old main control board does not initiate a communication mode negotiation command to the service board.
  • the two parties use the default default communication mode to negotiate the communication channel.
  • the communication mode between the main control board and the service board can be determined according to the actual environment configuration, thereby improving the flexibility of the system application and adapting to various actual environment requirements.
  • an SDH (Synchronous Digital Hierarchy) device is used as an example.
  • the communication channel between SDH device boards can usually be HDLC (High level Data).
  • Link Control, Advanced Data Link Control) channel and UDP (User Data Protocol) channel the HDLC channel supports HDLC communication mode
  • the UDP channel supports UDP communication mode
  • RUDP Reliable User Data
  • the RUDP channel supports RUDP communication mode. It is assumed that the SDH device board uses only the HDLC channel for communication. Since the device adds the ASON (Automatically Switched Optical Network) function, communication through the HDLC channel alone cannot meet the communication requirements.
  • the control board adds UDP channels.
  • Step 101 The main control board periodically sends a communication mode negotiation command to the service board to initiate communication mode negotiation.
  • Step 102 After receiving the communication mode negotiation command, the service board reports the communication mode supported by the service board, indicating that it supports the UDP communication mode (new service board) or only supports the original HDLC communication mode (the old service board);
  • the main control board selects the optimal channel according to the communication mode supported by the service board:
  • the UDP channel is selected as the communication channel, and the current channel is further determined. Whether the channel used by the service board is a UDP channel. If not, the communication channel with the service board is switched to the UDP channel. If at least one of the main control board and the service board does not support the UDP communication mode, Select HDLC channel, then you do not need to switch channels;
  • Step 104 ′ the main control board responds to the supported communication mode or the optimal channel to the service board;
  • Step 105 ′ the service board selects the optimal channel according to the response of the main control board:
  • the service board When the main control board responds to the supported communication mode, the service board is on the main control board and itself.
  • UDP communication mode is supported, UDP is selected as the communication mode with the main control board, and it is further determined whether the currently used communication mode is the UDP communication mode. If not, the communication mode with the main control board is switched to the UDP communication mode. In the case that the main control board and at least one of them do not support the UDP communication mode, the HDLC communication mode is still selected, and there is no need to switch the communication channel.
  • the main control board When the main control board answers the optimal channel, it directly determines whether the currently used communication mode is the optimal channel (UDP channel or HDLC channel). If not, then switch the communication mode with the main control board to the optimal channel. Otherwise you do not need to switch the communication channel.
  • the optimal channel UDP channel or HDLC channel
  • all the foregoing negotiation messages are fixed to the HDLC channel.
  • the main control board and the service board select the optimal channel through negotiation, the main control board and the service board use the optimal channel to communicate.
  • the service board may not report the communication mode supported by the service board.
  • the main control board is sent to the service board. After sending the communication mode negotiation command, both parties use the default default communication mode.
  • the method for inter-board communication of the SDH device in this embodiment satisfies the application requirements of the SDH device to meet different environment configurations.
  • FIG. 2 is a flow chart of a method for negotiating between the new main control board and the new service board according to the embodiment, including The following steps:
  • Step 201 The main control board initiates a communication mode negotiation command to the service board.
  • Step 202 The service board reports the new communication mode supported by the service board.
  • Step 203 The main control board determines whether the communication channel currently used by the service board is a communication channel that supports the new communication mode. If not, step 204 is performed. If yes, step 205 is performed; Step 204, the main control board will communicate The channel is switched to the communication channel that supports the new communication mode. Step 205: The main control board sends the communication mode or the optimal channel to the service board. Step 206: The service board determines whether the currently used communication channel is a communication channel that supports the new communication mode. If not, step 207 is performed, and if yes, the negotiation process ends;
  • Step 207 The service board switches the communication channel to a communication channel that supports the new communication mode.
  • the communication mode between the main control board and the service board is negotiated, and the optimal channel is selected for communication, thereby satisfying the application requirements of the SDH device to meet different environmental configurations.
  • FIG. 3 is a schematic structural diagram of a communication device according to Embodiment 4, where the communication device includes a main control board 31 and at least one service board 32, and further includes a negotiation between the main control board 31 and the service board 32.
  • the communication module 34 includes a first communication module 310 located on the main control board 31 and a second communication module 320 located on the service board 32;
  • the channel negotiation module 33 includes: a sending unit 311, a first selecting unit 312, and a answering module 313 on the main control board 31, and a reporting unit 321 and a second selecting unit 322 on the service board 32, where:
  • the sending unit 311 is configured to initiate a communication mode negotiation command to the service board 32.
  • the first selection unit 312 is configured to select an optimal channel according to the communication mode supported by the service board 32.
  • the response unit 313 is configured to respond to the service board 32.
  • the reporting unit 321 is configured to report the communication mode supported by the service board 32, and the second selection unit 322 is configured to select an optimal channel according to the response of the response unit 313.
  • the first selecting unit 312 further includes:
  • a first selection subunit configured to select an optimal channel according to the communication manner reported by the reporting unit 321;
  • a first determining subunit configured to determine a communication channel currently used by the second communication module 320 Whether it is the optimal channel
  • the second selecting unit 322 further includes:
  • a second selection subunit configured to select an optimal channel according to a communication mode or an optimal channel supported by the main control board 31 that the response unit 313 answers;
  • a second determining subunit configured to determine whether the communication channel currently used by the first communication module 310 is the optimal channel
  • the second switching subunit is configured to switch the communication channel with the first communication module 310 to the optimal channel when it is determined that the communication channel with the first communication module 310 is not the optimal channel.
  • the application requirements of the communication device satisfying different environment configurations are satisfied.
  • the method for inter-board communication provided by the present invention is also applicable to a Wavelength Division Multiplexing (WDM) device.
  • WDM Wavelength Division Multiplexing

Abstract

Disclosed are a method and a device for communication between boards. The method comprises: a main control board and a service board selecting an optimal channel in a negotiation communication manner and performing communication by using the selected optimal channel. Through the method and the device of the present invention, a communication manner between the main control board and the service board can be decided according to an actual environment configuration condition, thereby improving the flexibility of the system application and adapting to various actual environment requirements.

Description

一种板间通信的方法及通信设备 技术领域  Method and communication device for communication between boards
本发明涉及通信领域, 特别涉及一种板间通信的方法及通信设备。 背景技术  The present invention relates to the field of communications, and in particular, to a method and communication device for inter-board communication. Background technique
通信设备通常由主控板及多块业务单板组成, 业务单板都与主控板相 连, 且在启动时在主控板上注册, 主控板与业务单板之间通过通信通道来 实现信息交互, 主控板向业务单板下发命令, 业务单板向主控板应答命令 或者上报状态信息。  The communication device is usually composed of a main control board and a plurality of service boards. The service boards are connected to the main control board and are registered on the main control board during startup. The main control board and the service board are connected through communication channels. The information is exchanged. The main control board sends a command to the service board. The service board responds to the main control board or reports status information.
在实际使用中存在这样的问题: 之前主控板与业务单板之间只做一个 通信通道就能满足应用需求, 而随着业务的增加, 需要增加新的通信通道 才能满足新业务需求, 不同的通信通道支持不同的通信方式。 因此, 实际 应用中存在这么几种配合情况: 新主控板和新业务单板、 新主控板和旧业 务单板、 旧主控板和新业务单板。 如何有效地管理多个通道, 不影响新旧 版本的兼容性, 又不影响设备的其他功能, 是一个需要解决的问题。 发明内容  In actual use, there is such a problem: Before the main control board and the service board only make one communication channel to meet the application requirements, as the service increases, a new communication channel needs to be added to meet the new service requirements. The communication channel supports different communication methods. Therefore, there are several types of cooperation in the actual application: the new main control board and the new service board, the new main control board and the old business board, the old main control board, and the new business board. How to effectively manage multiple channels without affecting the compatibility of new and old versions without affecting other functions of the device is a problem that needs to be solved. Summary of the invention
本发明要解决的技术问题是提供一种板间通信的方法和通信设备, 使 得该设备可以满足不同的实际应用场景。  The technical problem to be solved by the present invention is to provide a method and a communication device for communication between boards, so that the device can meet different practical application scenarios.
根据本发明的一方面,本发明提供了一种板间通信的方法,该方法包括: 主控板和业务单板通过协商通信方式选择最优通道, 利用选出的最优通道 进行通信。  According to an aspect of the present invention, the present invention provides a method for inter-board communication. The method includes: the main control board and the service board select an optimal channel by using a negotiated communication mode, and perform communication by using the selected optimal channel.
优选地, 主控板和业务单板通过协商通信方式选择最优通道, 包括以 下步驟: 主控板向业务单板发起通信方式协商; 业务单板上报自身支持的通信 方式; 主控板根据业务单板支持的通信方式选择最优通道, 并应答业务单 板; 业务单板根据主控板的应答选择最优通道。 Preferably, the main control board and the service board select an optimal channel by using a negotiated communication manner, including the following steps: The main control board initiates the communication mode negotiation on the service board. The service board supports the communication mode supported by the service board. The main control board selects the optimal channel according to the communication mode supported by the service board and responds to the service board. The board's response selects the optimal channel.
根据本发明的另一方面,本发明还提供了一种通信设备, 该通信设备包 括主控板和至少一个业务单板, 还包括, 用于主控板和业务单板通过协商 通信方式选择最优通道的通道协商模块, 以及用于利用最优通道进行通信 的通信模块。  According to another aspect of the present invention, the present invention further provides a communication device, which includes a main control board and at least one service board, and further includes: the main control board and the service board select the most through negotiation communication A channel negotiation module of the excellent channel, and a communication module for communicating using the optimal channel.
优选地, 通信模块包括位于主控板的第一通信模块和位于业务单板的 第二通信模块; 通道协商模块包括位于主控板上的发送单元、 应答单元和 第一选择单元, 以及位于业务单板上的上报单元和第二选择单元, 其中: 发送单元用于向所述业务单板发起通信方式协商命令; 第一选择单元 用于根据业务单板支持的通信方式选择最优通道; 应答单元用于应答业务 单板;  Preferably, the communication module includes a first communication module located on the main control board and a second communication module located on the service board; the channel negotiation module includes a sending unit, a response unit, and a first selection unit located on the main control board, and is located in the service a reporting unit and a second selecting unit on the board, where: the sending unit is configured to initiate a communication mode negotiation command to the service board; the first selecting unit is configured to select an optimal channel according to the communication mode supported by the service board; The unit is used to answer the service board;
上报单元用于上报所述业务单板支持的通信方式、 第二选择单元用于 根据应答单元的应答选择最优通道。  The reporting unit is configured to report the communication mode supported by the service board, and the second selection unit is configured to select an optimal channel according to the response of the response unit.
采用本发明的实施例, 可以根据实际环境配置情况来决定主控板与业 务单板间的通信方式, 从而提高了系统应用的灵活性, 适应了各种实际环 境的需求。 附图说明  According to the embodiment of the present invention, the communication mode between the main control board and the service board can be determined according to the actual environment configuration, thereby improving the flexibility of the system application and adapting to various actual environment requirements. DRAWINGS
图 1是本发明实施例一提供的一种板间通信的方法流程图;  1 is a flowchart of a method for communication between boards according to Embodiment 1 of the present invention;
图 2是本发明实施例三提供的一种新主控板与新业务单板间通信的方 法流程图;  2 is a flowchart of a method for communicating between a new main control board and a new service board according to Embodiment 3 of the present invention;
图 3是本发明实施例四提供的一种通信设备的结构示意图。 具体实施方式 FIG. 3 is a schematic structural diagram of a communication device according to Embodiment 4 of the present invention. detailed description
为了使本发明所要解决的技术问题、 技术方案及有益效果更加清楚、 明白, 以下结合附图和实施例, 对本发明进行进一步详细说明。 应当理解, 此处所描述的具体实施例仅仅用以解释本发明, 并不用于限定本发明。  The present invention will be further described in detail below with reference to the accompanying drawings and embodiments in order to make the present invention. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明的核心思想是主控板和业务单板协商通信方式, 利用最优通道 进行通信。  The core idea of the present invention is that the main control board and the service board negotiate a communication mode, and the communication is performed by using an optimal channel.
实施例一  Embodiment 1
如图 1所示是本实施例提供的一种单板间通信的方法流程图, 图中; 步驟 101、 主控板向业务单板发起通信方式协商;  FIG. 1 is a flowchart of a method for communication between boards according to the embodiment. In the figure, the main control board initiates a communication mode negotiation with the service board.
主控板向业务单板发送通信方式协商命令, 发起通信方式协商, 协商 报文固定走原有通信通道。  The main control board sends a communication mode negotiation command to the service board to initiate communication mode negotiation. The negotiation message is fixed to the original communication channel.
优选地, 主控板在固定时间间隔发送协商命令, 定时发起协商。  Preferably, the main control board sends a negotiation command at a fixed time interval, and initiates negotiation at a time.
步驟 102、 业务单板上报其支持的通信方式;  Step 102: The service board supports the communication mode supported by the service board;
业务单板收到通信方式协商命令后, 上报其支持的通信方式, 表示其 支持新的通信方式或只支持原有通信方式, 该协商报文也固定走原有通信 通道。  After receiving the communication mode negotiation command, the service board reports its supported communication mode, indicating that it supports the new communication mode or only supports the original communication mode. The negotiation packet is also fixed to the original communication channel.
步驟 103、 主控板根据业务单板上报的通信方式选择最优通道; 主控板根据业务单板上报的通信方式并结合自身支持的通信方式选择 最优通信方式: 如果主控板和业务单板都支持多种通信方式, 则选择最优 通道作为通信通道, 并进一步判断当前使用的通信通道是不是该最优通道, 如果不是, 则切换与业务单板的通信方式到最优通道。  Step 103: The main control board selects an optimal channel according to the communication mode reported on the service card. The main control board selects the optimal communication mode according to the communication mode reported on the service card and the communication mode supported by the service board: If the board supports multiple communication modes, the optimal channel is selected as the communication channel, and the communication channel currently used is determined to be the optimal channel. If not, the communication mode with the service board is switched to the optimal channel.
其中, 所述最优通道为带宽宽、 速率高的通信通道, 例如, 主控板和 业务单板都支持 HDLC通信方式和 UDP通信方式这两种通信方式,则支持 UDP通信方式的通信通道为最优通道,选择支持 UDP通信方式的通信通道 作为最优通道。 步驟 104、 主控板应答业务单板; The optimal channel is a communication channel with a wide bandwidth and a high rate. For example, the main control board and the service board support the two communication modes of the HDLC communication mode and the UDP communication mode, and the communication channel supporting the UDP communication mode is For the optimal channel, select the communication channel that supports UDP communication as the optimal channel. Step 104: The main control board responds to the service board.
主控板选择了最优通道之后, 将最优通道或者自身支持的通信方式应 答给业务单板, 该协商报文也固定走原有通信通道。  After the main control board selects the optimal channel, the communication mode supported by the optimal channel or its own is answered to the service board. The negotiation packet is also fixed to the original communication channel.
步驟 105、 业务单板根据主控板的应答选择最优通道;  Step 105: The service board selects an optimal channel according to the response of the main control board.
当主控板应答为最优通道的情况下, 判断当前实际使用的通信方式是 否是该最优通信方式, 如果不是, 则切换与主控板的通信通道到最优通道。  When the main control board answers the optimal channel, it is judged whether the currently used communication mode is the optimal communication mode. If not, the communication channel with the main control board is switched to the optimal channel.
当主控板应答为其支持的通信方式的情况下, 如果主控板和业务单板 都支持两种通信方式, 则业务单板选择最优通道作为与主控板的通信方式。 然后进一步判断当前实际使用的通信方式是否是该最优通信方式, 如果不 是, 则切换与主控板的通信通道到最优通道。  If the main control board and the service board support the two communication modes, the service board selects the optimal channel as the communication mode with the main control board. Then, it is further determined whether the currently used communication mode is the optimal communication mode, and if not, the communication channel with the main control board is switched to the optimal channel.
以上步驟 101 ~步驟 105为主控板和业务单板协商通信通道的步驟,即 主控板和业务单板通过协商通信方式分别选择最优通道的步驟。  Steps 101 to 105 above are the steps of negotiating the communication channel between the main control board and the service board. The main control board and the service board select the optimal channel by negotiation.
步驟 106、 主控板和业务单板利用最优通道进行通信。  Step 106: The main control board and the service board communicate using the optimal channel.
当然, 本实施例中, 也可以只在当新主控板与新的业务单板配合时采 用步驟 101 ~步驟 105的流程协商通信通道,而当新主控板与旧的业务单板 配合时, 业务单板也可以不上报其支持的通信方式, 执行完步驟 101之后, 即主控板向业务单板发起通信方式协商之后, 双方使用缺省的默认通信方 式协商通信通道; 当旧主控板与新的业务单板配合时, 旧主控板不向业务 单板发起通信方式协商命令, 双方使用缺省的默认通信方式协商通信通道。  Of course, in this embodiment, when the new main control board cooperates with the new service board, the communication channel is negotiated in the process of step 101 to step 105, and when the new main control board cooperates with the old service board. The service board can also report the communication mode that it supports. After the step 101 is executed, the main control board initiates the communication mode negotiation with the service board. The two parties use the default default communication mode to negotiate the communication channel. When the board is configured with a new service board, the old main control board does not initiate a communication mode negotiation command to the service board. The two parties use the default default communication mode to negotiate the communication channel.
采用本发明的实施例, 可以根据实际环境配置情况来决定主控板与业 务单板间的通信方式, 从而提高了系统应用的灵活性, 适应了各种实际环 境的需求。  According to the embodiment of the present invention, the communication mode between the main control board and the service board can be determined according to the actual environment configuration, thereby improving the flexibility of the system application and adapting to various actual environment requirements.
实施例二  Embodiment 2
本实施例中以 SDH ( Synchronous Digital Hierarchy, 同步数字系列)设 备为例, SDH设备板间的通信通道通常可以采用 HDLC ( High level Data Link Control, 高级数据链路控制 )通道和 UDP ( User Data Protocol, 用户 数据包协议 )通道, 所述 HDLC通道支持 HDLC通信方式, 所述 UDP通 道支持 UDP通信方式, 也可以采用 RUDP ( Reliable User Data Protocol, 用 户数据包协议 )通道, 所述 RUDP通道支持 RUDP通信方式。假设 SDH设 备板间最初仅采用 HDLC 通道进行通信, 由于所述设备新增 ASON ( Automatically Switched Optical Network, 自动交换光网络)功能, 仅通过 HDLC 通道进行通信已不能满足通信要求, 因此新设计的主控板增加了 UDP通道, 相对于 HDLC通道, UDP通道具有带宽宽、 速率高等特点, 可 以较好满足带宽及速率需求。 因此在实际应用场景中就有新主控板与新的 业务单板配合以及新主控板与旧的业务单板如何配合问题, 本实施例中, 主控板和业务单板通过协商通信方式分别选择最优通道包括以下步驟: 步驟 101' 、主控板周期性地向业务单板发送通信方式协商命令,发起 通信方式协商; In this embodiment, an SDH (Synchronous Digital Hierarchy) device is used as an example. The communication channel between SDH device boards can usually be HDLC (High level Data). Link Control, Advanced Data Link Control) channel and UDP (User Data Protocol) channel, the HDLC channel supports HDLC communication mode, the UDP channel supports UDP communication mode, and RUDP (Reliable User Data) Protocol, User Datagram Protocol) channel, the RUDP channel supports RUDP communication mode. It is assumed that the SDH device board uses only the HDLC channel for communication. Since the device adds the ASON (Automatically Switched Optical Network) function, communication through the HDLC channel alone cannot meet the communication requirements. The control board adds UDP channels. Compared with HDLC channels, UDP channels have wide bandwidth and high speed, which can better meet bandwidth and speed requirements. Therefore, in the actual application scenario, the new main control board cooperates with the new service board, and the new main control board and the old service board cooperate with each other. In this embodiment, the main control board and the service board negotiate the communication mode. Selecting the optimal channel separately includes the following steps: Step 101: The main control board periodically sends a communication mode negotiation command to the service board to initiate communication mode negotiation.
步驟 102' 、 业务单板收到通信方式协商命令后, 上报其支持的通信方 式, 表示其支持 UDP通信方式(新业务单板 )或只支持原有 HDLC通信方 式(旧业务单板);  Step 102: After receiving the communication mode negotiation command, the service board reports the communication mode supported by the service board, indicating that it supports the UDP communication mode (new service board) or only supports the original HDLC communication mode (the old service board);
步驟 103' 、 主控板根据业务单板支持的通信方式选择最优通道: 在主控板和业务单板都支持 UDP通信方式的情况下, 选择 UDP通道 作为通信的通道, 并进一步判断当前与该业务单板使用的通道是否为 UDP 通道, 如果不是, 则切换与业务单板的通信通道到 UDP通道; 在主控板和 该业务单板至少一者不支持 UDP通信方式的情况下,仍然选择 HDLC通道, 这时不需要切换通道;  In the step 103', the main control board selects the optimal channel according to the communication mode supported by the service board: When the main control board and the service board support the UDP communication mode, the UDP channel is selected as the communication channel, and the current channel is further determined. Whether the channel used by the service board is a UDP channel. If not, the communication channel with the service board is switched to the UDP channel. If at least one of the main control board and the service board does not support the UDP communication mode, Select HDLC channel, then you do not need to switch channels;
步驟 104' 、 主控板应答其支持的通信方式或者最优通道给业务单板; 步驟 105' 、 业务单板根据当主控板的应答选择最优通道:  Step 104 ′, the main control board responds to the supported communication mode or the optimal channel to the service board; Step 105 ′, the service board selects the optimal channel according to the response of the main control board:
当主控板应答的是支持的通信方式时, 在业务单板在主控板和自身都 支持 UDP通信方式情况下, 选择 UDP作为与主控板的通信方式, 进一步 判断当前使用的通信方式是否为 UDP通信方式, 如果不是, 则切换与主控 板的通信方式到 UDP通信方式。 在主控板和自身至少一者不支持 UDP通 信方式情况下, 仍然选择 HDLC通信方式, 这时不需要切换通信通道。 When the main control board responds to the supported communication mode, the service board is on the main control board and itself. When the UDP communication mode is supported, UDP is selected as the communication mode with the main control board, and it is further determined whether the currently used communication mode is the UDP communication mode. If not, the communication mode with the main control board is switched to the UDP communication mode. In the case that the main control board and at least one of them do not support the UDP communication mode, the HDLC communication mode is still selected, and there is no need to switch the communication channel.
当主控板应答的是最优通道时, 直接判断当前使用的通信方式是否为 最优通道(UDP通道或者 HDLC通道), 如果不是, 则切换与主控板的通 信方式到该最优通道, 否则不需要切换通信通道。  When the main control board answers the optimal channel, it directly determines whether the currently used communication mode is the optimal channel (UDP channel or HDLC channel). If not, then switch the communication mode with the main control board to the optimal channel. Otherwise you do not need to switch the communication channel.
优选地, 上述所有协商报文固定走 HDLC通道。  Preferably, all the foregoing negotiation messages are fixed to the HDLC channel.
主控板和业务单板通过协商通信方式分别选择最优通道之后, 主控板 和业务单板利用最优通道进行通信。  After the main control board and the service board select the optimal channel through negotiation, the main control board and the service board use the optimal channel to communicate.
同理, 本实施例中, 当新主控板与旧的业务单板配合时, 业务单板也 可以不上报其支持的通信方式,执行完步步驟 10 之后, 即主控板向业务 单板发送通信方式协商命令之后, 双方使用缺省的默认通信方式。  Similarly, in this embodiment, when the new main control board is configured with the old service board, the service board may not report the communication mode supported by the service board. After the step 10 is executed, the main control board is sent to the service board. After sending the communication mode negotiation command, both parties use the default default communication mode.
通过本实施例的 SDH设备板间通信的方法, 满足了 SDH设备满足不 同环境配置情况下的应用需求。  The method for inter-board communication of the SDH device in this embodiment satisfies the application requirements of the SDH device to meet different environment configurations.
实施例三  Embodiment 3
为了更好的说明主控板与业务单板间的通信方式切换问题, 如图 2所 示是本实施例提供的一种新主控板与新业务单板间通道协商的方法流程 图, 包括以下步驟:  In order to better illustrate the problem of the communication mode switching between the main control board and the service board, as shown in FIG. 2 is a flow chart of a method for negotiating between the new main control board and the new service board according to the embodiment, including The following steps:
步驟 201、 主控板向业务单板发起通信方式协商命令;  Step 201: The main control board initiates a communication mode negotiation command to the service board.
步驟 202、 业务单板上报其支持的新通信方式;  Step 202: The service board reports the new communication mode supported by the service board.
步驟 203、主控板判断当前与业务单板使用的通信通道是否是支持新的 通信方式的通信通道, 如果否, 则执行步驟 204, 如果是, 执行步驟 205; 步驟 204、 主控板将通信通道切换到支持新的通信方式的通信通道; 步驟 205、 主控板向业务单板发送其支持的通信方式或者最优通道, 步驟 206、业务单板判断当前使用的通信通道是否是支持新的通信方式 的通信通道, 如果否, 则执行步驟 207, 如果是, 协商流程结束; Step 203: The main control board determines whether the communication channel currently used by the service board is a communication channel that supports the new communication mode. If not, step 204 is performed. If yes, step 205 is performed; Step 204, the main control board will communicate The channel is switched to the communication channel that supports the new communication mode. Step 205: The main control board sends the communication mode or the optimal channel to the service board. Step 206: The service board determines whether the currently used communication channel is a communication channel that supports the new communication mode. If not, step 207 is performed, and if yes, the negotiation process ends;
步驟 207、 业务单板将通信通道切换到支持新的通信方式的通信通道。 通过上述设计步驟, 实现了主控板与业务单板协商通信方式, 选择最 优通道进行通信, 从而满足了 SDH设备满足不同环境配置情况下的应用需 求。  Step 207: The service board switches the communication channel to a communication channel that supports the new communication mode. Through the above design steps, the communication mode between the main control board and the service board is negotiated, and the optimal channel is selected for communication, thereby satisfying the application requirements of the SDH device to meet different environmental configurations.
实施例四  Embodiment 4
如图 3 所示是本实施例四提供的一种通信设备结构示意图; 该通信设 备包括主控板 31和至少一个业务单板 32, 还包括, 用于主控板 31和业务 单板 32协商通信方式的通道协商模块 33 ,以及用于利用最优通道进行通信 的通信模块 34。  FIG. 3 is a schematic structural diagram of a communication device according to Embodiment 4, where the communication device includes a main control board 31 and at least one service board 32, and further includes a negotiation between the main control board 31 and the service board 32. A channel negotiation module 33 of the communication mode, and a communication module 34 for communicating using the optimal channel.
通信模块 34包括位于主控板 31的第一通信模块 310和位于业务单板 32的第二通信模块 320;  The communication module 34 includes a first communication module 310 located on the main control board 31 and a second communication module 320 located on the service board 32;
通道协商模块 33包括: 位于主控板 31上的发送单元 311、 第一选择单 元 312和应答模块 313 , 以及位于业务单板 32上的上报单元 321和第二选 择单元 322, 其中:  The channel negotiation module 33 includes: a sending unit 311, a first selecting unit 312, and a answering module 313 on the main control board 31, and a reporting unit 321 and a second selecting unit 322 on the service board 32, where:
发送单元 311用于向业务单板 32发起通信方式协商命令; 第一选择单 元 312用于根据业务单板 32支持的通信方式选择最优通道; 应答单元 313 用于应答业务单板 32;  The sending unit 311 is configured to initiate a communication mode negotiation command to the service board 32. The first selection unit 312 is configured to select an optimal channel according to the communication mode supported by the service board 32. The response unit 313 is configured to respond to the service board 32.
上报单元 321用于上报所述业务单板 32支持的通信方式、 第二选择单 元 322用于根据应答单元 313的应答选择最优通道。  The reporting unit 321 is configured to report the communication mode supported by the service board 32, and the second selection unit 322 is configured to select an optimal channel according to the response of the response unit 313.
优选地, 第一选择单元 312还包括:  Preferably, the first selecting unit 312 further includes:
第一选择子单元, 用于根据上报单元 321 上报的通信方式选择最优通 道;  a first selection subunit, configured to select an optimal channel according to the communication manner reported by the reporting unit 321;
第一判断子单元, 用于判断当前与第二通信模块 320使用的通信通道 是否是该最优通道; a first determining subunit, configured to determine a communication channel currently used by the second communication module 320 Whether it is the optimal channel;
第一切换子单元, 用于判断出当前与第二通信模块 320使用的通信通 道不是该最优通道时, 切换与第二通信模块 320的通信通道到最优通道; 优选地, 应答单元 313具体用于: 将主控板 31支持的通信方式或最优 通道应答给业务单板 32。 优选地, 第二选择单元 322还包括:  a first switching subunit, configured to: when the communication channel currently used by the second communication module 320 is not the optimal channel, switch the communication channel with the second communication module 320 to the optimal channel; preferably, the response unit 313 is specific It is used to: send the communication mode or the optimal channel supported by the main control board 31 to the service board 32. Preferably, the second selecting unit 322 further includes:
第二选择子单元, 用于根据应答单元 313应答的主控板 31支持的通信 方式或最优通道选择最优通道;  a second selection subunit, configured to select an optimal channel according to a communication mode or an optimal channel supported by the main control board 31 that the response unit 313 answers;
第二判断子单元, 用于判断当前与第一通信模块 310使用的通信通道 是否是该最优通道;  a second determining subunit, configured to determine whether the communication channel currently used by the first communication module 310 is the optimal channel;
第二切换子单元, 用于在判断出当前与第一通信模块 310 的通信通道 不是该最优通道时, 切换与第一通信模块 310的通信通道到最优通道。  The second switching subunit is configured to switch the communication channel with the first communication module 310 to the optimal channel when it is determined that the communication channel with the first communication module 310 is not the optimal channel.
通过本实施例的通信设备, 满足了通信设备满足不同环境配置情况下 的应用需求。  With the communication device of this embodiment, the application requirements of the communication device satisfying different environment configurations are satisfied.
本发明提供的单板间通信的方法也适用于波分复用 ( Wavelength Division Multiplexing, WDM )设备。  The method for inter-board communication provided by the present invention is also applicable to a Wavelength Division Multiplexing (WDM) device.
上述说明示出并描述了本发明的一个优选实施例, 但如前所述, 应当 理解本发明并非局限于本文所披露的形式, 不应看作是对其他实施例的排 除, 而可用于各种其他组合、 修改和环境, 并能够在本文所述发明构想范 围内, 通过上述教导或相关领域的技术或知识进行改动。 而本领域人员所 进行的改动和变化不脱离本发明的精神和范围, 则都应在本发明所附权利 要求的保护范围内。  The above description shows and describes a preferred embodiment of the present invention, but as described above, it should be understood that the present invention is not limited to the forms disclosed herein, and should not be construed as Other combinations, modifications, and environments are possible and can be modified by the teachings or related art or knowledge within the scope of the inventive concept described herein. All changes and modifications made by those skilled in the art are intended to be within the scope of the appended claims.

Claims

权利要求书 Claim
1、 一种板间通信的方法, 其特征在于, 所述方法包括:  A method for communication between boards, characterized in that the method comprises:
主控板和业务单板通过协商通信方式选择最优通道;  The main control board and the service board select the optimal channel through negotiation and communication.
利用选出的最优通道进行通信。  Communicate using the selected optimal channel.
2、 根据权利要求 1所述的方法, 其特征在于, 所述主控板和业务单板 通过协商通信方式选择最优通道, 为:  2. The method according to claim 1, wherein the main control board and the service board select an optimal channel by means of a negotiated communication manner, which is:
所述主控板向所述业务单板发起通信方式协商;  The main control board initiates a communication mode negotiation to the service board.
所述业务单板上报自身支持的通信方式;  The service board reports the communication mode supported by itself;
所述主控板根据所述业务单板支持的通信方式选择最优通道, 并应答 所述业务单板;  The main control board selects an optimal channel according to the communication mode supported by the service board, and responds to the service board;
所述业务单板根据主控板的应答选择最优通道。  The service board selects an optimal channel according to the response of the main control board.
3、 根据权利要求 2所述的方法, 其特征在于, 所述主控板根据业务单 板支持的通信方式选择最优通道, 为:  The method according to claim 2, wherein the main control board selects an optimal channel according to a communication mode supported by the service board, which is:
当所述主控板和所述业务单板都支持多种通信方式时, 从所述多种通 信方式中选择一个最优通道;  When the main control board and the service board support multiple communication modes, selecting an optimal channel from the multiple communication modes;
判定当前使用的通信通道不是所述最优通道时, 将当前使用的通道切 换为所述最优通道。  When it is determined that the currently used communication channel is not the optimal channel, the currently used channel is switched to the optimal channel.
4、 根据权利要求 2的所述的方法, 其特征在于, 所述主控板应答业务 单板, 为:  4. The method according to claim 2, wherein the main control board responds to the service board, and is:
所述主控板将主控板支持的通信方式或所述最优通道应答给所述业务 单板。  The main control board sends the communication mode supported by the main control board or the optimal channel to the service board.
5、 根据权利要求 2的所述的方法, 其特征在于, 所述业务单板根据主 控板的应答选择最优通道, 为:  The method according to claim 2, wherein the service board selects an optimal channel according to the response of the main control board, which is:
当所述主控板应答为所述最优通道时, 且所述业务单板当前使用的通 信通道不是所述最优通道时, 将当前使用的的通信通道切换为最优通道; 或者, When the main control board responds to the optimal channel, and the communication channel currently used by the service board is not the optimal channel, the currently used communication channel is switched to an optimal channel; or,
当所述主控板应答为所述主控板支持的通信方式时, 且所述业务单板 判定自身支持所述通信方式时, 从所述通信方式选择一个最优通道;  When the main control board responds to the communication mode supported by the main control board, and the service board determines that the communication mode is supported by itself, an optimal channel is selected from the communication mode;
判定当前使用的通信通道不是所述最优通道时, 将当前使用的通信通 道切换为所述最优通道。  When it is determined that the currently used communication channel is not the optimal channel, the currently used communication channel is switched to the optimal channel.
6、 根据权利要求 1至 5任一项所述的方法, 其特征在于, 所述方法适 用于 SDH设备。  6. Method according to any one of claims 1 to 5, characterized in that the method is suitable for SDH equipment.
7、 一种通信设备, 包括主控板和至少一个业务单板, 其特征在于, 所 述通信设备还包括:  A communication device, comprising: a main control board and at least one service board, wherein the communication device further comprises:
用于所述主控板和所述业务单板通过协商通信方式选择最优通道的通 道协商模块, 以及利用选出的最优通道进行通信的通信模块。  A channel negotiation module for selecting an optimal channel by using the negotiated communication mode between the main control board and the service board, and a communication module for performing communication by using the selected optimal channel.
8、 根据权利要求 7所述的通信设备, 其特征在于, 所述通信模块包括 位于所述主控板的第一通信模块和位于所述业务单板的第二通信模块; 所述通道协商模块包括位于所述主控板上的发送单元、 应答单元和第 一选择单元, 以及位于所述业务单板上的上报单元和第二选择单元; 其中, 所述发送单元, 用于向所述业务单板发起通信方式协商命令; 所述第 一选择单元, 用于根据所述业务单板支持的通信方式选择最优通道; 所述 应答单元, 用于应答所述业务单板;  The communication device according to claim 7, wherein the communication module comprises a first communication module located on the main control board and a second communication module located on the service board; the channel negotiation module The sending unit, the answering unit, and the first selecting unit, and the reporting unit and the second selecting unit, are located on the main control board, and the sending unit is configured to send the service The board initiates a communication mode negotiation command; the first selection unit is configured to select an optimal channel according to the communication mode supported by the service board; and the response unit is configured to respond to the service board;
所述上报单元, 用于上报所述业务单板支持的通信方式、 所述第二选 择单元, 用于根据应答单元的应答选择最优通道。  The reporting unit is configured to report a communication mode supported by the service board, and the second selection unit is configured to select an optimal channel according to the response of the response unit.
9、 根据权利要求 8所述的通信设备, 其特征在于, 所述第一选择单元 包括:  The communication device according to claim 8, wherein the first selection unit comprises:
第一选择子单元, 用于根据所述上报单元上报的通信方式选择最优通 道;  a first selection subunit, configured to select an optimal channel according to the communication manner reported by the reporting unit;
第一判断子单元, 用于判断当前使用的通道是否是该最优通道; 第一切换子单元, 用于判断出当前使用的通道不是该最优通道时, 将 当前使用的通信通道切换为最优通道。 a first determining subunit, configured to determine whether the currently used channel is the optimal channel; The first switching subunit is configured to switch the currently used communication channel to an optimal channel when it is determined that the currently used channel is not the optimal channel.
10、 根据权利要求 8所述的通信设备, 其特征在于, 所述应答单元具 体用于: 将所述主控板支持的通信方式或所述最优通道应答给所述业务单 板。  The communication device according to claim 8, wherein the response unit is configured to: send the communication mode supported by the main control board or the optimal channel to the service board.
11、 根据权利要求 8 所述的通信设备, 其特征在于, 所述第二选择单 元包括:  The communication device according to claim 8, wherein the second selection unit comprises:
第二选择子单元, 用于根据所述应答单元应答的所述主控板支持的通 信方式或最优通道选择最优通道;  a second selection subunit, configured to select an optimal channel according to a communication mode or an optimal channel supported by the main control board that is answered by the response unit;
第二判断子单元, 用于判断当前使用的通信通道是否是所述最优通道; 第二切换子单元, 用于在判断出当前使用的通信通道不是所述最优通 道时, 将当前使用的的通信通道切换为最优通道。  a second determining subunit, configured to determine whether the currently used communication channel is the optimal channel; and a second switching subunit, configured to: when it is determined that the currently used communication channel is not the optimal channel, The communication channel is switched to the optimal channel.
12、 根据权利要求 7至 11任一项所述的通信设备, 其特征在于, 所述 通信设备为 SDH设备。  The communication device according to any one of claims 7 to 11, wherein the communication device is an SDH device.
PCT/CN2012/077678 2011-10-21 2012-06-27 Method and device for communication between boards WO2013056569A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110323820.0 2011-10-21
CN2011103238200A CN103067430A (en) 2011-10-21 2011-10-21 Method and equipment for communication between boards

Publications (1)

Publication Number Publication Date
WO2013056569A1 true WO2013056569A1 (en) 2013-04-25

Family

ID=48109889

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/077678 WO2013056569A1 (en) 2011-10-21 2012-06-27 Method and device for communication between boards

Country Status (2)

Country Link
CN (1) CN103067430A (en)
WO (1) WO2013056569A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108243440B (en) * 2016-12-26 2020-11-20 大唐移动通信设备有限公司 Inter-board rate switching method and device
CN107547953B (en) * 2017-09-25 2020-05-19 烽火通信科技股份有限公司 Method for realizing inter-board communication in PON system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080249895A1 (en) * 2007-01-26 2008-10-09 Andrea Mariotti Consumer preference driven negotiation apparatus, system, and method
CN101321028A (en) * 2008-07-02 2008-12-10 中兴通讯股份有限公司 Communication method and system between photo-timing transmission equipment master control board and business single plate

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3829853B2 (en) * 2004-03-31 2006-10-04 三菱電機株式会社 Image sensor
CN101030903A (en) * 2006-03-03 2007-09-05 南京艾迪恩斯数字技术有限公司 System for accessing, monitoring and exchanging network video
CN1983957A (en) * 2006-04-14 2007-06-20 华为技术有限公司 Method and system for transmitting network element managing information

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080249895A1 (en) * 2007-01-26 2008-10-09 Andrea Mariotti Consumer preference driven negotiation apparatus, system, and method
CN101321028A (en) * 2008-07-02 2008-12-10 中兴通讯股份有限公司 Communication method and system between photo-timing transmission equipment master control board and business single plate

Also Published As

Publication number Publication date
CN103067430A (en) 2013-04-24

Similar Documents

Publication Publication Date Title
TWI339042B (en) Communication methods and apparatus relating to cooperative and non-cooperative modes of operation
WO2019101020A1 (en) Multi-terminal collaborative working method, terminal device and multi-terminal collaborative system
EP2720418B1 (en) Lacp link switching and data transmission method and device
BRPI0818262B1 (en) mobile communication device and method of sharing content between a first wireless communication device and a second wireless communication device
WO2015051701A1 (en) Method for realizing multi-channel concurrent internet accessing by synchronizing wifi with apn network, and automatically choosing wifi networking preferentially
CN101009588B (en) Method and system for configuring the distributed proxy server information
CN110944311B (en) Method for distributing time slot of wireless earphone and wireless earphone adopting same
CN107852682B (en) Method and apparatus for determining synchronization reference
KR20090035691A (en) A system and method for inter-working in a multi protocol revision based evolution data only/evolution data optimized (evdo) communication systems
US20100128599A1 (en) Telephone system, gateway for telephone system, and redundancy switching method
JP6315199B2 (en) Wireless communication system, host device and cordless communication device
JP2010154159A (en) Call control system, call controller, terminal, and call control method
US7860090B2 (en) Method for processing LMP packets, LMP packet processing unit and LMP packet processing node
WO2013056569A1 (en) Method and device for communication between boards
CN107786441B (en) Communication method, OpenFlow switch and communication system
CN108495369A (en) A kind of method of channel management and device
JP4286626B2 (en) Push gateway server, wireless terminal device, wireless packet control system, and computer program therefor.
EP2573987A1 (en) Method for label distribution in multi-topology
JP2007181233A (en) Communication system selecting method, communication system selecting apparatus and communication system selecting program
JP5722171B2 (en) COMMUNICATION SYSTEM, ACCESS POINT, SERVER DEVICE, AND COMMUNICATION CONTROL METHOD
JP2007208722A (en) Dtm communication apparatus and method
US20230142251A1 (en) Flexible Ethernet Flexe Automatic Configuration Method and Apparatus
CN103166922A (en) Call request processing method, system and device in peer to peer overlay network
WO2023124494A1 (en) Network switching processing method and apparatus, computer readable medium and electronic device
JP4027378B2 (en) Wireless communication apparatus and wireless communication method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12841874

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12841874

Country of ref document: EP

Kind code of ref document: A1