Switch restart methods, computer program products and electronic devices

By delaying the UP state of the uplink port of the control core switch in the data center network, the cloud routing protocol is prioritized for convergence, which solves the problem of service interruption after the data center border switch restarts and achieves highly reliable and efficient service transmission.

CN119496695BActive Publication Date: 2025-10-28中国邮政储蓄银行股份有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411675270.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-21
Publication Date
2025-10-28
Estimated Expiration
2044-11-21

AI Technical Summary

Technical Problem

After a fault is recovered or the entire machine is restarted, the data center border switch may experience service interruption because the convergence of the overlay routing protocol within the cloud is slower than that of the routing protocol outside the cloud.

Method used

After the core switch restarts, the uplink port enters the first UP state after a preset delay, so that the second routing protocol running on the downlink port converges before the first routing protocol running on the uplink port, ensuring that the routing protocol within the cloud converges first.

Benefits of technology

It effectively avoids business interruptions, ensures the reliability of business transmission and network stability, and improves the efficiency and reliability of the data center network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119496695B_ABST
    Figure CN119496695B_ABST
Patent Text Reader

Abstract

This application provides a method for restarting a switch, a computer program product, and an electronic device. A first data center network includes a core layer and an aggregation layer. The switch in the core layer is a core switch, which has uplink ports and downlink ports. The uplink ports connect to a second data center network, and the downlink ports connect to the aggregation layer. The routing protocol of the uplink ports is a first routing protocol, and the routing protocol of the downlink ports is a second routing protocol. The method includes: controlling the core switch to restart; and when the delay reaches a preset duration, controlling the uplink ports to enter a first UP state, so that the first routing protocol converges, and the convergence of the second routing protocol completes before the convergence of the first routing protocol. This application solves the problem in the prior art where, after a fault recovery or restart, a data center border switch experiences service interruption due to the slower convergence of the cloud-internal overlay routing protocol compared to the external cloud routing protocol.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data center network operation and maintenance technology, and more specifically, to a method for restarting a switch, a computer-readable storage medium, a computer program product, and an electronic device. Background Technology

[0002] Currently, the data center cloud platform network uses a three-layer Border-Spine-Leaf architecture. The border switches connect to the data center core using a dynamic routing protocol based on ECMP (Equal-Cost Multi-Path) load balancing. The cloud underlay primarily uses OSPF (Open Shortest Path First) dynamic routing protocol, and the overlay uses BGP EVPN routing protocol. When a border switch recovers from a system failure or reboot, the switch interfaces recover first. The routing protocols connecting the border switch to the core switch and the cloud underlay routing protocols converge first. When external access to cloud services occurs, the external core sends packets to the rebooted border switch via ECMP. At this point, the cloud overlay routing protocol, which relies on the underlay routing, has not yet converged, and the VXLAN (Virtual eXtensible Local Area Network) tunnel has not been successfully established. Therefore, the border switch cannot process the packets, resulting in service interruption. Summary of the Invention

[0003] The main objective of this application is to provide a method for restarting a switch, a computer-readable storage medium, a computer program product, and an electronic device, so as to at least solve the problem in the prior art where data center border switches experience service interruptions after fault recovery or system restart due to the slower convergence of the cloud overlay routing protocol compared to the external cloud routing protocol.

[0004] To achieve the above objectives, according to one aspect of this application, a method for restarting a switch is provided. A first data center network includes a core layer and an aggregation layer. The switch in the core layer is a core switch, which has an uplink port and a downlink port. The uplink port is connected to a second data center network, and the downlink port is connected to the aggregation layer. The routing protocol running on the uplink port is a first routing protocol, and the routing protocol running on the downlink port is a second routing protocol. The method includes: controlling the core switch to restart, so that the software in the core switch is reloaded; and when a delay duration reaches a preset duration, controlling the uplink port to enter a first UP state, so that the first routing protocol begins to converge, and the convergence of the second routing protocol completes before the convergence of the first routing protocol. The first UP state indicates that the uplink port has been enabled and is capable of transmitting data, and the delay duration indicates the time between the time the software reload is completed and the time the uplink port enters the first UP state.

[0005] Optionally, after controlling the core switch to restart and before controlling the uplink port to enter the UP state, the method further includes: when the software reload is completed, controlling the downlink port to directly enter the second UP state so that the second routing protocol can begin to converge, wherein the second UP state indicates that the downlink port has been enabled and is capable of transmitting data.

[0006] Optionally, the first routing protocol includes a first Underlay routing protocol, and the second routing protocol includes a second Underlay routing protocol and an Overlay routing protocol. Controlling the downlink port to directly enter the second UP state so that the second routing protocol begins to converge includes: controlling the downlink port to directly enter the second UP state so that the second Underlay routing protocol and the Overlay routing protocol begin to converge. Controlling the uplink port to enter the first UP state so that the first routing protocol begins to converge includes: controlling the uplink port to enter the first UP state so that the first Underlay routing protocol begins to converge.

[0007] Optionally, controlling the downlink port to directly enter the second UP state so that the second Underlay routing protocol and the Overlay routing protocol begin to converge includes: controlling the downlink port to directly enter the second UP state so that the second Underlay routing protocol begins to converge, and the Overlay routing protocol begins to converge when the second Underlay routing protocol has completed convergence.

[0008] Optionally, controlling the uplink port to enter the first UP state so that the first routing protocol begins to converge, and the convergence of the second routing protocol is completed before the convergence of the first routing protocol, includes: controlling the uplink port to enter the first UP state so that the first Underlay routing protocol begins to converge, and the convergence of the Overlay routing protocol is completed before the convergence of the first Underlay routing protocol.

[0009] Optionally, the first data center network further includes an access layer, a first port of the access layer is connected to the core switch through the aggregation layer, and a second port of the access layer is connected to a terminal device. The method further includes: receiving target data sent by the second data center network when both the first routing protocol and the second routing protocol have converged, and transmitting the target data to the access layer through the aggregation layer.

[0010] Optionally, the core layer is a Border layer, the aggregation layer is a Spine layer, and the access layer is a Leaf layer. Transmitting the target data to the access layer through the aggregation layer includes: transmitting the target data to the Leaf layer through the Spine layer.

[0011] According to another aspect of this application, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device where the computer-readable storage medium is located to perform any of the aforementioned switch restart methods.

[0012] According to another aspect of this application, a computer program product is provided, including computer instructions that, when executed by a processor, implement any of the aforementioned switch restart methods.

[0013] According to another aspect of this application, an electronic device is provided, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including methods for performing any of the aforementioned switch restart methods.

[0014] The technical solution of this application first controls the core switch to restart, so that the software in the core switch is reloaded. After a preset delay, the uplink port of the core switch is controlled to enter the first UP state, so that the first routing protocol begins to converge, and the second routing protocol converges before the first routing protocol. The first routing protocol is the routing protocol running on the uplink port, and the second routing protocol is the routing protocol running on the downlink port of the core switch. Compared with the problem in the prior art where data center border switches experience service interruptions after fault recovery or restart due to the slower convergence of the cloud overlay routing protocol compared to the external routing protocol, this application does not immediately control the uplink port to open after the software reload in the core switch. Instead, it delays for a preset time before controlling the uplink port to enter the first UP state. This allows the second routing protocol (i.e., the routing protocol running on the downlink port) to converge before the first routing protocol (i.e., the routing protocol running on the uplink port), ensuring that the cloud routing protocol converges faster than the external routing protocol, effectively avoiding service interruptions and ensuring high reliability of service transmission. Attached Figure Description

[0015] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:

[0016] Figure 1 A hardware structure block diagram of a mobile terminal performing a switch restart method according to an embodiment of this application is shown;

[0017] Figure 2 A flowchart illustrating a switch restart method according to an embodiment of this application is shown.

[0018] Figure 3 A schematic diagram of a transmission architecture between a first data center network and a second data center network according to an embodiment of this application is shown.

[0019] Figure 4 A flowchart illustrating a specific method for restarting a switch according to an embodiment of this application is shown.

[0020] The above figures include the following reference numerals:

[0021] 102. Processor; 104. Memory; 106. Transmission device; 108. Input / output device. Detailed Implementation

[0022] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.

[0023] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0024] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0025] As described in the background section, in the prior art, after a fault is recovered or the entire machine is restarted, the data center border switch experiences service interruption because the convergence of the overlay routing protocol within the cloud is slower than that of the routing protocol outside the cloud. To solve the above problem, embodiments of this application provide a method for restarting a switch, a computer-readable storage medium, a computer program product, and an electronic device.

[0026] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

[0027] The methods and embodiments provided in this application can be executed on a mobile terminal, computer terminal, or similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal for a switch restart method according to an embodiment of the present invention. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0028] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the switch restart method in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory and non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. The transmission device 106 is used to receive or send data via a network. Specific examples of the aforementioned networks may include wireless networks provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0029] This embodiment provides a method for restarting a switch running on a mobile terminal, computer terminal, or similar computing device. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0030] Figure 2This is a flowchart of a switch restart method according to an embodiment of this application. A first data center network includes a core layer and an aggregation layer. The switch in the core layer is a core switch, which has uplink ports and downlink ports. The uplink ports are connected to a second data center network, and the downlink ports are connected to the aggregation layer. The routing protocol running on the uplink ports is a first routing protocol, and the routing protocol running on the downlink ports is a second routing protocol. Figure 2 As shown, the method includes the following steps:

[0031] Step S201: Control the entire core switch to restart so that the software in the core switch can be reloaded.

[0032] Step S202: When the delay time reaches the preset time, control the uplink port to enter the first UP state, so that the first routing protocol starts to converge, and the convergence of the second routing protocol is completed before the convergence of the first routing protocol. The first UP state indicates that the uplink port has been enabled and can transmit data, and the delay time indicates the time between the time when the software is reloaded and the time when the uplink port enters the first UP state.

[0033] In the above embodiments, the core switch is first restarted to reload its software. After a preset delay, the uplink port of the core switch enters the first UP state, allowing the first routing protocol to converge. The second routing protocol converges before the first, where the first routing protocol runs on the uplink port and the second on the downlink port. Compared to existing technologies where data center border switches experience service interruptions after fault recovery or restart due to slower convergence of the cloud overlay routing protocol compared to the external routing protocol, this application does not immediately open the uplink port upon software reloading. Instead, it delays for a preset time before entering the first UP state, allowing the second routing protocol (running on the downlink port) to converge before the first, ensuring the cloud routing protocol converges faster than the external routing protocol. This effectively avoids service interruptions and ensures high reliability of service transmission.

[0034] In practical applications, those skilled in the art can set the above-mentioned preset duration based on experience, or it can be obtained through multiple experiments; this application does not impose specific limitations in this regard. In the embodiments of this application, the above-mentioned preset duration is 50 seconds.

[0035] It should be noted that the existing technology uses a monitor-link solution. Monitor-link technology monitors the links where uplink ports reside. When all uplink ports fail, all downlink ports within the group will be forced into a down state. This scenario is generally used on access Leaf switches. The related configuration is relatively complex and consumes certain device performance resources. In summary, the monitor-link solution has a limit on the number of uplink ports; it cannot be used if there are too many uplink ports. The monitor-link configuration commands are relatively complex, involving uplink and downlink port linkage, requiring corresponding associations between the uplink and downlink ports. Enabling monitor-link consumes certain device performance resources. The application scenario of monitor-link is relatively limited, mainly used in Leaf access switches.

[0036] Specifically, the port delay technology involves the control plane receiving a link-up status change message from the lower layer, updating the link status, but not immediately processing subsequent logic, such as printing the link change syslog or changing the protocol status. Instead, a timer is started, with the time set according to the port delay configuration. After the timer expires, the port's protocol status is also set to UP, and then the establishment and convergence of the upper-layer routing protocol (i.e., the first routing protocol) are performed.

[0037] In one alternative approach, after restarting the core switch and before the uplink port enters the UP state, the method further includes: upon completion of the software reloading, controlling the downlink port to directly enter the second UP state, so that the second routing protocol begins convergence. The second UP state indicates that the downlink port is enabled and capable of data transmission. In this embodiment, by immediately controlling the downlink port to enter the second UP state after the core switch software reloading, the convergence process of the second routing protocol can be accelerated, thereby restoring communication with the aggregation layer more quickly. This further improves the efficiency of the entire data center network, reduces network congestion and latency caused by routing protocol convergence delays, and further enhances network stability and reliability.

[0038] According to some exemplary embodiments of this application, the first routing protocol includes a first Underlay routing protocol, and the second routing protocol includes a second Underlay routing protocol and an Overlay routing protocol. Controlling the downlink port to directly enter the second UP state to enable the second routing protocol to begin convergence includes: controlling the downlink port to directly enter the second UP state to enable the second Underlay routing protocol and the Overlay routing protocol to begin convergence. Controlling the uplink port to enter the first UP state to enable the first routing protocol to begin convergence includes: controlling the uplink port to enter the first UP state to enable the first Underlay routing protocol to begin convergence. In this embodiment, by controlling the uplink port to enter the first UP state later, the first routing protocol (including the first Underlay routing protocol) begins to converge. This phased control ensures that the convergence of the cloud-internal routing protocols (Overlay and Second Underlay) takes precedence over the external cloud routing protocol (First Underlay), thereby further avoiding network communication problems caused by the external cloud routing protocol converging first while the cloud-internal routing protocol is not yet ready.

[0039] It should be noted that Underlay routing usually refers to routing in the physical network, that is, the actual network infrastructure layer; Overlay routing usually refers to a virtual network layer created on top of the existing network (Underlay).

[0040] In other embodiments, controlling the downlink port to directly enter the second UP state so that the second Underlay routing protocol and the overlay routing protocol begin convergence includes: controlling the downlink port to directly enter the second UP state so that the second Underlay routing protocol begins convergence, and the overlay routing protocol begins convergence when the second Underlay routing protocol has completed convergence. In this embodiment, by initiating the convergence of the second Underlay routing protocol first, and then starting the convergence of the overlay routing protocol after its completion, the convergence order of the two routing protocols is controlled. This order control helps to further ensure the compatibility and stability between network layers.

[0041] According to some other exemplary embodiments of this application, controlling the uplink port to enter the first UP state, so that the first routing protocol begins to converge, and ensuring that the convergence of the second routing protocol completes before the convergence of the first routing protocol, includes: controlling the uplink port to enter the first UP state, so that the first Underlay routing protocol begins to converge, and ensuring that the convergence of the Overlay routing protocol completes before the convergence of the first Underlay routing protocol. In this embodiment, by controlling the uplink port to enter the first UP state, the first Underlay routing protocol (i.e., the physical layer routing protocol) begins to converge, while ensuring that the convergence of the Overlay routing protocol (i.e., the virtualization layer routing protocol) completes before the convergence of the first Underlay routing protocol, the convergence order of the network can be further optimized, allowing the network to recover to a normal working state more quickly.

[0042] In some alternative embodiments of this application, the first data center network further includes an access layer. A first port of the access layer is connected to the core switch via the aggregation layer, and a second port of the access layer is connected to a terminal device. The method further includes: receiving target data sent by the second data center network after both the first and second routing protocols have converged, and transmitting the target data to the access layer via the aggregation layer. In this embodiment, by ensuring that the first and second routing protocols have converged before processing the target data from the second data center network, data transmission problems caused by incomplete convergence of routing protocols can be further reduced, thereby further improving service continuity and stability.

[0043] Specifically, terminal devices include, but are not limited to, servers.

[0044] In some alternative embodiments of this application, the core layer is a Border layer, the aggregation layer is a Spine layer, and the access layer is a Leaf layer. Transmitting the target data from the aggregation layer to the access layer includes transmitting the target data from the Spine layer to the Leaf layer. In this embodiment, the hierarchical design of the Border, Spine, and Leaf layers achieves hierarchical management of the data center network. Transmitting target data from the second data center network to the access layer (Leaf layer) via the aggregation layer (Spine layer) optimizes data flow, reduces data transmission latency in the network, and further improves data transmission efficiency.

[0045] Specifically, this application configures a 50-second port delay on the uplink port connecting the Border switch (i.e., the switch in the Border layer) to the second data center network. When the Border switch fails and restarts, the uplink port delay increases by 50 seconds, making the cloud overlay routing protocol converge better than the cloud-outside routing protocol, which can effectively avoid the problem of service interruption.

[0046] Specifically, the Border switch within the cloud is pre-configured with a 50-second delay on the uplink port before it goes UP. In the event of a system failure and restart, the Border switch completes normal software loading after restarting. At this point, the downlink port, without configured port delay, directly enters the UP state. The cloud's Underlay routes begin convergence and table addition, followed by Overlay route convergence and table addition after convergence is complete. Simultaneously, the uplink port is configured with a 50-second delay, and a port delay timer is started. After 50 seconds, the uplink port goes UP, and the Border switch and the second data center network perform route convergence and table addition (i.e., convergence is performed by the first routing protocol). By this time, convergence and table addition have been completed both within and outside the cloud. The Border switch then begins receiving traffic distributed by the second data center network and forwarding it, ensuring uninterrupted service. It is precisely the introduction of port delay technology that effectively prevents service interruptions.

[0047] Specifically, in the three-layer architecture of the data center cloud platform network (Border-Spine-Leaf), when a Border switch fails and restarts or a single board fails and resets, the physical state of the downlink port immediately switches to UP. Since the upper-layer protocol module's state does not meet the forwarding requirements, an uplink port delay UP command is executed. Once the protocol module meets the forwarding requirements (i.e., the cloud-internal overlay routing protocol has converged out of the cloud-external routing protocol), the uplink port returns to the physical UP state, ensuring that protocol packets can be processed normally, avoiding service interruption, and improving service reliability. This application has a simple configuration logic, requires no modification to the routing protocol configuration, and has a low risk of configuration modification. In routine equipment switching drills in financial scenarios involving Border switch switching and restarts, it effectively avoids service interruptions. The convergence delay can be determined and set based on the dynamic routing protocol types (i.e., the types of the first and second routing protocols) configured on the Border switch's uplink and downlink ports, achieving device-level flexibility and scalability.

[0048] To enable those skilled in the art to better understand the technical solution of this application, the implementation process of the switch restart method of this application will be described in detail below with reference to specific embodiments.

[0049] Figure 3A schematic diagram of a transmission architecture between a first data center network and a second data center network, according to an embodiment of this application, is shown. Figure 3 As shown, the first data center network is a three-layer architecture of Border-Spine-Leaf. The Border layer (i.e., the cloud-internal Border) is connected to the second data center network (i.e., the cloud-external core) through the uplink port. The downlink port of the Border is connected to one end of the Leaf layer (i.e., the cloud-internal Spine) through the Spine layer (i.e., the cloud-internal Leaf). The other end of the Leaf layer is connected to the terminal device. The port delay (i.e., the set up-delay command) is configured on the uplink port.

[0050] This embodiment relates to a specific method for restarting a switch. The first data center network includes a Border layer, a Spine layer, and a Leaf layer. The switch in the Border layer is a Border switch, which has uplink ports and downlink ports. The uplink ports connect to the second data center network, and the downlink ports connect to the Leaf layer via the Spine layer. The routing protocol running on the uplink ports is a first routing protocol, and the routing protocol running on the downlink ports is a second routing protocol. The first routing protocol includes a first Underlay routing protocol, and the second routing protocol includes a second Underlay routing protocol and an Overlay routing protocol. Figure 4 As shown, it includes the following steps:

[0051] Step S1: Control the entire Border switch to restart, so that the software in the Border switch can be reloaded;

[0052] Step S2: When the software reload is complete, control the downlink port to directly enter the second UP state so that the second Underlay routing protocol can start to converge, and when the second Underlay routing protocol finishes to converge, the Overlay routing protocol can start to converge. The second UP state indicates that the downlink port has been enabled and can transmit data.

[0053] Step S3: Simultaneously, when the delay time reaches the preset time, control the uplink port to enter the first UP state so that the first Underlay routing protocol can start to converge, thereby making the convergence of the Overlay routing protocol complete before the convergence of the first Underlay routing protocol. Here, the first UP state indicates that the uplink port has been enabled and can transmit data, and the delay time indicates the time between the time when the software reload is completed and the time when the uplink port enters the first UP state.

[0054] Step S4: After both the first and second routing protocols have converged, receive the target data sent by the second data center network and transmit the target data to the Leaf layer through the Spine layer.

[0055] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.

[0056] This invention provides a computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device containing the computer-readable storage medium to perform the restart method of the switch.

[0057] Specifically, the first data center network includes a core layer and an aggregation layer. The switches in the core layer are core switches, each with uplink and downlink ports. The uplink ports connect to the second data center network, and the downlink ports connect to the aggregation layer. The uplink ports run a first routing protocol, and the downlink ports run a second routing protocol. The switch restart method includes:

[0058] Step S201: Control the entire core switch to restart so that the software in the core switch can be reloaded.

[0059] Step S202: When the delay time reaches the preset time, control the uplink port to enter the first UP state, so that the first routing protocol starts to converge, and the convergence of the second routing protocol is completed before the convergence of the first routing protocol. The first UP state indicates that the uplink port has been enabled and can transmit data, and the delay time indicates the time between the time when the software is reloaded and the time when the uplink port enters the first UP state.

[0060] Optionally, after controlling the core switch to restart and before controlling the uplink port to enter the UP state, the method further includes: when the software is reloaded, controlling the downlink port to directly enter the second UP state so that the second routing protocol can begin to converge, wherein the second UP state indicates that the downlink port has been enabled and can transmit data.

[0061] Optionally, the first routing protocol includes a first Underlay routing protocol, and the second routing protocol includes a second Underlay routing protocol and an Overlay routing protocol. Controlling the downlink port to directly enter the second UP state so that the second routing protocol can begin to converge includes: controlling the downlink port to directly enter the second UP state so that the second Underlay routing protocol and the Overlay routing protocol can begin to converge. Controlling the uplink port to enter the first UP state so that the first routing protocol can begin to converge includes: controlling the uplink port to enter the first UP state so that the first Underlay routing protocol can begin to converge.

[0062] Optionally, controlling the downlink port to directly enter the second UP state so that the second Underlay routing protocol and the overlay routing protocol begin to converge includes: controlling the downlink port to directly enter the second UP state so that the second Underlay routing protocol begins to converge, and the overlay routing protocol begins to converge when the second Underlay routing protocol has completed convergence.

[0063] Optionally, controlling the uplink port to enter the first UP state so that the first routing protocol begins to converge, and the convergence of the second routing protocol is completed before the convergence of the first routing protocol, includes: controlling the uplink port to enter the first UP state so that the first Underlay routing protocol begins to converge, and the convergence of the Overlay routing protocol is completed before the convergence of the first Underlay routing protocol.

[0064] Optionally, the first data center network further includes an access layer, a first port of the access layer is connected to the core switch through the aggregation layer, and a second port of the access layer is connected to a terminal device. The method further includes: receiving target data sent by the second data center network after both the first routing protocol and the second routing protocol have converged, and transmitting the target data to the access layer through the aggregation layer.

[0065] Optionally, the core layer is the Border layer, the aggregation layer is the Spine layer, and the access layer is the Leaf layer. Transmitting the target data to the access layer through the aggregation layer includes: transmitting the target data to the Leaf layer through the Spine layer.

[0066] This application also provides a computer program product, including computer instructions, which, when executed by a processor, implement at least the following method steps: a first data center network includes a core layer and an aggregation layer, the switch in the core layer is a core switch, the core switch has an uplink port and a downlink port, the uplink port is connected to a second data center network, the downlink port is connected to the aggregation layer, the routing protocol running on the uplink port is a first routing protocol, the routing protocol running on the downlink port is a second routing protocol, step S201, controlling the core switch to restart, so that the software in the core switch is reloaded; step S202, when the delay time reaches a preset time, controlling the uplink port to enter a first UP state, so that the first routing protocol begins to converge, and the convergence completion of the second routing protocol precedes the convergence completion of the first routing protocol, wherein the first UP state indicates that the uplink port has been enabled and can transmit data, and the delay time indicates the time between the time when the software is reloaded and the time when the uplink port enters the first UP state.

[0067] Optionally, after controlling the core switch to restart and before controlling the uplink port to enter the UP state, the method further includes: when the software is reloaded, controlling the downlink port to directly enter the second UP state so that the second routing protocol can begin to converge, wherein the second UP state indicates that the downlink port has been enabled and can transmit data.

[0068] Optionally, the first routing protocol includes a first Underlay routing protocol, and the second routing protocol includes a second Underlay routing protocol and an Overlay routing protocol. Controlling the downlink port to directly enter the second UP state so that the second routing protocol can begin to converge includes: controlling the downlink port to directly enter the second UP state so that the second Underlay routing protocol and the Overlay routing protocol can begin to converge. Controlling the uplink port to enter the first UP state so that the first routing protocol can begin to converge includes: controlling the uplink port to enter the first UP state so that the first Underlay routing protocol can begin to converge.

[0069] Optionally, controlling the downlink port to directly enter the second UP state so that the second Underlay routing protocol and the overlay routing protocol begin to converge includes: controlling the downlink port to directly enter the second UP state so that the second Underlay routing protocol begins to converge, and the overlay routing protocol begins to converge when the second Underlay routing protocol has completed convergence.

[0070] Optionally, controlling the uplink port to enter the first UP state so that the first routing protocol begins to converge, and the convergence of the second routing protocol is completed before the convergence of the first routing protocol, includes: controlling the uplink port to enter the first UP state so that the first Underlay routing protocol begins to converge, and the convergence of the Overlay routing protocol is completed before the convergence of the first Underlay routing protocol.

[0071] Optionally, the first data center network further includes an access layer, a first port of the access layer is connected to the core switch through the aggregation layer, and a second port of the access layer is connected to a terminal device. The method further includes: receiving target data sent by the second data center network after both the first routing protocol and the second routing protocol have converged, and transmitting the target data to the access layer through the aggregation layer.

[0072] Optionally, the core layer is the Border layer, the aggregation layer is the Spine layer, and the access layer is the Leaf layer. Transmitting the target data to the access layer through the aggregation layer includes: transmitting the target data to the Leaf layer through the Spine layer.

[0073] This application also provides an electronic device, including: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include methods for performing any of the above-described switch restart methods.

[0074] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.

[0075] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0076] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0077] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work 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 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

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

[0079] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0080] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0081] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0082] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0083] As can be seen from the above description, the embodiments of this application achieve the following technical effects:

[0084] In the switch restart method of this application, the core switch is first restarted to reload its software. After a preset delay, the uplink port of the core switch is controlled to enter the first UP state, allowing the first routing protocol to begin convergence. The second routing protocol converges before the first, where the first routing protocol runs on the uplink port and the second on the downlink port. Compared to existing technologies where data center border switches experience service interruptions after fault recovery or restart due to slower convergence of the cloud overlay routing protocol compared to the external routing protocol, this application does not immediately open the uplink port upon software reloading in the core switch. Instead, it delays for a preset period before controlling the uplink port to enter the first UP state. This allows the second routing protocol (running on the downlink port) to converge before the first, ensuring that the cloud routing protocol converges faster than the external routing protocol, effectively preventing service interruptions and guaranteeing high reliability of service transmission.

[0085] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method for restarting a switch, characterized in that, The first data center network includes a core layer and an aggregation layer. The switches in the core layer are core switches, each with uplink and downlink ports. The uplink ports connect to the second data center network, and the downlink ports connect to the aggregation layer. The uplink ports run a first routing protocol, and the downlink ports run a second routing protocol. The method includes: Control the entire core switch to restart, so that the software in the core switch can be reloaded; When the delay time reaches the preset time, the uplink port is controlled to enter the first UP state, so that the first routing protocol starts to converge and the convergence of the second routing protocol is completed before the convergence of the first routing protocol. The first UP state indicates that the uplink port has been enabled and can transmit data. The delay time indicates the time between the time when the software reload is completed and the time when the uplink port enters the first UP state.

2. The switch restart method according to claim 1, characterized in that, After controlling the core switch to restart and before controlling the uplink port to enter the UP state, the method further includes: When the software reload is complete, the downlink port is controlled to directly enter the second UP state so that the second routing protocol can begin to converge. The second UP state indicates that the downlink port has been enabled and is capable of transmitting data.

3. The switch restart method according to claim 2, characterized in that, The first routing protocol includes a first Underlay routing protocol, and the second routing protocol includes a second Underlay routing protocol and an Overlay routing protocol. Controlling the downlink port to directly enter the second UP state, so that the second routing protocol begins to converge, includes: controlling the downlink port to directly enter the second UP state, so that the second Underlay routing protocol and the Overlay routing protocol begin to converge. Controlling the uplink port to enter the first UP state so that the first routing protocol begins to converge includes: controlling the uplink port to enter the first UP state so that the first Underlay routing protocol begins to converge.

4. The switch restart method according to claim 3, characterized in that, Controlling the downlink port to directly enter the second UP state, so that the second Underlay routing protocol and the Overlay routing protocol begin to converge, includes: The downlink port is controlled to directly enter the second UP state, so that the second Underlay routing protocol begins to converge, and the Overlay routing protocol begins to converge when the second Underlay routing protocol has completed convergence.

5. The switch restart method according to claim 4, characterized in that, Controlling the uplink port to enter the first UP state, so that the first routing protocol begins to converge, and that the convergence of the second routing protocol completes before the convergence of the first routing protocol, includes: The uplink port is controlled to enter the first UP state, so that the first Underlay routing protocol begins to converge, and the convergence of the Overlay routing protocol is completed before the convergence of the first Underlay routing protocol.

6. The switch restart method according to claim 1, characterized in that, The first data center network further includes an access layer, a first port of which is connected to the core switch via the aggregation layer, and a second port of which is connected to a terminal device. The method further includes: When both the first routing protocol and the second routing protocol have converged, the target data sent by the second data center network is received, and the target data is transmitted to the access layer through the aggregation layer.

7. The switch restart method according to claim 6, characterized in that, The core layer is the Border layer, the aggregation layer is the Spine layer, and the access layer is the Leaf layer. The target data is transmitted from the aggregation layer to the access layer, including: The target data is transmitted to the Leaf layer through the Spine layer.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein, when the program is executed, it controls the device containing the computer-readable storage medium to perform the restart method of the switch according to any one of claims 1 to 7.

9. A computer program product comprising computer instructions, characterized in that, When the computer instructions are executed by the processor, they implement the switch restart method according to any one of claims 1 to 7.

10. An electronic device, characterized in that, include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including a method for performing a restart of a switch according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Fault recovery method, MLAG slave device, computer readable storage medium and network device

    CN118487994A

  • Start-up delay for event-driven virtual link aggregation

    US20140192635A1