A single-frame distributed system and software upgrade method thereof

By grouping and upgrading the main control board and interface board of a single-frame distributed system, and using dynamic link aggregation protocol to detect the status, the problem of protocol and data packet forwarding failure caused by the software upgrade of a single-frame distributed system is solved, and the stable upgrade of the system is achieved.

CN111782245BActive Publication Date: 2025-09-02NEW H3C SECURITY TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010615750.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-30
Publication Date
2025-09-02
Estimated Expiration
2040-06-30

AI Technical Summary

Technical Problem

In a single-frame distributed system, the problem of failure in forwarding protocol and data packets when system software is upgraded.

Method used

The main control board and interface board of the single-frame distributed system are divided into two groups, software upgrades are performed separately, and the system status is detected through dynamic link aggregation protocol to ensure that the system maintains normal forwarding of protocols and data packets during the upgrade process.

Benefits of technology

During the software upgrade process of a single-frame distributed system, it avoids protocol and data packet forwarding failures and ensures stable operation of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111782245B_ABST
    Figure CN111782245B_ABST
Patent Text Reader

Abstract

The present application provides a single-frame distributed system and a software upgrade method thereof. The present application sets the first main control board and the second main control board of the single-frame distributed system as the first group and the second group respectively; sets the multiple interface boards to which the multiple member ports of the aggregation port of the single-frame distributed system belong as the first group and the second group respectively; sets the different interface boards to which the output ports of the different next hops of the equivalent multipath of the single-frame distributed system belong as the first group and the second group respectively; the first main control board and the interface board of the first group close the inter-board communication port connected to the second main control board and the interface board of the second group; the second main control board and the interface board of the second group upgrade the system software, so that the software upgrade of the single-frame distributed system is completely completed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to communication technology, and specifically to a single-frame distributed system and a software upgrade method thereof. Background Art

[0002] A stacking system uses N:1 virtualization technology to virtualize multiple physical devices into a single device. When upgrading the system software of a multi-chassis stack, each physical chassis is upgraded individually. Backup and forwarding of data packets in other chassis are performed using protocol and data packets forwarded by the upgraded chassis. However, in a single-chassis distributed system, all boards reside in a single chassis. Restarting the entire chassis can cause protocol and data packet forwarding failures in the single-chassis distributed system. Summary of the Invention

[0003] The purpose of this application is to provide a single-frame distributed system and a software upgrade method thereof, which only upgrades the software of some boards of the single-frame distributed system to avoid failure of the single-frame distributed system protocol and data messages.

[0004] To achieve the above-mentioned objectives, the present application provides a single-frame distributed system software upgrade method, which includes: setting the first main control board and the second main control board of the single-frame distributed system to the first group and the second group respectively; setting the multiple interface boards belonging to the multiple member ports of the aggregation port of the single-frame distributed system to the first group and the second group respectively; setting the different interface boards belonging to the different next-hop output ports of the equivalent multi-path of the single-frame distributed system to the first group and the second group respectively; the first main control board and the interface board of the first group close the inter-board communication port connected to the second main control board and the interface board of the second group; and the second main control board and the interface board of the second group upgrade the system software.

[0005] To achieve the above-mentioned purpose, the present application also provides a single-frame distributed system, which has a first main control board and a second main control board and multiple interface boards; the first main control board and the second main control board are set as the first group and the second group; the multiple interface boards belonging to the multiple member ports of the aggregation port of the single-frame distributed system are respectively set in the first group and the second group; the different interface boards belonging to the different next-hop output ports of the equivalent multi-path of the single-frame distributed system are respectively set in the first group and the second group; the first main control board and the interface board of the first group close the inter-board communication port connected to the second main control board and the interface board of the second group; the second main control board and the interface board of the second group upgrade the system software. BRIEF DESCRIPTION OF THE DRAWINGS

[0006] Figure 1 The figure shows a flowchart of a single-frame distributed system software upgrade embodiment provided by the present application;

[0007] Figure 2The figure shows a schematic diagram of the second embodiment of the single-frame distributed system software upgrade provided by the present application;

[0008] Figure 3 Shown is a schematic diagram of the third embodiment of the single-frame distributed system software upgrade provided by this application. DETAILED DESCRIPTION

[0009] The present invention will be described in detail with reference to a plurality of examples shown in the accompanying drawings. In the following detailed description, a number of specific details are provided to provide a comprehensive understanding of the present invention. Known methods, steps, components, and circuits are not described in detail in the examples to avoid obscuring the understanding of the examples.

[0010] Among the terms used, the term "including" means including but not limited to; the term "containing" means including but not limited to; the terms "above," "within," and "below" are inclusive; the terms "greater than" and "less than" are exclusive. The term "based on" means based on at least a portion.

[0011] The present invention provides a method for upgrading software of a single-frame distributed system, which comprises the following steps:

[0012] Step 101: Set the first main control board and the second main control board of the single-frame distributed system into the first group and the second group respectively.

[0013] Step 102: Arrange multiple interface boards to which multiple member ports of an aggregation port of a single-chassis distributed system belong in a first group and a second group respectively.

[0014] For each interface board, check the ports in the UP state in turn. If the boards where the other member ports of the aggregation port belong are in the first group, the interface board is placed in the second group, and vice versa.

[0015] Or the next hop of the equal-cost routing (ECMP) to which it belongs has other ports belonging to the same board.

[0016] Step 103 : Different interface boards to which the egress ports of different next hops of the equal-cost multi-path of the single-chassis distributed system belong are respectively arranged in the first group and the second group.

[0017] For each interface board, check the ports in the UP state in turn. If the boards where other member ports of the equal-cost multipath to which it belongs are located are in the first group, the interface board is moved to the second group, and vice versa.

[0018] Step 104: The first main control board and the interface board of the first group close the inter-board communication port connected to the second main control board and the interface board of the second group.

[0019] This prevents the first group from sending received protocol messages and data messages to the second group through the inter-board communication port during the upgrade of the single-chassis distributed system.

[0020] Step 105: The second main control board and the interface board of the second group upgrade the system software.

[0021] In a single-frame distributed system, the first main control board can be the active main control board, the second main control board can be the standby main control board, or the first main control board can be the standby main control board and the second main control board can be the active main control board; in the single-frame distributed system provided in this application, either the group where the active main control board is located can be upgraded first, or the group where the standby main control board is located can be upgraded first, and this application does not impose any restrictions.

[0022] Figure 2 The figure shows a schematic diagram of the second embodiment of the single-frame distributed system software upgrade provided by the present application;

[0023] Step 201: A first main control board sends a first multi-activation detection message carrying a domain identifier and an initial state identifier through a member port belonging to an aggregation port in a first group.

[0024] In the single-frame distributed system provided in the present application, the first main control board and the second main control board are configured with the same domain identifier, for example, domain 0.

[0025] In the group that is not upgraded yet, the first main control board sends an LACP (Link Aggregation Control Protocol) message through the member port of the aggregation port. The message carries the domain identifier domain0 and active 0, indicating the "initial state," for MAD (Multi-Active Detection).

[0026] In step 202 , the second main control board receives a first multi-activation detection message through a member port belonging to an aggregation port in the second group, and determines that the single-chassis distributed system is not split.

[0027] The second main control board has been upgraded but has not yet restarted. The received LACP message confirms that the domain ID is the same as that on the local device and is also in the active0 state, indicating that there is only one master device in the single-chassis distributed system.

[0028] Step 203: The upgraded second main control board and interface board of the second group are restarted.

[0029] Step 204: The second main control board sends a second multi-activation detection message carrying a domain identifier and an initial status through a member port belonging to the aggregation port in the second group.

[0030] The second main control board sends an LACP message carrying the domain identifier domain 0 and active 0 indicating the "initial state" through the member port of the aggregation port for MAD detection.

[0031] In step 205, the first main control board receives a second multi-activation detection message through a member port belonging to the aggregation port in the first group, modifies the initial state to the upgrade state, determines that the single-frame distributed system is split based on the domain identifier and the initial state of the second group, and sends a third multi-activation detection message with the domain identifier and the upgrade state through a member port belonging to the aggregation port in the first group.

[0032] The first main control board receives the LACP message, and determines based on active0 in the message that the software upgrade of the second main control board and the interface board of another group has been completed and restarted, and changes active0 of the first group to active 1.

[0033] The first control board determines that the first and second groups have the same domain 0 identifier but different states, indicating that the single-chassis distributed system has two master devices and has split. It then sends an LACP message with domain 0 and active 1, indicating the "upgrade state," to notify the second control board in the second group.

[0034] Step 206: The second main control board receives the third multi-activation detection message through the member port belonging to the aggregation port in the second group, and determines that the single-chassis distributed system is split based on the domain identifier and the upgrade status of the first group.

[0035] The second main control board determines that the first group and the second group have the same domain 0 identifier but different statuses, indicating that there are two master devices in the single-chassis distributed system and a split has occurred.

[0036] Step 207: The first main control board and the interface board of the first group upgrade the system software.

[0037] Figure 3 The figure shows a schematic diagram of the third embodiment of the single-frame distributed system software upgrade provided by this application.

[0038] Step 301: After the upgrade, the first main control board and interface board of the first group are restarted, the inter-board communication port connected to the second main control board and interface board of the second group is opened, the upgrade status is changed to the initial status, and the fourth multi-activation detection message with the domain identifier and the initial status identifier is sent through the member port belonging to the aggregation port in the first group.

[0039] After the first group system is upgraded and restarted, the first main control board changes active1 of the first group to active0, and sends an LACP message with domain 0 and active 0 indicating "initial state" to notify the second main control board of the second group.

[0040] After the first main control board and interface board of the first group are restarted, the inter-board communication port is opened, so that the messages received by the second main control board and interface board of the second group can be sent to the first group through the inter-board communication port.

[0041] In step 302, the second main control board receives the fourth multi-activation detection message through the member port belonging to the aggregation port in the second group, determines that the first group upgrade is completed based on the domain identifier and the initial state of the first group, and synchronizes configuration information and data to the first main control board.

[0042] The second main control board receives the LACP message and determines that the first group has completed the upgrade based on the active 0 in the "initial state". It synchronizes the configuration information and data to the first main control board and interface board of the first group, completing the entire software upgrade of the single-chassis distributed system.

[0043] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A single-frame distributed system software upgrade method, characterized in that: The method comprises: The first main control board and the second main control board of the single-frame distributed system are respectively set as the first group and the second group; Arranging multiple interface boards to which multiple member ports of the aggregation port of the single-chassis distributed system belong in the first group and the second group respectively; wherein, for each interface board, sequentially checking ports in the UP state, if boards where other member ports of the aggregation port to which it belongs are located are in the first group, then assigning the interface board to the second group, and vice versa; Different interface boards belonging to different next-hop egress ports of the equal-cost multipath of the single-chassis distributed system are respectively arranged in the first group and the second group; for each interface board, ports in the Up state are sequentially checked, and if boards where other member ports of the equal-cost multipath to which the interface board belongs are located are in the first group, the interface board is placed in the second group, and vice versa; The first main control board and the interface board of the first group close the inter-board communication port connected to the second main control board and the interface board of the second group; The second main control board and the interface board of the second group upgrade the system software.

2. The method according to claim 1, characterized in that The first main control board and the second main control board are configured with the same domain identifier; The first main control board sends a first multi-activation detection message carrying the domain identifier and the initial state identifier through a member port belonging to the aggregate port in the first group; The second main control board receives the first multi-activation detection message through a member port belonging to the aggregate port in the second group, and determines that the single-chassis distributed system is not split.

3. The method according to claim 2, characterized in that The method further comprises: Restarting the upgraded second main control board and interface board of the second group; The second main control board sends a second multi-activation detection message carrying the domain identifier and the initial state through a member port belonging to the aggregate port in the second group; The first main control board receives the second multi-activation detection message through the member port belonging to the aggregate port in the first group, modifies the initial state to the upgraded state, determines that the single-chassis distributed system is split based on the domain identifier and the initial state of the second group, and sends a third multi-activation detection message carrying the domain identifier and the upgraded state through the member port belonging to the aggregate port in the first group; The second main control board receives the third multi-activation detection message through a member port belonging to the aggregation port in the second group, and determines that the single-chassis distributed system is split based on the domain identifier and the upgrade status of the first group; The first main control board and the interface board of the first group upgrade system software.

4. The method according to claim 3, characterized in that The method further comprises: After the upgrade, the first main control board and the interface board of the first group are restarted, the inter-board communication port connected to the second main control board and the interface board of the second group is opened, the upgrade state is changed to the initial state, and a fourth multi-activation detection message with the domain identifier and the initial state identifier is sent through the member port belonging to the aggregation port in the first group; The second main control board receives the fourth multi-activation detection message through the member port belonging to the aggregate port in the second group, determines that the upgrade of the first group is completed based on the domain identifier and the initial state of the first group, and synchronizes configuration information and data to the first main control board to complete the single-frame distributed system upgrade.

5. The method according to claim 1, wherein The first main control board is a main main control board, and the second main control board is a backup main control board; or The first main control board is a standby main control board, and the second main control board is a main main control board.

6. A single-frame distributed system, characterized in that: The single-frame distributed system comprises a first main control board, a second main control board and a plurality of interface boards; The first main control board and the second main control board are set as a first group and a second group; Multiple interface boards to which multiple member ports of the aggregation port of the single-chassis distributed system belong are respectively arranged in the first group and the second group; wherein, for each interface board, ports in the UP state are sequentially checked, and if boards where other member ports of the aggregation port to which it belongs are located are in the first group, the interface board is assigned to the second group, and vice versa; Different interface boards belonging to different next-hop egress ports of the equal-cost multipath of the single-chassis distributed system are respectively arranged in the first group and the second group; wherein, for each interface board, ports in the Up state are sequentially checked, and if boards where other member ports of the equal-cost multipath to which the interface board belongs are located are in the first group, the interface board is placed in the second group, and vice versa; The first main control board and the interface board of the first group close the inter-board communication port connected to the second main control board and the interface board of the second group; The second main control board and the interface board of the second group upgrade the system software.

7. The system according to claim 6, characterized in that The first main control board and the second main control board are configured with the same domain identifier; The first main control board sends a first multi-activation detection message carrying the domain identifier and the initial state identifier through a member port belonging to the aggregate port in the first group; The second main control board receives the first multi-activation detection message through a member port belonging to the aggregate port in the second group, and determines that the single-chassis distributed system is not split.

8. The system according to claim 7, characterized in that Restarting the upgraded second main control board and interface board of the second group; The second main control board sends a second multi-activation detection message carrying the domain identifier and the initial state through a member port belonging to the aggregate port in the second group; The first main control board receives the second multi-activation detection message through the member port belonging to the aggregate port in the first group, modifies the initial state to the upgraded state, determines that the single-chassis distributed system is split based on the domain identifier and the initial state of the second group, and sends a third multi-activation detection message carrying the domain identifier and the upgraded state through the member port belonging to the aggregate port in the first group; The second main control board receives the third multi-activation detection message through a member port belonging to the aggregation port in the second group, and determines that the single-chassis distributed system is split based on the domain identifier and the upgrade status of the first group; The first main control board and the interface board of the first group upgrade system software.

9. The system according to claim 8, characterized in that After the upgrade, the first main control board and the interface board of the first group are restarted, the inter-board communication port connected to the second main control board and the interface board of the second group is opened, the upgrade state is changed to the initial state, and a fourth multi-activation detection message with the domain identifier and the initial state identifier is sent through the member port belonging to the aggregation port in the first group; The second main control board receives the fourth multi-activation detection message through the member port belonging to the aggregate port in the second group, determines that the upgrade of the first group is completed based on the domain identifier and the initial state of the first group, and synchronizes configuration information and data to the first main control board to complete the single-frame distributed system upgrade.

10. The system according to claim 6, wherein: The first main control board is a main main control board, and the second main control board is a backup main control board; or The first main control board is a standby main control board, and the second main control board is a main main control board.

Citation Information

Patent Citations

  • Equipment upgrading method and device

    CN104320475A

  • Split detection system and method

    CN109039798A