A software upgrade method, system and device
By using the backup source address split stacking system in the data center network, the problems of network interruption and high labor costs caused by ISSU technology are solved, and the uninterrupted and efficient configuration of equipment upgrades are achieved, the risk of network interruption is reduced, and the data center is improved. Network maintenance efficiency and business stability.
Patent Information
- Application Number
- CN202211738892.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-30
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2042-12-30
AI Technical Summary
In data center networks, existing ISSU technology leads to problems of network interruption and high labor costs, especially when equipment upgrades in stacked systems, the risk of network interruption is high and the amount of manual configuration information is large, affecting maintenance efficiency and business stability.
Using a preset backup source address split stacking system, member devices establish communication connections with neighboring devices as new master devices, inform the backup source address routing information, and restore the main source address routing information after the upgrade is completed to ensure network communication. Continuity and centralization of configuration.
It effectively avoids network interruptions, reduces manual configuration costs and time, reduces the risks brought about by network equipment upgrades, and improves the maintenance efficiency and business reliability of data center networks.
Smart Images

Figure CN115941474B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a software upgrade method, system and device. Background Art
[0002] In data center networks, IBGP (Internal Border Gateway Protocol) is widely used for networking. For some small-scale networks, fully connected IBGP networking is used, and for some large-scale networks, route reflectors are used for networking. When maintaining the data center network, ISSU (In-Service Software Upgrade) technology is usually used to split the network devices in the stack system and upgrade them one by one to achieve the purpose of network device maintenance and upgrade.
[0003] In the prior art, when the ISSU technology is used to perform software upgrades on devices in a stacking system one by one, since the stacking system has only one address for establishing IBGP neighbors, when the stacking system is split into multiple network devices, the new independent system (independent multiple network devices) also uses the same IBGP neighbor source address as the stacking system to establish IBGP neighbor communication, resulting in the replacement of the IBGP neighbor originally established in the neighboring device, i.e., the main device in the stacking system, causing the network of the stacking system to be interrupted, and the network interruption will have a serious impact on user services; when a new IP address is used for the network device in the stacking system, technical personnel are required to manually configure new information for all route reflectors or other fully connected IBGP neighbors, which has a high labor cost and a large workload, resulting in a long maintenance and upgrade time for the data center network and a high risk of network interruption. Summary of the invention
[0004] The purpose of the present invention is to provide a software upgrade method, system and device to address the deficiencies of the above-mentioned prior art, so as to solve the technical problems of network interruption occurring during ISSU in the prior art, or high risk of network interruption and high labor cost.
[0005] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0006] In a first aspect, an embodiment of the present application provides a software upgrade method, which is applied to a stacking system based on a preset primary source address, the stacking system comprising: a master device and a member device, the stacking system interacting with a neighbor device through the primary source address for routing information; the method comprising:
[0007] During the software upgrade process of the stacking system, the member device is split into a new stacking system based on a preset backup source address and serves as a new master device in the new stacking system; the backup source address is an address different from the main source address;
[0008] The new master device establishes a communication connection with the neighbor device according to the backup source address, and notifies the neighbor device of routing information based on the backup source address, so that the neighbor device performs message communication based on the routing information of the backup source address;
[0009] The master device performs software upgrade and joins the new stacking system based on the backup source address as a new member device in the new stacking system;
[0010] After the new member device joins successfully, the new master device establishes a communication connection with the neighbor device according to the primary source address, and notifies the neighbor device of routing information based on the primary source address, so that the neighbor device performs message communication based on the routing information of the primary source address after the stack system upgrade is completed.
[0011] Optionally, before the member device is split into a new stacking system based on a preset backup source address during the software upgrade of the stacking system, the method further includes:
[0012] The master device generates a backup neighbor source address route according to the primary source address and a preset backup source address;
[0013] The master device notifies the neighbor device of the backup neighbor source address route, so that the neighbor device creates neighbor configuration information of the backup source address according to the backup neighbor source address route;
[0014] The new master device establishes a communication connection with the neighbor device according to the backup source address, including:
[0015] The new master device establishes a communication connection with the neighbor device based on the backup source address and the neighbor configuration information of the backup source address.
[0016] Optionally, the master device generates a backup neighbor source address route according to the primary source address and a preset backup source address, including:
[0017] The master device generates the backup neighbor source address route with a prefix of the backup source address and a private attribute of the primary source address according to the primary source address and a preset backup source address.
[0018] Optionally, the backup neighbor source address route is set to be opaque and not transmitted, so that the backup neighbor source address route is discarded when the neighbor device does not recognize the backup neighbor source address route; when the neighbor device recognizes the backup neighbor source address route, it only announces the route to its route reflector client and non-client when it acts as a route reflector.
[0019] Optionally, before the new master device establishes a communication connection with the neighbor device according to the backup source address, the method further includes:
[0020] The new master device determines whether it has a software upgrade mark;
[0021] If the new master device has a software upgrade mark, determining whether it has the configuration information of the backup source address;
[0022] The new master device establishes a communication connection with the neighbor device according to the backup source address, including:
[0023] If the new master device has the configuration information of the backup source address, a communication connection is established with the neighbor device.
[0024] Optionally, before the new master device notifies the neighbor device of the routing information based on the backup source address, the method further includes:
[0025] Set the next hop of the route to the backup source address.
[0026] Optionally, before notifying the neighbor device of the routing information based on the primary source address, the method further includes:
[0027] Set the next hop of the route to the primary source address.
[0028] Optionally, after the new master device establishes a communication connection with the neighbor device according to the primary source address and notifies the neighbor device of routing information based on the primary source address, the method further includes:
[0029] The new master device deletes the backup source address and the configuration information of the backup source address;
[0030] The new master device sends a revocation notification to the neighbor device to instruct the neighbor device to delete the neighbor configuration information of the backup source address and the corresponding neighbor.
[0031] In a second aspect, an embodiment of the present application provides a stacking system, the stacking system comprising: a member device and a master device, the member device being connected to the master device;
[0032] The member device is used to execute the software upgrade method executed by the member device in the first aspect above;
[0033] The master device is used to execute the software upgrade method executed by the master device in the first aspect above.
[0034] In a third aspect, an embodiment of the present application provides a computer device, comprising: a storage medium and a processor, wherein the storage medium stores a computer program executable by the processor, and when the processor executes the computer program, the software upgrade method of the first aspect is implemented.
[0035] Compared with the prior art, this application has the following beneficial effects:
[0036] The present application provides a software upgrade method, system and device. During the software upgrade process of the stacking system, the member devices in the stacking system are split into a new stacking system based on a preset backup source address and serve as a new master device in the new stacking system. The backup source address is an address different from the main source address. The new master device establishes a communication connection with the neighboring device according to the backup source address, notifies the neighboring device of the routing information based on the backup source address, so that the neighboring device performs message communication based on the routing information of the backup source address. The master device performs software upgrade and joins the new stacking system based on the backup source address. As a new member device in the new stacking system, the new master device is added to the new master device. After the stacking system is successfully upgraded, the new master device establishes a communication connection with the neighbor device according to the primary source address, and notifies the neighbor device of the routing information based on the primary source address, so that the neighbor device can communicate messages based on the routing information of the primary source address after the stacking system is upgraded. This method solves the problem of network interruption caused by the upgrade of network devices in the stacking system by backing up the source address. At the same time, only the upgrade and configuration and other related operations are performed in the stacking system to be maintained. Compared with manually configuring relevant information in the stacking system and a large number of neighboring devices, this method reduces labor costs and upgrade time, thereby reducing the risk of network interruption caused by operations in a large number of network devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0038] Figure 1 A schematic diagram of the structure of a data center network provided in an embodiment of the present application;
[0039] Figure 2 A flowchart of a software upgrade method provided in an embodiment of the present application;
[0040] Figure 3 A flowchart of another software upgrade method provided in an embodiment of the present application;
[0041] Figure 4 A flowchart of another software upgrade method provided in an embodiment of the present application;
[0042] Figure 5 A flowchart of another software upgrade method provided in an embodiment of the present application;
[0043] Figure 6 A schematic diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0045] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for protection, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.
[0046] It should be noted that, in the absence of conflict, the features in the embodiments of the present invention may be combined with each other.
[0047] With the development of technology, especially the development of data center technology, data is becoming more and more concentrated, the scale of data centers is getting larger and larger, and the services they carry are becoming more and more critical. Therefore, the requirements for data center networks are getting higher and higher, and the tolerance for network interruptions is getting lower and lower.
[0048] With the continuous development of business or technology, it is necessary to upgrade the software of the equipment in the data center network to meet the business needs or data processing requirements. Figure 1 A schematic diagram of a data center network structure provided in an embodiment of the present application is shown in FIG. Figure 1As shown, the data center network includes a stacking system and independent physical devices, wherein device 1 and device 2 are connected through a stacking link to form a stacking system, and the stacking system establishes an IBGP neighbor relationship with device 5 and device 6 respectively, and device 3 and device 4 are connected through a stacking link to form another stacking system, and the stacking system also establishes an IBGP neighbor relationship with device 5 and device 6 respectively. After the neighbor relationship is established, they can communicate messages or notify each other of routes. Among them, device 5 and device 6 can also serve as route reflectors at the same time.
[0049] Each stacking system can be understood as a logical device. The master device in the stacking system establishes an IBGP neighbor relationship with the neighbor device through a preset primary source address, and the stacking system exchanges routing information with the neighbor device through the primary source address. Each stacking system includes a master device and a member device. The master device can exchange routing information with the neighbor device of the stacking system through the primary source address, or the member device can be used as a transmission medium, and the master device exchanges routing information with the neighbor device of the stacking system through the member device based on the primary source address.
[0050] Optionally, each device may be a network device with data processing and forwarding functions. For example, the network device may be a switch, a router, etc., which is not specifically limited in the embodiments of the present application.
[0051] In the prior art, when the data center network is maintained and upgraded, the stacking devices in the stacking system to be maintained and upgraded are split and upgraded one by one through the ISSU technology to achieve the purpose of maintaining and upgrading the network devices. Take the stacking system to be maintained and upgraded as an example, which includes two network devices. When the stacking system to be maintained and upgraded communicates with the neighboring device through the primary source address, after the stacking system to be maintained and upgraded is split into two network devices, the two independent network devices both communicate with the neighboring device through the primary source address. When the first independent network device communicates with the neighboring device through the primary source address, the other independent network device also communicates with the neighboring device through the primary source address, which will cause the communication between the first independent network device and the neighboring device to be disconnected, resulting in network interruption.
[0052] If another independent network device uses a new address to establish a neighbor, the existing solution is for technicians to manually configure relevant information in all neighboring devices of the network device, resulting in high labor costs, heavy workload, and long maintenance and upgrade time for the data center network. The longer the time, the higher the risk of network interruption.
[0053] Therefore, in order to solve the technical problems of network interruption occurring when implementing ISSU in the prior art, or high risk of network interruption and high labor cost, the solution of the present application provides a software upgrade method, which ensures that each network device in the stacking system to be maintained and upgraded can achieve successful ISSU upgrade, and concentrates the modified configuration information on the maintenance device (network device in the stacking system), which can shorten the network interruption time and reduce the impact on user services.
[0054] The following is an explanation of a software upgrade method provided in an embodiment of the present application through a specific example. Figure 2 A flowchart of a software upgrade method provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the method is applied to a stacking system based on a preset primary source address, the stacking system comprising: a master device and a member device, the stacking system interacts with a neighbor device of the stacking system through the primary source address for routing information, the method comprising:
[0055] S201 , during a software upgrade of a stacking system, a member device is split into a new stacking system based on a preset backup source address, and serves as a new master device in the new stacking system.
[0056] The backup source address is different from the primary source address.
[0057] An ISSU operation is performed on the member devices in the stacking system to be maintained and upgraded, and the stacking system is split into a new stacking system based on a preset backup source address. In the new stacking system, the member devices in the stacking system to be maintained and upgraded are new master devices in the new stacking system.
[0058] In order to ensure that the IBGP neighbors originally established in the neighboring devices, i.e., the master device in the stacking system, are not replaced during the upgrade process of the member devices in the stacking system to be maintained and upgraded, the backup source addresses for establishing IBGP neighbors corresponding to the member devices in the stacking system to be maintained and upgraded are different from the primary source addresses for establishing IBGP neighbors before the stacking system is upgraded, so that the network of the stacking system will not be interrupted during the upgrade.
[0059] Optionally, the backup source address may be configured into the stacking system by a technician, or may be configured in other ways, which are not specifically limited in the embodiments of the present application.
[0060] S202, the new master device establishes a communication connection with the neighbor device according to the backup source address, and notifies the neighbor device of routing information based on the backup source address, so that the neighbor device performs message communication based on the routing information of the backup source address.
[0061] Because ISSU is an in-service software upgrade, it is necessary to ensure that the stack system can still communicate with neighboring devices during the upgrade process.
[0062] The stack system to be maintained and upgraded communicates with neighboring devices through the master device. At this time, the stack system establishes IBGP neighbors through the primary source address. When the master device of the stack system is upgraded, the master device cannot communicate with neighboring devices through messages. Therefore, before the master device is upgraded, the member devices in the stack system to be maintained and upgraded can communicate with neighboring devices through the routing information of the backup source address after the upgrade is completed.
[0063] Therefore, the member device in the stacking system to be maintained and upgraded becomes the new master device after the upgrade is completed, and the new master device can establish a communication connection with the neighboring device of the stacking system to be maintained and upgraded according to the backup source address. Specifically, the BGP (Border Gateway Protocol) process of the new stacking system establishes an IBGP neighbor with the neighboring device through the backup source address.
[0064] The new master device of the new stacking system establishes a communication connection with the neighbor device according to the backup source address, and notifies the neighbor device of routing information based on the backup source address and other routing information, so that the neighbor device can communicate messages based on the routing information of the backup source address after the upgrade is completed.
[0065] S203: The master device performs software upgrade and joins the new stacking system based on the backup source address as a new member device in the new stacking system.
[0066] After the new master device in the new stacking system exchanges routing information with the neighboring device based on the backup source address, the master device in the stacking system is upgraded to ISSU, and after restarting, it is added to the new stacking system based on the backup source address. At this time, the new stacking system exchanges routing information with the neighboring device based on the backup source address. The member devices in the stacking system are the new master devices in the new stacking system, and the master device in the stacking system is the new member device in the new stacking system.
[0067] After the new master device and the new member device complete the synchronization of related information, the new member device can process and forward data normally.
[0068] In the embodiment of the present application, when the master device in the stacking system is performing a software upgrade, the new stacking system exchanges routing information with the neighboring device using the backup source address, without causing service interruption.
[0069] S204, after the new master device joins successfully, the new master device establishes a communication connection with the neighbor device according to the primary source address, and notifies the neighbor device of the routing information based on the primary source address, so that the neighbor device can perform message communication based on the routing information of the primary source address after the stack system upgrade is completed.
[0070] After the new member devices in the new stack system can process and forward data normally, you can end the ISSU upgrade.
[0071] After the new master device is successfully added, the new stack system exchanges routing information with the neighbor device using the backup source address, and the stack system exchanges routing information with the neighbor device using the primary source address. Therefore, after the stack system upgrade is completed, the address for communication with the neighbor device needs to be converted to the primary source address.
[0072] Therefore, after the new master device joins successfully, the BGP process of the new stack system uses the primary source address to establish a communication connection with the neighbor device, and notifies the neighbor device of the routing information based on the primary source address, so that the neighbor device can communicate messages based on the routing information of the primary source address after the stack system upgrade is completed.
[0073] A software upgrade method provided by the present application solves the problem of network interruption caused by upgrading network equipment in a stacking system by backing up the source address. At the same time, related operations such as upgrading and configuration are only performed in the stacking system to be maintained. Compared with manually configuring relevant information in the stacking system and a large number of neighboring devices, labor costs and upgrade time are reduced, thereby reducing the risk of network interruption caused by operations in a large number of network devices.
[0074] In the above Figure 2 Based on the software upgrade method shown, the embodiment of the present application also provides another implementation method of the software upgrade method. Optionally, Figure 3 A flowchart of another software upgrade method provided in an embodiment of the present application is shown as follows: Figure 3 As shown, before the above method S101, that is, before the member device is split into a new stacking system based on the preset backup source address during the software upgrade of the stacking system, it also includes:
[0075] S301, the master device generates a backup neighbor source address route according to a primary source address and a preset backup source address.
[0076] In the BGP process of the stack system, a preset backup source address is configured for the primary source address. The backup source address is different from the primary source address. For example, the primary source address may be 1.0.0.1, and the backup source address may be 1.0.0.2.
[0077] The backup neighbor source address route includes a primary source address and a backup source address.
[0078] S302: The master device notifies the backup neighbor source address route to the neighbor device, so that the neighbor device creates neighbor configuration information of the backup source address according to the backup neighbor source address route.
[0079] After the master device notifies the neighbor device of the backup neighbor source address route, the neighbor device searches the neighbor configuration information according to the primary source address in the backup neighbor source address route to obtain the neighbor configuration information of the primary source address. Because the stack system exchanges routing information with the neighbor device through the primary source address before maintenance and upgrade, the neighbor configuration information of the neighbor device will contain the neighbor configuration information of the primary source address.
[0080] The neighbor device creates a new neighbor configuration information corresponding to a backup source address based on the neighbor configuration information of the primary source address. The neighbor configuration information corresponding to the backup source address is used to enable the neighbor device to communicate and exchange routing information with the new primary device in the new stacking system based on the backup source address.
[0081] In the above method S202, the new master device establishes a communication connection with the neighbor device according to the backup source address, including:
[0082] The new master device establishes a communication connection with the neighbor device based on the backup source address and the neighbor configuration information of the backup source address.
[0083] Among them, the new stacking system or the new master device can successfully establish a connection based on the backup source address and the neighbor device can successfully establish a connection based on the neighbor configuration information of the backup source address. If the neighbor configuration information of the backup source address does not exist in the neighbor device, the new stacking system or the new master device cannot successfully establish a communication connection with the neighbor device.
[0084] The present application provides a software upgrade method, in which a master device generates a backup neighbor source address route according to a primary source address and a preset backup source address, the master device notifies a neighbor device of the backup neighbor source address route, and the neighbor device creates neighbor configuration information of the backup source address according to the backup neighbor source address route, so that a new master device and a neighbor device establish a communication connection based on the backup source address and the neighbor configuration information of the backup source address, thereby enabling a new stacking system to exchange routing information with neighbor devices using the backup source address without causing business interruption.
[0085] In the above Figure 3 Based on the software upgrade method shown, the embodiment of the present application also provides another implementation method of the software upgrade method. Optionally, in the above method S301, the master device generates a backup neighbor source address route according to the primary source address and the preset backup source address, including:
[0086] The master device generates a backup neighbor source address route with a prefix of the backup source address and a private attribute of the primary source address according to the primary source address and the preset backup source address.
[0087] The prefix is used to enable the neighbor device to determine that this is a special route after receiving the backup neighbor source address route.
[0088] After the neighbor device determines that the backup neighbor source address route is a special route, it can associate the primary source address and the backup source address in the backup neighbor original address route to determine that the neighbor configuration information of the primary source address and the backup source address are the same, and then create the neighbor configuration information of the backup source address according to the neighbor configuration information of the primary source address.
[0089] The backup neighbor source address route is set to be opaque and not transmitted, so that the backup neighbor source address route is discarded when the neighbor device does not recognize the backup neighbor source address route.
[0090] When the neighbor device does not recognize the private attribute of the backup neighbor source address route, it discards the backup neighbor source address route to prevent other abnormal situations.
[0091] After the neighbor device identifies the private attribute of the backup neighbor source address route, it searches for neighbor configuration information corresponding to the primary source address according to the primary source address in the backup neighbor source address route.
[0092] Furthermore, when a neighbor device identifies a backup neighbor source address route, it advertises the route to its route reflector clients and non-clients only when it acts as a route reflector.
[0093] The present application provides a software upgrade method, in which a master device generates a backup neighbor source address route with a prefix of a backup source address and a private attribute of the main source address according to a main source address and a preset backup source address, so that after a neighbor device determines that the backup neighbor source address route is a special route, the main source address and the backup source address can be associated, wherein the backup neighbor source address route is set to be opaque and not transmitted, so that when the neighbor device does not recognize the backup neighbor source address route, the backup neighbor source address route is discarded, thereby reducing the occurrence of abnormal situations. At the same time, when the neighbor device recognizes the backup neighbor source address route, it only notifies the route to its route reflector client and non-client when it acts as a route reflector.
[0094] In the above Figure 2 Based on the software upgrade method shown, the embodiment of the present application also provides another implementation method of the software upgrade method. Optionally, Figure 4 A flowchart of another software upgrade method provided in an embodiment of the present application is shown as follows: Figure 4As shown, before the above method S202, that is, before the new master device establishes a communication connection with the neighbor device according to the backup source address, it also includes:
[0095] S401, the new master device determines whether it has a software upgrade mark.
[0096] After the software upgrade process is completed, the member device of the stacking system will record the ISSU mark, that is, the software upgrade mark, on the device. After the software upgrade mark is recorded, the member device will be restarted and split into a new stacking system based on the preset backup source address. The member device serves as the new master device in the new stacking system.
[0097] Therefore, before the new master device establishes a communication connection with the neighbor device according to the backup source address, it is necessary to determine whether the device has been upgraded, that is, whether it has a software upgrade mark.
[0098] S402: If the new master device has a software upgrade mark, determine whether it has configuration information of a backup source address.
[0099] If the new master device has a software upgrade mark, it means that the device upgrade is complete. Continue to determine whether the new master device has the configuration information of the backup source address. Only when the new master device has the configuration information of the backup source address can it establish a communication connection with the neighbor device.
[0100] In the above method S202, the new master device establishes a communication connection with the neighbor device according to the backup source address, including:
[0101] S403: If the new master device has configuration information of the backup source address, a communication connection is established with the neighbor device.
[0102] The new master device can establish a communication connection with a neighbor device having the neighbor configuration information of the backup source address only after notifying the configuration information of the backup source address according to the backup source address and the configuration information of the backup source address.
[0103] The present application provides a software upgrade method, in which a new master device determines whether it has a software upgrade mark. If the new master device has the software upgrade mark, it determines whether it has configuration information of a backup source address. If the new master device has the configuration information of the backup source address, a communication connection is established with a neighboring device, so that after the member devices of the stacking system are upgraded, they are split into a new stacking system and communicate with the neighboring devices based on the backup source address, thereby ensuring that the service is not interrupted during the software upgrade of the stacking system.
[0104] In the above Figure 2 Based on the software upgrade method shown, the embodiment of the present application also provides another implementation method of the software upgrade method. Optionally, before the above method S202, that is, before the new master device notifies the neighbor device of the routing information based on the backup source address, it also includes:
[0105] Set the next hop of the route to the backup source address.
[0106] After the next hop of the route is set to the backup source address, the neighbor device can be guaranteed to continuously communicate with the new master device based on the backup source address.
[0107] If the next hop of the route is not set to the backup source address, the neighbor device will forward the communication message to the master device of the stack system corresponding to the primary source address.
[0108] The present application provides a software upgrade method, which sets the next hop of the route to the backup source address before notifying the neighbor device of the routing information based on the backup source address, so that the neighbor device can continuously communicate messages with the new main device based on the backup source address.
[0109] In the above Figure 2 Based on the software upgrade method shown, the embodiment of the present application also provides another implementation method of the software upgrade method. Optionally, before the above method S204, that is, before notifying the neighbor device of the routing information based on the primary source address, it also includes:
[0110] Set the next hop of the route to the primary source address.
[0111] After setting the next hop of the route to the primary source address, you can ensure that neighboring devices communicate with each other based on the primary source address.
[0112] If the next hop of the route is not set as the primary source address, the neighboring device will forward the communication message based on the backup source address.
[0113] The present application provides a software upgrade method, which sets the next hop of the route to be the primary source address before notifying the neighbor device of the routing information based on the primary source address, so that the neighbor device performs message communication based on the primary source address, thereby making the stacking system before and after the upgrade communicate based on the same address, which is the primary source address.
[0114] In the above Figure 2 Based on the software upgrade method shown, the embodiment of the present application also provides another implementation method of the software upgrade method. Optionally, Figure 5 A flowchart of another software upgrade method provided in an embodiment of the present application is shown as follows: Figure 5 As shown, after the above method S204, that is, after the new master device establishes a communication connection with the neighbor device according to the primary source address and notifies the neighbor device of the routing information based on the primary source address, it also includes:
[0115] S501, the new master device deletes the backup source address and configuration information of the backup source address.
[0116] After the stack system upgrade is completed, the backup source address and the corresponding related information are no longer needed. Therefore, the related information of the backup source address needs to be deleted.
[0117] In the new stack system, the new master device deletes the backup source address and the configuration information of the backup source address, and after the deletion, the routing information can be revoked.
[0118] After deleting the information and revoking the routes, there is no information about the backup source address in the new stack system, so that the stack systems before and after the upgrade are the same.
[0119] S502: The new master device sends a revocation notification to the neighbor device to instruct the neighbor device to delete the neighbor configuration information of the backup source address and the corresponding neighbor.
[0120] After the new master device sends a cancellation notification to the neighbor device about the routing information of the backup source address, the neighbor device deletes the backup source address, the neighbor configuration information of the backup source address, and the corresponding neighbor.
[0121] After the information is deleted, no information of the backup source address exists in the neighbor device, so that the neighbor devices before and after the stack system upgrade are the same.
[0122] The present application provides a software upgrade method, in which a new master device deletes a backup source address and configuration information of the backup source address, and the new master device sends a revocation notification to a neighbor device to instruct the neighbor device to delete the neighbor configuration information of the backup source address and the corresponding neighbor, so that the stacking system and neighbor devices before and after the upgrade are the same, and there is no relevant information of the backup source address, thereby ensuring consistency before and after the upgrade.
[0123] The following describes a stacking system, device, and storage medium provided by the present application for execution. The specific implementation process and technical effects thereof are as described above and will not be described in detail below.
[0124] In the above Figure 1-Figure 5 Based on the above-described embodiment, an embodiment of the present application provides a stacking system, which includes: a member device and a master device.
[0125] The member devices are connected to the master device. Specifically, the member devices and the master device are connected via a stacking link.
[0126] The member device is used to execute the software upgrade method executed by the member device in the above embodiment, and the master device is used to execute the software upgrade method executed by the master device in the above embodiment.
[0127] Figure 6 A schematic diagram of a computer device provided in an embodiment of the present application, which may be a computing device with computing processing capabilities.
[0128] In the present application, the computer device is each network device in the data network center, that is, the computer device is each device (main device, member device) in the stacking system. Therefore, the computer device can be a network device such as a router or a switch with data processing and forwarding functions.
[0129] The computer device includes: a processor 601 , a storage medium 602 , and a bus 603 . The processor 601 and the storage medium 602 are connected via the bus 603 .
[0130] The storage medium 602 is used to store programs, and the processor 601 calls the programs stored in the storage medium 602 to execute the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.
[0131] Optionally, in the embodiment of the present application, multiple devices in the stacking system may also share one storage medium 602 .
[0132] Optionally, the present invention also provides a program product, such as a computer-readable storage medium, comprising a program, which is used to execute the above method embodiment when executed by a processor.
[0133] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0134] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0135] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0136] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.
[0137] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A software upgrade method, characterized in that: Applied to a stacking system based on a preset primary source address, the stacking system includes: a master device and a member device, the stacking system interacts with a neighbor device for routing information via the primary source address; the method includes: During the software upgrade process of the stacking system, the member device is split into a new stacking system based on a preset backup source address and serves as a new master device in the new stacking system; the backup source address is an address different from the main source address; The new master device establishes a communication connection with the neighbor device according to the backup source address, and notifies the neighbor device of routing information based on the backup source address, so that the neighbor device performs message communication based on the routing information of the backup source address; The master device performs software upgrade and joins the new stacking system based on the backup source address as a new member device in the new stacking system; After the new member device joins successfully, the new master device establishes a communication connection with the neighbor device according to the primary source address, and notifies the neighbor device of routing information based on the primary source address, so that the neighbor device performs message communication based on the routing information of the primary source address after the stack system upgrade is completed; Before the member device is split into a new stacking system based on a preset backup source address during the software upgrade of the stacking system, the method further includes: The master device generates a backup neighbor source address route according to the primary source address and a preset backup source address; The master device notifies the neighbor device of the backup neighbor source address route, so that the neighbor device creates neighbor configuration information of the backup source address according to the backup neighbor source address route.
2. The software upgrade method according to claim 1, characterized in that: The new master device establishes a communication connection with the neighbor device according to the backup source address, including: The new master device establishes a communication connection with the neighbor device based on the backup source address and the neighbor configuration information of the backup source address.
3. The software upgrade method according to claim 1, characterized in that: The master device generates a backup neighbor source address route according to the primary source address and a preset backup source address, including: The master device generates the backup neighbor source address route with a prefix of the backup source address and a private attribute of the primary source address according to the primary source address and a preset backup source address.
4. The software upgrade method according to claim 1, characterized in that: The backup neighbor source address route is set to be opaque and not transmitted, so that the neighbor device discards the backup neighbor source address route when it does not recognize the backup neighbor source address route; when the neighbor device recognizes the backup neighbor source address route, it only announces the route to its route reflector client and non-client when it acts as a route reflector.
5. The software upgrade method according to claim 1, characterized in that: Before the new master device establishes a communication connection with the neighbor device according to the backup source address, the method further includes: The new master device determines whether it has a software upgrade mark; If the new master device has a software upgrade mark, determining whether it has the configuration information of the backup source address; The new master device establishes a communication connection with the neighbor device according to the backup source address, including: If the new master device has the configuration information of the backup source address, a communication connection is established with the neighbor device.
6. The software upgrade method according to claim 1, characterized in that: Before the new master device notifies the neighbor device of the routing information based on the backup source address, the method further includes: Set the next hop of the route to the backup source address.
7. The software upgrade method according to claim 1, characterized in that: Before notifying the neighbor device of the routing information based on the primary source address, the method further includes: Set the next hop of the route to the primary source address.
8. The software upgrade method according to claim 1, characterized in that: After the new master device establishes a communication connection with the neighbor device according to the primary source address and notifies the neighbor device of routing information based on the primary source address, the method further includes: The new master device deletes the backup source address and the configuration information of the backup source address; The new master device sends a revocation notification to the neighbor device to instruct the neighbor device to delete the neighbor configuration information of the backup source address and the corresponding neighbor.
9. A stacking system, characterized in that: The stacking system comprises: a member device and a master device, wherein the member device is connected to the master device; The member device is used to execute the software upgrade method executed by the member device according to any one of claims 1 to 8 above; The master device is used to execute the software upgrade method executed by the master device in any one of claims 1-8.
10. A computer device, characterized in that: include: A storage medium and a processor, wherein the storage medium stores a computer program executable by the processor, and when the processor executes the computer program, the software upgrade method described in any one of claims 1 to 8 is implemented.
