Switch restarting method, computer program product and electronic equipment

By delaying the control of the uplink port into the UP state after the data center Border switch is restarted, the second routing protocol converges before the first routing protocol, solving the problem of service interruption after failure recovery and improving the reliability of service transmission.

CN119496695AActive Publication Date: 2025-02-21中国邮政储蓄银行股份有限公司
View PDF 4 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

After the data center Border switch is restored or the whole machine restarts, the service interruption is caused by the slow convergence of the overlay routing protocol in the cloud than the off-cloud routing protocol.

Method used

By controlling the entire reboot of the core switch and delaying the preset time after the software reload is completed, the uplink port is controlled to enter the first UP state, so that the second routing protocol converges before the first routing protocol.

Benefits of technology

It effectively avoids business interruptions, ensures the reliability of service transmission, and ensures that the in-cloud routing protocol is better than the out-of-cloud routing protocol to complete convergence.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119496695A_ABST
    Figure CN119496695A_ABST
Patent Text Reader

Abstract

The invention provides a switch restarting method, a computer program product and electronic equipment, a first data center network comprises a core layer and a convergence layer, a switch in the core layer is a core switch, the core switch is provided with 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 second data center network. The uplink port is connected to the core switch, the downlink port is connected to the convergence layer, the routing protocol of the uplink port is a first routing protocol, the routing protocol of the downlink port is a second routing protocol, and the method comprises the following steps: controlling the whole core switch to be restarted; and when the delay duration reaches a preset duration, controlling the uplink port to enter a first UP state, so that the first routing protocol is converged, and the convergence completion of the second routing protocol is prior to the convergence completion of the first routing protocol. The problem that in the prior art, after a data center Border switch is subjected to fault recovery or the whole machine is restarted, due to the fact that convergence of an in-cloud overlay routing protocol is slower than that of an out-of-cloud routing protocol, service interruption is caused is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data center network operation and maintenance, and in particular to a switch restart method, a computer-readable storage medium, a computer program product, and an electronic device. Background Art

[0002] At present, the data center cloud platform network is a three-layer architecture of Border-Spine-Leaf. The Border switch is connected to the data center core using a dynamic routing protocol based on ECMP (Equal-Cost Multi-Path) load. The underlay in the cloud mainly uses the OSPF (Open Shortest Path First) dynamic routing protocol, and the overlay uses the BGP EVPN routing protocol. When the Border switch recovers from a fault or restarts, the switch interface recovers first. The routing protocol of the core switch connected to the Border switch and the underlay routing protocol in the cloud converge first. When accessing services in the cloud from outside the cloud, the core outside the cloud sends the data to the restarted Border switch through ECMP. At this time, the overlay routing protocol in the cloud that depends on the underlay routing has not converged, and the VXLAN (Virtual eXtensible Local Area Network) tunnel has not been successfully established. The Border switch cannot process the message, resulting in service interruption. Summary of the invention

[0003] The main purpose of the present application is to provide a switch restart method, 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 that after a data center Border switch recovers from a fault or restarts the entire machine, service interruption occurs because the overlay routing protocol in the cloud converges slower than the routing protocol outside the cloud.

[0004] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for restarting a switch is provided, wherein a first data center network includes a core layer and a convergence 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 convergence 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 comprising: controlling the core switch to restart as a whole so that the software in the core switch is reloaded; when the delay time reaches a preset time, controlling the uplink port to enter a 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 is completed, 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 moment when the software is reloaded and the moment when the uplink port enters the first UP state.

[0005] Optionally, after controlling the core switch to restart and before controlling the upstream port to enter the UP state, the method also includes: when the software reloading is completed, controlling the downstream port to directly enter a second UP state so that the second routing protocol begins to converge, wherein the second UP state indicates that the downstream port has been enabled and can transmit data.

[0006] Optionally, the first routing protocol includes a first Underlay routing protocol, the second routing protocol includes a second Underlay routing protocol and an Overlay routing protocol, and controlling the downstream port to directly enter the second UP state so that the second routing protocol starts to converge includes: controlling the downstream port to directly enter the second UP state so that the second Underlay routing protocol and the Overlay routing protocol start to converge, and controlling the upstream port to enter the first UP state so that the first routing protocol starts to converge, including: controlling the upstream port to enter the second UP state so that the first Underlay routing protocol starts to converge.

[0007] Optionally, controlling the downstream port to directly enter the second UP state so that the second Underlay routing protocol and the Overlay routing protocol start to converge, includes: controlling the downstream port to directly enter the second UP state so that the second Underlay routing protocol starts to converge, and the Overlay routing protocol starts to converge when the convergence of the second Underlay routing protocol is completed.

[0008] Optionally, controlling the uplink port to enter a 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 is completed, including: controlling the uplink port to enter the second UP state so that the first Underlay routing protocol starts to converge and the convergence of the Overlay routing protocol is completed before the convergence of the first Underlay routing protocol is completed.

[0009] Optionally, the first data center network also 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 also includes: when the first routing protocol and the second routing protocol have converged, receiving target data sent by the second data center network, and transmitting the target data to the access layer through the aggregation layer.

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

[0011] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the switch restarting methods.

[0012] According to another aspect of the present application, a computer program product is provided, comprising computer instructions, wherein when the computer instructions are executed by a processor, any one of the switch restarting methods is implemented.

[0013] According to another aspect of the present 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 are configured to be executed by the one or more processors, and the one or more programs include a method for executing any one of the switch restart methods.

[0014] By applying the technical solution of the present application, the core switch is first controlled to restart as a whole, so that the software in the core switch is reloaded, and when the delay time reaches the preset time, the uplink port of the core switch is controlled to enter the first UP state, so that the first routing protocol starts to converge, and the second routing protocol is converged before the first routing protocol, wherein 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 of service interruption caused by the slower convergence of the overlay routing protocol in the cloud than the routing protocol outside the cloud after the Border switch of the data center recovers from the fault or restarts the whole machine in the prior art, the present application does not immediately control the uplink port to be opened when the software in the core switch is reloaded, but controls the uplink port to enter the first UP state after delaying the preset time, so that the second routing protocol (i.e., the routing protocol running on the downlink port) converges before the first routing protocol (i.e., the routing protocol running on the uplink port), that is, the routing protocol in the cloud is better than the routing protocol outside the cloud to complete the convergence, effectively avoiding service interruption and ensuring high reliability of service transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0016] Figure 1 A hardware structure block diagram of a mobile terminal for executing a switch restart method provided in an embodiment of the present application is shown;

[0017] Figure 2 A schematic diagram of a process of restarting a switch provided according to an embodiment of the present 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 provided according to an embodiment of the present application is shown;

[0019] Figure 4 A schematic flow chart of a specific switch restart method provided according to an embodiment of the present application is shown.

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

[0021] 102, processor; 104, memory; 106, transmission device; 108, input and output devices. DETAILED DESCRIPTION

[0022] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0023] In order to enable those skilled in the art to better understand the solution of the present application, 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 only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work 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 and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0025] As introduced in the background technology, in the prior art, after a data center Border switch recovers from a fault or the entire machine is restarted, service interruption occurs because the overlay routing protocol within the cloud converges slower than the routing protocol outside the cloud. To solve the above problem, the embodiments of the present application provide a switch restart method, a computer-readable storage medium, a computer program product, and an electronic device.

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

[0027] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a switch restart method according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0028] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the restart method of the switch in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as 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] In this embodiment, a method for restarting a switch running on a mobile terminal, a computer terminal or a similar computing device is provided. It should be noted that the steps shown in the flowchart of 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 can be executed in an order different from that shown here.

[0030] Figure 2The 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 the 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, and the routing protocol running on the downlink port is a second routing protocol, such as Figure 2 As shown, the method comprises the following steps:

[0031] Step S201, controlling the core switch to restart so that the software in the core switch is reloaded;

[0032] Step S202, when the delay time reaches a 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, 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 moment when the software is reloaded and the moment when the uplink port enters the first UP state.

[0033] Through the above embodiment, the core switch is first controlled to restart the whole machine so that the software in the core switch is reloaded, and when the delay time reaches the preset time, the uplink port of the core switch is controlled to enter the first UP state, so that the first routing protocol starts to converge, and the second routing protocol is converged before the first routing protocol, wherein 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 of service interruption caused by the slower convergence of the overlay routing protocol in the cloud than the routing protocol outside the cloud after the data center Border switch in the prior art recovers from a fault or restarts the whole machine, the present application does not immediately control the uplink port to be opened when the software in the core switch is reloaded, but delays the preset time, and then controls the uplink port to enter the first UP state, so that the second routing protocol (i.e., the routing protocol running on the downlink port) converges before the first routing protocol (i.e., the routing protocol running on the uplink port), that is, the routing protocol in the cloud is better than the routing protocol outside the cloud to complete convergence, effectively avoiding service interruption and ensuring high reliability of service transmission.

[0034] In actual application, those skilled in the art can set the preset time length according to experience, or obtain it through multiple experiments, and this application does not impose any specific restrictions on this. In the embodiment of this application, the preset time length is 50 seconds.

[0035] It should be noted that the existing technology configures the monitor-link solution. The monitor-link technology monitors the link where the upstream port is located. When all the upstream ports fail, the downstream ports in the group will be forced to be set to the Down state. This scenario is generally used on access leaf switches. The relevant configuration is relatively complex and consumes certain equipment performance resources. In general, there is a limit on the number of upstream ports in the monitor-link solution. This technology cannot be used if there are too many upstream ports; the monitor-link configuration command is relatively complex, and there is a linkage relationship between the upstream and downstream ports. The upstream and downstream ports must be associated accordingly; after the monitor-link configuration is enabled, it will consume certain equipment performance resources; the monitor-link application scenario is relatively simple, and it is mainly used in leaf access switches.

[0036] Specifically, the port delay technology is that after the control layer receives the link link-Up status change message reported by the bottom layer, it updates the link status, but does not immediately process the subsequent logic, such as printing the syslog of the link change, changing the protocol status, etc., and enables a timer. The time is configured according to the port delay. After the timer ends, the protocol status of the port is also set to UP, and then the upper-layer routing protocol (i.e., the first routing protocol) is established and converged externally.

[0037] In an optional solution, after controlling the core switch to restart, 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 begins to converge, wherein the second UP state indicates that the downlink port has been enabled and can transmit data. In this embodiment, by controlling the downlink port to enter the second UP state immediately after the core switch software is reloaded, the convergence process of the second routing protocol can be accelerated, so that communication with the aggregation layer can be restored more quickly, thereby further improving the efficiency of the entire data center network, reducing network congestion and delay caused by routing protocol convergence delay, and further improving the stability and reliability of the network.

[0038] According to some exemplary embodiments of the present application, the first routing protocol includes a first Underlay routing protocol, the second routing protocol includes a second Underlay routing protocol and an Overlay routing protocol, and controlling the downlink port to directly enter the second UP state so that the second routing protocol starts 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 start to converge, and controlling the uplink port to enter the first UP state so that the first routing protocol starts to converge includes: controlling the uplink port to enter the second UP state so that the first Underlay routing protocol starts to converge. 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) starts to converge. This staged control can ensure that the convergence of the in-cloud routing protocol (Overlay and the second Underlay) takes precedence over the out-cloud routing protocol (the first Underlay), thereby further avoiding network communication problems caused by the out-cloud routing protocol converging first and the in-cloud routing protocol not being ready.

[0039] It should be noted that Underlay routing usually refers to the routing of 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 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 when the second Underlay routing protocol completes convergence, the Overlay routing protocol begins to converge. In this embodiment, by first starting the convergence of the second Underlay routing protocol and then starting the convergence of the Overlay routing protocol after the convergence of the second Underlay routing protocol is completed, the convergence order of the two routing protocols is controlled, and this order control helps to further ensure the compatibility and stability between network layers.

[0041] According to some other exemplary embodiments of the present application, controlling 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, includes: controlling the uplink port to enter the second UP state so that the first Underlay routing protocol starts to converge, and the convergence of the Overlay routing protocol is completed before the convergence of the first Underlay routing protocol. In this embodiment, by controlling the uplink port to enter the second UP state, the first Underlay routing protocol (i.e., the routing protocol at the physical layer) starts to converge, and at the same time, ensuring that the convergence of the Overlay routing protocol (i.e., the routing protocol at the virtualization layer) is completed before the convergence of the first Underlay routing protocol, the convergence order of the network can be further optimized, so that the network can be restored to a normal working state more quickly.

[0042] In some other optional schemes of the present application, the first data center network further includes an access layer, the first port of the access layer is connected to the core switch through the aggregation layer, and the second port of the access layer is connected to the terminal device, and the method further includes: when the first routing protocol and the second routing protocol have converged, receiving the target data sent by the second data center network, and transmitting the target data to the access layer through the aggregation layer. In this embodiment, by ensuring that the target data from the second data center network is processed after the first routing protocol and the second routing protocol have converged, the data transmission problem caused by the incomplete convergence of the routing protocol can be further reduced, thereby further improving the continuity and stability of the business.

[0043] Specifically, the terminal device includes but is not limited to a server.

[0044] In some other optional schemes of the present application, the core layer is the Border layer, the convergence layer is the Spine layer, the access layer is the Leaf layer, and the target data is transmitted to the access layer through the convergence layer, including: transmitting the target data to the Leaf layer through the Spine layer. In this embodiment, the hierarchical management of the data center network is realized through the hierarchical design of the Border layer, the Spine layer and the Leaf layer, and the target data is transmitted from the second data center network through the convergence layer (Spine layer) to the access layer (Leaf layer). Such a data transmission path can optimize the data flow, reduce the transmission delay of data in the network, and further improve the efficiency of data transmission.

[0045] Specifically, the present application configures a port delay of 50 seconds on the uplink port connecting the Border switch (i.e., the switch in the Border layer) and the second data center network. When the Border switch fails and restarts to recover, the uplink port delays 50 seconds to go UP, so that the overlay routing protocol within the cloud is better than the routing protocol outside the cloud in convergence, which can effectively avoid the problem of business interruption.

[0046] Specifically, the Border switch in the cloud pre-configures a 50-second delay for the uplink port to make the port UP, and then the Border switch restarts due to a fault. After the Border switch restarts, the normal software loading is completed. At this time, the downlink port is not configured with a port delay, and the downlink port directly enters the UP state. The Underlay routing in the cloud begins to converge and add to the table. After the convergence is completed, the Overlay routing converges and adds to the table. At the same time, the uplink port is configured with a delay of 50 seconds, and the port delay timer is started. After 50 seconds, the uplink port is UP, and the Border switch and the second data center network perform routing convergence and table addition (that is, the first routing protocol converges). At this time, convergence and table addition have been completed both inside and outside the cloud. The Border switch begins to receive traffic distributed by the second data center network and forwards traffic. The service will not be interrupted. It is the introduction of port delay technology that effectively avoids service interruption.

[0047] Specifically, in the three-layer architecture of the data center cloud platform network (Border-Spine-Leaf), when the Border switch restarts due to a fault or a single board is reset due to a fault, the physical state of the downstream port is immediately switched to UP. The state of the upper-layer protocol module does not meet the forwarding requirements. By executing the upstream port delay UP command, the upstream port will be changed to the physical Up state after the protocol module meets the forwarding requirements (that is, the overlay routing protocol in the cloud is better than the routing protocol outside the cloud to complete convergence), so that the protocol message can be processed normally, avoiding business interruption and improving business reliability. The configuration logic of this application is simple, and there is no need to modify the routing protocol configuration. At the same time, the risk of configuration modification is low. In the scenario of routine equipment switching drills in financial scenarios, it effectively avoids business interruption in the scenario involving the switching and restarting of the Boder switch. The convergence delay can be judged according to the dynamic routing protocol type (that is, the type of the first routing protocol and the second routing protocol) configured on the upstream and downstream ports of the Boder switch, and the delay duration can be set, thereby achieving device-level flexibility and scalability.

[0048] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the switch restart method of the present application will be described in detail below in combination with specific embodiments.

[0049] Figure 3FIG. 1 shows a schematic diagram of a transmission architecture between a first data center network and a second data center network provided according to an embodiment of the present application. Figure 3 As shown, the first data center network is a Border-Spine-Leaf three-layer architecture. The Border layer (i.e., the Border within the cloud) is connected to the second data center network (i.e., the core outside the cloud) through the upstream port, and the Border's downstream port is connected to one end of the Leaf layer (i.e., the Leaf within the cloud) through the Spine layer (i.e., the Spine within the cloud), and the other end of the Leaf layer is connected to the terminal device, and the port delay (i.e., the set up-delay command) is configured on the upstream port.

[0050] The present embodiment relates to a specific switch restart method, wherein 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, the Border switch has an uplink port and a downlink port, the uplink port is connected to the second data center network, the downlink port is connected to the Leaf layer through the Spine layer, the routing protocol running on the uplink port is a first routing protocol, the above routing protocol running on the downlink port is a second routing protocol, the first routing protocol includes a first Underlay routing protocol, the second routing protocol includes a second Underlay routing protocol and an Overlay routing protocol, such as Figure 4 As shown, the following steps are included:

[0051] Step S1: Control the Border switch to restart so that the software in the Border switch is reloaded;

[0052] Step S2: When the software reloading is completed, the downstream port is controlled to directly enter the second UP state, so that the second Underlay routing protocol starts to converge, and when the second Underlay routing protocol converges, the Overlay routing protocol starts to converge, wherein the second UP state indicates that the downstream port has been enabled and can transmit data;

[0053] Step S3: When the delay time reaches a preset time, the uplink port is controlled to enter the first UP state, so that the first Underlay routing protocol starts to converge, so that the convergence of the Overlay routing protocol is completed before the convergence of the first Underlay 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 moment when the software is reloaded and the moment when the uplink port enters the first UP state;

[0054] Step S4: When 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 Leaf layer through the Spine layer.

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

[0056] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the switch restart method.

[0057] Specifically, the 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 the 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, and the routing protocol running on the downlink port is a second routing protocol, and the restart method of the switch includes:

[0058] Step S201, controlling the core switch to restart so that the software in the core switch is reloaded;

[0059] Step S202, when the delay time reaches a 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, 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 moment when the software is reloaded and the moment 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 begins 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, the second routing protocol includes a second Underlay routing protocol and an Overlay routing protocol, and controlling the downstream port to directly enter the second UP state so that the second routing protocol starts to converge includes: controlling the downstream port to directly enter the second UP state so that the second Underlay routing protocol and the Overlay routing protocol start to converge, and controlling the upstream port to enter the first UP state so that the first routing protocol starts to converge, including: controlling the upstream port to enter the second UP state so that the first Underlay routing protocol starts 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 start to converge, includes: controlling the downlink port to directly enter the second UP state so that the second Underlay routing protocol starts to converge, and the Overlay routing protocol starts to converge when the convergence of the second Underlay routing protocol is completed.

[0063] Optionally, controlling 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 is completed, including: controlling the uplink port to enter the second UP state so that the first Underlay routing protocol starts to converge and the convergence of the Overlay routing protocol is completed before the convergence of the first Underlay routing protocol is completed.

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

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

[0066] The present 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, a 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, and the routing protocol running on the downlink port is a second routing protocol, step S201, controlling the core switch to restart as a whole 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 starts to converge, and the convergence of the second routing protocol is completed before the convergence of the first routing protocol is completed, 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 moment when the software is reloaded and the moment 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 begins 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, the second routing protocol includes a second Underlay routing protocol and an Overlay routing protocol, and controlling the downstream port to directly enter the second UP state so that the second routing protocol starts to converge includes: controlling the downstream port to directly enter the second UP state so that the second Underlay routing protocol and the Overlay routing protocol start to converge, and controlling the upstream port to enter the first UP state so that the first routing protocol starts to converge, including: controlling the upstream port to enter the second UP state so that the first Underlay routing protocol starts 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 start to converge, includes: controlling the downlink port to directly enter the second UP state so that the second Underlay routing protocol starts to converge, and the Overlay routing protocol starts to converge when the convergence of the second Underlay routing protocol is completed.

[0070] Optionally, controlling 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 is completed, including: controlling the uplink port to enter the second UP state so that the first Underlay routing protocol starts to converge and the convergence of the Overlay routing protocol is completed before the convergence of the first Underlay routing protocol is completed.

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

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

[0073] An embodiment of the present application also provides an electronic device, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of the above-mentioned switch restart methods.

[0074] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

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

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

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

[0078] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 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] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0081] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules 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 technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0082] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0083] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:

[0084] In the switch restart method of the present application, the core switch is first controlled to restart as a whole, so that the software in the core switch is reloaded, and when the delay time reaches the preset time, the uplink port of the core switch is controlled to enter the first UP state, so that the first routing protocol starts to converge, and the second routing protocol is converged before the first routing protocol, wherein 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 of service interruption caused by the slower convergence of the overlay routing protocol in the cloud than the routing protocol outside the cloud after the data center Border switch in the prior art recovers from a fault or restarts the whole machine, the present application does not immediately control the uplink port to be opened when the software in the core switch is reloaded, but controls the uplink port to enter the first UP state after delaying the preset time, so that the second routing protocol (i.e., the routing protocol running on the downlink port) converges before the first routing protocol (i.e., the routing protocol running on the uplink port), that is, the routing protocol in the cloud is better than the routing protocol outside the cloud to complete convergence, effectively avoiding service interruption and ensuring high reliability of service transmission.

[0085] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present 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 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 the 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, and the routing protocol running on the downlink port is a second routing protocol, the method includes: Controlling the core switch to restart the entire device so that the software in the core switch is reloaded; When the delay duration reaches a preset duration, the uplink port is controlled to enter a 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 is completed, wherein the first UP state indicates that the uplink port has been enabled and can transmit data, and the delay duration indicates the time between the moment when the software is reloaded and the moment when the uplink port enters the first UP state.

2. The method for restarting a switch 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 reloading is completed, the downstream port is controlled to directly enter a second UP state so that the second routing protocol starts to converge, wherein the second UP state indicates that the downstream port has been enabled and can transmit data.

3. The method for restarting a switch 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 starts to converge, including: controlling the downlink port to directly enter the second UP state so that the second Underlay routing protocol and the Overlay routing protocol start to converge, Controlling the uplink port to enter a first UP state so that the first routing protocol starts to converge includes: controlling the uplink port to enter a second UP state so that the first Underlay routing protocol starts to converge.

4. The method for restarting a switch 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, including: The downlink port is controlled to directly enter the second UP state, so that the second Underlay routing protocol starts to converge, and the Overlay routing protocol starts to converge when the convergence of the second Underlay routing protocol is completed.

5. The method for restarting a switch according to claim 4, characterized in that: Controlling the uplink port to enter a 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 is completed, including: The uplink port is controlled to enter the second UP state, so that the first Underlay routing protocol starts to converge, and the convergence of the Overlay routing protocol is completed before the convergence of the first Underlay routing protocol is completed.

6. The method for restarting a switch according to claim 1, characterized in that: 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, and the method further includes: When 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 convergence layer.

7. The method for restarting a switch according to claim 6, characterized in that: The core layer is a Border layer, the convergence layer is a Spine layer, and the access layer is a Leaf layer. The target data is transmitted to the access layer through the convergence 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, the device where the computer-readable storage medium is located is controlled to execute the switch restart method 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 a processor, the switch restart method according to any one of claims 1 to 7 is implemented.

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 are configured to be executed by the one or more processors, and the one or more programs include a method for executing the restart method of the switch according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Data forwarding method and access layer switching equipment

    CN110536187A

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

    CN118487994A

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

    US20140192635A1

  • Method for communication in data center, apparatus, and system

    US20230198896A1