CN111064622A - Network device, synchronization apparatus, and information transmission method - Google Patents

Network device, synchronization apparatus, and information transmission method Download PDF

Info

Publication number
CN111064622A
CN111064622A CN201911367292.1A CN201911367292A CN111064622A CN 111064622 A CN111064622 A CN 111064622A CN 201911367292 A CN201911367292 A CN 201911367292A CN 111064622 A CN111064622 A CN 111064622A
Authority
CN
China
Prior art keywords
standby
synchronization
chip
information
main
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.)
Granted
Application number
CN201911367292.1A
Other languages
Chinese (zh)
Other versions
CN111064622B (en
Inventor
李跃武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Big Data Technologies Co Ltd
Original Assignee
New H3C Big Data 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 Big Data Technologies Co Ltd filed Critical New H3C Big Data Technologies Co Ltd
Priority to CN201911367292.1A priority Critical patent/CN111064622B/en
Publication of CN111064622A publication Critical patent/CN111064622A/en
Application granted granted Critical
Publication of CN111064622B publication Critical patent/CN111064622B/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
    • H04L49/00Packet switching elements
    • H04L49/20Support for services

Abstract

The embodiment of the application provides a network device, a synchronization device and an information transmission method, wherein the network device comprises a main control board and a standby main control board, the main control board comprises a main switching chip and a main synchronization device, the standby main control board comprises a standby switching chip and a standby synchronization device, an information synchronization channel exists between the main synchronization device and the standby synchronization device, the information synchronization channel is used for synchronizing hardware forwarding information, and the information transmission method comprises the following steps: the main synchronization device is used for acquiring hardware forwarding information of a main exchange chip and sending the hardware forwarding information to the standby synchronization device through the information synchronization channel; and the standby synchronization device is used for receiving the hardware forwarding information of the main exchange chip through the information synchronization channel and configuring the standby exchange chip according to the hardware forwarding information. By the technical scheme of the embodiment of the application, the consistency of the hardware forwarding information of the main switching chip and the hardware forwarding information of the standby switching chip is ensured.

Description

Network device, synchronization apparatus, and information transmission method
Technical Field
The present application relates to the field of communications, and in particular, to a network device, a synchronization apparatus, and an information transmission method.
Background
A network device (e.g., a router, a switch, etc.) includes a main control board and a service board (the service board may also be called a daughter card), and the main control board has a Central Processing Unit (CPU) and a switching chip. The main control board is used for maintaining and managing the network equipment, and the service board is used for processing the service of the network equipment.
In order to ensure the reliability and stability of the network device, the network device comprises a main control board and a standby main control board, wherein the standby main control board is a backup of the main control board. When the main master control board is not in fault, the main master control board ensures normal processing of the service. When the main control board has a fault, the main and standby switching is carried out, and the standby main control board replaces the main control board to ensure the normal processing of the service and avoid the service interruption.
The main control board comprises a CPU and an exchange chip, the standby main control board comprises a CPU and an exchange chip, and an inter-board communication channel exists between the CPU of the main control board and the CPU of the standby main control board. In order to reduce packet loss and reduce service interruption time as much as possible during the active-standby switching process, the CPU of the active main control board needs to send hardware forwarding information to the CPU of the standby main control board, so that the CPU of the standby main control board sends the hardware forwarding information to the switching chip of the standby main control board, and the switching chip processes the hardware forwarding information according to the hardware forwarding information.
However, in the above-mentioned method, a large amount of hardware forwarding information needs to be transmitted between the CPU of the main control board and the CPU of the standby control board, which consumes a large amount of processing resources of the CPUs, and increases the complexity of the operating system.
Disclosure of Invention
The application provides a network device, including mainly using main control panel and reserve main control panel, mainly using main control panel includes mainly using exchange chip and mainly using synchronizer, reserve main control panel includes reserve exchange chip and reserve synchronizer, there is the information synchronization channel between mainly using synchronizer and the reserve synchronizer, the information synchronization channel is used for the synchronous hardware to forward information, wherein:
the master synchronization device is used for acquiring the hardware forwarding information of the master exchange chip and sending the hardware forwarding information to the standby synchronization device through the information synchronization channel;
the standby synchronization device is used for receiving the hardware forwarding information of the main exchange chip through the information synchronization channel and configuring the standby exchange chip according to the hardware forwarding information.
The application provides a synchronizer, which is applied to a main control board in network equipment, wherein the main control board further comprises a switching chip; when the main control board is a main control board, the switching chip is a main switching chip, and the synchronization device is a main synchronization device; when the main control board is a standby main control board, the switching chip is a standby switching chip, and the synchronizing device is a standby synchronizing device;
when the synchronization device is used as a main synchronization device, the synchronization device is used for acquiring hardware forwarding information of the main exchange chip and sending the hardware forwarding information through an information synchronization channel;
when the synchronization device is used as a standby synchronization device, the synchronization device is used for receiving hardware forwarding information through an information synchronization channel and configuring the standby switching chip according to the hardware forwarding information;
the information synchronization channel is a transmission channel between the active synchronization device and the standby synchronization device, and the information synchronization channel is used for synchronizing hardware forwarding information.
The application provides an information transmission method, apply to the network equipment, the network equipment includes mainly using the master control board and spare master control board, mainly using the master control board to include mainly using the switching chip and mainly using the synchronizer, the spare master control board includes spare switching chip and spare synchronizer, there is the synchronous channel of information between main synchronizer and the spare synchronizer, the synchronous channel of information is used for the synchronous hardware to forward the information, the said method includes:
the master synchronization device acquires the hardware forwarding information of the master exchange chip and sends the hardware forwarding information to the standby synchronization device through the information synchronization channel;
the standby synchronization device receives the hardware forwarding information of the main exchange chip through the information synchronization channel, and configures the standby exchange chip according to the hardware forwarding information.
According to the technical scheme, in the embodiment of the application, an information synchronization channel exists between the main synchronization device and the standby synchronization device, the main synchronization device can acquire the hardware forwarding information of the main switching chip and send the hardware forwarding information to the standby synchronization device through the information synchronization channel, and the standby synchronization device configures the standby switching chip according to the hardware forwarding information. According to the mode, a large amount of hardware forwarding information does not need to be transmitted between the CPU of the main control board and the CPU of the standby main control board, the processing resource of the CPU is saved, the complexity of operating systems (the operating system of the CPU of the main control board and the operating system of the CPU of the standby main control board) is reduced, the stability of the CPU is ensured, the network equipment is more stable to operate, the consistency of the hardware forwarding information of the main switching chip and the hardware forwarding information of the standby switching chip is ensured, and the switching loss of the main switching chip and the standby switching chip is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments of the present application or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art according to the drawings of the embodiments of the present application.
FIG. 1 is a diagram of a hardware configuration of a network device in one embodiment of the present application;
FIG. 2 is a diagram of a hardware configuration of a network device in another embodiment of the present application;
FIG. 3 is a diagram of a hardware configuration of a network device in another embodiment of the present application;
FIG. 4 is a diagram of a hardware configuration of a network device in another embodiment of the present application;
FIG. 5 is a diagram of a hardware configuration of a network device in another embodiment of the present application;
fig. 6 is a flowchart of a method for transmitting information according to an embodiment of the present application.
Detailed Description
The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the embodiments of the present application. As used in the examples and claims of this application, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. The term "and/or" as used herein is meant to encompass any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in the embodiments of the present application to describe various information, the information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of the embodiments of the present application. Depending on the context, moreover, the word "if" as used may be interpreted as "at … …" or "when … …" or "in response to a determination".
Referring to fig. 1, a schematic structural diagram of a network device (such as a router, a switch, and the like) is shown, where the network device may include an active main control board 10 and a standby main control board 20, and of course, the network device may further include other devices, such as a service board (the service board may also be referred to as a daughter card), and the like, which is not limited thereto.
Referring to fig. 1, the active main control board 10 may include an active processor 11 and an active switch chip 12, and the standby main control board 20 may include a standby processor 21 and a standby switch chip 22. For convenience of differentiation, in the embodiment of the present application, the processor of the active main control board 10 may be referred to as an active processor, and the processor of the standby main control board 20 may be referred to as a standby processor. The switch chip of the main control board 10 may be referred to as a main switch chip, and the switch chip of the standby control board 20 may be referred to as a standby switch chip.
For example, the active processor 11 and the standby processor 21 may both be CPUs, the active switching chip 12 and the standby switching chip 22 may both be forwarding chips, and the forwarding chips are used to forward data traffic.
Illustratively, a management channel exists between the active processor 11 and the active switch chip 12, an inter-board communication channel exists between the active processor 11 and the standby processor 21, and a management channel exists between the standby processor 21 and the standby switch chip 22. On this basis, the main processor 11 acquires the hardware forwarding information from the main switch chip 12 through the management channel, and sends the hardware forwarding information to the standby processor 21 through the inter-board communication channel. The standby processor 21 sends the hardware forwarding information to the standby switch chip 22 through the management channel, and the standby switch chip 22 configures the standby switch chip 22 according to the hardware forwarding information.
Through the above processing, it is ensured that the hardware forwarding information of the standby switch chip 22 is the same as the hardware forwarding information of the main switch chip 12, so that packet loss can be reduced as much as possible in the main/standby switching process (i.e. the process in which the main control board 10 fails and the standby main control board 20 replaces the main control board 10 to work).
However, in the above-described method, a large amount of hardware forwarding information is transmitted between the active processor 11 and the standby processor 21, which consumes a large amount of processing resources of the active processor 11/standby processor 21, increases complexity of the operating systems of the active processor 11/standby processor 21, and causes unstable operation of the network device.
In view of the above discovery, in the embodiment of the present application, an information synchronization channel for synchronizing hardware forwarding information may be deployed, and the hardware forwarding information of the active switching chip 12 is sent to the standby switching chip 22 through the information synchronization channel, and it is not necessary to transmit a large amount of hardware forwarding information between the active processor 11 and the standby processor 21, so as to save processing resources of the active processor 11/the standby processor 21, reduce complexity of an operating system of the active processor 11/the standby processor 21, and make network devices operate more stably.
The following describes the technical solution of the embodiment of the present application with reference to a specific application scenario.
In a possible implementation, referring to fig. 2, a schematic structural diagram of a network device is shown, where the network device includes an active main control board 10 and a standby main control board 20, the active main control board 10 includes an active processor 11 and an active switching chip 12, and the standby main control board 20 includes a standby processor 21 and a standby switching chip 22. A management channel exists between the active processor 11 and the active switch chip 12, an inter-board communication channel exists between the active processor 11 and the standby processor 21, and a management channel exists between the standby processor 21 and the standby switch chip 22. On this basis, an information synchronization channel exists between the main switching chip 12 and the standby switching chip 22, and the type of the information synchronization channel is not limited as long as a connection channel exists between the main switching chip 12 and the standby switching chip 22, and the connection channel may be referred to as an information synchronization channel.
For example, the active switch chip 12 may obtain hardware forwarding information of the active switch chip 12 and send the hardware forwarding information to the standby switch chip 22 through the information synchronization channel. The standby switch chip 22 may receive the hardware forwarding information of the main switch chip 12 through the information synchronization channel, and configure the standby switch chip 22 according to the hardware forwarding information, which is not limited to this configuration process. Thus, the hardware forwarding information of the active switch chip 12 is the same as the hardware forwarding information of the standby switch chip 22.
For example, the transmission of the hardware forwarding information may include: in the method 1, the active switching chip 12 actively sends the hardware forwarding information of the active switching chip 12 to the standby switching chip 22. For example, periodically send hardware forwarding information to the standby switch chip 22; alternatively, when the hardware forwarding information of the active switch chip 12 changes, the hardware forwarding information is sent to the standby switch chip 22. In the mode 2, the standby switch chip 22 sends a request message to the active switch chip 12, and after receiving the request message, the active switch chip 12 sends hardware forwarding information to the standby switch chip 22. In the mode 3, when the trigger information of the main processor 11 is synchronized, the main processor sends a forwarding information sending command to the main switch chip 12, and after receiving the forwarding information sending command, the main switch chip 12 sends hardware forwarding information to the standby switch chip 22.
Illustratively, the standby switch chip 22 may further send an acknowledgement message to the active switch chip 12 after receiving the hardware forwarding information of the active switch chip 12, so as to indicate that the hardware forwarding information has been successfully received.
In another possible implementation, referring to fig. 3, the schematic diagram of another structure of a network device is shown, where the network device includes an active main control board 10 and a standby main control board 20, the active main control board 10 includes an active processor 11, an active switching chip 12, and an active synchronization apparatus 13, and the standby main control board 20 includes a standby processor 21, a standby switching chip 22, and a standby synchronization apparatus 23. In fig. 3, the active synchronization device 13 is disposed in the active switching chip 12, and the standby synchronization device 23 is disposed in the standby switching chip 22.
A management channel exists between the active processor 11 and the active switch chip 12, an inter-board communication channel exists between the active processor 11 and the standby processor 21, and a management channel exists between the standby processor 21 and the standby switch chip 22. On this basis, an information synchronization channel may exist between the active synchronization device 13 and the standby synchronization device 23, the type of the information synchronization channel is not limited, as long as a connection channel exists between the active synchronization device 13 and the standby synchronization device 23, the connection channel may be referred to as an information synchronization channel, and the information synchronization channel is used for synchronizing hardware forwarding information of the active switching chip 12.
Illustratively, the active synchronization device 13 may acquire the hardware forwarding information of the active switch chip 12 and send the hardware forwarding information to the standby synchronization device 23 through the information synchronization channel. The standby synchronization device 23 may receive the hardware forwarding information of the main switch chip 12 through the information synchronization channel, and configure the standby switch chip 22 according to the hardware forwarding information, which is not limited to this configuration process. Thus, the hardware forwarding information of the active switch chip 12 is the same as the hardware forwarding information of the standby switch chip 22.
Illustratively, since the active synchronization device 13 is located inside the active switch chip 12, the active synchronization device 13 may directly obtain the hardware forwarding information of the active switch chip 12. Since the standby synchronizer 23 is located inside the standby switch chip 22, after receiving the hardware forwarding information, the standby synchronizer 23 can configure the standby switch chip 22 according to the hardware forwarding information.
For example, the transmission of the hardware forwarding information may include: in the method 1, the active synchronization device 13 actively sends hardware forwarding information of the active switch chip 12 to the standby synchronization device 23. For example, periodically send hardware forwarding information to the standby synchronizer 23; alternatively, when the hardware forwarding information of the active switch chip 12 changes, the hardware forwarding information is transmitted to the standby synchronization device 23. In the method 2, the standby synchronization device 23 sends a request message to the primary synchronization device 13, and the primary synchronization device 13 sends hardware forwarding information to the standby synchronization device 23 after receiving the request message. In the method 3, when the primary processor 11 triggers information synchronization, a forwarding information sending command is sent to the primary synchronization device 13, and after receiving the forwarding information sending command, the primary synchronization device 13 sends hardware forwarding information to the standby synchronization device 23.
Illustratively, the standby synchronization device 23 may further send an acknowledgement message to the active synchronization device 13 after receiving the hardware forwarding information of the active switching chip 12, so as to indicate that the hardware forwarding information has been successfully received.
In another possible implementation, referring to fig. 4, the schematic diagram of another structure of a network device is shown, where the network device includes an active main control board 10 and a standby main control board 20, the active main control board 10 includes an active processor 11, an active switching chip 12, and an active synchronization apparatus 13, and the standby main control board 20 includes a standby processor 21, a standby switching chip 22, and a standby synchronization apparatus 23. In fig. 4, the active synchronization device 13 is disposed outside the active switching chip 12, and the standby synchronization device 23 is disposed outside the standby switching chip 22.
A management channel exists between the active processor 11 and the active switch chip 12, an inter-board communication channel exists between the active processor 11 and the standby processor 21, and a management channel exists between the standby processor 21 and the standby switch chip 22. On this basis, an information synchronization channel may exist between the active synchronization device 13 and the standby synchronization device 23, the type of the information synchronization channel is not limited, as long as a connection channel exists between the active synchronization device 13 and the standby synchronization device 23, the connection channel may be referred to as an information synchronization channel, and the information synchronization channel is used for synchronizing hardware forwarding information of the active switching chip 12.
A management channel exists between the primary synchronization device 13 and the primary switch chip 12, and the primary synchronization device 13 can obtain hardware forwarding information from the primary switch chip 12 based on the management channel. A management channel exists between the standby synchronizer 23 and the standby switch chip 22, and the standby synchronizer 23 can transmit hardware forwarding information to the standby switch chip 22 based on the management channel, so as to configure the standby switch chip 22.
A management channel exists between the master synchronization apparatus 13 and the master processor 11, and the master processor 11 manages the master synchronization apparatus 13 based on the management channel. A management channel exists between the standby synchronizer 23 and the standby processor 21, and the standby processor 21 manages the standby synchronizer 23 based on the management channel.
Illustratively, the active synchronization device 13 may acquire the hardware forwarding information of the active switch chip 12 and send the hardware forwarding information to the standby synchronization device 23 through the information synchronization channel. The standby synchronization device 23 may receive the hardware forwarding information of the main switch chip 12 through the information synchronization channel, and configure the standby switch chip 22 according to the hardware forwarding information, which is not limited to this configuration process. Thus, the hardware forwarding information of the active switch chip 12 is the same as the hardware forwarding information of the standby switch chip 22.
Illustratively, since a management channel exists between the active synchronization device 13 and the active switch chip 12, the active synchronization device 13 may obtain the hardware forwarding information from the active switch chip 12 through the management channel. Since there is a management channel between the standby synchronizer 23 and the standby switch chip 22, after receiving the hardware forwarding information, the standby synchronizer 23 may send the hardware forwarding information to the standby switch chip 22 through the management channel, and then configure the standby switch chip 22.
For example, the transmission of hardware forwarding information may include, but is not limited to, the following ways:
in the method 1, the active synchronization device 13 actively sends hardware forwarding information of the active switch chip 12 to the standby synchronization device 23. For example, in each transmission cycle, the primary synchronization device 13 acquires the hardware forwarding information from the primary switch chip 12 through the management channel, and transmits the hardware forwarding information to the backup synchronization device 23.
In the method 2, when the hardware forwarding information of the primary switch chip 12 changes, the primary switch chip 12 sends the hardware forwarding information to the primary synchronization device 13 through the management channel, and the primary synchronization device 13 sends the hardware forwarding information to the standby synchronization device 23 after receiving the hardware forwarding information.
In the method 3, when the hardware forwarding information of the primary switch chip 12 changes, the primary switch chip 12 sends an information change message to the primary synchronization apparatus 13 through the management channel. After receiving the information change message, if information synchronization needs to be triggered, the primary synchronization device 13 may obtain hardware forwarding information from the primary switch chip 12 through the management channel, and send the hardware forwarding information to the standby synchronization device 23.
In the method 4, when the active processor 11 triggers information synchronization, a forwarding information sending command is sent to the active synchronization device 13 through a management channel between the active processor 11 and the active synchronization device 13. After the primary synchronization device 13 receives the forwarding information sending command, if information synchronization needs to be triggered, the primary synchronization device 13 may obtain hardware forwarding information from the primary switching chip 12 through a management channel between the primary synchronization device 13 and the primary switching chip 12, and send the hardware forwarding information to the standby synchronization device 23.
In the method 5, the standby synchronization device 23 sends a request message to the primary synchronization device 13, and after the primary synchronization device 13 receives the request message, if information synchronization needs to be triggered, the primary synchronization device 13 may obtain hardware forwarding information from the primary switching chip 12 through a management channel between the primary synchronization device 13 and the primary switching chip 12, and send the hardware forwarding information to the standby synchronization device 23.
For example, in any one of the above-mentioned modes 1 to 5, after receiving the hardware forwarding information of the active switching chip 12, the standby synchronization apparatus 23 may further send an acknowledgement message to the active synchronization apparatus 13 to indicate that the standby synchronization apparatus 23 has successfully received the hardware forwarding information.
In the above embodiment, for the network Device shown in fig. 3 or fig. 4, the active synchronizer 13 may be a Logic chip such as a Complex Programmable Logic Device (CPLD), a Field Programmable Gate Array (FPGA), or an Application Specific Integrated Circuit (ASIC), which is not limited thereto. The backup synchronizer 23 may be a logic chip such as a CPLD, an FPGA, or an ASIC, which is not limited thereto.
In the foregoing embodiment, for the network device shown in fig. 2, fig. 3, or fig. 4, the hardware forwarding information of the active switching chip 12 refers to: the forwarding information maintained in the primary switch chip 12 may include, but is not limited to, forwarding entries, Access Control Lists (ACL) entries, Quality of Service (QoS) entries, and the like, and is not limited to this hardware forwarding information.
Illustratively, the forwarding table entry may include, but is not limited to: a Media Access Control (MAC) forwarding table, an Address Resolution Protocol (ARP) forwarding table, a routing forwarding table, and the like, and the type of the forwarding table is not limited.
For example, the hardware forwarding information may be configured by the active processor 11 on the active switching chip 12, for example, the active processor 11 issues an ACL entry to the active switching chip 12, and the active processor 11 issues a QoS entry to the active switching chip 12. Alternatively, the hardware forwarding information may also be learned by the active switching chip 12 itself, for example, the active switching chip 12 itself may learn the MAC forwarding table entry.
Illustratively, the standby synchronizer 23 configures the standby switch chip 22 based on the hardware forwarding information, which may include: the standby synchronizer 23 issues the ACL entry to the standby switch chip 22, so that the ACL entry of the standby switch chip 22 is the same as the ACL entry of the main switch chip 12. The standby synchronizer 23 issues the QoS table entry to the standby switch chip 22, so that the QoS table entry of the standby switch chip 22 is the same as the QoS table entry of the primary switch chip 12. The standby synchronizer 23 issues the forwarding table (such as MAC forwarding table, ARP forwarding table, routing forwarding table, etc.) to the standby switch chip 22, so that the forwarding table of the standby switch chip 22 is the same as the forwarding table of the main switch chip 12.
For example, when the active synchronization device 13 sends the hardware forwarding information to the standby synchronization device 23, the hardware forwarding information may be all hardware forwarding information or incremental hardware forwarding information.
All hardware forwarding information refers to: if the hardware forwarding information a was sent to the backup synchronization device 23 last time, after the hardware forwarding information a was sent, if the hardware forwarding information is changed to B, the primary synchronization device 13 sends the hardware forwarding information B when sending the hardware forwarding information to the backup synchronization device 23 again.
The incremental hardware forwarding information is: if the hardware forwarding information a was sent to the standby synchronization device 23 last time, and after the hardware forwarding information a was sent, if the hardware forwarding information is changed to B and the change between the hardware forwarding information B and the hardware forwarding information a is hardware forwarding information C, the hardware forwarding information C is sent when the primary synchronization device 13 sends the hardware forwarding information to the standby synchronization device 23 again.
As can be seen from the above technical solutions, in the embodiment of the present application, an information synchronization channel exists between the active synchronization device 13 and the standby synchronization device 23, the active synchronization device 13 can obtain hardware forwarding information and send the hardware forwarding information to the standby synchronization device 23 through the information synchronization channel, and the standby synchronization device 23 configures the standby switch chip 22 according to the hardware forwarding information. In the above manner, it is not necessary to transmit a large amount of hardware forwarding information between the active processor 11 and the standby processor 21, so as to save processing resources of the active processor 11 and the standby processor 21, reduce complexity of the operating system of the active processor 11 and the operating system of the standby processor 21, make network devices operate more stably, and ensure that the hardware forwarding information of the active switching chip 11 is consistent with the hardware forwarding information of the standby switching chip 22, so that packet loss can be reduced as much as possible in the active-standby switching process (when the active main control board 10 fails, the standby main control board 20 takes over the operation of the active main control board 10).
For the network device shown in fig. 2, fig. 3, or fig. 4, the active processor 11 obtains the software forwarding information of the active switch chip 12, and sends the software forwarding information to the standby processor 21 through the inter-board communication channel. The standby processor 21 receives the software forwarding information of the main switch chip 12 through the inter-board communication channel, and configures the standby processor 21 according to the software forwarding information, without limitation to the configuration process. Through the above processing, the software forwarding information of the active processor 11 is the same as the software forwarding information of the standby processor 21.
Illustratively, the software forwarding information of the active switching chip 12 is forwarding information maintained by the active processor 11 for the active switching chip 12, and the software forwarding information may include, but is not limited to, a forwarding entry, an ACL entry, a QoS entry, and the like, which is not limited to this software forwarding information. The forwarding table entry may include, but is not limited to, an MAC forwarding table entry, an ARP forwarding table entry, a routing forwarding table entry, and the like, and the type of the forwarding table entry is not limited.
The software forwarding information of the active switching chip 12 may be the same as or different from the hardware forwarding information of the active switching chip 12. The software forwarding information of the active switch chip 12 is maintained in the active processor 11, and the hardware forwarding information of the active switch chip 12 is maintained in the active switch chip 12.
The software forwarding information may be generated by the main processor 11 itself, for example, the main processor 11 generates an ACL entry, and issues the ACL entry to the main switch chip 12; the main processor 11 generates a QoS table entry and issues the QoS table entry to the main switch chip 12. Alternatively, the software forwarding information may be learned by the main processor 11 from the main switch chip 12, for example, after the main switch chip 12 learns the MAC forwarding table, the main processor 11 learns the MAC forwarding table from the main switch chip 12.
After the active processor 11 obtains the software forwarding information, since an inter-board communication channel exists between the active processor 11 and the standby processor 21, the software forwarding information may be sent to the standby processor 21 through the inter-board communication channel. After receiving the software forwarding information, the processor 21 configures the standby processor 21 according to the software forwarding information, for example, issuing ACL table items to the standby processor 21, issuing QoS table items to the standby processor 21, issuing forwarding table items to the standby processor 21, and the like.
In summary, it can be ensured that the software forwarding information of the active processor 11 is consistent with the software forwarding information of the standby processor 21, so that in the active-standby switching process (i.e. the process that the active main control board 10 fails and the standby main control board 20 replaces the active main control board 10 to work), packet loss can be reduced as much as possible.
Illustratively, a management channel exists between the active processor 11 and the active switch chip 12, and the active processor 11 performs configuration management on the active switch chip 12 through the management channel, which is not limited to this configuration management. There is a management channel between the standby processor 21 and the standby switch chip 22, and the standby processor 21 performs configuration management on the standby switch chip 22 through the management channel, which is not limited to this configuration management.
In the above manner, the standby processor 21 synchronizes only the software forwarding information of the active switch chip 12 from the active processor 11, but does not synchronize the hardware forwarding information of the active switch chip 12 from the active processor 11, and the standby processor 21 does not need to configure the standby switch chip 22 by using the hardware forwarding information.
In a possible implementation manner, for the network device shown in fig. 3 or fig. 4, a synchronization apparatus is further provided in this embodiment, where the synchronization apparatus may be applied to a main control board in the network device, and the main control board further includes a switch chip. Referring to fig. 3 or fig. 4, when the main control board is the main master control board 10, the switching chip is the main switching chip 12, and the synchronization device is the main synchronization device 13. Alternatively, when the main control board is the standby main control board 20, the switch chip is the standby switch chip 22, and the synchronizer is the standby synchronizer 23.
Based on this, when the synchronization apparatus is used as the primary synchronization apparatus 13, the synchronization apparatus may acquire the hardware forwarding information of the primary switch chip 12 and send the hardware forwarding information through the information synchronization channel, that is, send the hardware forwarding information to the standby synchronization apparatus 23. When the synchronizer is used as the standby synchronizer 23, the synchronizer receives the hardware forwarding information through the information synchronization channel and configures the standby switch chip 22 according to the hardware forwarding information. The information synchronization channel is a transmission channel between the primary synchronization device 13 and the standby synchronization device 23, and the information synchronization channel is used for synchronizing hardware forwarding information.
For example, in order to make the synchronization apparatus know whether the synchronization apparatus is the active synchronization apparatus 13 or the standby synchronization apparatus 23, a synchronization table entry may be stored in the synchronization apparatus, where the synchronization table entry includes the local chip identifier and the active chip identifier of the active switching chip 12, and the local chip identifier and the active chip identifier of the active switching chip 12 may be configured by a user or a processor, which is not limited thereto.
For example, when the synchronization apparatus is the active synchronization apparatus 13, the following configuration may be performed in the synchronization table entry of the synchronization apparatus: the chip identifier may be configured as a primary chip identifier aaa of the primary switch chip 12, and the primary chip identifier of the primary switch chip 12 may be configured as the primary chip identifier aaa.
For another example, when the synchronizer is the standby synchronizer 23, the following configuration may be performed in the synchronization table entry of the synchronizer: the chip identifier may be configured as a standby chip identifier bbb of the standby switch chip 22, and the primary chip identifier of the primary switch chip 12 may be configured as a primary chip identifier aaa.
Based on the above situation, for the synchronization apparatus, the synchronization apparatus may obtain the chip identifier and the primary chip identifier from the synchronization table entry. When the chip id is the same as the primary chip id, the synchronization apparatus is determined to be the primary synchronization apparatus 13, for example, when the chip id is aaa and the primary chip id is aaa, the synchronization apparatus is determined to be the primary synchronization apparatus 13. When the chip id is different from the primary chip id, the synchronization apparatus is determined as the standby synchronization apparatus 23, for example, when the chip id is bbb and the primary chip id is aaa, the synchronization apparatus is determined as the standby synchronization apparatus 23.
The following describes the synchronization devices (such as the primary synchronization device 13 and the standby synchronization device 23) with reference to a specific application scenario, where the synchronization devices may be the synchronization devices in fig. 3 or fig. 4.
Illustratively, the primary synchronization apparatus 13 stores a primary synchronization table entry, and the primary synchronization table entry may include a primary flag; the backup synchronizer 23 stores a backup synchronization entry, which may include a backup flag. And the primary synchronization device 13 is configured to send the hardware forwarding information of the primary switch chip 12 to the standby synchronization device 23 through the information synchronization channel when the primary flag indicates that the primary switch chip 12 starts the backup enable. The standby synchronizing device 23 is configured to configure the standby switch chip 22 according to the hardware forwarding information of the main switch chip 12 when the standby flag indicates that the standby switch chip 22 starts the backup enable.
Illustratively, the primary synchronization apparatus 13 is configured to generate a backup protocol message including hardware forwarding information, and send the backup protocol message to the backup synchronization apparatus 23 through the information synchronization channel. The standby synchronizer 23 is configured to receive the backup protocol message through the information synchronization channel, parse the hardware forwarding information from the backup protocol message, and configure the standby switch chip 22 according to the hardware forwarding information.
Referring to fig. 5, which is a schematic structural diagram of the primary synchronization device 13 and the standby synchronization device 23, the primary synchronization device 13 stores primary synchronization entries, and the standby synchronization device 23 stores standby synchronization entries.
The primary synchronization table entry may include a primary flag, a local chip identifier, a primary chip identifier of the primary switch chip 12, and a standby chip identifier of the standby switch chip 22. Of course, the above approaches are examples only.
The main flag indicates whether the main switch chip 12 starts the backup enable, and if the main flag indicates that the main switch chip 12 starts the backup enable, the main switch chip 12 supports hardware forwarding information transmission through an information synchronization channel, that is, the technical scheme of the present application is adopted. If the primary flag indicates that the primary switch chip 12 does not turn on the backup enable, the primary switch chip 12 does not support the hardware forwarding information transmission through the information synchronization channel.
For example, the active processor 11 may set the active flag through the management channel, and if the active flag is set to the first identifier, the active flag indicates that the active switch chip 12 starts the backup enable, and if the active flag is set to the second identifier, the active flag indicates that the active switch chip 12 does not start the backup enable.
The chip id indicates a chip id of a switch chip connected to the master synchronization device 13, and since the master switch chip 12 is connected to the master synchronization device 13, the chip id is a chip id of the master switch chip 12. The main processor 11 can know that the main switching chip 12 is connected to the main synchronization apparatus 13, and therefore, the chip identifier of the chip is recorded in the main synchronization table entry as the chip identifier of the main switching chip 12.
The primary chip identifier is a chip identifier of the primary switch chip 12, and the chip identifier has uniqueness, i.e., is different from other chip identifiers. For example, the active processor 11 may obtain the chip identifier of the active switch chip 12, and record the chip identifier of the active switch chip 12 in the active synchronization table entry.
In summary, since the chip identifier in the primary synchronization table entry is the same as the primary chip identifier, the primary synchronization apparatus 13 can know that the synchronization apparatus is the primary synchronization apparatus 13.
The spare chip identification is a chip identification of the spare switching chip 22, which is unique, i.e. different from the other chip identifications. For example, the active processor 11 may know the chip identifier of the standby switch chip 22 and record the chip identifier of the standby switch chip 22 in the active synchronization table entry. Alternatively, the primary synchronization apparatus 13 may learn the chip identifier of the standby switch chip 22 through a protocol, and record the chip identifier of the standby switch chip 22 in the primary synchronization table entry, which is not limited to this learning manner.
The number of the active switching chips 12 may be one, and the number of the standby switching chips 22 may be at least one. Based on this, the primary synchronization table entry includes a primary chip identifier of the primary switch chip 12, and a standby chip identifier of each standby switch chip 22, where different standby chip identifiers may be different.
The spare synchronization table entry may include a spare flag, a local chip identifier, and a primary chip identifier of the primary switch chip 12. Of course, the above manner is only an example, and the content of the standby synchronization entry is not limited.
The standby flag indicates whether the standby switch chip 22 starts the backup enable, and if the standby flag indicates that the standby switch chip 22 starts the backup enable, the standby switch chip 22 supports hardware forwarding information transmission through the information synchronization channel, that is, the technical scheme of the present application is adopted. If the standby flag indicates that the standby switch chip 22 does not turn on the backup enable, the standby switch chip 22 does not support the hardware forwarding information transmission through the information synchronization channel.
For example, the standby processor 21 may set a standby flag through the management channel, where the standby flag indicates that the standby switch chip 22 starts the backup enable if the standby flag is set to the first identifier, and indicates that the standby switch chip 22 does not start the backup enable if the standby flag is set to the second identifier.
The chip id indicates a chip id of a switch chip connected to the standby synchronizer 23, and since the standby switch chip 22 is connected to the standby synchronizer 23, the chip id is a chip id of the standby switch chip 22. The standby processor 21 can know that the standby switch chip 22 is connected to the standby synchronizer 23, and therefore, the chip identifier of the standby switch chip 22 is recorded in the standby synchronization table entry.
The primary chip identifier is a chip identifier of the primary switch chip 12, and the chip identifier has uniqueness, i.e., is different from other chip identifiers. For example, the active processor 21 may know the chip identifier of the active switch chip 12 and record the chip identifier of the active switch chip 12 in the standby synchronization table entry.
In summary, since the chip id in the standby synchronization table entry is different from the main chip id, the standby synchronization apparatus 23 can know that the synchronization apparatus is the standby synchronization apparatus 23.
Referring to fig. 5, the active synchronization apparatus 13 includes an active configuration module 131 (for implementing a configuration interface function), an active processing module 132 (for implementing a receiving and sending function of a backup protocol message and a parsing function of the backup protocol message), and an active synchronization module 133 (for implementing a synchronization interface function). The standby synchronization apparatus 23 includes a standby configuration module 231 (for implementing the configuration interface function), a standby processing module 232 (for implementing the transceiving function of the backup protocol message and the parsing function of the backup protocol message), and a standby synchronization module 233 (for implementing the synchronization interface function). Of course, the above is only an example of the active synchronization device 13 and the standby synchronization device 23, and neither the active synchronization device 13 nor the standby synchronization device 23 is limited.
The active configuration module 131 is configured to obtain hardware forwarding information of the active switching chip 12.
For example, after acquiring the hardware forwarding information of the active switching chip 12, the active configuration module 131 may further send the hardware forwarding information to the active processing module 132.
The active processing module 132 is configured to generate a backup protocol message including hardware forwarding information.
For example, after receiving the hardware forwarding information, the active processing module 132 may generate a backup protocol message including the hardware forwarding information, and send the backup protocol message to the active synchronization module 133.
For example, after receiving the hardware forwarding information, if the active processing module 132 indicates that the active switching chip 12 starts the backup enable, the active processing module 132 generates a backup protocol message according to the hardware forwarding information and sends the backup protocol message to the active synchronization module 133, where the backup protocol message includes the hardware forwarding information. If the active flag indicates that the active switch chip 12 does not turn on the backup enable, the active processing module 132 may not generate the backup protocol message, and end the transmission process of the hardware forwarding information.
For example, the backup protocol message may be a message in any format, and the format of the message is not limited as long as both the active synchronization apparatus 13 and the standby synchronization apparatus 23 support the message format. For example, the backup protocol message may be a message of a private protocol or an extensible message of a public protocol, as long as the active processing module 132 and the standby processing module 232 can implement parsing and processing of the message.
Illustratively, the backup protocol message is used to carry hardware forwarding information, which may be forwarding table entries, ACL table entries, QoS table entries, and the like, so that the backup protocol message may carry parameters such as table entry types, table entry indexes, table entry contents, and the like, as long as the primary synchronization device 13 and the backup synchronization device 23 support analyzing parameters such as table entry types, table entry indexes, table entry contents, and the like from the backup protocol message.
The active synchronization module 133 is configured to send a backup protocol message through the information synchronization channel.
For example, after receiving the backup protocol message, the active synchronization module 133 may send the backup protocol message to the standby synchronization module 233 of the standby synchronization apparatus 23 through the information synchronization channel.
A backup synchronization module 233 for receiving backup protocol messages through the information synchronization channel.
Illustratively, when the active synchronization module 133 sends a backup protocol message (including hardware forwarding information of the active switching chip 12) through the information synchronization channel, the standby synchronization module 233 receives the backup protocol message through the information synchronization channel and sends the backup protocol message to the standby processing module 232.
And the standby processing module 232 is configured to parse the hardware forwarding information from the backup protocol message.
For example, after receiving the backup protocol message, the standby processing module 232 analyzes the hardware forwarding information of the main switch chip 12 from the backup protocol message, and sends the hardware forwarding information to the standby configuration module 231.
For example, after receiving the backup protocol message, if the backup flag indicates that the backup switch chip 22 starts the backup enable, the backup processing module 232 may analyze the hardware forwarding information of the main switch chip 12 from the backup protocol message and send the hardware forwarding information to the backup configuration module 231. If the standby flag indicates that the standby switch chip 22 does not turn on the backup enable, the standby processing module 232 does not need to analyze the backup protocol message, and ends the processing flow of the backup protocol message.
And a standby configuration module 231, configured to configure the standby switch chip 22 according to the hardware forwarding information.
For example, after receiving the hardware forwarding information of the active switching chip 12, the standby configuration module 231 configures the standby switching chip 22 according to the hardware forwarding information, and the configuration process is not limited, so that the hardware forwarding information of the standby switching chip 22 is the same as the hardware forwarding information of the active switching chip 12.
In the above embodiment, if there is one standby synchronization apparatus 23 (i.e. there is only one standby switch chip 22), the active synchronization module 133 only needs to send the backup protocol message to the standby synchronization module 233 of one standby synchronization apparatus 23. If there are at least two backup synchronization devices 23 (different backup synchronization devices 23 are connected to different backup switching chips 22), the active synchronization module 133 may send the backup protocol message to the backup synchronization module 233 of each backup synchronization device 23 in a broadcast manner, or may send the backup protocol message to the backup synchronization module 233 of each backup synchronization device 23 in a unicast manner.
For the case of sending the backup protocol message in a broadcast manner, when the primary processing module 132 generates the backup protocol message, the destination address of the backup protocol message is a broadcast address. The active synchronization module 133 may send the backup protocol message to the standby synchronization module 233 of each of the standby synchronization devices 23. After obtaining the backup protocol message, the standby processing module 232 continues to parse the hardware forwarding information from the backup protocol message because the destination address is the broadcast address, and sends the hardware forwarding information to the standby configuration module 231.
For the case of sending the backup protocol message in a unicast manner, when the primary processing module 132 generates the backup protocol message, the primary processing module may obtain a standby chip identifier of the standby switch chip from the primary synchronization table entry, and add the standby chip identifier to the backup protocol message, that is, the backup protocol message may include the standby chip identifier of the standby switch chip, and if the destination address is the standby chip identifier. For example, if a backup protocol message needs to be sent to the backup switching chip 22A, the backup protocol message includes the backup chip identifier of the backup switching chip 22A, and the backup protocol message is sent to the backup synchronization module 233 of the backup switching chip 22A.
After obtaining the backup protocol message, the standby processing module 232 obtains the standby chip identifier of the standby switch chip, i.e. the chip identifier, from the standby synchronization table entry. Then, it is determined whether the chip identifier carried in the backup protocol message is the same as the chip identifier of the standby switch chip, if so, the hardware forwarding information is continuously analyzed from the backup protocol message, and the hardware forwarding information is sent to the standby configuration module 231. If not, no hardware forwarding information is analyzed from the backup protocol message, and the process is ended.
For example, after the configuration module 231 configures the standby switch chip 22 according to the hardware forwarding information, the configuration module 231 may send configuration success information to the standby processing module 232, and the standby processing module 232 may generate an acknowledgement message, where the acknowledgement message includes the active chip identifier of the active switch chip 12 and the backup chip identifier of the standby switch chip 22, and send the acknowledgement message to the standby synchronization module 233.
The standby synchronization module 233 sends the acknowledgement message to the active synchronization module 133 through the information synchronization channel, and the active synchronization module 133 sends the acknowledgement message to the active processing module 132.
After receiving the acknowledgement message, the active processing module 132 continues to parse the backup chip identifier of the standby switch chip 22 from the acknowledgement message because the acknowledgement message includes the active chip identifier of the active switch chip 12, and determines that the standby synchronization device 23 corresponding to the backup chip identifier has successfully received the hardware forwarding information, and configures the standby switch chip 22 according to the hardware forwarding information.
For example, if the primary synchronization apparatus 13 does not receive the acknowledgement message of a certain backup synchronization apparatus 23, it may send a backup protocol message to the backup synchronization apparatus 23 again, and after sending a plurality of backup protocol messages, if the acknowledgement message of the backup synchronization apparatus 23 is still not received, it may generate an alarm message.
In the above embodiment, the active synchronization apparatus 13 may actively send the hardware forwarding information of the active switching chip 12 to the standby synchronization apparatus 23, or may send the hardware forwarding information of the active switching chip 12 to the standby synchronization apparatus 23 after receiving the request message sent by the standby synchronization apparatus 23.
For example, the standby processing module 232 may obtain the active chip identifier of the active switching chip 12 from the standby synchronization table entry, generate a request message including the active chip identifier of the active switching chip 12, and send the request message to the standby synchronization module 233. The standby synchronization module 233 transmits the request message to the active synchronization module 133 of the active synchronization apparatus 13 through the information synchronization channel.
The active synchronization module 133 may also receive the request message through the information synchronization channel and send the request message to the active processing module 132. The active processing module 132 may obtain the active chip identifier of the active switching chip 12 from the active synchronization table entry. If the primary chip identifier carried in the request message is the same as the acquired primary chip identifier of the primary switch chip 12, a backup protocol message including hardware forwarding information is generated. If the primary chip identifier carried in the request message is different from the acquired primary chip identifier of the primary switch chip 12, the processing procedure of the request message is ended, and the backup protocol message is not generated any more.
For example, after generating the backup protocol message including the hardware forwarding information, the active processing module 132 may send the backup protocol message to the active synchronization module 133, and the active synchronization module 133 sends the backup protocol message to the standby synchronization module 233 through the information synchronization channel.
Based on the same application concept as the above method, an information transmission method is provided in this embodiment of the present application, where the method is applied to a network device, the network device includes an active main control board and a standby main control board, the active main control board includes an active switching chip and an active synchronization device, the standby main control board includes a standby switching chip and a standby synchronization device, an information synchronization channel exists between the active synchronization device and the standby synchronization device, and the information synchronization channel is used to synchronize hardware forwarding information, as shown in fig. 6, and is a flowchart of the method, and the method includes:
step 601, the primary synchronization device obtains the hardware forwarding information of the primary switch chip and sends the hardware forwarding information to the standby synchronization device through the information synchronization channel.
Step 602, the standby synchronization apparatus receives the hardware forwarding information of the active switching chip through the information synchronization channel, and configures the standby switching chip according to the hardware forwarding information.
Illustratively, the active synchronization apparatus is deployed in the active switching chip; the standby synchronization device is deployed in the standby exchange chip; or the main synchronization device is deployed outside the main exchange chip, and a management channel exists between the main synchronization device and the main exchange chip; the standby synchronization device is deployed outside the standby switch chip, and a management channel exists between the standby synchronization device and the standby switch chip.
Illustratively, a primary synchronization device stores a primary synchronization table entry, and the primary synchronization table entry comprises a primary mark; the standby synchronization device stores a standby synchronization table entry, and the standby synchronization table entry comprises a standby mark;
in step 601, the active synchronization apparatus sends the hardware forwarding information to the standby synchronization apparatus through the information synchronization channel, which may include but is not limited to: when the main mark indicates that the main exchange chip starts the backup enable, the main synchronization device sends the hardware forwarding information to the standby synchronization device through the information synchronization channel.
In step 602, the standby synchronization apparatus configures the standby switch chip according to the hardware forwarding information, which may include but is not limited to: when the standby mark indicates that the standby switch chip starts the backup enable, the standby synchronization device may configure the standby switch chip according to the hardware forwarding information.
In step 601, the active synchronization apparatus sends the hardware forwarding information to the standby synchronization apparatus through the information synchronization channel, which may include but is not limited to: the master synchronization device generates a backup protocol message including hardware forwarding information, and sends the backup protocol message to the standby synchronization device through the information synchronization channel.
In step 602, the standby synchronization apparatus receives the hardware forwarding information of the active switch chip through the information synchronization channel, and configures the standby switch chip according to the hardware forwarding information, which may include but is not limited to: the standby synchronization device receives the backup protocol message through the information synchronization channel; and analyzing the hardware forwarding information from the backup protocol message, and configuring the standby switching chip according to the hardware forwarding information.
Illustratively, the active synchronization device comprises an active configuration module, an active processing module and an active synchronization module; the standby synchronization device comprises a standby configuration module, a standby processing module and a standby synchronization module; the method further comprises the following steps: for a main synchronization device, a main configuration module acquires hardware forwarding information of a main exchange chip; the main processing module generates a backup protocol message comprising the hardware forwarding information; the main synchronization module sends the backup protocol message through the information synchronization channel. For the standby synchronization device, the standby synchronization module receives the backup protocol message through the information synchronization channel; the standby processing module analyzes the hardware forwarding information from the backup protocol message; and the standby configuration module configures the standby switching chip according to the hardware forwarding information.
Illustratively, the primary synchronization device stores a primary synchronization table entry, where the primary synchronization table entry includes a standby chip identifier of a standby switch chip; the standby synchronization device stores a standby synchronization table entry, and the standby synchronization table entry comprises a standby chip identifier of a standby exchange chip; based on this, the active processing module generates a backup protocol message including hardware forwarding information, including: the main processing module obtains the standby chip identification of the standby exchange chip from the main synchronous table entry and adds the standby chip identification to the backup protocol message. The standby processing module analyzes the hardware forwarding information from the backup protocol message, and the method comprises the following steps: the standby processing module acquires the standby chip identification of the standby exchange chip from the standby synchronous table entry, and if the standby chip identification carried in the standby protocol message is the same as the acquired standby chip identification, the standby processing module analyzes the hardware forwarding information from the standby protocol message.
Illustratively, a primary synchronization device stores a primary synchronization table entry, which includes a primary chip identifier of a primary switch chip; the standby synchronization device stores a standby synchronization table entry, and the standby synchronization table entry comprises a main chip identifier of a main exchange chip; the method further comprises the following steps: the standby processing module acquires a main chip identifier of a main exchange chip from a standby synchronous table entry and generates a request message, wherein the request message comprises the main chip identifier; the standby synchronization module sends a request message through an information synchronization channel; the main synchronization module receives the request message through the information synchronization channel. Further, the generating, by the active processing module, a backup protocol message including the hardware forwarding information may include: the main processing module acquires a main chip identifier of the main exchange chip from the main synchronization table entry, and if the main chip identifier carried in the request message is the same as the acquired main chip identifier, the main processing module generates a backup protocol message including hardware forwarding information.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Furthermore, these computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A network device is characterized in that the network device comprises an active main control board and a standby main control board, the active main control board comprises an active switching chip and an active synchronization device, the standby main control board comprises a standby switching chip and a standby synchronization device, an information synchronization channel exists between the active synchronization device and the standby synchronization device, the information synchronization channel is used for synchronizing hardware forwarding information, wherein:
the master synchronization device is used for acquiring the hardware forwarding information of the master exchange chip and sending the hardware forwarding information to the standby synchronization device through the information synchronization channel;
the standby synchronization device is used for receiving the hardware forwarding information of the main exchange chip through the information synchronization channel and configuring the standby exchange chip according to the hardware forwarding information.
2. The network device of claim 1, wherein the active synchronization apparatus is disposed within the active switching chip; the standby synchronization device is deployed in the standby exchange chip;
or, the master synchronization device is deployed outside the master switch chip, and a management channel exists between the master synchronization device and the master switch chip; the standby synchronization device is deployed outside the standby switch chip, and a management channel exists between the standby synchronization device and the standby switch chip.
3. The network device of claim 1,
the main synchronization device stores a main synchronization table entry, and the main synchronization table entry comprises a main mark; the standby synchronization device stores a standby synchronization table entry, and the standby synchronization table entry comprises a standby mark;
the master synchronization device is used for sending the hardware forwarding information to the standby synchronization device through the information synchronization channel when the master mark indicates that the master exchange chip starts the backup enable;
and the standby synchronization device is used for configuring the standby exchange chip according to the hardware forwarding information when the standby mark indicates that the standby exchange chip starts the backup enabling.
4. The network device of claim 1,
the master synchronization device is used for generating a backup protocol message comprising the hardware forwarding information and sending the backup protocol message to the backup synchronization device through the information synchronization channel;
the standby synchronization device is used for receiving the backup protocol message through the information synchronization channel; and analyzing the hardware forwarding information from the backup protocol message, and configuring the standby switching chip according to the hardware forwarding information.
5. The network device of claim 1 or 4,
the main synchronization device comprises a main configuration module, a main processing module and a main synchronization module; the standby synchronization device comprises a standby configuration module, a standby processing module and a standby synchronization module;
the main configuration module is used for acquiring hardware forwarding information of the main switching chip;
the main processing module is used for generating a backup protocol message comprising the hardware forwarding information;
the master synchronization module is used for sending the backup protocol message through the information synchronization channel;
the standby synchronization module is used for receiving the backup protocol message through the information synchronization channel;
the standby processing module is used for analyzing the hardware forwarding information from the backup protocol message;
and the standby configuration module is used for configuring a standby exchange chip according to the hardware forwarding information.
6. The network device of claim 5,
the master synchronization device stores a master synchronization table entry, and the master synchronization table entry comprises a standby chip identifier of the standby switching chip; the standby synchronization device stores a standby synchronization table entry, and the standby synchronization table entry comprises a standby chip identifier of the standby switching chip;
the main processing module is further configured to obtain a standby chip identifier of the standby switch chip from the main synchronization table entry, and add the standby chip identifier to a backup protocol message;
the standby processing module is specifically configured to: and acquiring a standby chip identifier of the standby switching chip from the standby synchronization table item, and if the standby chip identifier carried in the backup protocol message is the same as the acquired standby chip identifier, analyzing the hardware forwarding information from the backup protocol message.
7. The network device of claim 5,
the master synchronization device stores a master synchronization table entry, and the master synchronization table entry comprises a master chip identifier of the master exchange chip; the standby synchronization device stores a standby synchronization table entry, and the standby synchronization table entry comprises a main chip identifier of the main exchange chip;
the standby processing module is further configured to obtain a primary chip identifier of the primary switch chip from the standby synchronization table entry, and generate a request message, where the request message includes the primary chip identifier;
the standby synchronization module is further configured to send the request message through the information synchronization channel;
the primary synchronization module is further configured to receive the request message through the information synchronization channel;
the active processing module is specifically configured to: and acquiring a main chip identifier of the main exchange chip from the main synchronization table entry, and if the main chip identifier carried in the request message is the same as the acquired main chip identifier, generating a backup protocol message including the hardware forwarding information.
8. A kind of synchronizer, characterized by, apply to the master control board in the network equipment, the said master control board also includes exchanging the chip; when the main control board is a main control board, the switching chip is a main switching chip, and the synchronization device is a main synchronization device; when the main control board is a standby main control board, the switching chip is a standby switching chip, and the synchronizing device is a standby synchronizing device;
when the synchronization device is used as a main synchronization device, the synchronization device is used for acquiring hardware forwarding information of the main exchange chip and sending the hardware forwarding information through an information synchronization channel;
when the synchronization device is used as a standby synchronization device, the synchronization device is used for receiving hardware forwarding information through an information synchronization channel and configuring the standby switching chip according to the hardware forwarding information;
the information synchronization channel is a transmission channel between the active synchronization device and the standby synchronization device, and the information synchronization channel is used for synchronizing hardware forwarding information.
9. The synchronization apparatus according to claim 8, wherein the synchronization apparatus stores a synchronization table entry, and the synchronization table entry includes an identifier of a local chip and an identifier of a primary chip of a primary switch chip;
the synchronization device is also used for determining the synchronization device as a main synchronization device when the chip identifier is the same as the main chip identifier; or, when the chip identifier is different from the primary chip identifier, determining the synchronization device as a standby synchronization device.
10. An information transmission method is characterized in that the method is applied to network equipment, the network equipment comprises a main control board and a standby main control board, the main control board comprises a main switching chip and a main synchronization device, the standby main control board comprises a standby switching chip and a standby synchronization device, an information synchronization channel exists between the main synchronization device and the standby synchronization device, and the information synchronization channel is used for synchronizing hardware forwarding information, and the method comprises the following steps:
the master synchronization device acquires the hardware forwarding information of the master exchange chip and sends the hardware forwarding information to the standby synchronization device through the information synchronization channel;
the standby synchronization device receives the hardware forwarding information of the main exchange chip through the information synchronization channel, and configures the standby exchange chip according to the hardware forwarding information.
CN201911367292.1A 2019-12-26 2019-12-26 Network device, synchronization apparatus, and information transmission method Active CN111064622B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911367292.1A CN111064622B (en) 2019-12-26 2019-12-26 Network device, synchronization apparatus, and information transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911367292.1A CN111064622B (en) 2019-12-26 2019-12-26 Network device, synchronization apparatus, and information transmission method

Publications (2)

Publication Number Publication Date
CN111064622A true CN111064622A (en) 2020-04-24
CN111064622B CN111064622B (en) 2022-03-25

Family

ID=70303978

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911367292.1A Active CN111064622B (en) 2019-12-26 2019-12-26 Network device, synchronization apparatus, and information transmission method

Country Status (1)

Country Link
CN (1) CN111064622B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174362A (en) * 2022-07-01 2022-10-11 杭州迪普科技股份有限公司 Dual-computer hot standby method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008119221A1 (en) * 2007-03-30 2008-10-09 Hangzhou H3C Technologies Co., Ltd. A data packet exchange method, device and circuit board
CN201663607U (en) * 2010-01-29 2010-12-01 上海埃德电子股份有限公司 Rapid self-healing device and equipment for Ethernet ring network
CN103414590A (en) * 2013-08-19 2013-11-27 杭州华三通信技术有限公司 Software upgrading method and device
US20140056122A1 (en) * 2012-08-24 2014-02-27 Tellabs Operations Inc. Procedures, apparatuses, systems, and computer-readable media for operating primary and backup network elements
CN107547420A (en) * 2017-05-12 2018-01-05 新华三技术有限公司 A kind of flow table control method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008119221A1 (en) * 2007-03-30 2008-10-09 Hangzhou H3C Technologies Co., Ltd. A data packet exchange method, device and circuit board
CN201663607U (en) * 2010-01-29 2010-12-01 上海埃德电子股份有限公司 Rapid self-healing device and equipment for Ethernet ring network
US20140056122A1 (en) * 2012-08-24 2014-02-27 Tellabs Operations Inc. Procedures, apparatuses, systems, and computer-readable media for operating primary and backup network elements
CN103414590A (en) * 2013-08-19 2013-11-27 杭州华三通信技术有限公司 Software upgrading method and device
CN107547420A (en) * 2017-05-12 2018-01-05 新华三技术有限公司 A kind of flow table control method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174362A (en) * 2022-07-01 2022-10-11 杭州迪普科技股份有限公司 Dual-computer hot standby method and device

Also Published As

Publication number Publication date
CN111064622B (en) 2022-03-25

Similar Documents

Publication Publication Date Title
US8738802B2 (en) Forwarding traffic flow in intelligent resilient framework system
CN110635987B (en) Message transmission method, device, equipment and machine readable storage medium
US9948575B2 (en) Issuing method for forwarding adjacency link
EP3316555B1 (en) Mac address synchronization method, device and system
CN113132229A (en) Segment identifier determination method and device
CN109495345B (en) BFD processing method and network equipment
JP5266705B2 (en) Communications system
CN109150659B (en) Processor and BFD message transmission method
CN102143006B (en) Interface topology control method, system and device for communication equipment
CN101827035B (en) Method for ensuring graceful restarting and dual master control network device
CN111064622B (en) Network device, synchronization apparatus, and information transmission method
US9762510B2 (en) Relay system and switching device
JP2009194787A (en) Gateway apparatus
CN102983997A (en) Method and device for migrating master services
WO2021244588A1 (en) Method for processing routing message, communication device, storage medium, and system
CN108574587B (en) Capacity updating method and device for distributed equipment
CN101986647A (en) VRRP compatible method and device thereof
CN111464346B (en) Main and standby control board synchronization method and system based on ATCA (advanced telecom computing architecture)
CN113286321B (en) Backup management method, device, equipment and machine readable storage medium
US20230262625A1 (en) Time Synchronization Fault Processing Method, Apparatus, And System
EP4184822A1 (en) Method and apparatus for keeping user terminal alive
WO2017096914A1 (en) Method and apparatus for implementing clock synchronization
CN110740094B (en) Network equipment, BFD message transmission method and device
CN115622891A (en) Communication method, device and system
CN111224876B (en) Message processing 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