CN109600270B - Network equipment control method and network equipment - Google Patents

Network equipment control method and network equipment Download PDF

Info

Publication number
CN109600270B
CN109600270B CN201910075004.9A CN201910075004A CN109600270B CN 109600270 B CN109600270 B CN 109600270B CN 201910075004 A CN201910075004 A CN 201910075004A CN 109600270 B CN109600270 B CN 109600270B
Authority
CN
China
Prior art keywords
board
main control
network
control board
interface
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
CN201910075004.9A
Other languages
Chinese (zh)
Other versions
CN109600270A (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201910075004.9A priority Critical patent/CN109600270B/en
Publication of CN109600270A publication Critical patent/CN109600270A/en
Application granted granted Critical
Publication of CN109600270B publication Critical patent/CN109600270B/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/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • 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
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors
    • H04L49/552Prevention, detection or correction of errors by ensuring the integrity of packets received through redundant connections

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a network equipment control method and network equipment, when a network board without a processor and an internal memory is accessed into the network equipment for the first time and is in a first control state controlled by a first main control board, the first main control board carries out initialization configuration on the network board, and after the initialization configuration is finished, the network board is isolated so as to enable the network board not to participate in message forwarding, then a software table file of the network board is stored and sent to a second main control board, the network board is switched to a second control state controlled by the second main control board, so that the second main control board carries out initialization configuration on the network board according to the software table file in a hot start state, and the network board is switched to the first control state after the initialization configuration is finished. At this time, the first main control board cancels the isolation of the network board so that the network board participates in message forwarding. Through the control flow, the network board without the processor and the memory can normally participate in the message forwarding flow, so that the cost of network equipment can be greatly reduced, and the product competitiveness is improved.

Description

Network equipment control method and network equipment
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a network device control method and a network device.
Background
In order to ensure the linear speed forwarding and redundant backup capabilities of the device, the distributed network device usually has a plurality of network boards, and generally, the network boards include a mesh, a processor (such as a CPU), a memory, and the like. In the actual use process, each mesh generally can normally participate in message forwarding only by setting message forwarding entries, the requirements on a processor and a memory are small, the processor and the memory are independently designed according to the small actual requirements, the cost is high, and the market competitiveness of products is not facilitated.
Disclosure of Invention
In order to overcome the above-mentioned deficiencies in the prior art, the present disclosure provides a network device control method and a network device, so as to solve or improve the above-mentioned problems.
In order to achieve the above purpose, the embodiments of the present disclosure adopt the following technical solutions:
in a first aspect, the present disclosure provides a network device control method applied to a network device, where the network device includes a first main control board, a second main control board, and a network board that is connected to the first main control board and the second main control board respectively and is not provided with a processor and a memory, and the method includes:
when the network board is accessed to the network equipment for the first time and is in a first control state controlled by the first main control board, the first main control board carries out initialization configuration on the network board, and after the initialization configuration is finished, the network board is isolated so that the network board does not participate in message forwarding;
the first main control board stores the software table entry file of the screen board after the initialization configuration is finished, sends the software table entry file to the second main control board, and switches the screen board to a second control state controlled by the second main control board;
the second main control board performs initialization configuration on the screen board according to the software table entry file in a hot start state, and switches the screen board to a first control state after the initialization configuration is finished;
when the network board is switched to a first control state, the first main control board cancels the isolation of the network board so that the network board participates in message forwarding.
In a possible implementation manner, before the step of performing the initial configuration on the web panel by the first master control panel, the method further includes:
when the network board is accessed to the network equipment, the PCIE configuration register of each net piece in the network board is set through a diskless boot ROM interface, so that each net piece and the first main control board are in an effective connection state, and the network board is in a first control state.
In a possible implementation manner, the network device further includes a first interface board and a second interface board, where the first main control board and the second main control board are respectively connected to the first interface board and the second interface board, the first interface board and the second interface board include at least one switch chip, each switch chip is respectively connected to each mesh in the mesh board, and the step of performing initialization configuration on the mesh board by the first main control board includes:
the first main control board carries out initialization configuration on software table entries and hardware table entries of each net sheet in the net sheet;
and setting a forwarding table entry of each mesh in the mesh plate according to the connection relation between each mesh in the mesh plate and each exchange chip in the first interface plate and the second interface plate and the chip identifier of each exchange chip in the first interface plate and the second interface plate, and setting the forwarding table entry in the software table entry and the hardware table entry of each mesh after initialization configuration.
In a possible implementation manner, configuring an aggregation group in the first interface board and the second interface board, where the aggregation group includes an interconnection port number that allows the first interface board and the second interface board to send and receive a packet, and the step of isolating the network board so that the network board does not participate in packet forwarding includes:
controlling the first interface board and the second interface board to delete the number of interconnection ports connected with each mesh in the aggregation group so as to isolate the mesh from the first interface board and the second interface board;
the step of canceling the isolation of the screen plate by the first main control plate comprises the following steps:
and controlling the first interface board and the second interface board to recover the number of the interconnection port which is deleted from the aggregation group and is connected with each net sheet in the net sheet, so as to cancel the isolation of the net sheet from the first interface board and the second interface board.
In a possible implementation manner, after the step of canceling the quarantine of the network board by the first master control board so that the network board participates in message forwarding, the method further includes:
when the first master control board detects that the network board has a table item change event, updating a software table item and a hardware table item of a target network board related to the table item change event in the network board according to the detected table item change event;
sending the updated software table entry to the second main control board, and switching the screen board to a second control state;
and the second main control board updates the software table entry of the target mesh sheet according to the updated software table entry in a hot start state.
In a possible implementation manner, after the step of canceling the quarantine of the network board by the first master control board so that the network board participates in message forwarding, the method further includes:
when detecting that the first main control board has a main/standby switching event, the screen board is switched to a second control state;
and the second main control board cancels the hot start state and manages and controls the screen board.
In a possible implementation manner, after the step of initially configuring, by the second master control board, the web board according to the software entry file in a warm-boot state, the method further includes:
the second main control board sets the task currently running to be in an idle state so as to suspend the task currently running;
after the step of switching the current first control state to the second control state when the network board detects that the active/standby switching event exists in the first main control board, the method further includes:
and the second main control board finishes the idle state of the task currently running.
In a second aspect, an embodiment of the present disclosure further provides a network device, where the network device includes a first main control board, a second main control board, and a network board that is connected to the first main control board and the second main control board respectively and is not provided with a processor and a memory;
when the network board is accessed to the network equipment for the first time and is in a first control state controlled by the first main control board, the first main control board carries out initialization configuration on the network board, and after the initialization configuration is finished, the network board is isolated so that the network board does not participate in message forwarding;
after the initialization configuration is finished, the first main control board further stores the software table entry file of the screen plate and sends the software table entry file to the second main control board, and the screen plate is switched to a second control state controlled by the second main control board;
the second main control board is used for performing initialization configuration on the screen board according to the software table entry file in a hot start state and switching the screen board to a first control state after the initialization configuration is finished;
when the network board is switched to a first control state, the first main control board is used for canceling the isolation of the network board so that the network board participates in message forwarding.
Compared with the prior art, the method has the following beneficial effects:
the invention provides a network equipment control method and network equipment, when a network board without a processor and an internal memory is accessed into the network equipment for the first time and is in a first control state controlled by a first main control board, the first main control board carries out initialization configuration on the network board, and after the initialization configuration is finished, the network board is isolated so as to enable the network board not to participate in message forwarding, then a software table file of the network board is stored and sent to a second main control board, the network board is switched to a second control state controlled by the second main control board, so that the second main control board carries out initialization configuration on the network board according to the software table file in a hot start state, and the network board is switched to the first control state after the initialization configuration is finished. At this time, the first main control board cancels the isolation of the network board so that the network board participates in message forwarding. Through the control flow, the initialization configuration flow needing the participation of the processor and the memory in the prior art is realized through the first main control board and the second main control board, so that the network board can normally participate in the message forwarding flow without setting the processor and the memory, the cost of network equipment is greatly reduced, and the competitiveness of products is improved.
Drawings
To more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings that are required 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 disclosure and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings may be obtained from the drawings without inventive effort.
Fig. 1 is a schematic view of an application scenario of a network board and an interface board of a network device;
fig. 2 is a schematic block diagram of a network device according to an embodiment of the present disclosure;
fig. 3 is a flowchart illustrating a network device control method according to an embodiment of the disclosure;
fig. 4 is a second flowchart of a network device control method according to the second embodiment of the disclosure;
fig. 5 is a third schematic flowchart of a network device control method according to the embodiment of the disclosure.
Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. The components of the embodiments of the present disclosure, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present disclosure, presented in the figures, is not intended to limit the scope of the claimed disclosure, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
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.
Network devices (e.g., switches) are generally classified into centralized devices and distributed devices according to physical modalities. The centralized equipment is also called as box type equipment, the whole box type equipment only has one single board, and the single board is a single board integrating a main control board and an interface board. While distributed devices (also known as boxed devices), with a height of 2U (about 8.89cm) and above, the control plane and data plane are physically separated. The distributed equipment generally comprises a case, a main control board, an interface board and a screen board. The main control board is responsible for controlling the plane, and can be generally divided into a main control board and a standby control board according to actual roles, and the main control board and the standby control board are redundant backups of each other. The interface board and the network board are responsible for a data plane, the network board is responsible for forwarding cross-board traffic between different interface boards, the interface board usually comprises a service interface, and the network board usually does not have any service interface.
In detail, referring to fig. 1, taking an example that the interface board includes a first interface board and a second interface board, each interface board generally includes one or more switch chips. For example, in the application scenario shown in fig. 1, the first interface board includes a switch chip a, a switch chip b, a switch chip c, a switch chip d, and the like, respectively, and the second interface board includes a switch chip e, a switch chip f, and the like, respectively. These switching chips may have table lookup forwarding capability for messages. The mesh board generally includes one or more mesh sheets, and the mesh sheets may directly forward the packet according to internal header information (e.g., a destination address) of the packet sent by the first interface board or the second interface board, and forward the packet to an interconnection port of the switching chip where the packet output port is located. For example, in the application scenario shown in fig. 1, if the internal header information of the message received by the mesh 2 in the mesh B from the switch chip a of the first interface board indicates that the message needs to be sent to the switch chip f of the second interface board, the interconnection port of the switch chip f where the message output port is located is searched through a preset forwarding table entry, and then the message is sent to the switch chip f through the interconnection port.
In the application scenario shown in fig. 1, the network sheets are not connected to each other, and the switching chips are also not connected to each other, and each network sheet needs to be connected to all the switching chips of the first interface board and the second interface board. It should be noted that fig. 1 only shows the case where the mesh 2 and the mesh 3 in the mesh panel B are connected to all the switch chips, and for other mesh panels, for example, the mesh panel a, the mesh panel C, and the mesh panel D can be connected to all the switch chips of the first interface board and the second interface board with reference to the scenario shown in fig. 1.
As mentioned in the background art, each mesh generally can participate in message forwarding only by setting a message forwarding table entry, and only when a network device is accessed for the first time or a subsequent mesh or interface board is changed, a processor and a memory are needed. However, the inventor finds that in the actual use process, the situation that a processor and a memory are needed is less, if the processor and the memory are arranged in each network board, unnecessary cost is inevitably increased, which leads to cost performance reduction of network equipment, and if the network board can normally participate in the message forwarding process without designing the processor and the memory, the cost is greatly reduced.
For this reason, based on the findings of the above technical problems, the present inventors propose the following technical solutions to solve or improve the above problems. It should be noted that the above prior art solutions have shortcomings, which are the results of practical and careful study by the inventor, and therefore, the discovery process of the above problems and the solutions proposed by the embodiments of the present disclosure in the following description should be the contribution of the inventor to the present disclosure in the process of invention creation.
Referring to fig. 2, the embodiment of the disclosure uses a web panel 130 without a processor and a memory to provide a low-cost network device 100. As shown in fig. 2, the network device 100 may include a first main control board 110, a second main control board 120, and a network board 130 connected to the first main control board 110 and the second main control board 120, respectively. In addition, the network device 100 further includes a first interface board 140 and a second interface board 150, and the first main control board 110 and the second main control board 120 are respectively connected to the first interface board 140 and the second interface board 150. The first interface board 140 and the second interface board 150 may include at least one switch chip 160, each switch chip 160 is connected to each mesh 132 in the network board 130, and reference may be made to the above description for fig. 1 regarding specific connection relationships of the mesh 132 and the switch chip 160.
The first and second host boards 110 and 120 may include a Central Processing Unit (CPU) 102, a Peripheral Component Interconnect Express (PCIE) chip 104, and an Inter-Process Communication (IPC) chip 106, and each of the network boards 130 may include a network 132 and a PCIE interface 134 connected to the network 132. The PCIE chips 104 of the first main control board 110 and the second main control board 120 are respectively connected to the PCIE interface 134 of each network board 130. The IPC chips 106 of the first main control board 110 and the second main control board 120 are connected to the first interface board 140 and the second interface board 150, respectively, and the PCIE chip 104 and the IPC chip 106 are connected to the CPU102, respectively. In this way, the CPU102 of the first main control board 110 or the second main control board 120 can control and manage the mesh 132 of each network board 130 through the PCIE chip 104, and can control and manage the first interface board 140 and the second interface board 150 through the IPC chip 106. Through the above design, each screen 130 does not separately set a processor and a memory to control and manage the mesh 132, but directly controls and manages the mesh 132 through the first main control board 110 or the second main control board 120.
The network device control method shown in fig. 3, which is performed by the network device 100 shown in fig. 2, is explained in detail below with reference to fig. 2. It should be understood that, in other embodiments, the order of some steps in the network device control method of this embodiment may be interchanged according to actual needs, or some steps may be omitted or deleted. The detailed steps of the network device control method are described below.
Step S110, when the network board 130 is first accessed to the network device 100 and is in the first control state controlled by the first main control board 110, the first main control board 110 performs initialization configuration on the network board 130, and after the initialization configuration is finished, the network board 130 is isolated so that the network board 130 does not participate in message forwarding.
Since there is no processor or memory in the web 130, the network device 100 will view it as a light panel. The optical board is a logical single board, and can be understood as a software program that needs to be run by being attached to the first main control board 110 or the second main control board 120. In this embodiment, one of the first main control board 110 and the second main control board 120 serves as an active main control board of the network device 100, and the other serves as a standby main control board. In detail, taking the first main control board 110 as an active main control board and the second main control board 120 as a standby main control board as an example, when any network board 130 is accessed to the network device 100, a diskless boot ROM interface (also called Bootrom) on the network board 130 sets a PCIE configuration register of each mesh 132 in the network board 130, so that each mesh 132 and the first main control board 110 are in an effective connection state, and thus the network board 130 is in a first control state controlled by the first main control board 110.
The Bootrom is a boot program of the network device 100 (e.g., the network device 100 such as an ethernet switch or a router), and the Bootrom may start running at a designated location in the network board 130 and is responsible for booting the network board system. For example, the PCIE configuration register of each mesh 132 may be configured through Bootrom, so as to control the connection state between the PCIE interface 134 of the mesh 132 and the first main control board 110 or the second main control board 120 to be an effective connection state or an invalid connection state. For example, if the connection state between the PCIE interface 134 of the mesh 132 and the first main control board 110 is an effective connection state, the mesh 132 may be controlled by the first main control board 110; if the connection state between the PCIE interface 134 of the mesh 132 and the second main control board 120 is an effective connection state, the mesh 132 may be controlled by the second main control board 120.
When the screen 130 is in the first control state, the first master control board 110 starts to perform initial configuration on the software table entry and the hardware table entry of each mesh 132 in the screen 130. The software table entry of the mesh 132 may include, but is not limited to, software parameters, running program modules, running data, and the like of the mesh 132, and the hardware table entry of the mesh 132 may include, but is not limited to, chip hardware parameters of the mesh 132, port parameters of each port on the mesh 132, and the like. Taking the screen 130 as the screen B shown in fig. 1 as an example, when the screen B is in the first control state, the first main control board 110 starts to perform initialization configuration on the software table entries and the hardware table entries of the mesh 2 and the mesh 3 in the screen B.
Meanwhile, the first main control board 110 may further set a forwarding table entry of each mesh 132 in the mesh 130 according to a connection relationship between each mesh 132 in the mesh 130 and each switch chip 160 in the first interface board 140 and the second interface board 150 and a chip identifier of each switch chip 160 in the first interface board 140 and the second interface board 150, and set the forwarding table entry in a software table entry and a hardware table entry of each mesh 132 after the initialization configuration. For example, as shown in fig. 2, the CPU102 of the first main control board 110 may obtain, through the PCIE chip 104 and the IPC chip 106, a connection relationship between each mesh 132 and each switch chip 160 in the first interface board 140 and the second interface board 150 and a chip identifier of each switch chip 160 in the first interface board 140 and the second interface board 150, so as to obtain an interconnection port number of an interconnection port where an output port of each mesh 132 is connected to each switch chip 160, and a chip identifier of the switch chip 160 where each interconnection port number is located. Then, a corresponding relationship between the outgoing port number and the interconnection port number of each mesh 132 and the chip identifier of the switch chip 160 is established, a forwarding table entry of each mesh 132 can be set according to the corresponding relationship, and the forwarding table entry is set in the software table entry and the hardware table entry of each mesh 132 after the initialization configuration.
Through the design, the initialization configuration of the network board 130 can be completed, and the network board 130 can participate in normal message forwarding because the network board 130 is already configured with software table entries and hardware table entries.
The inventor found that the screen 130 can be controlled by only one main control board at the same time, and after the initialization configuration of the screen 130 is completed by the first main control board 110, the initialization configuration of the screen 130 by the second main control board 120 needs to be carried out for a period of time. In order to avoid that the software table entry changes due to the network board 130 participates in message forwarding in the process of initializing and configuring the network board 130 by the second master control board 120, which is not beneficial to the subsequent software table entry synchronization between the first master control board 110 and the second master control board 120, the first master control board 110 also needs to isolate the network board 130 after initializing and configuring the network board 130 so that the network board 130 does not participate in message forwarding.
In a possible implementation manner, the way that the first master control board 110 isolates the network board 130 so that the network board 130 does not participate in message forwarding may be: the first interface board 140 and the second interface board 150 are configured with an aggregation group, where the aggregation group includes an interconnection port number that allows the first interface board 140 and the second interface board 150 to receive and transmit packets. When the first main control board 110 needs to isolate the network board 130, the first interface board 140 and the second interface board 150 may be controlled to delete the interconnection port numbers connected to each of the network boards 132 in the network board 130 in the aggregation group, so that the first interface board 140 and the second interface board 150 do not send messages to each of the network boards 132 in the network board 130 any longer, and do not receive messages from each of the network boards 132 in the network board 130 any longer, thereby isolating the network board 130 from the first interface board 140 and the second interface board 150.
Still taking the screen 130 as the screen B shown in fig. 1 as an example, the first main control board 110 may control the first interface board 140 and the second interface board 150 to delete the interconnection port numbers connected to the mesh 2 and the mesh 3 in the aggregation group, so that the first interface board 140 and the second interface board 150 do not send messages to the mesh 2 and the mesh 3 any more, and do not receive messages from the mesh 2 and the mesh 3 any more.
In step S120, the first main control board 110 saves the software entry file of the screen board 130 after the initialization configuration is finished and sends the software entry file to the second main control board 120, and switches the screen board 130 to a second control state controlled by the second main control board 120.
In detail, after the first main control board 110 isolates the screen 130 from the first interface board 140 and the second interface board 150, the software table entry file of the screen 130 after the initialization configuration is finished is stored and sent to the second main control board 120, that is, the standby main control board. Then, the screen board 130 is switched to a second control state controlled by the second main control board 120, for example, a PCIE configuration register of each mesh 132 in the screen board 130 may be set, so that each mesh 132 is in an effective connection state with the second main control board 120, and the screen board 130 is in the second control state controlled by the second main control board 120. When the screen 130 is switched to the second control state, the first main control board 110 may notify the second main control board 120 to perform the initialization configuration on the screen 130.
In step S130, the second main control board 120 performs initialization configuration on the screen board 130 according to the software entry file in the hot start state, and switches the screen board 130 to the first control state after the initialization configuration is finished.
Since the second main control board 120 is a standby main control board, and the network board 130 is mostly controlled and managed by the first main control board 110 as an active main control board, the hardware table entries of the network board 130 can only be configured and modified by the active main control board. If the hardware entries of the network board 130 are modified by both the first host board 110 and the second host board 120, the network board 130 may malfunction.
In order to avoid the foregoing problem, in this embodiment, the second main control board 120 may perform initialization configuration on the web board 130 according to the software entry file in the hot Boot state norm Boot. The norm Boot means that the Boot is controlled by software to restart without turning off the power supply, so that the hardware configuration can be skipped. Therefore, the hardware table entry of the screen 130 is not changed when the second main control board 120 is in a hot start state, so that when the screen 130 is initially configured, only the software table entry of the screen 130 needs to be configured according to the software table entry file sent by the first main control board 110, and the hardware table entry of the screen 130 does not need to be configured, thereby avoiding the fault of the screen 130 caused by the error modification of the hardware table entry of the screen 130.
On the basis, after the second main control board 120 completes the initial configuration of the network board 130, the control right of the network board 130 needs to be switched to the first main control board 110 as the main control board, but normally, the related task currently running by the second main control board 120 needs to continuously access the chip hardware of the network board 130. In order to avoid the subsequent abnormality of the operation of the network board 130 caused by the second master board 120 accessing the hardware of the network board 130 during the management control of the network board 130 by the first master board 110, as a possible implementation, the second master board 120 may set the currently running task to an idle state to suspend the execution of the currently running task.
After the task currently running is set to the idle state, the second main control board 120 switches the screen 130 to the first control state. For example, the PCIE configuration register of each mesh 132 in the network board 130 may be set, so that each mesh 132 is in an active connection state with the first main control board 110, and thus the network board 130 is in a second control state controlled by the first main control board 110.
In step S140, when the network board 130 is switched to the first control state, the first main control board 110 cancels the isolation of the network board 130 so that the network board 130 participates in the message forwarding.
When the network board 130 is switched to the first control state, the network board 130 is managed and controlled by the first main control board 110 and can normally participate in message forwarding. Based on the foregoing description, at this time, the network board 130 is still in an isolated state with the first interface board 140 and the second interface board 150, and therefore the first main control board 110 needs to cancel the isolation of the network board 130 so that the network board 130 can participate in message forwarding normally. For example, the first main control board 110 may control the first interface board 140 and the second interface board 150 to recover the interconnection port numbers, which are deleted from the aggregation group and connected to each mesh 132 in the mesh panel 130, so that the first interface board 140 and the second interface board 150 may send a message to each mesh 132 in the mesh panel 130, or receive a message from each mesh 132 in the mesh panel 130, so that the mesh panel 130 may participate in message forwarding.
Based on the above design, the initialization configuration process that needs the participation of the processor and the memory in the prior art is implemented by the first main control board 110 and the second main control board 120, so that the network board 130 can normally participate in the message forwarding process without setting the processor and the memory, thereby greatly reducing the cost of the network device 100 and improving the competitiveness of the product.
Optionally, in the process of managing the control screen 130 by the first main control board 110, when the states of the interconnection ports between the screen 130 and the first interface board 140 and/or the second interface board 150 change, or when the first interface board 140 and/or the second interface board 150 are plugged in or pulled out, or when the stacking topology of the network device 100 changes, the forwarding table entries on the related meshes 132 on the screen 130 need to be updated. However, since the network board 130 has no processor and no memory, the change of the forwarding table entry needs to be updated by the first main control board 110 and the second main control board 120 to ensure the normal message forwarding function of the network board 130. Therefore, with reference to fig. 4, after the step S140, the method for controlling a network device according to this embodiment may further include the following steps:
in step S150, when detecting that the screen board 130 has an entry change event, the first main control board 110 updates the software entry and the hardware entry of the target mesh 132 associated with the entry change event in the screen board 130 according to the detected entry change event.
Step S160, sending the updated software table entry to the second main control board 120, and switching the screen 130 to the second control state.
In step S170, the second main control board 120 updates the software table entry of the target mesh 132 according to the updated software table entry in the hot start state.
Optionally, the entry change event may be, but is not limited to, an event that forwarding entries on the related mesh 132 on the mesh 130 need to be updated, which may be caused by any event, such as a change in the number of interconnection ports between the mesh 130 and the first interface board 140 and/or the second interface board 150, or a change in the stacking topology of the network device 100, and the like, which is not limited in this embodiment.
The first main control board 110 serves as an active main control board, and in the process of managing the control network boards 130, when it is detected that any network board 130 has an entry change event, the software entries and the hardware entries of the target mesh 132 associated with the entry change event in the network board 130 may be updated according to the detected entry change event.
Still taking the screen board 130 with the table entry change event as the screen board B shown in fig. 1 as an example, if the first main control board 110 detects that the interconnection ports of the mesh sheets 2 and 3 in the screen board B and the first interface board 140 change, the software table entries and the hardware table entries of the mesh sheets 2 and 3 may be updated according to the connection relationships between the mesh sheets 2 and 3 and the changed interconnection ports of the first interface board 140. Then, the updated software table entry may be sent to the second main control board 120, and the mesh 2 and the mesh 3 may be set to the second control state, at this time, the second main control board 120 may update the software table entries of the mesh 2 and the mesh 3 according to the updated software table entry in the hot start state.
Thus, when there is an entry change event in the network board 130, the processing flow of the entry change event that needs a processor and a memory to participate in the prior art is implemented by the first main control board 110 and the second main control board 120, so as to further ensure that the network board 130 normally participates in the message forwarding flow function.
Optionally, when the first main control board 110 has a main/standby switching event (e.g., a failure, a restart, a replacement, an inter-cut change, etc.), the first main control board 110 cannot perform management control on the network board 130 any more. In this case, in order to ensure that the network board 130 without the processor and the memory can continuously and normally operate, please further refer to fig. 5, after the step S140, the method for controlling the network device provided in this embodiment may further include the following steps:
in step S180, the network board 130 switches to the second control state when detecting that the main/standby switching event exists in the first main control board 110.
In step S190, the second main control board 120 cancels the hot start state and manages and controls the screen 130.
When the network board 130 detects that any active/standby switching event such as the aforementioned failure, restart, replacement, inter-cut change, etc., exists in the first main control board 110, the PCIE configuration register of each mesh 132 in the network board 130 may be set through the boost, so that each mesh 132 and the second main control board 120 are in an effective connection state, and thus, the network board is switched to the second control state. In the second control state, the second main control board 120 as the standby main control board is changed to the new active main control board for each mesh 132, and the idle state of the task that was running before the completion is canceled from the warm start state, and management control of the mesh board 130 is started.
In the embodiments provided in the present disclosure, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus and method embodiments described above are illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present disclosure may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
Alternatively, all or part of the implementation may be in software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions described in accordance with the embodiments of the disclosure are, in whole or in part, generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as an electronic device, server, data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It should be noted that, in this document, 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.
It will be evident to those skilled in the art that the disclosure is not limited to the details of the foregoing illustrative embodiments, and that the present disclosure may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the disclosure being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (10)

1. A network equipment control method is characterized in that the method is applied to network equipment, the network equipment comprises a first main control board, a second main control board and a screen board which is respectively connected with the first main control board and the second main control board and is not provided with a processor and a memory, and the method comprises the following steps:
when the network board is accessed to the network equipment for the first time and is in a first control state controlled by the first main control board, the first main control board carries out initialization configuration on the network board, and after the initialization configuration is finished, the network board is isolated so that the network board does not participate in message forwarding;
the first main control board stores the software table entry file of the screen board after the initialization configuration is finished, sends the software table entry file to the second main control board, and switches the screen board to a second control state controlled by the second main control board;
the second main control board performs initialization configuration on the screen board according to the software table entry file in a hot start state, and switches the screen board to a first control state after the initialization configuration is finished;
when the network board is switched to a first control state, the first main control board cancels the isolation of the network board so that the network board participates in message forwarding.
2. The method according to claim 1, wherein before the step of initially configuring the network board by the first master control board, the method further comprises:
when the network board is accessed to the network equipment, the PCIE configuration register of each net piece in the network board is set through a diskless boot ROM interface, so that each net piece and the first main control board are in an effective connection state, and the network board is in a first control state.
3. The method according to claim 1, wherein the network device further includes a first interface board and a second interface board, the first main control board and the second main control board are respectively connected to the first interface board and the second interface board, the first interface board and the second interface board include at least one switch chip, each switch chip is respectively connected to each mesh in the mesh board, and the step of performing the initial configuration on the mesh board by the first main control board includes:
the first main control board carries out initialization configuration on software table entries and hardware table entries of each net sheet in the net sheet;
and setting a forwarding table entry of each mesh in the mesh plate according to the connection relation between each mesh in the mesh plate and each exchange chip in the first interface plate and the second interface plate and the chip identifier of each exchange chip in the first interface plate and the second interface plate, and setting the forwarding table entry in the software table entry and the hardware table entry of each mesh after initialization configuration.
4. The method according to claim 3, wherein an aggregation group is configured in the first interface board and the second interface board, the aggregation group includes an interconnection port number that allows the first interface board and the second interface board to send and receive packets, and the step of isolating the network board so that the network board does not participate in packet forwarding includes:
controlling the first interface board and the second interface board to delete the number of interconnection ports connected with each mesh in the aggregation group so as to isolate the mesh from the first interface board and the second interface board;
the step of canceling the isolation of the screen plate by the first main control plate comprises the following steps:
and controlling the first interface board and the second interface board to recover the number of the interconnection port which is deleted from the aggregation group and is connected with each net sheet in the net sheet, so as to cancel the isolation of the net sheet from the first interface board and the second interface board.
5. The method according to any one of claims 1 to 4, wherein after the step of canceling the quarantine of the network board by the first master control board to enable the network board to participate in message forwarding, the method further comprises:
when the first master control board detects that the network board has a table item change event, updating a software table item and a hardware table item of a target network board related to the table item change event in the network board according to the detected table item change event;
sending the updated software table entry to the second main control board, and switching the screen board to a second control state;
and the second main control board updates the software table entry of the target mesh sheet according to the updated software table entry in a hot start state.
6. The method according to any one of claims 1 to 4, wherein after the step of canceling the quarantine of the network board by the first master control board to enable the network board to participate in message forwarding, the method further comprises:
when detecting that the first main control board has a main/standby switching event, the screen board is switched to a second control state;
and the second main control board cancels the hot start state and manages and controls the screen board.
7. The method according to claim 6, wherein after the step of the second master control board performing initialization configuration on the web page according to the software entry file in a warm-boot state, the method further comprises:
the second main control board sets the task currently running to be in an idle state so as to suspend the task currently running;
after the step of switching the current first control state to the second control state when the network board detects that the active/standby switching event exists in the first main control board, the method further includes:
and the second main control board finishes the idle state of the task currently running.
8. A network device is characterized in that the network device comprises a first main control board, a second main control board and a screen board which is respectively connected with the first main control board and the second main control board and is not provided with a processor and a memory;
when the network board is accessed to the network equipment for the first time and is in a first control state controlled by the first main control board, the first main control board carries out initialization configuration on the network board, and after the initialization configuration is finished, the network board is isolated so that the network board does not participate in message forwarding;
after the initialization configuration is finished, the first main control board further stores the software table entry file of the screen plate and sends the software table entry file to the second main control board, and the screen plate is switched to a second control state controlled by the second main control board;
the second main control board is used for performing initialization configuration on the screen board according to the software table entry file in a hot start state and switching the screen board to a first control state after the initialization configuration is finished;
when the network board is switched to a first control state, the first main control board is used for canceling the isolation of the network board so that the network board participates in message forwarding.
9. The network device control of claim 8, wherein the network device further comprises a first interface board and a second interface board, the first main control board and the second main control board are respectively connected to the first interface board and the second interface board, the first interface board and the second interface board comprise at least one switch chip, each switch chip is respectively connected to each mesh in the mesh board, and the first main control board further initializes and configures the mesh board specifically by:
initializing and configuring software table entries and hardware table entries of each mesh in the mesh plate;
and setting a forwarding table entry of each mesh in the mesh plate according to the connection relation between each mesh in the mesh plate and each exchange chip in the first interface plate and the second interface plate and the chip identifier of each exchange chip in the first interface plate and the second interface plate, and setting the forwarding table entry in the software table entry and the hardware table entry of each mesh after initialization configuration.
10. Network device according to claim 8 or 9, characterized in that:
the first master control board is further configured to, when detecting that the network board has a table item change event, update a software table item and a hardware table item of a target mesh sheet in the network board, which are associated with the table item change event, according to the detected table item change event;
sending the updated software table entry to the second main control board, and switching the screen board to a second control state;
and the second main control board is also used for updating the software table entry of the target mesh sheet according to the updated software table entry in a hot start state.
CN201910075004.9A 2019-01-25 2019-01-25 Network equipment control method and network equipment Active CN109600270B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910075004.9A CN109600270B (en) 2019-01-25 2019-01-25 Network equipment control method and network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910075004.9A CN109600270B (en) 2019-01-25 2019-01-25 Network equipment control method and network equipment

Publications (2)

Publication Number Publication Date
CN109600270A CN109600270A (en) 2019-04-09
CN109600270B true CN109600270B (en) 2021-08-06

Family

ID=65966745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910075004.9A Active CN109600270B (en) 2019-01-25 2019-01-25 Network equipment control method and network equipment

Country Status (1)

Country Link
CN (1) CN109600270B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114598643B (en) * 2022-01-19 2023-10-13 新华三技术有限公司 Data backup method and device

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101052013A (en) * 2007-05-22 2007-10-10 杭州华三通信技术有限公司 Method and system for realizing network equipment internal managing path
CN101106450A (en) * 2007-08-16 2008-01-16 杭州华三通信技术有限公司 Secure protection device and method for distributed packet transfer
CN101197851A (en) * 2008-01-08 2008-06-11 杭州华三通信技术有限公司 Method and system for implementing control of plane centralized type data plane distribution
CN101645839A (en) * 2009-09-10 2010-02-10 中兴通讯股份有限公司 Message processing method, system and business device
CN102204185A (en) * 2011-05-31 2011-09-28 华为技术有限公司 Multi-core router
CN104038387A (en) * 2014-06-04 2014-09-10 上海斐讯数据通信技术有限公司 Method for service board on-line detection of frame type exchanger
CN104811400A (en) * 2014-01-26 2015-07-29 杭州迪普科技有限公司 Distributed network apparatus
WO2016000354A1 (en) * 2014-06-30 2016-01-07 中兴通讯股份有限公司 Board configuration method and device
CN105677380A (en) * 2014-11-21 2016-06-15 中兴通讯股份有限公司 Method and device for plate-to-plate upgrading with dual master controls isolated
CN105871592A (en) * 2016-03-18 2016-08-17 广州海格通信集团股份有限公司 Duplicated hot-redundancy method of telephone dispatching device in distributed system architecture
CN105939365A (en) * 2015-06-29 2016-09-14 杭州迪普科技有限公司 Method and device for obtaining data from service panel kernel mode by main control panel user mode
CN106453092A (en) * 2016-11-07 2017-02-22 锐捷网络股份有限公司 Routing update method and device
CN107547277A (en) * 2017-08-29 2018-01-05 新华三技术有限公司 One kind virtualization control panel implementation method and network communication equipment
CN108023777A (en) * 2017-12-12 2018-05-11 锐捷网络股份有限公司 Port interconnected adaptation method, board and system

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101052013A (en) * 2007-05-22 2007-10-10 杭州华三通信技术有限公司 Method and system for realizing network equipment internal managing path
CN101106450A (en) * 2007-08-16 2008-01-16 杭州华三通信技术有限公司 Secure protection device and method for distributed packet transfer
CN101197851A (en) * 2008-01-08 2008-06-11 杭州华三通信技术有限公司 Method and system for implementing control of plane centralized type data plane distribution
CN101645839A (en) * 2009-09-10 2010-02-10 中兴通讯股份有限公司 Message processing method, system and business device
CN102204185A (en) * 2011-05-31 2011-09-28 华为技术有限公司 Multi-core router
CN104811400A (en) * 2014-01-26 2015-07-29 杭州迪普科技有限公司 Distributed network apparatus
CN104038387A (en) * 2014-06-04 2014-09-10 上海斐讯数据通信技术有限公司 Method for service board on-line detection of frame type exchanger
WO2016000354A1 (en) * 2014-06-30 2016-01-07 中兴通讯股份有限公司 Board configuration method and device
CN105677380A (en) * 2014-11-21 2016-06-15 中兴通讯股份有限公司 Method and device for plate-to-plate upgrading with dual master controls isolated
CN105939365A (en) * 2015-06-29 2016-09-14 杭州迪普科技有限公司 Method and device for obtaining data from service panel kernel mode by main control panel user mode
CN105871592A (en) * 2016-03-18 2016-08-17 广州海格通信集团股份有限公司 Duplicated hot-redundancy method of telephone dispatching device in distributed system architecture
CN106453092A (en) * 2016-11-07 2017-02-22 锐捷网络股份有限公司 Routing update method and device
CN107547277A (en) * 2017-08-29 2018-01-05 新华三技术有限公司 One kind virtualization control panel implementation method and network communication equipment
CN108023777A (en) * 2017-12-12 2018-05-11 锐捷网络股份有限公司 Port interconnected adaptation method, board and system

Also Published As

Publication number Publication date
CN109600270A (en) 2019-04-09

Similar Documents

Publication Publication Date Title
US11743097B2 (en) Method and system for sharing state between network elements
US6760859B1 (en) Fault tolerant local area network connectivity
WO2013133227A1 (en) Network system, switch, and network building method
CN108616382A (en) Upgrade method, apparatus, network interface card and the equipment of network interface card firmware
EP2822255B1 (en) System and method of a hardware shadow for a network element
WO2017000832A1 (en) Mac address synchronization method, device and system
WO2016014344A1 (en) Systems and methods for performing uninterrupted network upgrades with controllers
US11403319B2 (en) High-availability network device database synchronization
US20210286747A1 (en) Systems and methods for supporting inter-chassis manageability of nvme over fabrics based systems
JP7190569B2 (en) Data center traffic sharing method, apparatus, device and storage medium
US20210336867A1 (en) Dynamic discovery of service nodes in a network
WO2015154525A1 (en) Method and device for protecting hqos using multiple board cards
CN109831326B (en) Network equipment control method and network equipment
US7392520B2 (en) Method and apparatus for upgrading software in network bridges
CN111585835B (en) Control method and device for out-of-band management system and storage medium
EP2069934B1 (en) Fault-tolerant medium access control (mac) address assignment in network elements
CN109600270B (en) Network equipment control method and network equipment
KR20090016676A (en) Uninterrupted network control message generation during local node outages
US9426098B2 (en) Synchronizing out-of-sync elements in a distributed fibre channel forwarder
US9769059B2 (en) Fast interlayer forwarding
JP2006079379A (en) Composite computer apparatus and management method thereof
JP2010268342A (en) Network device
US20150154083A1 (en) Information processing device and recovery management method
CN114205207A (en) Network management method and device
CN103414590A (en) Software upgrading method and device

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