CN113992518A - Control method and device of network equipment - Google Patents

Control method and device of network equipment Download PDF

Info

Publication number
CN113992518A
CN113992518A CN202111056932.4A CN202111056932A CN113992518A CN 113992518 A CN113992518 A CN 113992518A CN 202111056932 A CN202111056932 A CN 202111056932A CN 113992518 A CN113992518 A CN 113992518A
Authority
CN
China
Prior art keywords
board
dependency
interface
dependent
standby
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.)
Withdrawn
Application number
CN202111056932.4A
Other languages
Chinese (zh)
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 Security Technologies Co Ltd
Original Assignee
New H3C Security 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 Security Technologies Co Ltd filed Critical New H3C Security Technologies Co Ltd
Priority to CN202111056932.4A priority Critical patent/CN113992518A/en
Publication of CN113992518A publication Critical patent/CN113992518A/en
Withdrawn legal-status Critical Current

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/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • H04L41/0836Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability to enhance reliability, e.g. reduce downtime
    • 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/084Configuration by using pre-existing information, e.g. using templates or copying from other 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/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Optical Communication System (AREA)

Abstract

The invention relates to the technical field of network equipment, in particular to a control method and a control device of the network equipment, wherein the method comprises the steps of obtaining attribute information corresponding to a target light plate; determining a dependent board of a target optical board based on the attribute information, and synchronizing the attribute information to each dependent board, wherein the dependent board comprises a main dependent board and a standby dependent board, and the target optical board is respectively connected with the main dependent board and the standby dependent board; and selecting the main dependency board or the standby dependency board to forward the service message according to the current states of the main dependency board and the standby dependency board, so that the main dependency board or the standby dependency board forwards the service message according to the attribute information. The attribute information of the target optical board is synchronized to each dependent board of the target optical board, so that the information in each dependent board is synchronized, and the target optical board is connected with each dependent board, so that even if the main dependent board is abnormal, the standby dependent board can still be used for realizing normal message forwarding.

Description

Control method and device of network equipment
Technical Field
The invention relates to the technical field of network equipment, in particular to a control method and a control device of network equipment.
Background
For network devices, a corresponding board card may be inserted into a slot of a subrack itself. In the optical board, there is a physical interface that can be forwarded, but there is no control chip running an operating system, so the optical board is essentially a board that has certain hardware resources and is controlled on a software level.
In the solutions provided in the prior art, a light panel is integrated in an interface board, and the interface board is used to control the light panel. The interface board can be called a dependent board of the optical board, that is, the dependent board is a board card for controlling the optical board on software. However, in the above technical solution, when the interface board that the main relies on is restarted, the optical board is also off-line, another interface board is on-line again, and this way of on-line again after off-line causes the forwarded table entry information to change or oscillate, thereby affecting the stability of message forwarding.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for controlling a network device, so as to solve the problem of stability of packet forwarding.
According to a first aspect, an embodiment of the present invention provides a method for controlling a network device, including:
acquiring attribute information corresponding to a target light plate;
determining a dependency board of the target optical board based on the attribute information, and synchronizing the attribute information to each dependency board, wherein the dependency board comprises a main dependency board and a standby dependency board, and the target optical board is respectively connected with the main dependency board and the standby dependency board;
and selecting the main dependency board or the standby dependency board to forward a service message according to the current filling of the main dependency board and the standby dependency board, so that the main dependency board or the standby dependency board forwards the service message according to the attribute information.
According to the control method of the network equipment provided by the embodiment of the invention, the attribute information of the target optical board is synchronized to each dependent board of the target optical board, so that the information in each dependent board is synchronized, and the target optical board is connected with each dependent board, so that even if the main dependent board is abnormal, the standby dependent board can be used for realizing normal message forwarding, and the stability of message forwarding is ensured.
With reference to the first aspect, in a first implementation manner of the first aspect, the attribute information includes slot information of the target optical board, slot information of all dependent boards of the target optical board, and interface information, and the determining a dependent board of the target optical board based on the attribute information and synchronizing the attribute information to each dependent board includes:
determining the position of the dependent board based on the slot position information of the target light board and the slot position information of all dependent boards of the target light board;
and performing interface creation or restoration of the target optical panel based on the interface information, and synchronizing the interface information to each dependent panel, so that the dependent panel locally creates or restores a mapping interface of the target optical panel interface.
According to the control method of the network equipment provided by the embodiment of the invention, some functions of the interface only need to be operated on the depending board, so that compared with the optical board depending on the main control board, when depending on the forwarding interface board, the work of the main control board and the communication among boards can be reduced, and the forwarding performance of the network equipment is improved.
With reference to the first aspect, in a second implementation manner of the first aspect, the determining dependent boards of the target optical board based on the attribute information and synchronizing the attribute information to each dependent board further includes:
synchronizing the interface configuration to the dependency board so that the dependency board performs route configuration or route learning on the interface indicated by the interface configuration.
With reference to the first aspect, in a third implementation manner of the first aspect, when a new standby dependency board insertion is detected, the method further includes:
acquiring attribute information of all the target light panels;
synchronizing the attribute information of all the target light panels to the new standby dependency board so that the new standby dependency board locally creates or restores the mapping interface of the target light panel interface;
and controlling the main dependent board to synchronize the operating data or the table item information of all the target optical boards to the new standby dependent board.
According to the control method of the network equipment provided by the embodiment of the invention, when the new standby dependency board is inserted, the attribute information of all the target optical boards is completely synchronized to the new standby dependency board, so that the data of all the standby dependency boards and the data of the main dependency board are synchronized, and when one of the standby dependency boards is abnormal, the other standby dependency board can ensure the normal forwarding of the message.
With reference to the first aspect, in a fourth implementation manner of the first aspect, the selecting, according to the current states of the active dependency board and the standby dependency board, the active dependency board or the standby dependency board to forward a service packet, so that the active dependency board or the standby dependency board forwards the service packet according to the attribute information includes:
when the current state of the main dependency board is determined to be a failure state, controlling the standby dependency board to be upgraded to a target main dependency board;
and forwarding the service message based on the target main dependency board and the attribute information.
According to the control method of the network equipment provided by the embodiment of the invention, the optical board is attached to the main and standby forwarding dependent boards, and after the main dependent board is abnormal, the standby dependent board is automatically upgraded to the main dependent board for continuing forwarding, so that the redundancy stability of the network equipment is improved.
With reference to the first aspect, in a fifth implementation manner of the first aspect, the acquiring attribute information corresponding to a target light panel includes:
acquiring a slot position corresponding to the target light panel to determine slot position information of the target light panel and slot position information of all dependent panels of the target light panel;
acquiring a configuration file, and determining the interface configuration of the target light panel based on the configuration file;
obtaining core data for creating an interface to determine interface information of the target light panel, wherein the core data comprises interface types and interface physical information.
According to the control method of the network equipment, the slot position is used for determining the dependent board corresponding to the target light board, and the accuracy of the determined dependent board is guaranteed.
According to a second aspect, an embodiment of the present invention further provides a control apparatus for a network device, including:
the acquisition module is used for acquiring attribute information corresponding to the target light plate;
the synchronization module is used for determining the dependency boards of the target optical board based on the attribute information and synchronizing the attribute information to each dependency board, wherein the dependency boards comprise a main dependency board and a standby dependency board, and the target optical board is respectively connected with the main dependency board and the standby dependency board;
and the control module is used for selecting the main dependency board or the standby dependency board to forward the service message according to the current states of the main dependency board and the standby dependency board, so that the main dependency board or the standby dependency board forwards the service message according to the attribute information.
The control module of the network device provided by the embodiment of the invention synchronizes the attribute information of the target optical board to each dependent board of the target optical board, so that the information in each dependent board is synchronized, and the target optical board is connected with each dependent board, so that even if the main dependent board is abnormal, the standby dependent board can be used for realizing normal message forwarding, and the stability of message forwarding is ensured.
With reference to the second aspect, in a first implementation manner of the second aspect, the attribute information includes slot information of the target optical board, slot information of all dependent boards of the target optical board, and interface information, and the synchronization module includes:
the determining unit is used for determining the position of the dependent board based on the slot position information of the target light board and the slot position information of all the dependent boards of the target light board;
and the first synchronization unit is used for establishing or recovering the interface of the target light panel based on the interface information and synchronizing the interface information to each dependent board so that the dependent board locally establishes or recovers the mapping interface of the target light panel interface.
With reference to the first implementation manner of the second aspect, in a second implementation manner of the second aspect, the attribute information further includes an interface configuration, and the synchronization module further includes:
and the second synchronization unit is used for synchronizing the interface configuration to the dependency board so that the dependency board performs route configuration or route learning on the interface indicated by the interface configuration.
With reference to the second aspect, in a third implementation manner of the second aspect, when a new standby dependency board insertion is detected, the apparatus further includes:
the second acquisition module is used for acquiring the attribute information of all the target light plates;
the second synchronization module is used for synchronizing the attribute information of all the target light panels to the new standby dependency board so that the new standby dependency board locally creates or restores the mapping interface of the target light panel interface;
and the control module is used for controlling the main dependent board to synchronize the operating data or the table item information of all the target optical boards to the new standby dependent board.
With reference to the second aspect, in a fourth implementation of the second aspect, the control module includes:
the control unit is used for controlling the standby dependency board to be upgraded to a target main dependency board when the current state of the main dependency board is determined to be a failure state;
and the forwarding unit is used for forwarding the service message based on the target main dependency board and the attribute information.
With reference to the second aspect, in a fifth implementation manner of the second aspect, the first obtaining module includes:
the first acquisition unit is used for acquiring the slot position information of the target light panel and the slot position information of all dependent panels of the target light panel;
the second acquisition unit is used for acquiring a configuration file and determining the interface configuration of the target light panel based on the configuration file;
and the third acquisition unit is used for acquiring core data for creating an interface so as to determine the interface information of the target light panel, wherein the core data comprises the interface type and the interface physical information.
According to a third aspect, an embodiment of the present invention provides an electronic device, including: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing therein computer instructions, and the processor executing the computer instructions to perform the method for controlling a network device according to the first aspect or any one of the embodiments of the first aspect.
According to a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores computer instructions for causing a computer to execute the control method of the network device described in the first aspect or any one implementation manner of the first aspect.
According to a fifth aspect, an embodiment of the present invention further provides a network device, including:
the main control board, the forwarding board and the target light board are respectively arranged in the corresponding slot positions of the machine frame;
the forwarding board is configured as a dependency board of the target optical board, the target optical board is connected with the forwarding board, the forwarding board is connected with the main control board, and the dependency board comprises an active dependency board and a standby dependency board;
the main control board is configured to execute the control method for network device in the first aspect of the present invention or any implementation manner of the first aspect of the present invention to perform control of packet forwarding.
In the network device provided by the embodiment of the invention, the main control board, the forwarding board and the target optical board are respectively arranged in the corresponding slot positions of the frame, the attribute information of the target optical board is synchronized to each dependent board of the target optical board, so that the information in each dependent board is synchronized, and the target optical board is connected with each dependent board. For the IRF stacking condition of the equipment, the light panel port serves as a stacking port, the main and standby dependent plates can be backup stacking plates for each other, and a certain forwarding single plate is abnormal, so that the stability of the whole stacking equipment is not affected, and the abnormal stacking splitting condition is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a block diagram of a subrack of network devices in accordance with an embodiment of the present invention;
fig. 2 is a structural diagram of each board in the network device according to the embodiment of the present invention;
fig. 3 is a flowchart of a control method of a network device according to an embodiment of the present invention;
fig. 4 is a flowchart of a control method of a network device according to an embodiment of the present invention;
fig. 5 is a flowchart of a control method of a network device according to an embodiment of the present invention;
fig. 6 is a block diagram of a configuration of a control apparatus of a network device according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides network equipment which comprises a main control board, a forwarding board and a target light board. The main control board, the forwarding board and the target light board are respectively arranged in the corresponding slot positions of the frame.
The machine frame of the network equipment can adopt the forms of a main and standby main control board and a main and standby forwarding board, and respectively support 8/16 light-emitting panel interface boards. The target light board is physically connected with the main and standby forwarding boards, so that the target light board is attached to the main and standby forwarding boards at the same time. If the frame forwarding board has no panel port, the frame forwarding board is set as an interface board on a software level, and a dependent board serving as a target light board processes, configures, issues, forwards and other functions for the target light board interface. As shown in fig. 1, the slots 0-1 are main and standby main control boards, the slots 2-3 are main and standby forwarding boards, and the slots 4-11 can be inserted with 8 optical board cards, and the network device replaces the traditional interface board using mother boards and daughter cards with a combination form of optical boards and attached forwarding boards at the outlet of the panel, so that the cost of the network device can be reduced, and the networking cost can be reduced. The network device may be a router, and the corresponding machine frame is referred to as a router machine frame.
Based on the physical characteristics of the network device, the embodiment of the invention provides a control method of the network device, which can also be understood as a light board dependent board model, namely a light board dependent board software model that a light board depends on a main/standby interface board.
With reference to the frame structure shown in fig. 1, slots 0-1 are main/standby main control boards, slots 2-3 are main/standby forwarding boards, and slots 4-11 can be inserted with 8 optical board cards. The main control board is used for issuing, saving and backing up configuration, calculating and generating and issuing forwarding table items, saving running data and the like; the main and standby main control boards can be mutually backed up, and the stability and redundancy of the system are increased. The forwarding board of the slot 2-3 is physically connected with the optical board of the slot 4-11, and the forwarding board is set to be in an interface forwarding board role on a software level because the forwarding board does not have a panel port, and is used as a dependent board of the optical board to process, configure, issue, forward and other functions for the optical board interface. As shown in fig. 2, the connection relationship between the boards in the machine frame is that the main control board and the standby main control board are backup of each other, the main dependence board and the standby dependence board are backup of each other, the IO board is inserted into the IO board, and the optical board is connected to both the main dependence board and the standby dependence board, and can perform forwarding control on the optical board. As described above, the active dependency board and the standby dependency board may be implemented by using a forwarding board, and the forwarding board is configured to function as an interface forwarding board in a software layer, so that the forwarding board can be used as a dependency board of the optical board.
The method for controlling the network device provided by the embodiment of the invention is based on the light plate dependent plate model, namely, the message forwarding of the network device is controlled through the light plate dependent plates which are mutually backed up, so that the condition that the list items are unstable due to the fact that one part needs to be electrified and started again when the other part is abnormal is avoided. Specifically, the embodiment of the invention ensures that the main and standby dependent boards simultaneously have the optical board interfaces and data such as configuration and forwarding table entries, and ensures the working continuity of the optical board interfaces and the redundant backup of the data under the conditions of optical board insertion, standby dependent board insertion, main dependent board extraction and the like. The detailed description will be given below with respect to a specific control manner.
In accordance with an embodiment of the present invention, there is provided an embodiment of a method for controlling a network device, it should be noted that the steps illustrated in the flowchart of the accompanying drawings may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that herein.
In this embodiment, a control method of a network device is provided, which may be used for the above-mentioned main control board, such as an active main control board, or a standby main control board, and fig. 3 is a flowchart of a control method of a network device according to an embodiment of the present invention, and as shown in fig. 3, the flowchart includes the following steps:
and S11, acquiring attribute information corresponding to the target light panel.
As described above, the target optical board, the main control board, the dependent board, and the like are all inserted into the corresponding slot of the machine frame, so that when the target optical board is inserted, the dependent board can sense the insertion and report the insertion to the main control board. The main control board can know the insertion of the target light board, and then the main control board can acquire the attribute information corresponding to the target light board from the equipment bottom layer.
The attribute information includes interface configuration, interface information, optical panel core data and the like. Wherein the interface is configured for subsequent route learning, route configuration or learning policy, etc.; the interface information is used for creating recovery interfaces on the main control board and the dependent board so as to realize communication connection with the target light board; the light panel core data is used for determining which interface board the target light panel inserted at present is attached to and can also be attached to, wherein the judgment of the interface board which can be attached to is determined by using the continuous relation between the inserted slot positions and the slot positions of the interface board.
The purpose of the main control board for obtaining the attribute information is to control the target light panel and enable the main and standby dependent boards corresponding to the target light panel to have the attribute information of the light panel at the same time, so that redundant backup of data is realized. The content included in the attribute information is not limited to the above, and may be specifically set according to actual requirements, and is not limited in any way here.
Details about this step will be described later.
And S12, determining the dependent board of the target light board based on the attribute information, and synchronizing the attribute information to each dependent board.
The dependency board comprises a main dependency board and a standby dependency board, and the target optical board is respectively connected with the main dependency board and the standby dependency board.
As described above, the main control board determines the dependent boards of the target optical board by using the attribute information, that is, determines the main dependent board and the standby dependent board, and synchronizes the attribute information to all the dependent boards, so that all the dependent boards obtain the same information, thereby implementing data redundancy backup. After the attribute information is synchronized to each dependent board, each dependent board needs to create and restore a corresponding interface to ensure communication connection with the target optical board.
Details about this step will be described later.
And S13, selecting the primary dependency board or the standby dependency board to forward the service message according to the current states of the primary dependency board and the standby dependency board, so that the primary dependency board or the standby dependency board forwards the service message according to the attribute information.
Inserting a machine frame into both the main dependent board and the standby dependent board, and synchronizing the data of the main dependent board and the standby dependent board; when the standby dependency board is inserted later, the standby dependency board is firstly synchronized with the main dependency board to ensure the data synchronization of the standby dependency board and the main dependency board; when the main dependent board and the standby dependent board are inserted first and the target optical board is inserted later, the main control board acquires the attribute information of the main dependent board and synchronizes the attribute information to all the dependent boards of the target optical board when the target optical board is detected to be inserted, so that the data synchronization of the main dependent board and the standby dependent board is realized.
Because the target optical board is connected with the main dependent board and the standby dependent board at the same time, and the main dependent board and the standby dependent board have the same information, when the main dependent board is abnormal, the target optical board can be directly switched to the standby dependent board for message forwarding. The current states of the main dependent board and the standby dependent board can be monitored by the main control board, and when the main dependent board is normal, the main dependent board is adopted to forward the service message according to the attribute information; and when the main dependency board is abnormal, the standby dependency board is adopted to forward the service message according to the attribute information.
Details about this step will be described later.
According to the control method of the network device, the attribute information of the target optical board is synchronized to each dependent board of the target optical board, so that the information in each dependent board is synchronized, and the target optical board is connected with each dependent board.
In this embodiment, a control method of a network device is provided, which may be used for the above-mentioned main control board, such as an active main control board, or a standby main control board, and fig. 4 is a flowchart of the control method of the network device according to the embodiment of the present invention, and as shown in fig. 4, the flowchart includes the following steps:
and S21, acquiring attribute information corresponding to the target light panel.
Wherein the attribute information includes light panel core data, interface information, and interface configuration of the target light panel. The light panel core data comprises a slot position of a target light panel, a main dependent panel slot position of the light panel, all dependent panel slot positions of the light panel and the like. The interface information comprises the type of the interface, the name of the interface name and other physical information. The interface configuration comprises interfaces vlan and ip, and the like, and is used for route configuration, route learning, policy learning, and the like.
Specifically, S21 includes:
and S211, acquiring the slot position information of the target light panel and the slot position information of all the dependent panels of the target light panel.
The forwarding board hardware senses the insertion of the target optical board and reports the insertion of the target optical board in the corresponding slot position, as shown in fig. 1, the default slot position 2 is a main dependent board. That is, when the target optical board is inserted, the default slot position 2 is the primary relying board, and the forwarding boards and the standby relying boards of other slot positions. Of course, the determination on the active dependency board may also be a specification, and is not limited to a default value, and may specifically perform corresponding setting according to actual requirements.
S212, obtaining the configuration file, and determining the interface configuration of the target light panel based on the configuration file.
The main control board stores a configuration information file, and the configuration information file is restored to the main control board memory after the main control board is started. Then, after the slot position of the target light panel is obtained, the main control board can determine the interface configuration of the target light panel based on the configuration file.
And S213, acquiring the core data for creating the interface to determine the interface information of the target light panel.
The core data comprises interface types and interface physical information.
The main control board obtains the core data for creating the interface from the main control board, the interface is on the target optical board, the information of the interface is obtained from the optical board by depending on the board, if the optical board is changed, the interface information is different, and if the interface is created, the core data of the created interface is needed to be used. Of course, if the interface is already created on the main control board, it only needs to be activated again for use.
And S22, determining the dependent board of the target light board based on the attribute information, and synchronizing the attribute information to each dependent board.
The dependency board comprises a main dependency board and a standby dependency board, and the target optical board is respectively connected with the main dependency board and the standby dependency board.
Specifically, S22 includes:
and S221, determining the position of the dependent board based on the slot position information of the target light board and the slot position information of all the dependent boards of the target light board.
As described above, the light panel core data represents the master dependent panel slot and all dependent panel slots of the target light panel. Then, the main control board can determine the position of the dependent board by using the core data, and synchronize the optical board core data to other dependent boards to ensure data synchronization.
And S222, creating or recovering an interface of the target optical board based on the interface information, and synchronizing the interface information to each dependent board, so that the dependent board performs mapping interface for locally creating or recovering the target optical board interface.
The light panel dependent board acquires interface information required to be created by the target light panel, and creates or restores a mapping interface of the target light panel interface locally. The optical board dependent board sends the interface information to the main control board, the main control board creates or recovers the mapping interface, and the main control board broadcasts the insertion of each single-board optical board interface, so that the dependent board locally creates or recovers the mapping interface of the target optical board interface.
In some optional implementations of this embodiment, as described above, the attribute information further includes an interface configuration, and the S22 may further include synchronizing the interface configuration to the dependency board. The interface configuration includes interfaces vlan and ip, etc. for route configuration, route learning, policy learning, etc.
And S23, selecting the primary dependency board or the standby dependency board to forward the service message according to the current states of the primary dependency board and the standby dependency board, so that the primary dependency board or the standby dependency board forwards the service message according to the attribute information.
Please refer to S13 in fig. 3 for details, which are not described herein.
According to the control method of the network equipment, the slot position is used for determining the dependent board corresponding to the target light board, and the accuracy of the determined dependent board is guaranteed. Some functions of the interface only need to be operated on the dependent board, so that compared with the optical board depending on the main control board, when depending on the forwarding interface board, the work of the main control board and the communication among the boards can be reduced, and the forwarding performance of the network equipment is improved.
In this embodiment, a method for controlling a network device is provided, which can be used for the above-mentioned main control board, such as an active main control board or a standby main control board. In this embodiment, taking the detection of the insertion of a new standby dependency board as an example, fig. 5 is a flowchart of a control method of a network device according to an embodiment of the present invention, as shown in fig. 5, the flowchart includes the following steps:
and S31, acquiring attribute information corresponding to the target light panel.
Please refer to S21 in fig. 4 for details, which are not described herein.
And S32, determining the dependent board of the target light board based on the attribute information, and synchronizing the attribute information to each dependent board.
The dependency board comprises a main dependency board and a standby dependency board, and the target optical board is respectively connected with the main dependency board and the standby dependency board.
Please refer to S22 in fig. 4 for details, which are not described herein.
And S33, selecting the primary dependency board or the standby dependency board to forward the service message according to the current states of the primary dependency board and the standby dependency board, so that the primary dependency board or the standby dependency board forwards the service message according to the attribute information.
Please refer to S23 in fig. 4 for details, which are not described herein.
And S34, acquiring the attribute information of all target light plates.
And S35, synchronizing the attribute information of all the target light boards to the new standby dependency board so that the new standby dependency board locally creates or restores the mapping interface of the target light board interface.
The main control board synchronizes the attribute information of all the target optical boards to the new standby dependency board, so that the new standby dependency board creates or restores the mapping interface of the target optical board interface locally based on the interface creating or restoring manner described in S22. After the new standby dependency board mapping interface is created or recovered, the new standby dependency board is synchronized with the interface of the active dependency board.
And S36, controlling the main dependent board to synchronize the operation data or the table item information of all the target optical boards to the new standby dependent board.
The main control board synchronizes the main dependent board and the new standby dependent board, i.e. synchronizes the operation data or the table item information of all the target optical boards to the new standby dependent board.
After the data of the main dependent board and the new standby dependent board are synchronized, the main dependent board, the standby dependent board and the new standby dependent board can back up each other to forward the message.
In some optional implementations of this embodiment, the S33 may further include:
(1) and when the current state of the main dependent board is determined to be a failure state, controlling the standby dependent board to be upgraded to the target main dependent board.
(2) And forwarding the service message based on the target main dependency board and the attribute information.
When the main control board senses that the current state of the main dependency board is in a failure state, the main dependency board informs the standby dependency board that the main dependency board is changed at the moment, and all messages are switched to a new main dependency board for receiving and sending. Since the main dependent board backups the operating data or the table entry information of the optical board interface to the standby dependent board, the standby dependent board can continue to work according to the previous operating data after the main dependent board is upgraded.
Further, after the two frames of equipment form the IRF stack, when the standby dependency board is raised to the main dependency board thickness, the stack message can be directly received and sent from the target main dependency board, and the situation that the stack is directly split once the motherboard is abnormal is avoided.
The optical board is attached to the main and standby forwarding dependent boards, and after the main dependent board is abnormal, the standby dependent board is automatically upgraded to the main dependent board for continuing forwarding, so that the redundancy stability of the network equipment is improved.
In the control method for the network device provided in this embodiment, when the standby dependency board is plugged, all the attribute information of the target optical board is synchronized to the standby dependency board, so that the data of the standby dependency board and the data of the active dependency board are synchronized, and when one of the standby dependency board and the active dependency board is abnormal, the other one of the standby dependency board and the active dependency board can ensure normal forwarding of the packet. Some functions of the interface only need to operate on the dependence board, so that when the optical board is dependent on the main control board and the forwarding interface board, the work of the main control board and the communication between the boards can be reduced, and the forwarding performance of the equipment is improved.
As an optional implementation manner of this embodiment, the optical board dependent board may be simulated into a role of a standby main control board on a software level, and the standby main control board cannot be upgraded to the role of the standby main control board of the main control board, so that the machine frame form of the network device is composed of the main and standby main control boards and the optical board, and all interface configuration information and forwarding table entries exist on all main control boards.
In this embodiment, a control device of a network device is further provided, where the control device is used to implement the foregoing embodiments and preferred embodiments, and details of the foregoing description are omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
The present embodiment provides a control apparatus for a network device, as shown in fig. 6, including:
a first obtaining module 41, configured to obtain attribute information corresponding to a target light panel;
a first synchronization module 42, configured to determine a dependency board of the target optical board based on the attribute information, and synchronize the attribute information to each dependency board, where the dependency board includes a main dependency board and a standby dependency board, and the target optical board is connected to the main dependency board and the standby dependency board respectively;
a control module 43, configured to select the active dependency board or the standby dependency board to forward a service packet according to the current states of the active dependency board and the standby dependency board, so that the active dependency board or the standby dependency board forwards the service packet according to the attribute information.
The control module of the network device provided in this embodiment synchronizes the attribute information of the target optical board to each dependent board of the target optical board, so that the information in each dependent board is synchronized, and the target optical board is connected to each dependent board.
Optionally, the attribute information includes slot position information of the target light panel, slot position information of all dependent boards of the target light panel, and interface information, and the synchronization module includes:
the determining unit is used for determining the position of the dependent board based on the slot position information of the target light board and the slot position information of all the dependent boards of the target light board;
and the first synchronization unit is used for establishing or recovering the interface of the target light panel based on the interface information and synchronizing the interface information to each dependent board so that the dependent board locally establishes or recovers the mapping interface of the target light panel interface.
Optionally, the attribute information further includes an interface configuration, and the synchronization module further includes:
and the second synchronization unit is used for synchronizing the interface configuration to the dependency board so that the dependency board performs route configuration or route learning on the interface indicated by the interface configuration.
In some optional implementations of this embodiment, when a new standby dependency board insertion is detected, the apparatus further comprises:
the second acquisition module is used for acquiring the attribute information of all the target light plates;
the second synchronization module is used for synchronizing the attribute information of all the target light panels to the new standby dependency board so that the new standby dependency board locally creates or restores the mapping interface of the target light panel interface;
and the control module is used for controlling the main dependent board to synchronize the operating data or the table item information of all the target optical boards to the new standby dependent board.
Optionally, the control module comprises:
the control unit is used for controlling the standby dependency board to be upgraded to a target main dependency board when the current state of the main dependency board is determined to be a failure state;
and the forwarding unit is used for forwarding the service message based on the target main dependency board and the attribute information.
Optionally, the first obtaining module includes:
the first acquisition unit is used for acquiring the slot position information of the target light panel and the slot position information of all dependent panels of the target light panel;
the second acquisition unit is used for acquiring a configuration file and determining the interface configuration of the target light panel based on the configuration file;
and the third acquisition unit is used for acquiring core data for creating an interface so as to determine the interface information of the target light panel, wherein the core data comprises the interface type and the interface physical information.
The control means of the network device in this embodiment is presented in the form of functional units, where a unit refers to an ASIC circuit, a processor and a memory executing one or more software or fixed programs, and/or other devices that can provide the above-described functionality.
Further functional descriptions of the modules are the same as those of the corresponding embodiments, and are not repeated herein.
An embodiment of the present invention further provides an electronic device, which includes the control apparatus of the network device shown in fig. 6.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an electronic device according to an alternative embodiment of the present invention, and as shown in fig. 7, the electronic device may include: at least one processor 51, such as a CPU (Central Processing Unit), at least one communication interface 53, memory 54, at least one communication bus 52. Wherein a communication bus 52 is used to enable the connection communication between these components. The communication interface 53 may include a Display (Display) and a Keyboard (Keyboard), and the optional communication interface 53 may also include a standard wired interface and a standard wireless interface. The Memory 54 may be a high-speed RAM Memory (volatile Random Access Memory) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The memory 54 may alternatively be at least one memory device located remotely from the processor 51. Wherein the processor 51 may be in connection with the apparatus described in fig. 6, the memory 54 stores an application program, and the processor 51 calls the program code stored in the memory 54 for performing any of the above-mentioned method steps.
The communication bus 52 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 52 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus.
The memory 54 may include a volatile memory (RAM), such as a random-access memory (RAM); the memory may also include a non-volatile memory (english: non-volatile memory), such as a flash memory (english: flash memory), a hard disk (english: hard disk drive, abbreviated: HDD) or a solid-state drive (english: SSD); the memory 54 may also comprise a combination of the above types of memories.
The processor 51 may be a Central Processing Unit (CPU), a Network Processor (NP), or a combination of a CPU and an NP.
The processor 51 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), a General Array Logic (GAL), or any combination thereof.
Optionally, the memory 54 is also used to store program instructions. The processor 51 may call program instructions to implement a method of controlling a network device as shown in any of the embodiments of fig. 2 to 4 of the present application.
An embodiment of the present invention further provides a non-transitory computer storage medium, where the computer storage medium stores computer-executable instructions, and the computer-executable instructions may execute the method for controlling a network device in any of the above method embodiments. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (12)

1. A method for controlling a network device, comprising:
acquiring attribute information corresponding to a target light plate;
determining a dependency board of the target optical board based on the attribute information, and synchronizing the attribute information to each dependency board, wherein the dependency board comprises a main dependency board and a standby dependency board, and the target optical board is respectively connected with the main dependency board and the standby dependency board;
and selecting the main dependency board or the standby dependency board to forward a service message according to the current states of the main dependency board and the standby dependency board, so that the main dependency board or the standby dependency board forwards the service message according to the attribute information.
2. The method of claim 1, wherein the attribute information comprises slot information for the target light panel, slot information for all dependent boards of the target light panel, and interface information, wherein determining a dependent board for the target light panel based on the attribute information and synchronizing the attribute information to each of the dependent boards comprises:
determining the position of the dependent board based on the slot position information of the target light board and the slot position information of all dependent boards of the target light board;
and performing interface creation or restoration of the target optical panel based on the interface information, and synchronizing the interface information to each dependent panel, so that the dependent panel locally creates or restores a mapping interface of the target optical panel interface.
3. The method of claim 2, wherein the attribute information further comprises an interface configuration, the determining a dependent board of the target light panel based on the attribute information and synchronizing the attribute information to each of the dependent boards comprising:
synchronizing the interface configuration to the dependency board so that the dependency board performs route configuration or route learning on the interface indicated by the interface configuration.
4. The method of claim 1, wherein when a new standby dependency board insertion is detected, the method further comprises:
acquiring attribute information of all the target light panels;
synchronizing the attribute information of all the target light panels to the new standby dependency board so that the new standby dependency board locally creates or restores the mapping interface of the target light panel interface;
and controlling the main dependent board to synchronize the operating data or the table item information of all the target optical boards to the new standby dependent board.
5. The method according to claim 1, wherein the selecting the active dependency board or the standby dependency board to forward a service packet according to the current states of the active dependency board and the standby dependency board, so that the active dependency board or the standby dependency board forwards the service packet according to the attribute information comprises:
when the current state of the main dependency board is determined to be a failure state, controlling the standby dependency board to be upgraded to a target main dependency board;
and forwarding the service message based on the target main dependency board and the attribute information.
6. The method of claim 1, wherein the obtaining attribute information corresponding to the target light panel comprises:
acquiring slot position information of the target light panel and slot position information of all dependent panels of the target light panel;
acquiring a configuration file, and determining the interface configuration of the target light panel based on the configuration file;
obtaining core data for creating an interface to determine interface information of the target light panel, wherein the core data comprises interface types and interface physical information.
7. A control apparatus of a network device, comprising:
the first acquisition module is used for acquiring attribute information corresponding to the target light plate;
the first synchronization module is used for determining the dependency boards of the target optical board based on the attribute information and synchronizing the attribute information to each dependency board, wherein the dependency boards comprise a main dependency board and a standby dependency board, and the target optical board is respectively connected with the main dependency board and the standby dependency board;
and the control module is used for selecting the main dependency board or the standby dependency board to forward the service message according to the current states of the main dependency board and the standby dependency board, so that the main dependency board or the standby dependency board forwards the service message according to the attribute information.
8. The apparatus of claim 7, wherein the attribute information comprises slot information of the target light panel, slot information of all dependent boards of the target light panel, and interface information, and wherein the synchronization module comprises:
the determining unit is used for determining the position of the dependent board based on the slot position information of the target light board and the slot position information of all the dependent boards of the target light board;
and the first synchronization unit is used for establishing or recovering the interface of the target light panel based on the interface information and synchronizing the interface information to each dependent board so that the dependent board locally establishes or recovers the mapping interface of the target light panel interface.
9. The apparatus of claim 8, wherein the attribute information further comprises an interface configuration, and wherein the synchronization module further comprises:
and the second synchronization unit is used for synchronizing the interface configuration to the dependency board so that the dependency board performs route configuration or route learning on the interface indicated by the interface configuration.
10. The apparatus of claim 7, wherein when a new standby dependency board insertion is detected, the apparatus further comprises:
the second acquisition module is used for acquiring the attribute information of all the target light plates;
the second synchronization module is used for synchronizing the attribute information of all the target light panels to the new standby dependency board so that the new standby dependency board locally creates or restores the mapping interface of the target light panel interface;
and the control module is used for controlling the main dependent board to synchronize the operating data or the table item information of all the target optical boards to the new standby dependent board.
11. The apparatus of claim 7, wherein the control module comprises:
the control unit is used for controlling the standby dependency board to be upgraded to a target main dependency board when the current state of the main dependency board is determined to be a failure state;
and the forwarding unit is used for forwarding the service message based on the target main dependency board and the attribute information.
12. The apparatus of claim 7, wherein the first obtaining module comprises:
the first acquisition unit is used for acquiring the slot position information of the target light panel and the slot position information of all dependent panels of the target light panel;
the second acquisition unit is used for acquiring a configuration file and determining the interface configuration of the target light panel based on the configuration file;
and the third acquisition unit is used for acquiring core data for creating an interface so as to determine the interface information of the target light panel, wherein the core data comprises the interface type and the interface physical information.
CN202111056932.4A 2021-09-09 2021-09-09 Control method and device of network equipment Withdrawn CN113992518A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111056932.4A CN113992518A (en) 2021-09-09 2021-09-09 Control method and device of network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111056932.4A CN113992518A (en) 2021-09-09 2021-09-09 Control method and device of network equipment

Publications (1)

Publication Number Publication Date
CN113992518A true CN113992518A (en) 2022-01-28

Family

ID=79735504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111056932.4A Withdrawn CN113992518A (en) 2021-09-09 2021-09-09 Control method and device of network equipment

Country Status (1)

Country Link
CN (1) CN113992518A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143006A (en) * 2011-04-18 2011-08-03 福建星网锐捷网络有限公司 Interface topology control method, system and device for communication equipment
US20120079502A1 (en) * 2010-09-27 2012-03-29 Microsoft Corporation Dependency-ordered resource synchronization
CN102404189A (en) * 2010-09-15 2012-04-04 杭州华三通信技术有限公司 Main and standby switching method of device supporting multi-topology routing as well as master control board
CN102907037A (en) * 2012-08-01 2013-01-30 华为技术有限公司 Inter-machine business backup method, device and system
CN104852858A (en) * 2015-03-24 2015-08-19 杭州华三通信技术有限公司 Traffic forwarding method and equipment
WO2016177231A1 (en) * 2015-07-10 2016-11-10 中兴通讯股份有限公司 Dual-control-based active-backup switching method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404189A (en) * 2010-09-15 2012-04-04 杭州华三通信技术有限公司 Main and standby switching method of device supporting multi-topology routing as well as master control board
US20120079502A1 (en) * 2010-09-27 2012-03-29 Microsoft Corporation Dependency-ordered resource synchronization
CN102143006A (en) * 2011-04-18 2011-08-03 福建星网锐捷网络有限公司 Interface topology control method, system and device for communication equipment
CN102907037A (en) * 2012-08-01 2013-01-30 华为技术有限公司 Inter-machine business backup method, device and system
CN104852858A (en) * 2015-03-24 2015-08-19 杭州华三通信技术有限公司 Traffic forwarding method and equipment
WO2016177231A1 (en) * 2015-07-10 2016-11-10 中兴通讯股份有限公司 Dual-control-based active-backup switching method and device
CN106341251A (en) * 2015-07-10 2017-01-18 中兴通讯股份有限公司 Master and slave switching method and device based on dual master control

Similar Documents

Publication Publication Date Title
US9798632B2 (en) Providing boot data in a cluster network environment
US7003692B1 (en) Dynamic configuration synchronization in support of a “hot” standby stateful switchover
CN104036043B (en) High availability method of MYSQL and managing node
US10430082B2 (en) Server management method and server for backup of a baseband management controller
CN101908980A (en) Network management upgrading method and system
CN108199962B (en) Address migration method and device, network equipment and readable storage medium
WO2016177231A1 (en) Dual-control-based active-backup switching method and device
CN111752488B (en) Management method and device of storage cluster, management node and storage medium
CN112380062A (en) Method and system for rapidly recovering system for multiple times based on system backup point
CN113360579A (en) Database high-availability processing method and device, electronic equipment and storage medium
CN103064759B (en) The method of data restore and device
CN107357800A (en) A kind of database High Availabitity zero loses solution method
CN113986871A (en) Data migration method and device, server and readable storage medium
CN111427259B (en) Main and standby switching method of machine frame slot type, intelligent equipment and storage medium
WO2018076696A1 (en) Data synchronization method and out-of-band management device
CN102073523A (en) Method and device for implementing software version synchronization
CN113992518A (en) Control method and device of network equipment
CN111090537A (en) Cluster starting method and device, electronic equipment and readable storage medium
CN111858076B (en) Target daemon process synchronization method and device
CN112187877B (en) Node awakening method based on distributed cluster and controlled terminal
CN112131201A (en) Method, system, equipment and medium for high availability of network additional storage
CN117395263B (en) Data synchronization method, device, equipment and storage medium
CN117827544B (en) Hot backup system, method, electronic device and storage medium
CN114598643B (en) Data backup method and device
CN114244638B (en) Multicast network communication method, device, equipment and medium

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20220128

WW01 Invention patent application withdrawn after publication