Batch upgrade method of switches in ring network topology and ring network topology

By calculating the upgrade coefficient of the switch in the ring network topology and upgrading it in batches, the problem of low switching upgrade efficiency in the communication network is solved, efficient and stable switch upgrades are achieved, and the impact on the existing network business is reduced.

CN113572636BActive Publication Date: 2024-11-05武汉迈威通信股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110790779.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-13
Publication Date
2024-11-05
Estimated Expiration
2041-07-13

AI Technical Summary

Technical Problem

In the communication network, the number of switch equipment is huge and the upgrade process is time-consuming and labor-intensive. The traditional upgrade method is inefficient, which affects the stability of the current network business.

Method used

Using the batch upgrade method of switches in the ring network topology structure, obtain the list of switches to be upgraded through the network management system, calculate the upgrade coefficient of each switch, and upgrade in batches according to the upgrade coefficient to ensure that the switch upgrade efficiency is improved without affecting the existing network business. .

Benefits of technology

It improves the efficiency of switch upgrades, reduces manual intervention, reduces error rate, and completes batch upgrades without interrupting the on-line service.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113572636B_ABST
    Figure CN113572636B_ABST
Patent Text Reader

Abstract

The present invention provides a batch upgrade method for switches in a ring network topology structure and a ring network topology structure. The batch upgrade method comprises: obtaining the ring network topology structure according to a network communication protocol, obtaining a list of switches to be upgraded based on the current firmware version of each switch in the ring network topology structure; calculating the upgrade coefficient of each switch to be upgraded according to the ring network topology structure; and upgrading all switches to be upgraded in batches based on the upgrade coefficient of each switch to be upgraded. The present invention calculates the upgrade coefficients of all switches in the ring network topology structure, and when all switches are upgraded, all switches are upgraded in batches according to the upgrade coefficients, so that while the upgrade efficiency of the switches is improved, the entire ring network topology structure will not be interrupted due to the simultaneous upgrading of all switches, and the existing network services will be minimally affected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network communication, and more specifically, to a batch upgrading method of switches in a ring network topology structure and a ring network topology structure. Background Art

[0002] In the communication network topology, the number of switch devices used is very large. Upgrading an environment with thousands of switch devices is a very time-consuming and labor-intensive task.

[0003] The traditional method is to upgrade one switch device before upgrading another switch. This upgrade method is too labor-intensive and time-consuming. Summary of the invention

[0004] The present invention aims at the technical problems existing in the prior art and provides a batch upgrading method of switches in a ring network topology structure and a ring network topology structure.

[0005] According to a first aspect of the present invention, a batch upgrade method for switches in a ring network topology is provided, wherein the ring network topology includes a network management system and multiple switches, wherein the multiple switches include a first aggregation switch, multiple second aggregation switches and multiple ordinary switches, the ring network topology includes multiple rings, each ring includes multiple ordinary switches and at least one second aggregation switch, and the first aggregation switch is connected to the network management system. The batch upgrade method includes: obtaining the ring network topology according to a network communication protocol, and obtaining a list of switches to be upgraded based on the current firmware version of each switch in the ring network topology; calculating the upgrade coefficient of each switch to be upgraded according to the ring network topology; and performing batch upgrades on all switches to be upgraded in batches based on the upgrade coefficient of each switch to be upgraded.

[0006] Based on the above technical solution, the present invention can also make the following improvements.

[0007] Optionally, calculating the upgrade coefficient of each switch to be upgraded according to the ring network topology structure includes: for each common switch and each second aggregation switch, respectively calculating the upgrade coefficient thereof by adopting different calculation methods.

[0008] Optionally, the upgrade coefficient of each common switch is calculated in the following manner: for any common switch, find the ring to which it belongs, set the starting switch and the ending switch in the ring, proceed in a clockwise direction, and take the number of switches behind any common switch as the upgrade coefficient of any common switch.

[0009] Optionally, the upgrade coefficient of each second aggregation switch is calculated in the following manner: for any second aggregation switch, according to the direction of data communication flow in the ring network topology, the sum of the number of all switches behind any second aggregation switch is used as the upgrade coefficient of any second aggregation switch.

[0010] Optionally, the step of performing batch upgrading of all switches to be upgraded in batches based on the upgrade coefficient of each switch to be upgraded includes: sorting the upgrade coefficients of all switches except the first aggregation switch in the ring network topology; performing batch upgrading of all switches in batches according to the order of the upgrade coefficient of each switch; and finally upgrading the first aggregation switch after the batch upgrading of all switches except the first aggregation switch is completed.

[0011] Optionally, the batch upgrading of all other switches in batches according to the order of the upgrade coefficient of each switch includes: finding the switches with upgrade coefficients in the ring network topology as a batch to obtain multiple batches of switches; for the multiple batches of switches, batch upgrading in ascending order according to the upgrade times of the switches in each batch.

[0012] Optionally, for the switches in multiple batches, batch upgrading is performed in ascending order according to the upgrade times of the switches in each batch, including: for the switches that have been successfully upgraded, setting their upgrade coefficients to -1.

[0013] According to a second aspect of the present invention, a ring network topology is provided, comprising a network management system and a plurality of switches, wherein the plurality of switches comprise a first aggregation switch, a plurality of second aggregation switches and a plurality of ordinary switches, the ring network topology comprises a plurality of rings, each ring comprises a plurality of ordinary switches and at least one second aggregation switch, and the first aggregation switch is connected to the network management system; the network management system is used to obtain the ring network topology according to a network communication protocol, and obtain a list of switches to be upgraded based on the current firmware version of each switch in the ring network topology; calculate an upgrade coefficient of each switch to be upgraded according to the ring network topology; and perform batch upgrades on all switches to be upgraded in batches based on the upgrade coefficient of each switch to be upgraded.

[0014] Optionally, the step of performing batch upgrading of all switches to be upgraded in batches based on the upgrade coefficient of each switch to be upgraded includes: sorting the upgrade coefficients of all switches except the first aggregation switch in the ring network topology; performing batch upgrading of all switches in batches according to the order of the upgrade coefficient of each switch; and finally upgrading the first aggregation switch after the batch upgrading of all switches except the first aggregation switch is completed.

[0015] Optionally, the batch upgrading of all other switches in batches according to the order of the upgrade coefficient of each switch includes: finding the switches with upgrade coefficients in the ring network topology as a batch to obtain multiple batches of switches; for the multiple batches of switches, batch upgrading in ascending order according to the upgrade times of the switches in each batch.

[0016] The present invention provides a batch upgrade method for switches in a ring network topology structure and a ring network topology structure, wherein the upgrade coefficients of all switches in the ring network topology structure are calculated, and when all switches are upgraded, all switches are upgraded in batches according to the upgrade coefficients, thereby improving the upgrade efficiency of switches and preventing the entire ring network topology structure from being interrupted due to the simultaneous upgrading of all switches, thereby minimizing the impact on existing network services. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A schematic diagram of the ring network topology structure in the present invention;

[0018] Figure 2 A flow chart of a method for batch upgrading switches in a ring network topology structure provided by the present invention.

[0019] Figure 3 A flowchart for batch upgrading of switches;

[0020] Figure 4 The flowchart is for performing batch upgrades in the order of the upgrade coefficients of switches. DETAILED DESCRIPTION

[0021] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0022] Based on the defects mentioned in the background technology, an embodiment of the present invention proposes a method for automatically batch upgrading a large number of switch devices, especially for automatically batch upgrading a large number of switch devices in a ring network topology with a complex network environment.

[0023] in, Figure 1The ring network topology structure in the embodiment of the present invention includes a network management system and multiple switches, wherein the multiple switches include a first aggregation switch, multiple second aggregation switches and multiple ordinary switches. The ring network topology structure includes multiple rings, each ring includes multiple ordinary switches and at least one second aggregation switch, and the first aggregation switch is connected to the network management system.

[0024] It can be understood that the batch upgrade method for switches in the embodiment of the present invention is based on Figure 1 The ring network topology structure in the network mainly includes a network management system and many switches, including a large number of ordinary switches, such as Figure 1 sw-1-1, sw-1-2, sw-2-1, sw-2-2, etc. in the first aggregation switch, such as Figure 1 The first aggregation switch is responsible for the aggregation of all other switches in the entire ring network topology, and realizes communication with the network management system by aggregating the data of all other switches. The ring network topology also includes multiple second aggregation switches, such as Figure 1 The three second aggregation switches M-SW-1, M-SW-2 and M-SW-3 in the network participate in the aggregation of multiple rings. The ring network topology is composed of multiple ring networks, each of which includes multiple ordinary switches and at least one second aggregation switch, such as Figure 1 The ring-1 in the figure includes four common switches (sw-1-1, sw-1-2, sw-1-3 and sw-1-4) and one second aggregation switch (M-SW-1). The ring-2 includes four common switches (sw-2-1, sw-2-2, sw-2-3 and sw-2-4) and two second aggregation switches (including M-SW-1 and M-SW-2). The ring network topology includes many such ring networks, forming a complex ring network topology.

[0025] Upgrading a large number of switches in such a complex ring network topology is a very complicated task. For the ring network topology, it is the primary condition to ensure that most of the services of the entire network can still work normally when a local device is abnormal. Therefore, the upgrade operation of the switches should have as little impact on the user's existing network services as possible. If the upgrade message is sent in batches, all switches will enter the upgrade state at the same time, which will inevitably cause the existing network services of the entire network to be interrupted for a period of time. In some scenarios where the entire network is not allowed to be interrupted, this upgrade method is not feasible. The embodiment of the present invention finds a ring network switch upgrade method that can automatically upgrade in batches and minimize the impact on the existing network services.

[0026] Among them, for Figure 1 In the ring network topology, all switches in it are upgraded in batches. For the batch upgrade method, see Figure 2 , mainly including: S1, obtaining the ring network topology according to the network communication protocol, and obtaining the list of switches to be upgraded based on the current firmware version of each switch in the ring network topology; S2, calculating the upgrade coefficient of each switch to be upgraded according to the ring network topology; S3, based on the upgrade coefficient of each switch to be upgraded, batch upgrading all switches to be upgraded in batches.

[0027] It can be understood that the upgrade operation process of all switches in the ring network topology is managed and controlled by the network management system. Before the switch is upgraded, the network management system obtains the ring network topology according to the relevant network communication protocol, and determines whether each switch needs to be upgraded according to the current firmware version of each switch in the ring network topology. For example, if the firmware version of the switch is already the latest version, then the switch does not need to be upgraded. Only those switches with lower versions will be upgraded. The switches that need to be upgraded are called switches to be upgraded.

[0028] After the switches to be upgraded in the ring network topology are determined, the upgrade coefficient of each switch to be upgraded is calculated according to the ring network topology, and all switches to be upgraded are upgraded in batches based on the upgrade coefficient of each switch to be upgraded.

[0029] The present invention calculates the upgrade coefficients of all switches in the ring network topology structure. When all switches are upgraded, all switches are upgraded in batches according to the upgrade coefficients. While improving the upgrade efficiency of switches, the entire ring network topology structure will not be interrupted due to the simultaneous upgrade of all switches, and the impact on the existing network services will be minimized.

[0030] In a possible implementation manner, the upgrade coefficient of each switch to be upgraded is calculated according to the ring network topology structure, including: for each common switch and each second aggregation switch, the upgrade coefficient thereof is calculated using different calculation methods respectively.

[0031] When calculating the upgrade coefficient of each switch in the ring network topology, the upgrade coefficients of switches belonging to a single ring, that is, ordinary switches, and switches belonging to multiple rings, that is, the second aggregation switch and the first aggregation switch, are calculated in different ways.

[0032] It should be noted that, since the first aggregation switch is responsible for the aggregation function of all switches, its upgrade process will inevitably affect the work of all other switches. Therefore, the first aggregation switch should be upgraded last after all other switches are upgraded. Therefore, there is no need to calculate the upgrade coefficient of the first aggregation switch. The embodiment of the present invention only calculates the upgrade coefficients of all ordinary switches and all second aggregation switches.

[0033] In a possible implementation manner, the upgrade coefficient of each common switch is calculated in the following manner: for any common switch, find the ring to which it belongs, set the starting switch and the ending switch in the ring, proceed in a clockwise direction, and use the number of switches behind any common switch as the upgrade coefficient of any common switch.

[0034] Specifically, the calculation method of the upgrade coefficient of the switch belonging to a single ring is as follows: take the ring-3 ring network as an example. The ring network includes a total of 6 switches, among which one switch can be arbitrarily determined as the starting switch, and then the terminating switch can be determined in order, for example, sw-3-1 is the starting switch and M-SW-2 is the terminating switch. For the current switch, starting from the current switch and proceeding in a clockwise direction, the number of switches after the current switch in this ring is the upgrade coefficient of the current switch; for example, there are 5 switches after sw-3-1, so the upgrade coefficient of sw-3-1 is 5; the upgrade coefficient of sw-3-2 is 4, the upgrade coefficient of sw-3-3 is 2, and the upgrade coefficient of sw-3-4 is 1. The calculation method of the upgrade coefficient of ordinary switches in other rings is the same, and it will not be repeated here.

[0035] In a possible implementation manner, the upgrade coefficient of each second aggregation switch is calculated in the following manner: for any second aggregation switch, according to the direction of the data communication flow in the ring network topology, the sum of the number of all switches behind the any second aggregation switch is used as the upgrade coefficient of the any second aggregation switch.

[0036] Specifically, for switches belonging to multiple rings, for example, Figure 1 The upgrade coefficients of the two switches M-SW-1 and M-SW-3 in the figure are calculated as follows: for the current second aggregation switch, the total number of switches after the current second aggregation switch is the upgrade coefficient of the second aggregation switch, calculated from the nearest to the first aggregation switch. For example, there are 4 switches after M-SW-3, so its upgrade coefficient is 4.

[0037] A more specific explanation is that the direction of the data communication flow of the ring network topology is from the network management system to M-SW-2, then from M-SW-2 to ring-4 and ring-4, and from M-SW-2 to ring-2 and ring-1.

[0038] For the switch M-SW-1, according to the data flow direction, there are four switches behind it, so its upgrade factor is 4. Similarly, the upgrade factor of the switch M-SW-3 is also 4.

[0039] In a possible implementation manner, all switches to be upgraded are upgraded in batches based on the upgrade coefficient of each switch to be upgraded, including: sorting the upgrade coefficients of all switches except the first aggregation switch in the ring network topology; upgrading all other switches in batches according to the order of the upgrade coefficient of each switch; and after the batch upgrade of all other switches except the first aggregation switch is completed, finally upgrading the first aggregation switch.

[0040] It is understandable that the upgrade coefficient of each switch is calculated according to the calculation method of the upgrade coefficient of each switch in the ring network topology, and the upgrade coefficients of all switches in the ring network topology are sorted. Since the first aggregation switch is the last to be upgraded, the first aggregation switch does not participate in the sorting.

[0041] See also Figure 3 First, all switches except the first aggregation switch in the ring network topology are sorted according to the size of the upgrade coefficient, for example, sorting from small to large, or from large to small, which is possible and is not limited in the embodiment of the present invention. Then, all switches are upgraded in batches according to the order of the upgrade coefficient of each switch. When all other switches are upgraded, the first aggregation switch is upgraded last to complete the batch upgrade of all switches in the ring network topology.

[0042] In a possible implementation manner, all other switches are upgraded in batches according to the order of the upgrade coefficient of each switch, including: finding switches with upgrade coefficients in the ring network topology as a batch to obtain multiple batches of switches; for the multiple batches of switches, batch upgrading is performed in ascending order according to the upgrade times of the switches in each batch.

[0043] The specific process of upgrading all switches in batches according to the upgrade coefficient of each switch can be found in Figure 4When upgrading switches in batches, there is a set of rules to upgrade switches with the same upgrade coefficient as the same batch at the same time. In specific implementation, switches with the same upgrade coefficient can be upgraded as a batch in the order of small to large upgrade coefficients. Switches with small upgrade coefficients in the same batch are upgraded first, and switches with large upgrade coefficients in the same batch are upgraded later. The upgrades are performed batch by batch, and finally the first aggregation switch is upgraded.

[0044] In the process of upgrading the switch, for the successfully upgraded switch, the upgrade coefficient thereof is set to -1, indicating that the switch has been upgraded.

[0045] The embodiment of the present invention provides a batch upgrade method of switches in a ring network topology structure and a ring network topology structure, wherein the upgrade coefficients of all switches in the ring network topology structure are calculated, and when all switches are upgraded, all switches are upgraded in batches according to the upgrade coefficients, thereby improving the efficiency of switch upgrades compared to the existing switch upgrades one by one; at the same time, by upgrading the switches in batches, the entire ring network topology structure will not be interrupted due to the simultaneous upgrading of all switches, thereby minimizing the impact on existing network services; and switches in a complex ring network topology structure are automatically upgraded in batches, and the error rate is extremely low compared to manual upgrades.

[0046] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0047] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0048] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1A device that provides the functions specified in a block or multiple blocks.

[0049] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0050] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0051] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0052] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for batch upgrading switches in a ring network topology, characterized in that: The ring network topology structure includes a network management system and multiple switches, wherein the multiple switches include a first aggregation switch, multiple second aggregation switches and multiple common switches, the ring network topology structure includes multiple rings, each ring includes multiple common switches and at least one second aggregation switch, the first aggregation switch is connected to the network management system, and the batch upgrade method includes: Obtain the ring network topology structure according to the network communication protocol, and obtain a list of switches to be upgraded based on the current firmware version of each switch in the ring network topology structure; Calculate the upgrade coefficient of each switch to be upgraded based on the ring network topology; Based on the upgrade coefficient of each switch to be upgraded, all switches to be upgraded are upgraded in batches; The step of performing batch upgrading on all switches to be upgraded based on the upgrade coefficient of each switch to be upgraded includes: Sorting the upgrade coefficients of all switches except the first aggregation switch in the ring network topology structure; Batch upgrade all other switches in batches according to the order of the upgrade coefficient of each switch; After the batch upgrade of all switches except the first aggregation switch is completed, the first aggregation switch is upgraded last; The step of upgrading all other switches in batches according to the order of the upgrade coefficient of each switch includes: Find switches with the same upgrade coefficient in the ring network topology as a batch, and obtain multiple batches of switches; For multiple batches of switches, batch upgrades are performed in ascending order according to the upgrade coefficient of each batch of switches.

2. The batch upgrade method according to claim 1, characterized in that: The step of calculating the upgrade coefficient of each switch to be upgraded according to the ring network topology structure includes: For each common switch and each second aggregation switch, different calculation methods are used to calculate the upgrade coefficient thereof.

3. The batch upgrade method according to claim 2, characterized in that: The upgrade factor of each common switch is calculated as follows: For any common switch, find the ring to which it belongs, set the starting switch and the ending switch in the ring, proceed in a clockwise direction, and use the number of switches behind any common switch as the upgrade coefficient of any common switch.

4. The batch upgrade method according to claim 2, characterized in that: The upgrade coefficient of each second aggregation switch is calculated as follows: For any second aggregation switch, according to the direction of data communication flow in the ring network topology, the sum of the number of all switches behind the any second aggregation switch is used as the upgrade coefficient of the any second aggregation switch.

5. The batch upgrade method according to claim 1, characterized in that: For the switches in multiple batches, the batch upgrade is performed in ascending order according to the upgrade times of the switches in each batch, including: For switches that have been successfully upgraded, their upgrade coefficients are set to -1.

6. A ring network topology, characterized in that: The ring network topology structure includes a network management system and multiple switches, wherein the multiple switches include a first aggregation switch, multiple second aggregation switches and multiple common switches, the ring network topology structure includes multiple rings, each ring includes multiple common switches and at least one second aggregation switch, and the first aggregation switch is connected to the network management system; The network management system is used to obtain the ring network topology according to the network communication protocol, and obtain a list of switches to be upgraded based on the current firmware version of each switch in the ring network topology; calculate the upgrade coefficient of each switch to be upgraded according to the ring network topology; and perform batch upgrades on all switches to be upgraded based on the upgrade coefficient of each switch to be upgraded; The step of performing batch upgrading on all switches to be upgraded based on the upgrade coefficient of each switch to be upgraded includes: Sorting the upgrade coefficients of all switches except the first aggregation switch in the ring network topology structure; Batch upgrade all other switches in batches according to the order of the upgrade coefficient of each switch; After all switches except the first aggregation switch are upgraded in batches, the first aggregation switch is upgraded last; The step of upgrading all other switches in batches according to the order of the upgrade coefficient of each switch includes: Find switches with the same upgrade coefficient in the ring network topology as a batch, and obtain multiple batches of switches; For multiple batches of switches, batch upgrades are performed in ascending order according to the upgrade coefficient of each batch of switches.