CN108712293B - Single board management method and network equipment - Google Patents

Single board management method and network equipment Download PDF

Info

Publication number
CN108712293B
CN108712293B CN201810541640.1A CN201810541640A CN108712293B CN 108712293 B CN108712293 B CN 108712293B CN 201810541640 A CN201810541640 A CN 201810541640A CN 108712293 B CN108712293 B CN 108712293B
Authority
CN
China
Prior art keywords
board
main control
port
target
control board
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810541640.1A
Other languages
Chinese (zh)
Other versions
CN108712293A (en
Inventor
张磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201810541640.1A priority Critical patent/CN108712293B/en
Publication of CN108712293A publication Critical patent/CN108712293A/en
Application granted granted Critical
Publication of CN108712293B publication Critical patent/CN108712293B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • 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/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q1/00Details of selecting apparatus or arrangements
    • H04Q1/02Constructional details
    • H04Q1/15Backplane arrangements
    • H04Q1/155Backplane arrangements characterised by connection features
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q1/00Details of selecting apparatus or arrangements
    • H04Q1/18Electrical details
    • H04Q1/20Testing circuits or apparatus; Circuits or apparatus for detecting, indicating, or signalling faults or troubles

Abstract

The embodiment of the invention provides a single board management method and network equipment, and relates to the technical field of communication. The method comprises the following steps: the method comprises the steps that a main control board CPU receives a first control instruction sent by external equipment through a control port, a target single board is determined from more than one single board according to the first control instruction, a target single board communication instruction is sent to a main control board CPLD, the main control board CPLD disconnects the control port from the main control board CPU and communicates the control port with the target single board according to the target single board communication instruction, a physical channel between the control port and the target single board is established, and therefore a user can conveniently log in the target single board through the control port. In the application, the master control board CPU realizes the switching of the connectivity between the control port and the CPU and the single board of the master control board through controlling the CPLD of the master control board, so that a user can conveniently log in the single board through the control port to perform fault location when the single board fails, the problem of recurrence is not needed, and the fault location efficiency is improved.

Description

Single board management method and network equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a board management method and a network device.
Background
The network device is generally divided into a centralized device and a distributed device, the structure of the centralized device can refer to fig. 1, the height of the centralized device is 1U, a control plane and a data plane are integrated, and a panel of the centralized device is provided with a console port, a management network port telnet and a service interface; the structure of the distributed equipment can refer to fig. 2, the height of the distributed equipment is 2U or above, the control plane and the data plane are physically separated, the distributed equipment generally comprises a case, a main control board, a service board, a network board and the like, the main control board is responsible for the control plane, interfaces such as a console port and a management network port are arranged on the main control board, no service interface is arranged, and a user can manage and configure the distributed equipment through the management network port or the console port; the service board and the network board are responsible for a data plane, the network board is used for forwarding cross-board flow between the service boards, the service board is provided with a service interface and is not provided with a console port and a management network port, and the network board is not provided with any interface generally.
In the existing distributed device, under normal conditions, a user logs in a user interface of a main control board through a management network port telnet or a console port of the main control board, and configures and manages a service board and a network board by using a command line, but the user cannot directly log in the service board and the network board through the management network port or the console port. In a development stage of distributed equipment, a console port on a PCB board of a console in a chassis is usually required to be connected to debug a console in the equipment, and when the chassis is in a full-plug environment, the console port is inconvenient to plug, a part of the console port needs to be pulled out first, and after the console port is plugged, the console is reinserted, and the console undergoes a restart process; once the single board has a fault and needs to be positioned through the console port, a large amount of time is wasted in a problem recurrence loop because most faults are not easy to recur; the single board may change the operation environment of the device after the restart process of pulling out and reinserting, and the difficulty of single board fault recurrence is also increased to a certain extent, thereby being not beneficial to fault location of the device. In the using process of the distributed equipment, once a single board fails, the user can only restart the failed single board to remove the fault, and cannot perform fault location by logging in a console port of the failed single board, so that hidden dangers are buried for subsequent operation of the equipment.
Disclosure of Invention
The invention aims to provide a single board management method and network equipment, which realize the switching of connectivity between a control port and a CPU (central processing unit) and a single board by controlling the CPLD (complex programmable logic device) of a main control board through the CPU of the main control board, so that a user can directly log in the single board through the control port to perform fault location when the single board fails, the problem of recurrence is not needed, and the fault location efficiency is improved.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides a board management method applied to a main control board of a network device, where the main control board is configured to manage more than one board of the network device, the main control board includes a main control board CPU, a main control board CPLD, and a control port, the main control board CPU, the control port, and the more than one board are all connected to the main control board CPLD, and the control port is configured to be connected to an external device, and the method includes: the main control board CPU receives a first control instruction sent by the external equipment through the control port; the main control board CPU determines a target single board from the more than one single boards according to the first control instruction, and sends a target single board communicating instruction to the main control board CPLD; and the main control board CPLD disconnects the control port from the main control board CPU and communicates the control port with the target single board according to the target single board communication instruction so as to establish a physical channel between the control port and the target single board, thereby facilitating a user to log in the target single board through the control port.
In a second aspect, an embodiment of the present invention further provides a network device, where the network device includes a main control board and more than one single board, where the main control board includes a main control board CPU, a main control board CPLD, and a control port, the main control board CPU, the control port, and the more than one single boards are all connected to the main control board CPLD, and the control port is used for connecting with an external device; the main control board CPU is configured to receive a first control instruction sent by the external device through the control port, determine a target board from the more than one boards according to the first control instruction, and send a target board communication instruction to the main control board CPLD; the main control board CPLD is configured to disconnect the control port from the main control board CPU and connect the control port with the target board according to the target board connection instruction, so as to establish a physical channel between the control port and the target board, thereby facilitating a user to log in the target board through the control port.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the embodiment of the present invention, a main control board CPU receives a first control instruction sent by an external device through a control port, determines a target veneer from more than one veneers according to the first control instruction, and sends a target veneer connection instruction to a main control board CPLD, and the main control board CPLD disconnects the control port from the main control board CPU and connects the control port with the target veneer according to the target veneer connection instruction, so as to establish a physical channel between the control port and the target veneer, thereby facilitating a user to log in the target veneer through the control port. Therefore, in the application, the master control board CPU controls the master control board CPLD to realize the switching of the connectivity between the control port and the CPU and the single board of the master control board, so that a user can conveniently log in the single board through the control port to perform fault location when the single board fails, the problem does not need to be repeated, a large amount of time is not wasted in the problem repetition link, and the fault location efficiency is improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 shows a schematic structure of a centralized device in the prior art.
Fig. 2 shows a schematic structural diagram of a distributed device in the prior art.
Fig. 3 is a schematic structural diagram of a network device according to an embodiment of the present invention.
Fig. 4 is a flowchart illustrating a board management method according to an embodiment of the present invention.
Fig. 5 shows a schematic structural diagram of a main control board provided in an embodiment of the present invention.
Fig. 6 is a schematic diagram illustrating a specific structure of a network device according to an embodiment of the present invention.
Fig. 7 is a schematic diagram illustrating a control port communicating with a main control board according to an embodiment of the present invention.
FIG. 8 shows a service board E provided by an embodiment of the present invention1Schematic structural diagram of (1).
FIG. 9 shows a control port and a service board E provided in an embodiment of the present invention1Schematic representation of the communication.
Fig. 10 is a schematic flowchart illustrating a board management method according to an embodiment of the present invention.
Icon: 100-a network device; 110-a main control board; 120-single board; 130-a back plate; 112-main control board CPU; 114-main control board CPLD; 116-a control port; 122-single board CPU.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Fig. 3 is a block diagram of a network device 100 according to an embodiment of the present invention. The network device 100 may be a switch, a router, or other devices, the network device 100 includes a main control board 110, one or more single boards 120, and a backplane 130, where the main control board 110 and the one or more single boards 120 are all connected to the backplane 130, so as to implement a physical path between the main control board 110 and the single board 120 through the backplane 130.
The main control board 110 includes a main control board CPU112, a main control board CPLD114 and a control port 116, and the main control board CPU112, the control port 116 and one or more single boards 120 are all connected to the main control board CPLD 114.
The single board 120 includes a single board CPU122, and the main control board CPLD114 and the single board CPU122 are both connected to the backplane 130, so that the single board CPU122 is communicated with the main control board CPLD114 through the backplane 130. In practical applications, the single board CPU122 may be directly connected to the backplane 130, or may be connected to the backplane 130 through a single board CPLD disposed in the single board 120, which is not limited in this application.
In this embodiment, since the CPLD114 and the board CPU122 of each board 120 are both connected to the backplane 130, the backplane 130 can implement physical communication between the CPLD114 and the board CPU122 of each board 120.
In this embodiment, the control port 116 may be a console port, which is used to connect to an external device (e.g., a notebook computer), and after the network device 100 is connected to the external device through the control port 116, a user may configure and manage the network device 100 using the external device.
In this embodiment, the single board 120 may include a service board and a network board, where the number of the service board and the number of the network board may be set according to the actual need of the network device 100, which is not limited in this application.
Fig. 4 is a flowchart illustrating a board management method according to an embodiment of the present invention. It should be noted that, the board management method according to the embodiment of the present invention is not limited by fig. 4 and the specific sequence described below, and it should be understood that, in other embodiments, the sequence of some steps in the board management method according to the embodiment of the present invention may be interchanged according to actual needs, or some steps in the board management method may be omitted or deleted. The board management method may be applied to the main control board 110 of the network device 100 shown in fig. 3, where the main control board 110 is used to manage more than one board 120 of the network device 100, and the specific flow and steps of the board management method are described in detail below with reference to fig. 4.
In step S201, the main control board CPU receives a first control instruction sent by the external device through the control port.
In the present embodiment, the control port 116 on the main control board 110 is communicated with the main control board CPU112 through the main control board CPLD114 by default, and is not communicated with one or more single boards 120. After the user connects the control port 116 with the external device, a first control command can be input to the external device, and after the first control command is sent to the control port 116 by the external device, the first control command is transmitted to the main control board CPU112 through the main control board CPLD114 by the control port 116.
Step S202, the CPU of the main control board determines a target single board from more than one single board according to the first control instruction, and sends a target single board communicating instruction to the CPLD of the main control board.
In this embodiment, the first control instruction includes a board slot number, and after receiving the first control instruction, the main control board CPU112 determines a target board from the more than one boards 120 according to the board slot number in the first control instruction, and sends a target board connection instruction to the main control board CPLD 114.
In this embodiment, different boards 120 are connected to different slots on the backplane 130, and the board 120 on each slot has a corresponding slot number, so that the main control board CPU112 can determine the board 120 that the control port 116 needs to communicate with, i.e., the target board, according to the board slot number in the first control instruction by carrying the board slot number in the first control instruction.
Step S203, the CPLD disconnects the control port from the CPU of the main control board and connects the control port with the target board according to the target board connection instruction, so as to establish a physical channel between the control port and the target board, thereby facilitating the user to log in the target board through the control port.
In this embodiment, the main control board CPU112 includes a first transmission port, the first transmission port includes a first input pin and a first output pin, the first input pin is connected with the control port 116 through the main control board CPLD114 to form an input channel, and when the input channel is communicated, the main control board CPU112 can receive data through the control port 116; the first output pin is connected to the control port 116 through the CPLD114 of the main control board to form an output channel, and when the output channel is connected, the CPU112 of the main control board can transmit data through the control port 116.
In this embodiment, when the CPLD114 disconnects the control port 116 from the CPU112 of the main control board according to the target board connection command, the CPLD 116 disconnects the control port 116 from the first output pin according to the target board connection command, and keeps the control port 116 connected to the first input pin. That is, the main control board CPLD114 only disconnects the output channel between the control port 116 and the first output pin, and the input channel between the control port 116 and the first input pin is kept connected.
In this embodiment, the single board CPU122 includes a second transmission port, where the second transmission port includes a second input pin and a second output pin, the second input pin is connected with the control port 116 through the backplane 130 and the main control board CPLD114 to form an input channel, and when the input channel is communicated, the single board CPU122 may receive data through the control port 116; the second output pin is connected to the control port 116 through the backplane 130 and the main control board CPLD114 to form an output channel, and when the output channel is communicated, the single board CPU122 may send data through the control port 116.
It can be understood that, when the main control board CPLD114 communicates the control port 116 with the target board according to the target board communication instruction, the control port 116 is communicated with both the second input pin and the second output pin of the second transmission port of the target board, and at this time, the output channel between the control port 116 and the second output pin and the input channel between the control port 116 and the second input pin are both in a communicated state, that is, a physical channel between the control port and the target board is established, so that a user can conveniently log in the target board through the control port. In this embodiment, when a user logs in a target board through the control port 116, the control port 116 also needs to be connected to a terminal device, so as to implement operations such as configuration, management, fault location, online fault removal, and the like on the target board, where the terminal device used for logging in the target board and the external device may be the same device or different devices, which is not limited in this application. Next, an example is given to further explain step S201 to step S203.
Referring to fig. 5, in the main control board 110, a first transmission port of the main control board CPU112 may adopt a Universal Asynchronous Receiver Transmitter (UART), which includes a first input pin RXD and a first output pin TXD, where the first input pin RXD and the first output pin TXD are both connected to the main control board CPLD114, the control port 116 also includes an input pin RX and an output pin TX, both the input pin RX and the output pin TX are connected to the main control board CPLD114, the first input pin RXD is connected to the output pin TX of the control port 116 through the main control board CPLD114 to form an input channel, and the first output pin RXD is connected to the input pin RX of the control port 116 through the main control board CPLD114 to form an output channel. The control port 116 may be default to be connected to both the first input pin RXD and the first output pin TXD of the first transmission port, and to be disconnected to both the second input pin and the second output pin of the second transmission port of all the boards 120.
Taking the network device 100 shown in fig. 6 as an example, the above-mentioned one or more boards 120 include 2 service boards (service board E)1And service board E2) And 2 net plates (net plate S)1And a net plate S2) Service board E1Service board E2Screen plate S1And a screen plate S2Respective CPUs are connected to the backplane 130 via 1-way connection, assuming that the service board E1And service board E2The corresponding slot numbers are respectively '1' and '2', and the screen plate S1And a net plate S2The corresponding slot numbers are respectively '3' and '4'; the CPLD114 of the main control board needs to be connected to the backplane 130 through 4 lines, so as to be connected to the service board E through the 4 lines respectively1Service board E2Screen plate S1And a screen plate S2And (4) communicating. It should be noted that the above-mentioned "1-way connection line" does not indicate 1 connection line, and in this embodiment, the "1-way connection line" at least includes a connection line for connecting the CPLD114 of the main control board and the service board E1Service board E2Screen plate S1Or net sheet S 22 connecting lines between which input channels and output channels are formed; in fact, in practical applications, the "1-way connection" may include more connection lines.
Assume that in the network device 100 shown in fig. 6, the input channel (TX) -between the control port 116 and the main control board CPU112 is controlled>RXD) and output channel (RX) -between the control port 116 and the main control board CPU112>TXD), control port 116 and service board E1Business, industryService board E2Screen plate S1And a screen plate S2They are not connected, as shown in fig. 7, the solid line indicates connection, and the dotted line indicates disconnection. It is now necessary to switch the control port 116 to the traffic panel E1Service board E2Screen plate S1Or net sheet S2If one of the slot numbers is communicated, after the user can connect the control port 116 with the external device, the user inputs a first control instruction on the external device, where the first control instruction may be "comlpu slot-id," where "slot-id" is a slot number of the board, and is used to indicate that the control port 116 needs to be switched to the board 120 with the slot number of "slot-id.
For example, a user inputs a first control instruction "com lpu slot-1" on an external device through a command line, where the slot-1 "indicates that the slot number of a board is" 1 ", and after the main control board CPU112 receives the first control instruction through the control port 116 and obtains the slot number" slot-1 "of the board according to the first control instruction, the service board E with the slot number" 1 "can be determined1Is the target veneer, and sends the target veneer connection instruction to the main control board CPLD 114.
The sending of the target board connection instruction to the main control board CPLD114 by the main control board CPU112 may be realized by writing a register in the main control board CPLD 114. For example, when the main control board CPU112 determines the service board E1When the target board is the target board, the CPU112 of the main control board may write "001" (i.e., target board connection instruction) to the register in the CPLD114 of the main control board; when the main control board CPU112 determines the service board E2When the target single board is used, writing '010' (namely a target single board communication instruction) into a register in the main control board CPLD 114; when the target board connection command is "001", the CPLD114 disconnects the input pin RX of the control port 116 from the first output pin TXD according to the target board connection command, and keeps the output pin TX of the control port 116 connected to the first input pin RXD, so that the input pin RX and the output pin TX of the control port 116 are both connected to the service board E1Communicate to establish control port 116 with service board E1The physical path therebetween.
As shown in fig. 8, at service board E1Second on its CPUThe transmission port may also be a Universal Asynchronous Receiver Transmitter (UART), which includes a second input pin RX1 and a second output pin TX1, where the second input pin RX1 and the second output pin TX1 are both connected to the backplane 130, and when the CPLD114 of the main control board CPLD114 connects the control port 116 and the service board E1When the communication is performed, the input channel between the output pin TX of the control port 116 and the second input pin RX1 and the output channel between the input pin RX of the control port 116 and the second output pin TX1 are both communicated, so that the control port 116 is directly connected to the service board E1At this time, the user can directly log in the service board E through the control port 1161
As shown in fig. 9, after the CPLD114 of the main control board operates successfully according to the target board connection instruction, the input channel (TX) -between the control port 116 and the CPU112 of the main control board is controlled>RXD) remains connected, controls the output channel (RX) -between the port 116 and the main control board CPU112>TXD) is disconnected, controlling port 116 and service board E1Input channel (TX) -between>RX1) and an output channel (RX-)>TX1) are all connected.
It should be noted that, in this embodiment, the service board E2Screen plate S1And a screen plate S2The structure of other boards 120 and the principle of communicating with the control port 116 can be referred to the service board E shown in fig. 81And will not be described herein.
As can be seen, when the main control board CPLD114 switches the control port 116 from being communicated with the main control board CPU112 to being communicated with the target board according to the target board communication instruction, only the output channel between the main control board CPU112 and the control port 116 is disconnected, and the input channel between the main control board CPU112 and the control port 116 remains connected, so that the main control board CPU112 can obtain the second control instruction input by the user through the control port 116; after the control port 116 is communicated with the target board, the user may use an external device to connect with the control port 116, and directly log in the target board through the control port 116, to perform operations such as configuration, fault location, online fault removal, and the like on the target board, thereby greatly improving the fault location efficiency of the network device 100 in the research and development stage and the use stage.
Further, as shown in fig. 10, in this embodiment, after the main control board CPU112 operates the main control board CPLD114 to communicate the control port 116 with the target board, the main control board CPLD114 may be operated to switch back the control port 116 to communicate with the main control board CPU112, so that the user may log in the main control board 110 again through the control port 116, specifically refer to the following steps S204 to S206.
Step S204, the main control board CPU receives a second control instruction sent by the external device through the control port.
Similar to the first control command, the second control command may be input by the user on an external device connected to the control port 116, and transmitted to the main control board CPU112 by the control port 116 after being received by the control port 116. Since the input channel between the control port 116 and the first input pin of the main control board CPU112 is not disconnected when the main control board CPLD114 connects the control port 116 with the target board, the main control board CPU112 may obtain the second control instruction through the input channel between the first input pin and the control port 116.
And step S205, the CPU of the main control board sends a target single board disconnection instruction to the CPLD of the main control board according to the second control instruction.
Step S206, the main control board CPLD connects the control port with the first output pin according to the target board disconnection instruction, and disconnects the control port from the target board.
In this embodiment, the main control board CPU112 receives a second control instruction through an input channel between the first input pin of the main control board CPU112 and the control port 116, and sends a target board disconnection instruction to the main control board CPLD114 according to the second control instruction; since the input channel between the control port 116 and the first input pin of the main control board CPU112 is always kept connected, the main control board CPLD114 only needs to disconnect the control port 116 from the target board according to the target board disconnection instruction, and connect the first output pin of the main control board CPU112 with the control port 116, so that the user can log in the main control board 110 again through the control port 116.
It can be understood that, when the main control board CPLD114 disconnects the control port 116 from the target board according to the target board disconnection instruction, both the second input pin and the second output pin of the second transmission port of the control port 116 and the target board are disconnected, and at this time, both the output channel between the control port 116 and the second output pin and the input channel between the control port 116 and the second input pin are disconnected.
Next, still taking the network device 100 shown in fig. 6 as an example, the steps S204 to S206 will be further described.
Assume that in the current network device 100, the control port 116 and the service board E1The input channel and the output channel are communicated with the main control board CPU112 and the service board E2Screen plate S1And a screen plate S2Is not connected. It is now necessary to switch the control port 116 back into communication with the main control board CPU112 and with the service board E1If the connection is broken, the user needs to connect the control port 116 with an external device and input a second control command on the external device, for example, the second control command may be "commpu".
When receiving the second control instruction "commpu", the main control board CPU112 sends a target board disconnection instruction to the main control board CPLD114, where sending the target board disconnection instruction to the main control board CPLD114 by the main control board CPU112 is implemented by writing a register in the main control board CPLD114, for example, writing the target board disconnection instruction "000" into the register in the main control board CPLD 114.
Since the output pin TX of the control port 116 and the first input pin RXD of the first transmission port of the main control board CPU112 are always in a connected state, after the main control board CPU112 writes the target single board disconnection instruction "000" into the register in the main control board CPLD114, the main control board CPLD114 only needs to connect the input pin RX of the control port 116 and the first output pin TXD of the first transmission port of the main control board CPU112 according to the target single board disconnection instruction "000", and at this time, both the input channel and the output channel between the control port 116 and the main control board CPU112 are connected; in this embodiment, the CPLD114 of the main control board further needs to connect the input pin RX of the control port 116 and the service board E according to the target board disconnection command "0001Is disconnected from the second output pin TX1 of the second transmission portConnect, and connect the output pin TX of the control port 116 with the service board E1The second input pin RX1 of the second transmission port, thereby disconnecting the control port 116 from the service board E1The input channel and the output channel are not communicated; at this time, the user can log in the main control board 110 again through the control port 116, so as to perform operations such as configuration, fault location, etc. on the main control board 110.
To sum up, the board management method and the network device provided in the embodiments of the present invention include: the method comprises the steps that a main control board CPU receives a first control instruction sent by external equipment through a control port, a target single board is determined from more than one single board according to the first control instruction, and a target single board communication instruction is sent to a main control board CPLD, the main control board CPLD disconnects the control port from the main control board CPU and communicates the control port with the target single board according to the target single board communication instruction, so that a physical channel between the control port and the target single board is established, and a user can conveniently log in the target single board through the control port. In this embodiment, when the control port is disconnected from the main control board CPU, the control port is only disconnected from the first output pin of the first transmission port on the main control board CPU, and is connected to the first input pin of the first transmission port on the main control board CPU; when the control port needs to be switched back to be communicated with the main control board, the main control board CPU sends a target single board disconnection instruction to the main control board CPLD according to a second control instruction sent by the external equipment, and the main control board CPLD communicates the control port with the first output pin according to the target single board disconnection instruction and disconnects the control port from the target single board. It can be seen that, the master control board CPU controls the master control board CPLD, thereby realizing the switching of connectivity between the control port and the master control board CPU and the single board, so that the control port can be directly connected to the master control board and also directly connected to the single board, thereby solving the problem that the service board and the web board cannot be directly logged in through the console port in the prior art, and the network device can perform fault location in case of a fault of the single board in the research and development stage or in the user use stage, without recurring problems, without wasting a large amount of time in the problem recurring link, thereby improving the fault location efficiency, and also improving the customer experience and the product competitiveness to a certain extent.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.

Claims (10)

1. A single board management method is applied to a main control board of a network device, the main control board is used for managing more than one single board of the network device, the method is characterized in that the main control board comprises a main control board CPU, a main control board CPLD and a control port, the main control board CPU, the control port and the more than one single board are all connected to the main control board CPLD, the control port is used for being connected with an external device, the method comprises the following steps:
the main control board CPU receives a first control instruction sent by the external equipment through the control port;
the main control board CPU determines a target single board from the more than one single boards according to the first control instruction, and sends a target single board communicating instruction to the main control board CPLD;
and the main control board CPLD disconnects the control port from the main control board CPU and communicates the control port with the target single board according to the target single board communication instruction so as to establish a physical channel between the control port and the target single board, thereby facilitating a user to log in the target single board through the control port.
2. The board management method according to claim 1, wherein the main control board CPU includes a first transmission port, the first transmission port includes a first input pin and a first output pin, and the step of disconnecting the control port from the main control board CPU by the main control board CPLD according to the target board connection instruction includes:
and the main control board CPLD disconnects the control port from the first output pin according to the target single board communication instruction, and keeps the control port communicated with the first input pin.
3. The board management method according to claim 2, wherein the method further comprises:
the main control board CPU receives a second control instruction sent by the external equipment through the control port;
the main control board CPU sends a target single board disconnection instruction to the main control board CPLD according to the second control instruction;
and the main control board CPLD communicates the control port with the first output pin according to the target single board disconnection instruction, and disconnects the control port from the target single board.
4. The board management method according to claim 3, wherein the board includes a board CPU, the board CPU includes a second transmission port, the second transmission port includes a second input pin and a second output pin, the step of the main control board CPLD connecting the control port with the first output pin of the main control board CPU according to the target board disconnection instruction, and disconnecting the control port from the target board includes:
and the main control board CPLD communicates the control port with the first output pin according to the target single board disconnection instruction, and disconnects the control port from both the second input pin and the second output pin of the second transmission port of the target single board.
5. The veneer management method according to claim 1, wherein the first control instruction includes a veneer slot number, and the step of the main control board CPU determining a target veneer from the one or more veneers according to the first control instruction and sending a target veneer connection instruction to the main control board CPLD includes:
and the CPU of the main control board determines a target single board from the more than one single boards according to the single board slot position number and sends a target single board communication instruction to the CPLD of the main control board.
6. A network device is characterized in that the network device comprises a main control board and more than one single board, the main control board comprises a main control board CPU, a main control board CPLD and a control port, the main control board CPU, the control port and the more than one single boards are all connected to the main control board CPLD, and the control port is used for being connected with an external device;
the main control board CPU is configured to receive a first control instruction sent by the external device through the control port, determine a target board from the more than one boards according to the first control instruction, and send a target board communication instruction to the main control board CPLD;
the main control board CPLD is configured to disconnect the control port from the main control board CPU and connect the control port with the target board according to the target board connection instruction, so as to establish a physical channel between the control port and the target board, thereby facilitating a user to log in the target board through the control port.
7. The network device according to claim 6, wherein the main control board CPU includes a first transmission port, the first transmission port includes a first input pin and a first output pin, and the main control board CPLD is configured to disconnect the control port from the first output pin and keep the control port in communication with the first input pin according to the target board communication instruction.
8. The network device according to claim 7, wherein the main control board CPU is further configured to receive a second control instruction sent by the external device through the control port, and send a target board disconnection instruction to the main control board CPLD according to the second control instruction;
the main control board CPLD is further configured to connect the control port with the first output pin according to the target board disconnection instruction, and disconnect the control port from the target board.
9. The network device according to claim 8, wherein the single board includes a single board CPU, the single board CPU includes a second transmission port, the second transmission port includes a second input pin and a second output pin, and the main control board CPLD is configured to connect the control port with the first output pin according to the target single board disconnection instruction, and disconnect the control port from both the second input pin and the second output pin of the second transmission port of the target single board.
10. The network device according to claim 6, wherein the first control instruction includes a board slot number, and the main control board CPU is configured to determine a target board from the one or more boards according to the board slot number, and send a target board connectivity instruction to the main control board CPLD.
CN201810541640.1A 2018-05-30 2018-05-30 Single board management method and network equipment Active CN108712293B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810541640.1A CN108712293B (en) 2018-05-30 2018-05-30 Single board management method and network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810541640.1A CN108712293B (en) 2018-05-30 2018-05-30 Single board management method and network equipment

Publications (2)

Publication Number Publication Date
CN108712293A CN108712293A (en) 2018-10-26
CN108712293B true CN108712293B (en) 2021-12-07

Family

ID=63870870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810541640.1A Active CN108712293B (en) 2018-05-30 2018-05-30 Single board management method and network equipment

Country Status (1)

Country Link
CN (1) CN108712293B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109885519B (en) * 2019-02-01 2020-11-27 新华三信息安全技术有限公司 Connection switching method for serial port of main control board and main control board
CN109960671B (en) * 2019-03-31 2021-07-16 联想(北京)有限公司 Data transmission system, method and computer equipment
CN110850776B (en) * 2019-11-21 2021-03-23 杭州迪普科技股份有限公司 Control method and control device of frame type equipment and frame type equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141263A (en) * 2007-08-28 2008-03-12 福建星网锐捷网络有限公司 Method, control cell and system for controlling ethernet power supply
CN102804092A (en) * 2011-05-11 2012-11-28 华为技术有限公司 Control system and method for powering up and down single board based on JTAG bus
CN104283712A (en) * 2014-10-13 2015-01-14 杭州华三通信技术有限公司 Network equipment and management internet port configuration method for same
EP3029884A1 (en) * 2013-07-29 2016-06-08 ZTE Corporation Commissioning method, master control board, and service board
CN106850261A (en) * 2016-12-26 2017-06-13 北京华为数字技术有限公司 The network equipment and data transmission method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101986594B (en) * 2010-11-18 2015-06-03 中兴通讯股份有限公司 Method and device for realizing communication between single boards

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141263A (en) * 2007-08-28 2008-03-12 福建星网锐捷网络有限公司 Method, control cell and system for controlling ethernet power supply
CN102804092A (en) * 2011-05-11 2012-11-28 华为技术有限公司 Control system and method for powering up and down single board based on JTAG bus
EP3029884A1 (en) * 2013-07-29 2016-06-08 ZTE Corporation Commissioning method, master control board, and service board
CN104283712A (en) * 2014-10-13 2015-01-14 杭州华三通信技术有限公司 Network equipment and management internet port configuration method for same
CN106850261A (en) * 2016-12-26 2017-06-13 北京华为数字技术有限公司 The network equipment and data transmission method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
分布式路由器板间通信的研究与实现;郭斌彬;《中国优秀硕士学位论文全文数据库信息科技辑(月刊)》;20170315;全文 *

Also Published As

Publication number Publication date
CN108712293A (en) 2018-10-26

Similar Documents

Publication Publication Date Title
CN1863081B (en) Managing system and method based on intelligent platform managing interface
CN108712293B (en) Single board management method and network equipment
CN102752150B (en) Distributed communication equipment capable of providing remote board card debugging and remote board card debugging method
EP1708379B1 (en) Communication system having backup function for several series devices and method for carrying out the function of switching
CN101917337B (en) Device and method for interconnecting router cluster middle plates
US20100281094A1 (en) System for Consolidating and Securing Access to All Out-of-Band Interfaces in Computer, Telecommunication, and Networking Equipment, Regardless of the Interface Type
US9125319B2 (en) Rack server system
CN1983969A (en) System and realization for re-directing interface network
CN101354614B (en) Resource sharing apparatus and control method thereof
JP2014509819A (en) Network transpose box and switch operation based on backplane Ethernet
US9258253B2 (en) System and method for flexible switching fabric
CN104899170A (en) Distributed intelligent platform management bus (IPMB) connection method and ATCA (Advanced Telecom Computing Architecture) machine frame
CN101697531A (en) Method, device and equipment for multiplexing port
CN115794702A (en) Interface switching device, server system and interface switching method
US20210096968A1 (en) Server system
CN103166765A (en) Power over ethernet (PoE) power gating switchover method and device
CN105763488B (en) Data center aggregation core switch and backboard thereof
CN103092735A (en) Method for updating node states
KR100338604B1 (en) remote network management system via serial port
CN107181702B (en) Device for realizing RapidIO and Ethernet fusion exchange
CN102253686B (en) Server system and switching method thereof
CN101000572A (en) Mainframe management system and method
CN109150724A (en) A kind of communication means and network interface card
CN114138354A (en) Onboard OCP network card system supporting multi host and server
CN103501239A (en) Port state synchronization method and system and port state synchronization associated devices

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant