WO2015154433A1 - Line card management method and system - Google Patents

Line card management method and system Download PDF

Info

Publication number
WO2015154433A1
WO2015154433A1 PCT/CN2014/089447 CN2014089447W WO2015154433A1 WO 2015154433 A1 WO2015154433 A1 WO 2015154433A1 CN 2014089447 W CN2014089447 W CN 2014089447W WO 2015154433 A1 WO2015154433 A1 WO 2015154433A1
Authority
WO
WIPO (PCT)
Prior art keywords
line card
inter
board
control board
communication message
Prior art date
Application number
PCT/CN2014/089447
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 WO2015154433A1 publication Critical patent/WO2015154433A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/34Signalling channels for network management communication

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a CPU-free line card management method and system.
  • the product equipment system structure usually adopts the star system architecture, that is, the star system.
  • the central node is the main control unit, and the other nodes are the service line card units.
  • the I2C interface between the boards is used to complete the communication between the boards. That is, the network management server sends the query configuration command to the main control board. After the main control board processes the board, the main control board passes the I2C interface. It is sent to the line card, and then processed by the CPU (Central Processing Unit) chip of the line card, and converted into a line card operation.
  • CPU Central Processing Unit
  • the inter-board I2C interface usually uses IPMBL and I2C as the bus mode, and its maximum rate is 400 kbps.
  • the line card needs to be configured, the line card is in the slave mode; when the alarm is reported, the line card is in the master mode.
  • the online card supports both the master and slave modes, when multiple line cards are working at the same time, the conflict on the I2C bus is serious, the real-time alarm becomes worse, and packet loss may occur.
  • the embodiment of the invention provides a line card management method and system, which can reduce the hardware cost of the line card to at least solve the problem of serious conflict on the I2C bus in the related art.
  • the present invention provides a line card management method, including:
  • the main control board establishes a communication connection with at least one line card through an Ethernet interface
  • the master control board manages the at least one line card by using an inter-board communication message based on the Ethernet interface.
  • the step of managing, by the master control board, the at least one line card by using an inter-board communication message based on the Ethernet interface includes:
  • the master card After the line card agent is started, the master card encapsulates the command information with the destination MAC address and the source MAC address in the first inter-board communication message when receiving the command from the upper-layer application.
  • the main control board sends the first inter-board communication message to the specified line card.
  • the step of managing, by the master control board, the at least one line card by using an inter-board communication message is further:
  • the line card parses the first inter-board communication message, and extracts a message request type
  • the line card generates a corresponding request signal according to the message request type
  • the line card converts the corresponding request signal into a corresponding bus operation.
  • the step of converting the corresponding request signal into a corresponding bus operation by the line card comprises:
  • the line card converts the request signal into a write command of the bus
  • the line card converts the request signal into a read command of the bus, and encapsulates the information obtained by the read command into a second inter-board communication message and returns the information to the main control board.
  • the step of managing, by the master control board, the at least one line card by using an inter-board communication message is further:
  • the master control board extracts valid data from the second inter-board communication message
  • the master control board encapsulates the extracted valid data into an S-port message and reports it to the upper-layer application.
  • the step of managing, by the master control board, the at least one line card by using an inter-board communication message is further:
  • the line card After the online card is powered on, the line card reports the packet type message to the main control board.
  • the master board determines whether the board type message reported by the line card conforms to a pre-configured format, and if so, starts the line card agent.
  • the embodiment of the present invention further provides a line card management system, including: a main control board and at least one line card; wherein:
  • the master control board is configured to establish a communication connection with the at least one line card through an Ethernet interface; and manage the at least one line card by using an inter-board communication message based on the Ethernet interface;
  • the at least one line card is configured to interact with the main control board through the inter-board communication message based on the Ethernet interface.
  • the main control board is further configured to, after the line card agent is started, encapsulate the issued command information, together with the destination MAC address and the source MAC address, into the first inter-board communication, when receiving the command issued by the upper layer application.
  • the first inter-board communication message is sent to the specified line card.
  • the line card is further configured to receive the first inter-board communication message sent by the main control board; parse the first inter-board communication message, and extract a message request type; Determining the message request type, generating a corresponding request signal; converting the corresponding request signal into a corresponding bus operation.
  • the line card is further configured to convert the request signal into a write command of the bus when the request signal is a configuration command; and convert the request signal into a read command of the bus when the request signal is a query command
  • the information obtained by the execution of the read command is encapsulated into a second inter-board communication message and returned to the main control board.
  • the main control board is further configured to receive a second inter-board communication message sent by the line card; extract valid data from the second inter-board communication message; and encapsulate the extracted valid data into S-port packet is reported to the upper-layer application.
  • the line card is further configured to report a board type message to the main control board after being powered on;
  • the main control board is further configured to determine whether the board type message reported by the line card conforms to a pre-configured format, and if so, the line card agent is started.
  • the main control board establishes a communication connection with the line card through the Ethernet interface, and manages the line card through the inter-board communication message based on the Ethernet interface, thereby solving The management problem of no CPU line card on the line card can reduce the hardware cost of the line card.
  • the communication between the boards is completed through the Ethernet interface, and the Ethernet interface is full-duplex. A serious conflict on the I2C bus.
  • FIG. 1 is a schematic flow chart of an embodiment of a line card management method according to the present invention.
  • FIG. 2 is a schematic flowchart of managing the at least one line card by using an inter-board communication message based on the Ethernet interface in the embodiment of the line card management method of the present invention
  • FIG. 3 is another schematic flowchart of managing the at least one line card by using an inter-board communication message based on the Ethernet interface in the embodiment of the line card management method of the present invention
  • FIG. 4 is a schematic flowchart of still another process of managing, by the main control board, the at least one line card by using an inter-board communication message according to the Ethernet interface in the embodiment of the line card management method of the present invention
  • FIG. 5 is a schematic diagram of still another flow chart of managing, by the main control board, the at least one line card through the inter-board communication message according to the Ethernet interface in the embodiment of the line card management method of the present invention
  • FIG. 6 is a schematic structural diagram of an embodiment of a line card management system according to the present invention.
  • FIG. 7 is a schematic diagram of a specific architecture of an embodiment of a line card management system according to the present invention.
  • FIG. 8 is a schematic diagram showing the internal structure of a line card control center unit of a line card in the embodiment of the line card management system of the present invention.
  • the solution of the embodiment of the present invention is mainly: the main control board establishes a communication connection with the line card through the Ethernet interface, and manages the line card through the inter-board communication message based on the Ethernet interface, thereby solving the problem on the line card.
  • the management problem of the CPU line card can reduce the hardware cost of the line card.
  • the communication between the boards is completed through the Ethernet interface, and the Ethernet interface is in full-duplex mode, which solves the serious conflict on the I2C bus. problem.
  • an embodiment of the present invention provides a line card management method, including:
  • Step S101 The main control board establishes a communication connection with at least one line card through an Ethernet interface.
  • a cable card agent is set on the main control board.
  • the main control board receives the command from the upper-layer application to implement operation management such as performance monitoring, alarm, and configuration of the line card.
  • the start of the line card agent can be implemented by the line card timing report type message.
  • the line card periodically reports the packet type message to the main control board.
  • the main control board determines whether the format is the same as the pre-defined format type according to the received board type message. If the line card is consistent, the line card agent is started. Therefore, the main control board of the Ethernet interface establishes a communication connection with the line card.
  • the line card agent After the online card agent is started, if the board type message received by the line card is not received within the specified time range, the line card agent is stopped.
  • Step S102 The main control board manages the at least one line card by using an inter-board communication message based on the Ethernet interface.
  • the main control board manages the at least one line card by using an inter-board communication message based on the Ethernet interface, and may include:
  • Step S1021 After the line card agent is started, the main control board encapsulates the issued command information, together with the destination MAC address and the source MAC address, into the first inter-board communication message, when receiving the command sent by the upper-layer application;
  • the main control board responds to the command issued by the upper application through the line card agent.
  • the master control board encapsulates the issued command information into the payload of the first inter-board communication packet, and adds the destination MAC address and source MAC address to the inter-board communication packet.
  • Step S1022 The main control board sends the first inter-board communication message to the specified line card.
  • the main control board sends the first inter-board communication message to the line card specified by the destination MAC address.
  • the main control board is configured to use the inter-board communication message according to the Ethernet interface.
  • the method may further include:
  • Step S1023 the line card receives the first inter-board communication message sent by the main control board
  • Step S1024 the line card parses the first inter-board communication message, and extracts a message request type.
  • Step S1025 The line card generates a corresponding request signal according to the message request type.
  • Step S1026 the line card converts the corresponding request signal into a corresponding bus operation.
  • the line card receives the first inter-board communication message sent by the main control board, parses the first inter-board communication message, and extracts a message request type; and generates according to the message request type.
  • Corresponding request signal; converting the corresponding request signal into a corresponding bus operation, and the bus operation is used to cooperate or query the line card information.
  • the step of converting the corresponding request signal into a corresponding bus operation by the line card includes:
  • the line card converts the request signal into a write command of the bus
  • the line card converts the request signal into a read command of the bus, and encapsulates the information obtained by the read command into a second inter-board communication message and returns the information to the main control board.
  • the type of the line card parsing request command when the request command is a configuration type, convert the configuration command and the valid data into a write enable signal, an address, and a data of the bus; when the request command is a query type, the query command and The valid data is converted into the read enable signal and address of the bus, waiting for the bus to read back the data; and then the return data is transferred to the main control board.
  • the main control board is configured to use the inter-board communication message according to the Ethernet interface.
  • the method may further include:
  • Step S1027 The main control board receives the second inter-board communication message sent by the line card.
  • Step S1028 The master control board extracts valid data from the second inter-board communication message.
  • step S1029 the main control board encapsulates the extracted valid data into an S-port message and reports it to the upper-layer application.
  • the main control board After receiving the second inter-board communication packet sent by the line card, the main control board extracts the destination MAC address, the VLAN value, and the valid data content from the packet; The MAC address and the VLAN value are used to determine whether the packet is an inter-board communication packet.
  • the valid data is encapsulated into an internal S-port packet. Then, the internal S-port packet is reported to the upper-layer application at a regular time.
  • the main control board is configured to use the inter-board communication message according to the Ethernet interface.
  • the method may further include:
  • Step S1019 After the online card is powered on, the line card reports the packet type message to the main control board.
  • step S1020 the main control board determines whether the board type message reported by the line card conforms to a pre-configured format, and if so, starts the line card agent.
  • the start of the line card agent is implemented by the line card timing report board type message. After the online card is powered on, the line card periodically reports the packet type message to the main control board. The main control board determines whether the format is the same as the pre-defined format type according to the received board type packet. Line card agent.
  • the line card agent After the online card agent is started, if the board type message received by the line card is not received within the specified time range, the line card agent is stopped.
  • the main control board establishes a communication connection with the line card through the Ethernet interface, and manages the line card through the inter-board communication message based on the Ethernet interface, thereby solving the problem that the line card has no CPU line card.
  • the management problem can also reduce the hardware cost of the line card.
  • the communication between the boards is completed through the Ethernet interface, and the Ethernet interface is a full-duplex mode, which solves the serious conflict problem on the I2C bus.
  • a preferred embodiment of the present invention provides a line card management system, including: a main control board 201 and at least one line card 202; wherein:
  • the main control board 201 is configured to establish a communication connection with the at least one line card 202 through an Ethernet interface; and manage the at least one line card 202 by using an inter-board communication message based on the Ethernet interface. ;
  • the at least one line card 202 is configured to interact with the main control board 201 through the inter-board communication message based on the Ethernet interface.
  • the main control board 201 is further configured to, after the line card 202 agent is started, the command information is sent to the first board together with the destination MAC address and the source MAC address when the command of the upper layer application is received.
  • the first inter-board communication message is sent to the designated line card 202.
  • the line card 202 is further configured to receive the first inter-board communication message sent by the main control board 201; parse the first inter-board communication message, and extract a message request type; The message request type generates a corresponding request signal; and converts the corresponding request signal into a corresponding bus operation.
  • the line card 202 is further configured to convert the request signal into a write command of the bus when the request signal is a configuration command; when the request signal is a query command, convert the request signal into a read command of the bus, and The information obtained by the read command is encapsulated into a second inter-board communication message and returned to the main control board 201.
  • the main control board 201 is further configured to receive the second inter-board communication message sent by the line card 202; extract valid data from the second inter-board communication message; and encapsulate the extracted valid data into the S port. The message is reported to the upper application.
  • the line card 202 is further configured to report a board type message to the main control board 201 after being powered on;
  • the main control board 201 is further configured to determine whether the board type message reported by the line card 202 conforms to a pre-configured format, and if so, activate the line card 202 agent.
  • the line card agent After the online card agent is started, if the board type message reported by the line card 202 is not received in the specified time range, the line card agent is stopped.
  • the management system of the CPU line card 202 is not provided.
  • the main control board 201 and the line card 202 establish a communication connection through the Ethernet interface, and manage the line card 202 through the inter-board communication message based on the Ethernet interface, thereby solving the problem.
  • the management problem of the CPU card 202 is not supported on the line card 202, and the hardware cost of the line card 202 can be reduced.
  • the communication between the boards is completed through the Ethernet interface, and the Ethernet interface is in full duplex mode. Solve the serious conflict problem on the I2C bus.
  • corresponding units can be set on the main control board and the line card to complete the corresponding functions.
  • the details are as follows:
  • the line card agent unit mainly completes the initiation and reporting of inter-board communication messages.
  • the cross unit completes the line card agent unit to initiate the exchange of inter-board communication messages to the line card transmission; at the same time, the inter-board communication message sent by the line card is forwarded to the line card agent unit.
  • the line card control center unit completes the response and response of the inter-board communication message.
  • receiving inter-board communication messages parsing the message content, extracting valid request information, and converting the request information in the message into a request signal; and, at the same time, encapsulating the information of the request signal response to the board in the sending direction
  • the communication message is sent to the master control board.
  • the interface conversion unit is configured to convert the request signal of the line card control center unit into a bus operation.
  • Step 1 The main control board line card agent unit responds to the upper layer application command, and then initiates the inter-board communication message of the management line card; at the same time, receives the inter-board communication message that the line card answers, and then reports to the upper layer application processing.
  • the receiving cross unit forwards the inter-board communication message to the line card agent unit.
  • the proxy line card program receives the inter-board communication message outputted by the cross-unit, and after receiving the inter-board communication message, extracts the destination MAC address, the VLAN value, and the valid data content from the packet; and then according to the destination MAC address and the VLAN value.
  • the interpreter is an inter-board communication message. When the inter-board communication message is received, the valid data is encapsulated into an internal S-port message, and then the internal S-port message is reported to the upper-layer application at a regular time.
  • Step 2 The interworking unit of the main control board and the line card forwards the inter-board communication message of the main control board and the line card.
  • the inter-board communication packet initiated by the line card agent is forwarded to the destination line card.
  • the inter-board communication packet sent by the line card is forwarded to the line card agent unit of the main control board.
  • the cross unit receives the inter-board communication message outputted in step 1, and finds the destination line card according to the destination MAC address of the inter-board communication message; and then forwards the inter-board communication message to the destination line card port for transmission. At the same time, the inter-board communication message sent by each line card is received, and then the message is transmitted to the line card agent unit of step 1.
  • Step 3 The line card control center unit of the line card receives the inter-board communication message initiated by the main control board line card agent unit; parses the message valid request information, and outputs the request information to the interface conversion unit; meanwhile, the interface is The response information returned by the switch is encapsulated into the inter-board communication packet, and then the packet is sent to the main control board.
  • the cross-unit Receiving the inter-board communication message forwarded by the cross-unit, parsing the content of the message, extracting the message request type, generating a corresponding request signal according to the request type, and outputting the request signal to the interface conversion unit. At the same time, the receiving interface conversion unit responds to the information. The response information is encapsulated into an inter-board communication message, and the encapsulated message is sent to the cross-unit.
  • the message termination unit In the receiving direction, the message termination unit, the request message buffer unit, the active query information generating unit, and the request scheduling unit are included.
  • the message termination unit receives the inter-board communication message of step 2.
  • the valid information is extracted from the inter-board communication message, and the extracted valid information is buffered to the request message buffer unit, waiting for the request to move the unit. Request permission information.
  • the scheduling unit is requested to pass the rotation training scheduling mode, and the rotation training responds to the inter-board communication message request and actively queries the information request; and then outputs the valid request command to the interface conversion unit.
  • the flow control message generating unit In the sending direction, the flow control message generating unit, the response information buffering unit, the response scheduling unit, and the message initiating unit are included.
  • the response information buffering unit receives the response information returned by the interface conversion unit, buffers the response information, and outputs a data valid signal to the response scheduling unit.
  • the response scheduling unit determines the data valid signal of the flow control message generating unit and the data valid signal of the response information buffer unit by the rotation training, and transmits the response information to the message sending unit.
  • the message sending unit encapsulates the valid data transmitted by the response scheduling unit into the effective payload of the inter-board communication message according to the type and the message format; and then transmits the message to the cross unit.
  • Step 4 The interface conversion unit of the line card converts the line card control center unit output request signal into a general bus command.
  • the configuration command is converted into a write command of the bus.
  • the command is queried as a read command of the bus; at the same time, the read and acquired information is output to the line card control center unit.
  • the interface conversion unit receives the request signal command outputted in step 3, and parses the type of the request command.
  • the request command is a configuration type
  • the configuration command and the valid data are converted into a write enable signal, an address and a data of the bus
  • the request command is a query type
  • the query command and the valid data are converted into a read enable signal of the bus, Address; wait for the bus to read back data; then transfer the return data to the response information buffer unit of step 3.
  • the main control board establishes a communication connection with the line card through the Ethernet interface, and manages the line card through the inter-board communication message based on the Ethernet interface, thereby solving the line card.
  • No CPU line card management problem at the same time can reduce the line card hardware cost;
  • the Ethernet interface is used to complete the interaction between the board communication messages, and the Ethernet interface is full-duplex mode, which resolves the conflict on the I2C bus. Serious Problem.
  • the line card management method and system provided by the embodiment of the present invention have the following beneficial effects: the main control board establishes a communication connection with the line card through the Ethernet interface, and transmits the inter-board communication message based on the Ethernet interface. Management of the line card, thereby realizing the management of the CPU card without the line card on the line card, and at the same time reducing the hardware cost of the line card; in addition, the communication between the boards can be completed through the Ethernet interface, and the Ethernet interface is full.
  • the duplex mode is used to solve the serious conflict problem on the I2C bus.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The present invention relates to a line card management method and system, the method comprising: a master control single board establishes a communication connection with at least one line card through an Ethernet interface and manages, on the basis of the Ethernet interface, the at least one line card through inter-board communication packets. The present invention solves the line card management problem of a line card without a CPU, and can reduce hardware costs of the line card at the same time. In addition, in this solution, the interaction of inter-board communication packets is completed through an Ethernet interface, the Ethernet interface being in a full-duplex mode, so that the problem of serious conflict on an I2C bus is solved.

Description

线卡管理方法及系统Line card management method and system 技术领域Technical field
本发明涉及通讯技术领域,尤其涉及一种无CPU线卡管理方法和系统。The present invention relates to the field of communications technologies, and in particular, to a CPU-free line card management method and system.
背景技术Background technique
在通讯产品中,尤其在SDH(Synchronous Digital Hierarchy,同步数据系列)、PTN(Packet Transport Network,分组传送网)领域的通讯产品中,产品设备系统结构通常采用星型系统架构,即星型系统的中心节点为主控单元,其它节点为业务线卡单元。在产品系统中,通常需要查询各个节点(包括主控单元、线卡单元)的关键器件的性能、告警以及对节点中器件的配置。一般是通过板间的I2C接口来完成板间的通讯,即网管服务器下发查询配置命令,首先下发到主控单板,经主控单板处理后,再由主控单板通过I2C接口下发到线卡,再由线卡的CPU(Central Processing Unit,中央处理机)芯片处理后,转化成对线卡操作。In the communication products, especially in the communication products of SDH (Synchronous Digital Hierarchy), PTN (Packet Transport Network), the product equipment system structure usually adopts the star system architecture, that is, the star system. The central node is the main control unit, and the other nodes are the service line card units. In a production system, it is often necessary to query the performance of various key components of each node (including the master unit, line card unit), alarms, and configuration of devices in the node. Generally, the I2C interface between the boards is used to complete the communication between the boards. That is, the network management server sends the query configuration command to the main control board. After the main control board processes the board, the main control board passes the I2C interface. It is sent to the line card, and then processed by the CPU (Central Processing Unit) chip of the line card, and converted into a line card operation.
此外,板间I2C接口,通常使用IPMBL、I2C为总线方式,其最大速率为400kbps,当需要配置线卡时,线卡为slave模式;当上报告警时,线卡为master模式。在线卡同时支持master、slave两种模式时,在板间多块线卡同时工作时,I2C总线上的冲突比较严重,告警实时性变差,而且可能会出现丢包情况。In addition, the inter-board I2C interface usually uses IPMBL and I2C as the bus mode, and its maximum rate is 400 kbps. When the line card needs to be configured, the line card is in the slave mode; when the alarm is reported, the line card is in the master mode. When the online card supports both the master and slave modes, when multiple line cards are working at the same time, the conflict on the I2C bus is serious, the real-time alarm becomes worse, and packet loss may occur.
发明内容Summary of the invention
本发明实施例提供了一种线卡管理方法和系统,可以降低线卡硬件成本,以至少解决相关技术中的I2C总线上冲突严重的问题。The embodiment of the invention provides a line card management method and system, which can reduce the hardware cost of the line card to at least solve the problem of serious conflict on the I2C bus in the related art.
为了达到上述目的,本发明提出一种线卡管理方法,包括:In order to achieve the above object, the present invention provides a line card management method, including:
主控单板通过以太网接口与至少一个线卡建立通信连接;The main control board establishes a communication connection with at least one line card through an Ethernet interface;
所述主控单板基于所述以太网接口,通过板间通讯报文对所述至少一个线卡进行管理。The master control board manages the at least one line card by using an inter-board communication message based on the Ethernet interface.
优选地,所述主控单板基于所述以太网接口,通过板间通讯报文对所述至少一个线卡进行管理的步骤包括: Preferably, the step of managing, by the master control board, the at least one line card by using an inter-board communication message based on the Ethernet interface includes:
主控单板在启动线卡代理程序后,在接收到上层应用的下发命令时,将下发命令信息连同目的MAC地址、源MAC地址封装到第一板间通讯报文中;After the line card agent is started, the master card encapsulates the command information with the destination MAC address and the source MAC address in the first inter-board communication message when receiving the command from the upper-layer application.
所述主控单板将所述第一板间通讯报文发送至指定的线卡。The main control board sends the first inter-board communication message to the specified line card.
优选地,所述主控单板基于所述以太网接口,通过板间通讯报文对所述至少一个线卡进行管理的步骤还包括:Preferably, the step of managing, by the master control board, the at least one line card by using an inter-board communication message is further:
所述线卡接收所述主控单板发送的所述第一板间通讯报文;Receiving, by the line card, the first inter-board communication message sent by the main control board;
所述线卡解析所述第一板间通讯报文,提取出报文请求类型;The line card parses the first inter-board communication message, and extracts a message request type;
所述线卡根据所述报文请求类型,生成相应的请求信号;The line card generates a corresponding request signal according to the message request type;
所述线卡将所述相应的请求信号转换为对应的总线操作。The line card converts the corresponding request signal into a corresponding bus operation.
优选地,所述线卡将相应的请求信号转换为对应的总线操作的步骤包括:Preferably, the step of converting the corresponding request signal into a corresponding bus operation by the line card comprises:
当所述请求信号为配置命令时,所述线卡将请求信号转换为总线的写命令;When the request signal is a configuration command, the line card converts the request signal into a write command of the bus;
当所述请求信号为查询命令时,所述线卡将请求信号转换为总线的读命令,并将执行读命令获取的信息封装成第二板间通讯报文返回给所述主控单板。When the request signal is a query command, the line card converts the request signal into a read command of the bus, and encapsulates the information obtained by the read command into a second inter-board communication message and returns the information to the main control board.
优选地,所述主控单板基于所述以太网接口,通过板间通讯报文对所述至少一个线卡进行管理的步骤还包括:Preferably, the step of managing, by the master control board, the at least one line card by using an inter-board communication message is further:
所述主控单板接收所述线卡发送的第二板间通讯报文;Receiving, by the main control board, a second inter-board communication message sent by the line card;
所述主控单板从所述第二板间通讯报文提取出有效数据;The master control board extracts valid data from the second inter-board communication message;
所述主控单板将提取的有效数据封装为S口报文,上报至上层应用。The master control board encapsulates the extracted valid data into an S-port message and reports it to the upper-layer application.
优选地,所述主控单板基于所述以太网接口,通过板间通讯报文对所述至少一个线卡进行管理的步骤还包括:Preferably, the step of managing, by the master control board, the at least one line card by using an inter-board communication message is further:
在线卡上电后,线卡向主控单板上报板类型报文;After the online card is powered on, the line card reports the packet type message to the main control board.
所述主控单板判断所述线卡上报的板类型报文是否符合预先配置格式,若是,则启动线卡代理程序。The master board determines whether the board type message reported by the line card conforms to a pre-configured format, and if so, starts the line card agent.
本发明实施例还提出一种线卡管理系统,包括:主控单板和至少一线卡;其中: The embodiment of the present invention further provides a line card management system, including: a main control board and at least one line card; wherein:
所述主控单板,设置为通过以太网接口与所述至少一个线卡建立通信连接;以及基于所述以太网接口,通过板间通讯报文对所述至少一个线卡进行管理;The master control board is configured to establish a communication connection with the at least one line card through an Ethernet interface; and manage the at least one line card by using an inter-board communication message based on the Ethernet interface;
所述至少一线卡,设置为基于所述以太网接口,与所述主控单板之间通过板间通讯报文进行交互。The at least one line card is configured to interact with the main control board through the inter-board communication message based on the Ethernet interface.
优选地,主控单板,还设置为在启动线卡代理程序后,在接收到上层应用的下发命令时,将下发命令信息连同目的MAC地址、源MAC地址封装到第一板间通讯报文中;将所述第一板间通讯报文发送至指定的线卡。Preferably, the main control board is further configured to, after the line card agent is started, encapsulate the issued command information, together with the destination MAC address and the source MAC address, into the first inter-board communication, when receiving the command issued by the upper layer application. In the message, the first inter-board communication message is sent to the specified line card.
优选地,所述线卡,还设置为接收所述主控单板发送的所述第一板间通讯报文;解析所述第一板间通讯报文,提取出报文请求类型;根据所述报文请求类型,生成相应的请求信号;将所述相应的请求信号转换为对应的总线操作。Preferably, the line card is further configured to receive the first inter-board communication message sent by the main control board; parse the first inter-board communication message, and extract a message request type; Determining the message request type, generating a corresponding request signal; converting the corresponding request signal into a corresponding bus operation.
优选地,所述线卡,还设置为当所述请求信号为配置命令时,将请求信号转换为总线的写命令;当所述请求信号为查询命令时,将请求信号转换为总线的读命令,并将执行读命令获取的信息封装成第二板间通讯报文返回给所述主控单板。Preferably, the line card is further configured to convert the request signal into a write command of the bus when the request signal is a configuration command; and convert the request signal into a read command of the bus when the request signal is a query command The information obtained by the execution of the read command is encapsulated into a second inter-board communication message and returned to the main control board.
优选地,所述主控单板,还设置为接收所述线卡发送的第二板间通讯报文;从所述第二板间通讯报文提取出有效数据;将提取的有效数据封装为S口报文,上报至上层应用。Preferably, the main control board is further configured to receive a second inter-board communication message sent by the line card; extract valid data from the second inter-board communication message; and encapsulate the extracted valid data into S-port packet is reported to the upper-layer application.
优选地,所述线卡,还设置为在上电后,向主控单板上报板类型报文;Preferably, the line card is further configured to report a board type message to the main control board after being powered on;
所述主控单板,还设置为判断所述线卡上报的板类型报文是否符合预先配置格式,若是,则启动线卡代理程序。The main control board is further configured to determine whether the board type message reported by the line card conforms to a pre-configured format, and if so, the line card agent is started.
本发明实施例提出的一种线卡管理方法和系统,主控单板通过以太网接口与线卡建立通信连接,并基于以太网接口,通过板间通讯报文对线卡进行管理,从而解决了线卡上无CPU线卡的管理问题,同时可以降低线卡硬件成本;此外,本方案中通过以太网接口,完成板间通讯报文的交互,以太网接口为全双工方式,解决了I2C总线上冲突严重问题。The method and system for managing a line card according to the embodiment of the present invention, the main control board establishes a communication connection with the line card through the Ethernet interface, and manages the line card through the inter-board communication message based on the Ethernet interface, thereby solving The management problem of no CPU line card on the line card can reduce the hardware cost of the line card. In addition, in this solution, the communication between the boards is completed through the Ethernet interface, and the Ethernet interface is full-duplex. A serious conflict on the I2C bus.
附图说明DRAWINGS
图1是本发明线卡管理方法一实施例的流程示意图; 1 is a schematic flow chart of an embodiment of a line card management method according to the present invention;
图2是本发明线卡管理方法实施例中主控单板基于所述以太网接口,通过板间通讯报文对所述至少一个线卡进行管理的一种流程示意图;2 is a schematic flowchart of managing the at least one line card by using an inter-board communication message based on the Ethernet interface in the embodiment of the line card management method of the present invention;
图3是本发明线卡管理方法实施例中主控单板基于所述以太网接口,通过板间通讯报文对所述至少一个线卡进行管理的另一种流程示意图;3 is another schematic flowchart of managing the at least one line card by using an inter-board communication message based on the Ethernet interface in the embodiment of the line card management method of the present invention;
图4是本发明线卡管理方法实施例中主控单板基于所述以太网接口,通过板间通讯报文对所述至少一个线卡进行管理的又一种流程示意图;4 is a schematic flowchart of still another process of managing, by the main control board, the at least one line card by using an inter-board communication message according to the Ethernet interface in the embodiment of the line card management method of the present invention;
图5是本发明线卡管理方法实施例中主控单板基于所述以太网接口,通过板间通讯报文对所述至少一个线卡进行管理的再一种流程示意图;FIG. 5 is a schematic diagram of still another flow chart of managing, by the main control board, the at least one line card through the inter-board communication message according to the Ethernet interface in the embodiment of the line card management method of the present invention;
图6是本发明线卡管理系统一实施例的架构示意图;6 is a schematic structural diagram of an embodiment of a line card management system according to the present invention;
图7是本发明线卡管理系统实施例的具体架构示意图;7 is a schematic diagram of a specific architecture of an embodiment of a line card management system according to the present invention;
图8是本发明线卡管理系统实施例中线卡的线卡控制中心单元的内部结构示意图。FIG. 8 is a schematic diagram showing the internal structure of a line card control center unit of a line card in the embodiment of the line card management system of the present invention.
为了使本发明的技术方案更加清楚、明了,下面将结合附图作进一步详述。In order to make the technical solutions of the present invention clearer and clearer, the following will be further described in detail with reference to the accompanying drawings.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明实施例的解决方案主要是:主控单板通过以太网接口与线卡建立通信连接,并基于以太网接口,通过板间通讯报文对线卡进行管理,从而解决了线卡上无CPU线卡的管理问题,同时可以降低线卡硬件成本;此外,本方案中通过以太网接口,完成板间通讯报文的交互,以太网接口为全双工方式,解决了I2C总线上冲突严重问题。The solution of the embodiment of the present invention is mainly: the main control board establishes a communication connection with the line card through the Ethernet interface, and manages the line card through the inter-board communication message based on the Ethernet interface, thereby solving the problem on the line card. The management problem of the CPU line card can reduce the hardware cost of the line card. In addition, in this solution, the communication between the boards is completed through the Ethernet interface, and the Ethernet interface is in full-duplex mode, which solves the serious conflict on the I2C bus. problem.
如图1所示,本发明一实施例提出一种线卡管理方法,包括:As shown in FIG. 1 , an embodiment of the present invention provides a line card management method, including:
步骤S101,主控单板通过以太网接口与至少一个线卡建立通信连接;Step S101: The main control board establishes a communication connection with at least one line card through an Ethernet interface.
本实施例在主控单板上设置有线卡代理程序。In this embodiment, a cable card agent is set on the main control board.
在线卡代理程序启动后,主控单板会接收到上层应用的下发命令,用以实现对线卡的性能监控、告警以及配置等操作管理。 After the online card agent is started, the main control board receives the command from the upper-layer application to implement operation management such as performance monitoring, alarm, and configuration of the line card.
其中,线卡代理程序的启动可以由线卡定时上报板类型报文来实现。线卡定时向主控单板上报板类型报文,主控单板根据接收到的板类型报文,判断其格式是否与预先定义的格式类型一致,若一致,则启动线卡代理程序。由此,通过以太网接口主控单板与线卡建立通信连接。The start of the line card agent can be implemented by the line card timing report type message. The line card periodically reports the packet type message to the main control board. The main control board determines whether the format is the same as the pre-defined format type according to the received board type message. If the line card is consistent, the line card agent is started. Therefore, the main control board of the Ethernet interface establishes a communication connection with the line card.
在线卡代理程序启动后,如果在规定时间范围内容没有接收到线卡上报的板类型报文,则停止线卡代理程序。After the online card agent is started, if the board type message received by the line card is not received within the specified time range, the line card agent is stopped.
步骤S102,所述主控单板基于所述以太网接口,通过板间通讯报文对所述至少一个线卡进行管理。Step S102: The main control board manages the at least one line card by using an inter-board communication message based on the Ethernet interface.
具体地,如图2所示,作为一种实施方式,上述步骤S102,主控单板基于所述以太网接口,通过板间通讯报文对所述至少一个线卡进行管理,可以包括:Specifically, as shown in FIG. 2, as an implementation manner, in step S102, the main control board manages the at least one line card by using an inter-board communication message based on the Ethernet interface, and may include:
步骤S1021,主控单板在启动线卡代理程序后,在接收到上层应用的下发命令时,将下发命令信息连同目的MAC地址、源MAC地址封装到第一板间通讯报文中;Step S1021: After the line card agent is started, the main control board encapsulates the issued command information, together with the destination MAC address and the source MAC address, into the first inter-board communication message, when receiving the command sent by the upper-layer application;
主控单板通过线卡代理程序响应上层应用的下发命令。当接收到上层应用的下发命令时,主控单板将下发命令信息封装到第一板间通讯报文的净荷中,同时,将目的MAC地址、源MAC地址添加到板间通讯报文中。步骤S1022,所述主控单板将所述第一板间通讯报文发送至指定的线卡。The main control board responds to the command issued by the upper application through the line card agent. When receiving the command from the upper-layer application, the master control board encapsulates the issued command information into the payload of the first inter-board communication packet, and adds the destination MAC address and source MAC address to the inter-board communication packet. In the text. Step S1022: The main control board sends the first inter-board communication message to the specified line card.
然后,主控单板将所述第一板间通讯报文发送至目的MAC地址指定的线卡。Then, the main control board sends the first inter-board communication message to the line card specified by the destination MAC address.
如图3所示,作为另一种实施方式,在上述图2所示的实施方式的基础上,上述步骤S102,主控单板基于所述以太网接口,通过板间通讯报文对所述至少一个线卡进行管理中,在上述步骤S1022之后,还可以包括:As shown in FIG. 3, in another embodiment, based on the foregoing embodiment shown in FIG. 2, in step S102, the main control board is configured to use the inter-board communication message according to the Ethernet interface. In the management of the at least one line card, after the step S1022, the method may further include:
步骤S1023,所述线卡接收所述主控单板发送的所述第一板间通讯报文;Step S1023, the line card receives the first inter-board communication message sent by the main control board;
步骤S1024,所述线卡解析所述第一板间通讯报文,提取出报文请求类型;Step S1024, the line card parses the first inter-board communication message, and extracts a message request type.
步骤S1025,所述线卡根据所述报文请求类型,生成相应的请求信号;Step S1025: The line card generates a corresponding request signal according to the message request type.
步骤S1026,所述线卡将所述相应的请求信号转换为对应的总线操作。Step S1026, the line card converts the corresponding request signal into a corresponding bus operation.
其中,线卡接收所述主控单板发送的所述第一板间通讯报文,解析所述第一板间通讯报文,提取出报文请求类型;根据所述报文请求类型,生成相应的请求信号;将所述相应的请求信号转换为对应的总线操作,总线操作用于配合或查询线卡信息。 The line card receives the first inter-board communication message sent by the main control board, parses the first inter-board communication message, and extracts a message request type; and generates according to the message request type. Corresponding request signal; converting the corresponding request signal into a corresponding bus operation, and the bus operation is used to cooperate or query the line card information.
其中,线卡将相应的请求信号转换为对应的总线操作的步骤包括:The step of converting the corresponding request signal into a corresponding bus operation by the line card includes:
当所述请求信号为配置命令时,所述线卡将请求信号转换为总线的写命令;When the request signal is a configuration command, the line card converts the request signal into a write command of the bus;
当所述请求信号为查询命令时,所述线卡将请求信号转换为总线的读命令,并将执行读命令获取的信息封装成第二板间通讯报文返回给所述主控单板。When the request signal is a query command, the line card converts the request signal into a read command of the bus, and encapsulates the information obtained by the read command into a second inter-board communication message and returns the information to the main control board.
具体地,线卡解析请求命令的类型,当请求命令为配置类型时,将配置命令及有效数据转换成总线的写使能信号、地址和数据;当请求命令为查询类型时,将查询命令及有效数据转换成总线的读使能信号、地址,等待总线读返回数据;再将返回数据传送到主控单板。Specifically, the type of the line card parsing request command, when the request command is a configuration type, convert the configuration command and the valid data into a write enable signal, an address, and a data of the bus; when the request command is a query type, the query command and The valid data is converted into the read enable signal and address of the bus, waiting for the bus to read back the data; and then the return data is transferred to the main control board.
如图4所示,作为又一种实施方式,在上述图3所示的实施方式的基础上,上述步骤S102,主控单板基于所述以太网接口,通过板间通讯报文对所述至少一个线卡进行管理中,在上述步骤S1026之后,还可以包括:As shown in FIG. 4, in another embodiment, based on the foregoing embodiment shown in FIG. 3, in step S102, the main control board is configured to use the inter-board communication message according to the Ethernet interface. In the management of the at least one line card, after the step S1026, the method may further include:
步骤S1027,所述主控单板接收所述线卡发送的第二板间通讯报文;Step S1027: The main control board receives the second inter-board communication message sent by the line card.
步骤S1028,所述主控单板从所述第二板间通讯报文提取出有效数据;Step S1028: The master control board extracts valid data from the second inter-board communication message.
步骤S1029,所述主控单板将提取的有效数据封装为S口报文,上报至上层应用。In step S1029, the main control board encapsulates the extracted valid data into an S-port message and reports it to the upper-layer application.
具体地,在主控单板侧,主控单板在接收到线卡发送的第二板间通讯报文后,从报文中提取出目的MAC地址、VLAN值、有效数据内容;再根据目的MAC地址和VLAN值,判读是否为板间通讯报文;当为板间通讯报文时,将有效数据封装成内部S口报文,然后,定期时间将内部S口报文上报到上层应用。Specifically, on the main control board side, after receiving the second inter-board communication packet sent by the line card, the main control board extracts the destination MAC address, the VLAN value, and the valid data content from the packet; The MAC address and the VLAN value are used to determine whether the packet is an inter-board communication packet. When the packet is an inter-board communication packet, the valid data is encapsulated into an internal S-port packet. Then, the internal S-port packet is reported to the upper-layer application at a regular time.
如图5所示,作为再一种实施方式,在上述图4所示的实施方式的基础上,上述步骤S102,主控单板基于所述以太网接口,通过板间通讯报文对所述至少一个线卡进行管理中,在上述步骤S1021之前,还可以包括:As shown in FIG. 5, in another embodiment, based on the foregoing embodiment shown in FIG. 4, in step S102, the main control board is configured to use the inter-board communication message according to the Ethernet interface. In the management of the at least one line card, before the step S1021, the method may further include:
步骤S1019,在线卡上电后,线卡向主控单板上报板类型报文;Step S1019: After the online card is powered on, the line card reports the packet type message to the main control board.
步骤S1020,所述主控单板判断所述线卡上报的板类型报文是否符合预先配置格式,若是,则启动线卡代理程序。In step S1020, the main control board determines whether the board type message reported by the line card conforms to a pre-configured format, and if so, starts the line card agent.
其中,线卡代理程序的启动由线卡定时上报板类型报文来实现。在线卡上电后,线卡定时向主控单板上报板类型报文,主控单板根据接收到的板类型报文,判断其格式是否与预先定义的格式类型一致,若一致,则启动线卡代理程序。 The start of the line card agent is implemented by the line card timing report board type message. After the online card is powered on, the line card periodically reports the packet type message to the main control board. The main control board determines whether the format is the same as the pre-defined format type according to the received board type packet. Line card agent.
在线卡代理程序启动后,如果在规定时间范围内容没有接收到线卡上报的板类型报文,则停止线卡代理程序。After the online card agent is started, if the board type message received by the line card is not received within the specified time range, the line card agent is stopped.
本实施例通过上述方案,主控单板通过以太网接口与线卡建立通信连接,并基于以太网接口,通过板间通讯报文对线卡进行管理,从而解决了线卡上无CPU线卡的管理问题,同时可以降低线卡硬件成本;此外,本方案中通过以太网接口,完成板间通讯报文的交互,以太网接口为全双工方式,解决了I2C总线上冲突严重问题。In this embodiment, the main control board establishes a communication connection with the line card through the Ethernet interface, and manages the line card through the inter-board communication message based on the Ethernet interface, thereby solving the problem that the line card has no CPU line card. The management problem can also reduce the hardware cost of the line card. In addition, in this solution, the communication between the boards is completed through the Ethernet interface, and the Ethernet interface is a full-duplex mode, which solves the serious conflict problem on the I2C bus.
如图6所示,本发明较佳实施例提出一种线卡管理系统,包括:主控单板201和至少一线卡202;其中:As shown in FIG. 6, a preferred embodiment of the present invention provides a line card management system, including: a main control board 201 and at least one line card 202; wherein:
所述主控单板201,设置为通过以太网接口与所述至少一个线卡202建立通信连接;以及基于所述以太网接口,通过板间通讯报文对所述至少一个线卡202进行管理;The main control board 201 is configured to establish a communication connection with the at least one line card 202 through an Ethernet interface; and manage the at least one line card 202 by using an inter-board communication message based on the Ethernet interface. ;
所述至少一线卡202,设置为基于所述以太网接口,与所述主控单板201之间通过板间通讯报文进行交互。The at least one line card 202 is configured to interact with the main control board 201 through the inter-board communication message based on the Ethernet interface.
进一步地,主控单板201还设置为在启动线卡202代理程序后,在接收到上层应用的下发命令时,将下发命令信息连同目的MAC地址、源MAC地址封装到第一板间通讯报文中;将所述第一板间通讯报文发送至指定的线卡202。Further, the main control board 201 is further configured to, after the line card 202 agent is started, the command information is sent to the first board together with the destination MAC address and the source MAC address when the command of the upper layer application is received. In the communication message, the first inter-board communication message is sent to the designated line card 202.
进一步地,所述线卡202还设置为接收所述主控单板201发送的所述第一板间通讯报文;解析所述第一板间通讯报文,提取出报文请求类型;根据所述报文请求类型,生成相应的请求信号;将所述相应的请求信号转换为对应的总线操作。Further, the line card 202 is further configured to receive the first inter-board communication message sent by the main control board 201; parse the first inter-board communication message, and extract a message request type; The message request type generates a corresponding request signal; and converts the corresponding request signal into a corresponding bus operation.
所述线卡202还设置为当所述请求信号为配置命令时,将请求信号转换为总线的写命令;当所述请求信号为查询命令时,将请求信号转换为总线的读命令,并将执行读命令获取的信息封装成第二板间通讯报文返回给所述主控单板201。The line card 202 is further configured to convert the request signal into a write command of the bus when the request signal is a configuration command; when the request signal is a query command, convert the request signal into a read command of the bus, and The information obtained by the read command is encapsulated into a second inter-board communication message and returned to the main control board 201.
所述主控单板201还设置为接收所述线卡202发送的第二板间通讯报文;从所述第二板间通讯报文提取出有效数据;将提取的有效数据封装为S口报文,上报至上层应用。The main control board 201 is further configured to receive the second inter-board communication message sent by the line card 202; extract valid data from the second inter-board communication message; and encapsulate the extracted valid data into the S port. The message is reported to the upper application.
所述线卡202还设置为在上电后,向主控单板201上报板类型报文;The line card 202 is further configured to report a board type message to the main control board 201 after being powered on;
所述主控单板201还设置为判断所述线卡202上报的板类型报文是否符合预先配置格式,若是,则启动线卡202代理程序。 The main control board 201 is further configured to determine whether the board type message reported by the line card 202 conforms to a pre-configured format, and if so, activate the line card 202 agent.
在线卡代理程序启动后,如果在规定时间范围内容没有接收到线卡202上报的板类型报文,则停止线卡代理程序。After the online card agent is started, if the board type message reported by the line card 202 is not received in the specified time range, the line card agent is stopped.
本实施例无CPU线卡202的管理系统,主控单板201与线卡202通过以太网接口建立通信连接,并基于以太网接口,通过板间通讯报文对线卡202进行管理,从而解决了线卡202上无CPU线卡202的管理问题,同时可以降低线卡202硬件成本;此外,本方案中通过以太网接口,完成板间通讯报文的交互,以太网接口为全双工方式,解决了I2C总线上冲突严重问题。In this embodiment, the management system of the CPU line card 202 is not provided. The main control board 201 and the line card 202 establish a communication connection through the Ethernet interface, and manage the line card 202 through the inter-board communication message based on the Ethernet interface, thereby solving the problem. The management problem of the CPU card 202 is not supported on the line card 202, and the hardware cost of the line card 202 can be reduced. In addition, in this solution, the communication between the boards is completed through the Ethernet interface, and the Ethernet interface is in full duplex mode. Solve the serious conflict problem on the I2C bus.
更为具体地,在实际应用中,可以在主控单板和线卡上设置相应的单元来完成相应的功能。具体阐述如下:More specifically, in practical applications, corresponding units can be set on the main control board and the line card to complete the corresponding functions. The details are as follows:
如图7所示,在主控单板侧,设置有线卡代理程序单元和交叉单元,其中:As shown in Figure 7, on the main control board side, set the cable card agent unit and the cross unit, where:
线卡代理程序单元主要完成板间通讯报文的发起和上报。The line card agent unit mainly completes the initiation and reporting of inter-board communication messages.
交叉单元完成线卡代理程序单元发起板间通讯报文的交换到线卡传送;同时将线卡发送的板间通讯报文转发到线卡代理程序单元。The cross unit completes the line card agent unit to initiate the exchange of inter-board communication messages to the line card transmission; at the same time, the inter-board communication message sent by the line card is forwarded to the line card agent unit.
在线卡侧,设置有线卡控制中心单元及接口转换单元,其中:On the line card side, set the cable card control center unit and interface conversion unit, where:
线卡控制中心单元完成板间通讯报文的响应和应答。在接收方向,接收板间通讯报文,同时解析报文内容,提取有效的请求信息,将报文中的请求信息转换成请求信号;同时,在发送方向,将请求信号应答的信息封装到板间通讯报文中,然后发送给主控单板。The line card control center unit completes the response and response of the inter-board communication message. In the receiving direction, receiving inter-board communication messages, parsing the message content, extracting valid request information, and converting the request information in the message into a request signal; and, at the same time, encapsulating the information of the request signal response to the board in the sending direction The communication message is sent to the master control board.
接口转换单元设置为将线卡控制中心单元的请求信号转换成总线操作。The interface conversion unit is configured to convert the request signal of the line card control center unit into a bus operation.
基于上述单元对本实施例方案进行详细阐述:The solution of this embodiment is elaborated based on the above unit:
步骤1,主控单板线卡代理程序单元响应上层应用命令,然后发起管理线卡的板间通讯报文;同时,接收线卡应答的板间通讯报文,然后上报到上层应用处理。Step 1: The main control board line card agent unit responds to the upper layer application command, and then initiates the inter-board communication message of the management line card; at the same time, receives the inter-board communication message that the line card answers, and then reports to the upper layer application processing.
具体过程如下:The specific process is as follows:
a)响应上层应用程序下发命令;a) responding to the upper application to issue a command;
b)将下发命令转换成板间通讯报文;b) converting the issued command into an inter-board communication message;
c)将板间通讯报文发送到交叉单元。 c) Send the inter-board communication message to the cross unit.
d)同时,接收交叉单元转发到线卡代理程序单元的板间通讯报文。d) At the same time, the receiving cross unit forwards the inter-board communication message to the line card agent unit.
e)解析接收的板间通讯报文,然后,上报到上层应用处理。e) Parsing the received inter-board communication message, and then reporting it to the upper layer application processing.
代理线卡程序接收交叉单元输出的板间通讯报文,当接收到板间通讯报文后,从报文中提取出目的MAC地址、VLAN值、有效数据内容;再根据目的MAC地址和VLAN值,判读是否为板间通讯报文;当为板间通讯报文时,将有效数据封装成内部S口报文,然后,定期时间将内部S口报文上报到上层应用。The proxy line card program receives the inter-board communication message outputted by the cross-unit, and after receiving the inter-board communication message, extracts the destination MAC address, the VLAN value, and the valid data content from the packet; and then according to the destination MAC address and the VLAN value. The interpreter is an inter-board communication message. When the inter-board communication message is received, the valid data is encapsulated into an internal S-port message, and then the internal S-port message is reported to the upper-layer application at a regular time.
步骤2,主控单板交叉单元转发主控单板和线卡的板间通讯报文。Step 2: The interworking unit of the main control board and the line card forwards the inter-board communication message of the main control board and the line card.
主控单板交叉单元将线卡代理程序发起的板间通讯报文转发到目的线卡;同时,将线卡发送的板间通讯报文转发到主控单板的线卡代理程序单元。The inter-board communication packet initiated by the line card agent is forwarded to the destination line card. The inter-board communication packet sent by the line card is forwarded to the line card agent unit of the main control board.
交叉单元,接收步骤1输出的板间通讯报文,根据板间通讯报文的目的MAC地址,查找出目的线卡;然后再将板间通讯报文转发到目的线卡端口上发送。同时,接收各个线卡发送的板间通讯报文,然后,将报文传送到步骤1的线卡代理程序单元。The cross unit receives the inter-board communication message outputted in step 1, and finds the destination line card according to the destination MAC address of the inter-board communication message; and then forwards the inter-board communication message to the destination line card port for transmission. At the same time, the inter-board communication message sent by each line card is received, and then the message is transmitted to the line card agent unit of step 1.
步骤3,线卡的线卡控制中心单元接收主控单板线卡代理程序单元发起的板间通讯报文;解析出报文有效请求信息,将请求信息输出到接口转换单元;同时,将接口转换返回的应答信息,封装到板间通讯报文,然后将报文发送到主控单板。Step 3: The line card control center unit of the line card receives the inter-board communication message initiated by the main control board line card agent unit; parses the message valid request information, and outputs the request information to the interface conversion unit; meanwhile, the interface is The response information returned by the switch is encapsulated into the inter-board communication packet, and then the packet is sent to the main control board.
具体过程如下:The specific process is as follows:
接收交叉单元转发过来的板间通讯报文,解析报文内容,提取出报文请求类型;根据请求类型,产生相应请求信号;将请求信号输出到接口转换单元。同时,接收接口转换单元应答信息。将应答信息封装成板间通讯报文,再将封装好的报文发送到交叉单元。Receiving the inter-board communication message forwarded by the cross-unit, parsing the content of the message, extracting the message request type, generating a corresponding request signal according to the request type, and outputting the request signal to the interface conversion unit. At the same time, the receiving interface conversion unit responds to the information. The response information is encapsulated into an inter-board communication message, and the encapsulated message is sent to the cross-unit.
其内部实现结构如图8所示。Its internal implementation structure is shown in Figure 8.
在接收方向,包括报文终结单元、请求消息缓存单元、主动查询信息产生单元以及请求调度单元。In the receiving direction, the message termination unit, the request message buffer unit, the active query information generating unit, and the request scheduling unit are included.
报文终结单元,接收步骤2的板间通讯报文,当报文接收正确时,从板间通讯报文中提取出有效信息,将提取的有效信息缓存到请求消息缓存单元,等待请求调动单元请求允许信息。 The message termination unit receives the inter-board communication message of step 2. When the message is received correctly, the valid information is extracted from the inter-board communication message, and the extracted valid information is buffered to the request message buffer unit, waiting for the request to move the unit. Request permission information.
请求调度单元,通过轮训调度方式,轮训响应板间通讯报文请求、主动查询信息请求;然后,将有效请求命令输出到接口转换单元。The scheduling unit is requested to pass the rotation training scheduling mode, and the rotation training responds to the inter-board communication message request and actively queries the information request; and then outputs the valid request command to the interface conversion unit.
在发送方向,包括流控消息产生单元、应答信息缓存单元、响应调度单元、报文发起单元。In the sending direction, the flow control message generating unit, the response information buffering unit, the response scheduling unit, and the message initiating unit are included.
应答信息缓存单元,接收接口转换单元返回的应答信息,将应答信息缓存,输出数据有效信号到响应调度单元。The response information buffering unit receives the response information returned by the interface conversion unit, buffers the response information, and outputs a data valid signal to the response scheduling unit.
响应调度单元,通过轮训判断流控消息产生单元的数据有效信号、应答信息缓存单元的数据有效信号,将应答信息传送到报文发送单元。The response scheduling unit determines the data valid signal of the flow control message generating unit and the data valid signal of the response information buffer unit by the rotation training, and transmits the response information to the message sending unit.
报文发送单元,根据类型和报文格式,将响应调度单元传送的有效数据封装到板间通讯报文有效净荷中;再将报文传送给交叉单元。The message sending unit encapsulates the valid data transmitted by the response scheduling unit into the effective payload of the inter-board communication message according to the type and the message format; and then transmits the message to the cross unit.
步骤4,线卡的接口转换单元将线卡控制中心单元输出请求信号,转换为通用的总线命令。Step 4: The interface conversion unit of the line card converts the line card control center unit output request signal into a general bus command.
当请求信号为配置命令时,将配置命令转换成总线的写命令。When the request signal is a configuration command, the configuration command is converted into a write command of the bus.
当请求信号为查询命令时,将查询命令成总线的读命令;同时,将读获取的信息输出到线卡控制中心单元。When the request signal is a query command, the command is queried as a read command of the bus; at the same time, the read and acquired information is output to the line card control center unit.
具体地,接口转换单元,接收步骤3输出的请求信号命令,解析请求命令的类型。当请求命令为配置类型时,将配置命令及有效数据转换成总线的写使能信号、地址和数据;当请求命令为查询类型时,将查询命令及有效数据转换成总线的读使能信号、地址;等待总线读返回数据;再将返回数据传送到步骤3的应答信息缓存单元。Specifically, the interface conversion unit receives the request signal command outputted in step 3, and parses the type of the request command. When the request command is a configuration type, the configuration command and the valid data are converted into a write enable signal, an address and a data of the bus; when the request command is a query type, the query command and the valid data are converted into a read enable signal of the bus, Address; wait for the bus to read back data; then transfer the return data to the response information buffer unit of step 3.
本发明实施例线卡管理方法和系统,主控单板通过以太网接口与线卡建立通信连接,并基于以太网接口,通过板间通讯报文对线卡进行管理,从而解决了线卡上无CPU线卡的管理问题,同时可以降低线卡硬件成本;此外,本方案中通过以太网接口,完成板间通讯报文的交互,以太网接口为全双工方式,解决了I2C总线上冲突严重问题。In the line card management method and system of the embodiment of the present invention, the main control board establishes a communication connection with the line card through the Ethernet interface, and manages the line card through the inter-board communication message based on the Ethernet interface, thereby solving the line card. No CPU line card management problem, at the same time can reduce the line card hardware cost; In addition, in this solution, the Ethernet interface is used to complete the interaction between the board communication messages, and the Ethernet interface is full-duplex mode, which resolves the conflict on the I2C bus. Serious Problem.
以上所述仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或流程变换,或直接或间接运用在其它相关的技术领域,均同理包括在本发明的专利保护范围内。 The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the invention, and the equivalent structure or process changes made by the specification and the drawings of the present invention may be directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.
工业实用性Industrial applicability
如上所述,本发明实施例提供的一种线卡管理方法及系统具有以下有益效果:主控单板通过以太网接口与线卡建立通信连接,并基于以太网接口,通过板间通讯报文对线卡进行管理,由此实现了线卡上无CPU线卡的管理,同时可以降低线卡硬件成本;此外,还可以通过以太网接口完成板间通讯报文的交互,以太网接口为全双工方式,以此来解决I2C总线上冲突严重问题。 As described above, the line card management method and system provided by the embodiment of the present invention have the following beneficial effects: the main control board establishes a communication connection with the line card through the Ethernet interface, and transmits the inter-board communication message based on the Ethernet interface. Management of the line card, thereby realizing the management of the CPU card without the line card on the line card, and at the same time reducing the hardware cost of the line card; in addition, the communication between the boards can be completed through the Ethernet interface, and the Ethernet interface is full. The duplex mode is used to solve the serious conflict problem on the I2C bus.

Claims (12)

  1. 一种线卡管理方法,包括:A line card management method includes:
    主控单板通过以太网接口与至少一个线卡建立通信连接;The main control board establishes a communication connection with at least one line card through an Ethernet interface;
    所述主控单板基于所述以太网接口,通过板间通讯报文对所述至少一个线卡进行管理。The master control board manages the at least one line card by using an inter-board communication message based on the Ethernet interface.
  2. 根据权利要求1所述的方法,其中,所述主控单板基于所述以太网接口,通过板间通讯报文对所述至少一个线卡进行管理的步骤包括:The method of claim 1, wherein the step of managing the at least one line card by the inter-board communication message based on the Ethernet interface is:
    主控单板在启动线卡代理程序后,在接收到上层应用的下发命令时,将下发命令信息连同目的MAC地址、源MAC地址封装到第一板间通讯报文中;After the line card agent is started, the master card encapsulates the command information with the destination MAC address and the source MAC address in the first inter-board communication message when receiving the command from the upper-layer application.
    所述主控单板将所述第一板间通讯报文发送至指定的线卡。The main control board sends the first inter-board communication message to the specified line card.
  3. 根据权利要求2所述的方法,其中,所述主控单板基于所述以太网接口,通过板间通讯报文对所述至少一个线卡进行管理的步骤还包括:The method of claim 2, wherein the step of managing the at least one line card by using the inter-board communication message based on the Ethernet interface is further included:
    所述线卡接收所述主控单板发送的所述第一板间通讯报文;Receiving, by the line card, the first inter-board communication message sent by the main control board;
    所述线卡解析所述第一板间通讯报文,提取出报文请求类型;The line card parses the first inter-board communication message, and extracts a message request type;
    所述线卡根据所述报文请求类型,生成相应的请求信号;The line card generates a corresponding request signal according to the message request type;
    所述线卡将所述相应的请求信号转换为对应的总线操作。The line card converts the corresponding request signal into a corresponding bus operation.
  4. 根据权利要求3所述的方法,其中,所述线卡将相应的请求信号转换为对应的总线操作的步骤包括:The method of claim 3 wherein the step of converting the corresponding request signal to a corresponding bus operation by the line card comprises:
    当所述请求信号为配置命令时,所述线卡将请求信号转换为总线的写命令;When the request signal is a configuration command, the line card converts the request signal into a write command of the bus;
    当所述请求信号为查询命令时,所述线卡将请求信号转换为总线的读命令,并将执行读命令获取的信息封装成第二板间通讯报文返回给所述主控单板。When the request signal is a query command, the line card converts the request signal into a read command of the bus, and encapsulates the information obtained by the read command into a second inter-board communication message and returns the information to the main control board.
  5. 根据权利要求4所述的方法,其中,所述主控单板基于所述以太网接口,通过板间通讯报文对所述至少一个线卡进行管理的步骤还包括:The method of claim 4, wherein the step of managing the at least one line card by using the inter-board communication message based on the Ethernet interface is further included:
    所述主控单板接收所述线卡发送的第二板间通讯报文;Receiving, by the main control board, a second inter-board communication message sent by the line card;
    所述主控单板从所述第二板间通讯报文提取出有效数据;The master control board extracts valid data from the second inter-board communication message;
    所述主控单板将提取的有效数据封装为S口报文,上报至上层应用。 The master control board encapsulates the extracted valid data into an S-port message and reports it to the upper-layer application.
  6. 根据权利要求1至5中任一项所述的方法,其中,所述主控单板基于所述以太网接口,通过板间通讯报文对所述至少一个线卡进行管理的步骤还包括:The method according to any one of claims 1 to 5, wherein the step of managing the at least one line card by the inter-board communication message based on the Ethernet interface is further:
    在线卡上电后,线卡向主控单板上报板类型报文;After the online card is powered on, the line card reports the packet type message to the main control board.
    所述主控单板判断所述线卡上报的板类型报文是否符合预先配置格式,若是,则启动线卡代理程序。The master board determines whether the board type message reported by the line card conforms to a pre-configured format, and if so, starts the line card agent.
  7. 一种线卡管理系统,包括:主控单板和至少一线卡;其中:A line card management system includes: a main control board and at least one line card; wherein:
    所述主控单板,设置为通过以太网接口与所述至少一个线卡建立通信连接;以及基于所述以太网接口,通过板间通讯报文对所述至少一个线卡进行管理;The master control board is configured to establish a communication connection with the at least one line card through an Ethernet interface; and manage the at least one line card by using an inter-board communication message based on the Ethernet interface;
    所述至少一线卡,设置为基于所述以太网接口,与所述主控单板之间通过板间通讯报文进行交互。The at least one line card is configured to interact with the main control board through the inter-board communication message based on the Ethernet interface.
  8. 根据权利要求7所述的系统,其中,The system of claim 7 wherein
    主控单板,还设置为在启动线卡代理程序后,在接收到上层应用的下发命令时,将下发命令信息连同目的MAC地址、源MAC地址封装到第一板间通讯报文中;将所述第一板间通讯报文发送至指定的线卡。The main control board is further configured to, after the line card agent is started, encapsulate the issued command information, together with the destination MAC address and the source MAC address, into the first inter-board communication message, when receiving the command sent by the upper-layer application. Sending the first inter-board communication message to the specified line card.
  9. 根据权利要求8所述的系统,其中,The system of claim 8 wherein
    所述线卡,还设置为接收所述主控单板发送的所述第一板间通讯报文;解析所述第一板间通讯报文,提取出报文请求类型;根据所述报文请求类型,生成相应的请求信号;将所述相应的请求信号转换为对应的总线操作。The line card is further configured to receive the first inter-board communication message sent by the main control board; parse the first inter-board communication message, and extract a message request type; according to the message The request type generates a corresponding request signal; converts the corresponding request signal into a corresponding bus operation.
  10. 根据权利要求9所述的系统,其中,The system of claim 9 wherein
    所述线卡,还设置为当所述请求信号为配置命令时,将请求信号转换为总线的写命令;当所述请求信号为查询命令时,将请求信号转换为总线的读命令,并将执行读命令获取的信息封装成第二板间通讯报文返回给所述主控单板。The line card is further configured to: when the request signal is a configuration command, convert the request signal into a write command of the bus; when the request signal is a query command, convert the request signal into a read command of the bus, and The information obtained by the read command is encapsulated into a second inter-board communication message and returned to the main control board.
  11. 根据权利要求10所述的系统,其中,The system of claim 10 wherein
    所述主控单板,还设置为接收所述线卡发送的第二板间通讯报文;从所述第二板间通讯报文提取出有效数据;将提取的有效数据封装为S口报文,上报至上层应用。The main control board is further configured to receive a second inter-board communication message sent by the line card, and extract valid data from the second inter-board communication message; and encapsulate the extracted valid data into an S-port report. Text, reported to the upper application.
  12. 根据权利要求7至11中任一项所述的系统,其中,A system according to any one of claims 7 to 11, wherein
    所述线卡,还设置为在上电后,向主控单板上报板类型报文; The line card is further configured to report a board type message to the main control board after being powered on;
    所述主控单板,还设置为判断所述线卡上报的板类型报文是否符合预先配置格式,若是,则启动线卡代理程序。 The main control board is further configured to determine whether the board type message reported by the line card conforms to a pre-configured format, and if so, the line card agent is started.
PCT/CN2014/089447 2014-08-15 2014-10-24 Line card management method and system WO2015154433A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410401924.2 2014-08-15
CN201410401924.2A CN105337757A (en) 2014-08-15 2014-08-15 Line card management method and system

Publications (1)

Publication Number Publication Date
WO2015154433A1 true WO2015154433A1 (en) 2015-10-15

Family

ID=54287197

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/089447 WO2015154433A1 (en) 2014-08-15 2014-10-24 Line card management method and system

Country Status (2)

Country Link
CN (1) CN105337757A (en)
WO (1) WO2015154433A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110031875A (en) * 2019-03-05 2019-07-19 深圳市中科粤丰科技有限公司 One kind driving the customized message device of training Driving Test project and method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111385133A (en) * 2018-12-29 2020-07-07 中兴通讯股份有限公司 Resource management method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242284A (en) * 2008-03-20 2008-08-13 杭州华三通信技术有限公司 Communication method and network device based on SPI bus
CN101252537A (en) * 2008-03-31 2008-08-27 杭州华三通信技术有限公司 Switching network communicating system, method and master control board
KR20110034089A (en) * 2009-09-28 2011-04-05 주식회사 뷰텔 Intergration of wire and wireless type hybrid ip-pbx system for ip based convergence premium network

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436963B (en) * 2008-12-04 2012-12-19 中兴通讯股份有限公司 Method for switching veneer network card, distributed system and veneer
CN101989933A (en) * 2009-08-03 2011-03-23 中兴通讯股份有限公司 Method and system for failure detection

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242284A (en) * 2008-03-20 2008-08-13 杭州华三通信技术有限公司 Communication method and network device based on SPI bus
CN101252537A (en) * 2008-03-31 2008-08-27 杭州华三通信技术有限公司 Switching network communicating system, method and master control board
KR20110034089A (en) * 2009-09-28 2011-04-05 주식회사 뷰텔 Intergration of wire and wireless type hybrid ip-pbx system for ip based convergence premium network

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110031875A (en) * 2019-03-05 2019-07-19 深圳市中科粤丰科技有限公司 One kind driving the customized message device of training Driving Test project and method

Also Published As

Publication number Publication date
CN105337757A (en) 2016-02-17

Similar Documents

Publication Publication Date Title
KR101536141B1 (en) Apparatus and method for converting signal between ethernet and can in a vehicle
US10313768B2 (en) Data scheduling and switching method, apparatus, system
CN110022264B (en) Method for controlling network congestion, access device and computer readable storage medium
EP3167580B1 (en) Method, system and logic for configuring a local link based on a remote link partner
CN102932327A (en) Method and system for communicating zero-terminal equipment and desktop virtual machine
Jia et al. Research on the technology of RS485 over Ethernet
WO2017015839A1 (en) Sdn-based arp realization method and apparatus
US10182132B2 (en) Method, apparatus and system for communication between OpenFlow device and IP network device
US11991083B2 (en) Systems and methods for enhanced autonegotiation
WO2015103848A1 (en) Method, system and terminal for realizing network access via wifi
JP2014014051A5 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND PROGRAM
CN105553795B (en) A method of the transmission standard Ethernet data in Industrial Ethernet
WO2022241990A1 (en) Method and apparatus for managing media transmission link, and storage medium
WO2015154433A1 (en) Line card management method and system
US10389806B2 (en) Method for asynchronous data communication in a real-time capable ethernet data network
US20130336129A1 (en) Multipurpose Use of Delay Measurement Message Buffer for Software Processing of Delay Measurement Response
CN108989157B (en) Method and device for controlling intelligent equipment
CN100521690C (en) System and component for realizing first component and second component communication
WO2013159501A1 (en) Data transmission system, data interface device and data transmission method used among multiple servers
CN101895560B (en) Fieldbus DP-NET with open two-stage topological structure
WO2015141014A1 (en) Method of constructing software-defined pci express (pci-e) switch
CN102355415A (en) Method and device for transmitting messages between CPUs (Central Processing Unit)
Tikhonov et al. Modeling the conveyor-modular transfer of multimedia data in a sensor network of transport system
CN104253811A (en) Network packet communication method and system
US10298725B2 (en) Synchronous digital signal encapsulation

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: 14888626

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: 14888626

Country of ref document: EP

Kind code of ref document: A1