Switch cutover method, device, and computer-readable storage medium

By configuring routing paths and migrating uplink pigtails and network cables one by one during the switch cutover process, the problems of switch cutover latency and high labor costs are solved, and efficient and flexible switch upgrades and replacements are achieved.

CN116647454BActive Publication Date: 2025-09-16CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310545398.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-15
Publication Date
2025-09-16
Estimated Expiration
2043-05-15

AI Technical Summary

Technical Problem

In the existing technology, the service delay during the switch cutover process is large and requires on-site operation by operation and maintenance personnel, resulting in high labor costs and low flexibility.

Method used

First, configure the routing path from the first switch to the second switch, and then migrate the uplink pigtails and network cables to the second switch one by one. This ensures that service data is transmitted directly to the uplink router through the routing path, reducing waiting time.

Benefits of technology

It reduces service delays during switch cutover, improves cutover efficiency, reduces labor costs, and enhances flexibility and customer satisfaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116647454B_ABST
    Figure CN116647454B_ABST
Patent Text Reader

Abstract

The present application provides a switch cutover method, device and computer-readable storage medium, which relate to the field of communication technology and can reduce the service delay during the switch cutover process. The method includes: configuring a first routing path, which is a routing path from the first switch to the second switch; migrating the N uplink pigtails on the first switch to the second switch respectively, so that the service data corresponding to the first switch is routed to the uplink router by the first routing path, and each of the N uplink pigtails is connected to the uplink router; migrating the N network cables on the first switch to the second switch respectively. Each of the above-mentioned N uplink pigtails is associated with a service data corresponding to the first switch, and each of the above-mentioned N network cables is associated with a service data corresponding to the first switch, and N is a positive integer. The embodiment of the present application is used in the process of switch cutover.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a switch cutover method, device, and computer-readable storage medium. Background Art

[0002] Currently, with the continuous escalation of business needs, many switches can no longer meet business needs, and switch upgrades and replacements are becoming more and more frequent. Typically, an operation and maintenance personnel and a construction team are assigned to the computer room to perform the on-site cutover of the switch's uplink fiber pigtails and network cables.

[0003] However, since the operation and maintenance personnel and construction team will cut over the switch's uplink pigtails and network cables, this may affect the services on the uplink pigtails and network cables. Therefore, the service delay will be relatively large during the switch cutover process. Summary of the Invention

[0004] The present application provides a switch cutover method, device, and computer-readable storage medium, which can reduce service delays during switch cutover.

[0005] To achieve the above objectives, this application adopts the following technical solutions:

[0006] In a first aspect, the present application provides a switch cutover method, the method comprising: configuring a first routing path, the first routing path being a routing path from a first switch to a second switch; migrating N uplink pigtails on the first switch to the second switch, respectively, so that service data corresponding to the first switch is routed to an uplink router by the first routing path, each of the N uplink pigtails being connected to the uplink router; and migrating N network cables on the first switch to the second switch, respectively. Each of the N uplink pigtails is associated with a piece of service data corresponding to the first switch, and each of the N network cables is associated with a piece of service data corresponding to the first switch, and N is a positive integer.

[0007] Based on the above technical solution, the switch cutover method provided in the embodiment of the present application can first configure a first routing path from the first switch to the second switch, and then migrate the N uplink pigtails on the first switch (each of the N uplink pigtails is connected to the uplink router) to the second switch respectively, so that the service data corresponding to the first switch can be routed to the uplink router by the first routing path, and the N network cables on the first switch are migrated to the second switch respectively; wherein each of the N uplink pigtails is associated with a piece of service data corresponding to the first switch, and each of the N network cables is associated with a piece of service data corresponding to the first switch, and N is a positive integer. Since a first routing path can be configured from the first switch to the second switch, after a certain uplink pigtail among the N uplink pigtails is migrated to the second switch, service data associated with the certain uplink pigtail can be routed to the uplink router via the first routing path without having to wait for the N uplink pigtails and N network cables to be migrated to the second switch. Therefore, the impact on the services on the N uplink pigtails and N network cables can be reduced, thereby reducing the service latency during the switch cutover process.

[0008] In a first possible implementation manner of the first aspect, configuring the first routing path includes: configuring target network parameters on the first switch and the second switch respectively, so that the first switch and the second switch are communicatively connected.

[0009] In a second possible implementation manner of the first aspect, before respectively configuring the target network parameters on the first switch and the second switch, the method further includes: receiving the target network parameters sent by a remote control device.

[0010] In a third possible implementation of the first aspect, the above-mentioned migration of the N uplink pigtails on the first switch to the second switch includes: migrating the i-th uplink pigtail on the first switch to the second switch, so that the i-th business data is routed from the first routing path to the uplink router; migrating the i+1-th uplink pigtail on the first switch to the second switch, so that the i+1-th business data is routed from the first routing path to the uplink router. Wherein, the i-th uplink pigtail is: an uplink pigtail among the N uplink pigtails; the i+1-th uplink pigtail is: an uplink pigtail next to the i-th uplink pigtail among the N uplink pigtails; the i-th business data is: business data associated with the i-th uplink pigtail in the business data corresponding to the first switch; the i+1-th business data is: business data associated with the i+1-th uplink pigtail in the business data corresponding to the first switch; and i is a positive integer.

[0011] In a fourth possible implementation of the first aspect, migrating the N network cables on the first switch to the second switch includes: migrating the jth network cable on the first switch to the second switch; and migrating the j+1th network cable on the first switch to the second switch. The jth network cable is a network cable among the N network cables; the j+1th network cable is a network cable immediately following the jth network cable among the N network cables; and j is a positive integer.

[0012] In the second aspect, the present application provides a switch cutover device, which includes: a configuration module and a migration module. The configuration module is used to configure a first routing path, which is a routing path from the first switch to the second switch. The migration module is used to migrate the N uplink pigtails on the first switch to the second switch respectively, so that the business data corresponding to the first switch is routed to the uplink router by the first routing path configured by the configuration module, and each of the N uplink pigtails is connected to the uplink router; and the N network cables on the first switch are migrated to the second switch respectively. Each of the above-mentioned N uplink pigtails is associated with a business data corresponding to the first switch, and each of the above-mentioned N network cables is associated with a business data corresponding to the first switch, and N is a positive integer.

[0013] In a first possible implementation manner of the second aspect, the configuration module is specifically configured to configure target network parameters on the first switch and the second switch respectively, so that the first switch and the second switch are communicatively connected.

[0014] In a second possible implementation of the second aspect, the switch cutover apparatus further includes a receiving module, wherein the receiving module is configured to receive target network parameters sent by the remote control device.

[0015] In a third possible implementation of the second aspect, the migration module is specifically configured to migrate the i-th uplink pigtail on the first switch to the second switch, so that the i-th business data is routed from the first routing path to the uplink router; and migrate the i+1-th uplink pigtail on the first switch to the second switch, so that the i+1-th business data is routed from the first routing path to the uplink router. The i-th uplink pigtail is: an uplink pigtail among the N uplink pigtails; the i+1-th uplink pigtail is: the next uplink pigtail after the i-th uplink pigtail among the N uplink pigtails; the i-th business data is: business data associated with the i-th uplink pigtail in the business data corresponding to the first switch; the i+1-th business data is: business data associated with the i+1-th uplink pigtail in the business data corresponding to the first switch; and i is a positive integer.

[0016] In a fourth possible implementation of the second aspect, the migration module is specifically configured to migrate the jth network cable on the first switch to the second switch; and migrate the j+1th network cable on the first switch to the second switch. The jth network cable is a network cable among N network cables; the j+1th network cable is a network cable next to the jth network cable among the N network cables; and j is a positive integer.

[0017] In a third aspect, the present application provides a switch cutover device, which includes: a processor and a communication interface; the communication interface and the processor are coupled, and the processor is used to run a computer program or instruction to implement the switch cutover method described in the first aspect and any possible implementation method of the first aspect.

[0018] In a fourth aspect, the present application provides a computer-readable storage medium storing instructions. When the instructions are executed on a terminal, the terminal executes the switch cutover method described in the first aspect and any possible implementation of the first aspect.

[0019] In a fifth aspect, an embodiment of the present application provides a computer program product comprising instructions. When the computer program product runs on a switch cutover device, the switch cutover device executes the switch cutover method as described in the first aspect and any possible implementation of the first aspect.

[0020] In a sixth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run a computer program or instruction to implement the switch cutover method described in the first aspect and any possible implementation method of the first aspect.

[0021] Specifically, the chip provided in the embodiment of the present application also includes a memory for storing computer programs or instructions. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 This is one of the flow charts of a switch cutover method provided in an embodiment of the present application;

[0023] Figure 2 This is one of the schematic diagrams of the connection relationship between the first switch and the second switch provided in the embodiment of the present application;

[0024] Figure 3 The second schematic diagram of the connection relationship between the first switch and the second switch provided in the embodiment of the present application;

[0025] Figure 4 This is a second flow chart of a switch cutover method provided in an embodiment of the present application;

[0026] Figure 5 The third schematic diagram of the connection relationship between the first switch and the second switch provided in the embodiment of the present application;

[0027] Figure 6 This is a flow chart of a switch cutover method provided in an embodiment of the present application;

[0028] Figure 7 Flowchart 4 of a switch cutover method provided in an embodiment of the present application;

[0029] Figure 8 This is one of the structural diagrams of a switch cutover device provided in an embodiment of the present application;

[0030] Figure 9 This is a second structural diagram of a switch cutover device provided in an embodiment of the present application;

[0031] Figure 10 A schematic diagram of the structure of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] The switch cutover method, apparatus, and computer-readable storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0033] The term "and / or" in this article is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0034] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.

[0035] Furthermore, the terms "including," "having," and any variations thereof, as used in the description of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to the process, method, product, or apparatus.

[0036] It should be noted that in the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0037] Currently, with the continuous escalation of business demands, many switches are no longer able to meet them, resulting in increasingly frequent switch upgrades and replacements. Typically, maintenance personnel and a construction team are dispatched to the server room to perform a cutover of the switch's uplink fiber pigtails and network cables. Specifically, maintenance personnel can first migrate each uplink fiber pigtail from the switch to a new switch, and then migrate each network cable from the switch to the new switch. However, since maintenance personnel migrate each uplink fiber pigtail and each network cable individually, services on each uplink fiber pigtail and each network cable are affected from the time the maintenance personnel remove the uplink fiber pigtail to the time the network cables are installed on the new switch. This results in significant service latency during the switch cutover process.

[0038] In order to solve the problem of large service latency during switch cutover in the prior art, the present application provides a switch cutover method, which can first configure a routing path from a switch to a new switch, and then migrate at least one uplink pigtail on the switch (each of the at least one uplink pigtail is connected to an uplink router) to the new switch, so that the service data corresponding to the switch can be routed to the uplink router by the routing path, and at least one network cable on the switch is migrated to the second switch; wherein each uplink pigtail of the at least one uplink pigtail is associated with a piece of service data corresponding to the switch, and each network cable of the at least one network cable is associated with a piece of service data corresponding to the switch, and N is a positive integer. Since a routing path can be configured from a switch to a new switch, after migrating a certain uplink pigtail of at least one uplink pigtail to a new switch, service data associated with the certain uplink pigtail can be routed to the uplink router by the routing path without having to wait for all uplink pigtails and all network cables to be migrated to the new switch. Therefore, the impact on the services on the at least one uplink pigtail and at least one network cable can be reduced, thereby reducing the service latency during the switch cutover process.

[0039] The switch cutover method of the present application is applied in the process of cutting over a switch.

[0040] like Figure 1 FIG. 1 is a flow chart of a switch cutover method provided in an embodiment of the present application, and the method includes the following steps:

[0041] Step 101: Configure a first routing path.

[0042] In the embodiment of the present application, the first routing path is a routing path from the first switch to the second switch.

[0043] The first switch may be a switch to be cutover, and the second switch may be a new switch.

[0044] It will be appreciated that the second switch will replace the first switch.

[0045] Optionally, in an embodiment of the present application, a data connection line may be used to connect the first switch and the second switch respectively, and then the electronic device may be triggered to configure the first routing path.

[0046] The number of the data connection lines may be two, one of the two data connection lines may be a 10 G data connection line, and the other data connection line may be a 1 G data connection line.

[0047] Optionally, in an embodiment of the present application, an electronic device may be connected to a first switch, and a first routing path may be configured on the electronic device. Specifically, the electronic device may be a computer.

[0048] It can be understood that after the first routing path is configured, the first switch and the second switch are communicatively connected, and data on the first switch can be routed to the second switch through the first routing path.

[0049] For example, Figure 2 Schematic diagram showing the connection relationship between the first switch and the second switch. Figure 2 As shown, the first switch 10 can be connected to the uplink router 11 through an uplink pigtail, and the first switch 10 can be connected to a user (e.g., an enterprise user 11, a home user 12) through a network cable. Therefore, before the first switch 10 is cut over, an electronic device (e.g., an electronic device 13) can be used to configure a first routing path (e.g., routing path 14). The routing path 14 is a routing path from the first switch 10 to the second switch 15, so that the first switch 10 and the second switch 15 are communicatively connected.

[0050] Step 102: Migrate N uplink pigtails on the first switch to the second switch respectively, so that service data corresponding to the first switch is routed to the uplink router via the first routing path.

[0051] In the embodiment of the present application, each of the N uplink pigtails is connected to an uplink router.

[0052] In the embodiment of the present application, the uplink router may specifically be a Broadband Remote Access Server (BRAS). The BRAS may be wirelessly connected to the server, thereby transmitting service data to the server.

[0053] In the embodiment of the present application, each of the N uplink pigtails is associated with a piece of service data corresponding to the first switch.

[0054] In an embodiment of the present application, the electronic device can send a prompt to the operation and maintenance personnel so that the operation and maintenance personnel can migrate the N uplink pigtails to the second switch; or the electronic device can control a migration device to migrate the N uplink pigtails to the second switch. The migration device can be a robot, etc.

[0055] Optionally, in an embodiment of the present application, the electronic device may sequentially migrate the N uplink pigtails on the first switch to the second switch; or, the electronic device may directly migrate the N uplink pigtails on the first switch to the second switch.

[0056] It can be understood that after the electronic device migrates the N uplink pigtails to the second switch, the first switch is not connected to the uplink router, and the second switch is connected to the uplink router.

[0057] For example, combining Figure 2 ,like Figure 3 As shown, after the uplink pigtail on the first switch 10 is migrated to the second switch 15, the first switch 10 is not connected to the uplink router 16, and the second switch 15 is connected to the uplink router 16, so that the service data corresponding to the first switch 10 can be routed to the second switch 15 by the routing path 14, and transmitted to the uplink router 16 by the second switch 15.

[0058] The following example illustrates how to migrate N uplink pigtails on the first switch to the second switch.

[0059] Optionally, in the embodiment of the present application, combined with Figure 1 ,like Figure 4 As shown, the above step 102 can be specifically implemented through the following steps 102a and 102b.

[0060] Step 102a: Migrate the i-th uplink pigtail on the first switch to the second switch, so that the i-th service data is routed to the uplink router via the first routing path.

[0061] In the embodiment of the present application, the i-th uplink pigtail is an uplink pigtail among the N uplink pigtails. The i-th service data is service data associated with the i-th uplink pigtail among the service data corresponding to the first switch; i is a positive integer.

[0062] It can be understood that after the i-th uplink pigtail is migrated to the second switch, the i-th business data can be transmitted to the first switch by the network cable, and transmitted from the first switch to the second switch through the first routing path, and transmitted from the second switch to the uplink router, without waiting for the migration of all uplink pigtails and all network cables to be completed.

[0063] Step 102b: Migrate the (i+1)th uplink pigtail on the first switch to the second switch, so that the (i+1)th service data is routed to the uplink router via the first routing path.

[0064] In the embodiment of the present application, the above-mentioned i+1th uplink pigtail is: the next uplink pigtail of the i-th uplink pigtail among the N uplink pigtails; the i+1th business data is: the business data associated with the i+1th uplink pigtail in the business data corresponding to the first switch.

[0065] It can be understood that after the i+1th uplink pigtail is migrated to the second switch, the i+1th business data can be transmitted to the first switch by the network cable, and transmitted from the first switch to the second switch through the first routing path, and transmitted from the second switch to the uplink router, without waiting for the migration of all uplink pigtails and all network cables to be completed.

[0066] It can be seen that since the uplink pigtails on the first switch can be migrated to the second switch one by one, after each uplink pigtail is migrated to the second switch, the business data associated with each uplink pigtail can be directly routed to the uplink router by the first routing path without waiting for the migration of all uplink pigtails and network cables to be completed. Therefore, the impact on the business on N uplink pigtails and N network cables can be reduced, and thus the business delay during the switch cutover process can be reduced.

[0067] Step 103: Migrate the N network cables on the first switch to the second switch respectively.

[0068] In the embodiment of the present application, each of the N network cables is associated with a piece of service data corresponding to the first switch, where N is a positive integer.

[0069] In an embodiment of the present application, the electronic device can send a prompt message to the operation and maintenance personnel so that the operation and maintenance personnel can migrate N network cables to the second switch respectively; or, the electronic device can control the migration device to migrate N network cables to the second switch respectively.

[0070] Optionally, in an embodiment of the present application, the electronic device may sequentially migrate the N network cables on the first switch to the second switch; or, the electronic device may directly migrate the N network cables on the first switch to the second switch.

[0071] It can be understood that after the electronic device migrates the N network cables to the second switch, the first switch is not connected to the user (eg, enterprise user, home user), and the second switch is connected to the user.

[0072] For example, combining Figure 3 ,like Figure 5 As shown, after the network cable on the first switch 10 is migrated to the second switch 15, the first switch 10 is not connected to the user (e.g., corporate user 11, home user 12), and the second switch 15 is connected to the user (e.g., corporate user 11, home user 12), so that the business data corresponding to the user can be transmitted to the second switch 15 through the network cable, and then transmitted to the upstream router 16 by the second switch 15.

[0073] The following example illustrates how to migrate N network cables on a first switch to a second switch.

[0074] Optionally, in the embodiment of the present application, combined with Figure 1 ,like Figure 6 As shown, the above step 103 can be specifically implemented through the following steps 103a and 103b.

[0075] Step 103a: Migrate the jth network cable on the first switch to the second switch.

[0076] In the embodiment of the present application, the j-th network cable is: a network cable among N network cables; j is a positive integer.

[0077] It can be understood that after the electronic device migrates the jth network cable to the second switch, the business data associated with the jth network cable can be transmitted by the jth network cable to the second switch, and then transmitted by the second switch to the upstream router without waiting for the migration of all network cables to be completed.

[0078] Step 103b: Migrate the j+1th network cable on the first switch to the second switch.

[0079] In the embodiment of the present application, the j+1th network cable is the next network cable of the jth network cable among the N network cables.

[0080] It can be understood that after the electronic device migrates the j+1th network cable to the second switch, the business data associated with the j+1th network cable can be transmitted by the j+1th network cable to the second switch, and then transmitted by the second switch to the upstream router without waiting for the migration of all network cables to be completed.

[0081] It can be seen that since the network cables on the first switch can be migrated to the second switch one by one, after each network cable is migrated to the second switch, the business data associated with each network cable can be directly transmitted from the second switch to the uplink router without waiting for the migration of all network cables to be completed. Therefore, the impact on the services on N uplink fiber optic cables and N network cables can be reduced, and the service delay during the switch cutover process can be reduced.

[0082] Based on the above technical solution, the switch cutover method provided in the embodiment of the present application can first configure a first routing path from the first switch to the second switch, and then migrate the N uplink pigtails on the first switch (each of the N uplink pigtails is connected to the uplink router) to the second switch respectively, so that the service data corresponding to the first switch can be routed to the uplink router by the first routing path, and the N network cables on the first switch are migrated to the second switch respectively; wherein each of the N uplink pigtails is associated with a piece of service data corresponding to the first switch, and each of the N network cables is associated with a piece of service data corresponding to the first switch, and N is a positive integer. Since a first routing path can be configured from the first switch to the second switch, after a certain uplink pigtail among the N uplink pigtails is migrated to the second switch, service data associated with the certain uplink pigtail can be routed to the uplink router via the first routing path without having to wait for the N uplink pigtails and N network cables to be migrated to the second switch. Therefore, the impact on the services on the N uplink pigtails and N network cables can be reduced, thereby reducing the service latency during the switch cutover process.

[0083] Of course, in order to improve the convenience of parameter configuration for operation and maintenance personnel, network parameters can also be remotely configured through electronic equipment to enable communication between the first switch and the second switch. The following will provide a specific example.

[0084] Optionally, in the embodiment of the present application, combined with Figure 1 ,like Figure 7 As shown, the above step 101 can be specifically implemented through the following step 101a.

[0085] Step 101a: Configure target network parameters on the first switch and the second switch respectively, so that the first switch and the second switch are in communication connection.

[0086] Furthermore, the target network parameters may include a first network parameter and a second network parameter, so that the electronic device can configure the first network parameter on the first switch and configure the second network parameter on the second switch, so that the first switch and the second switch are communicatively connected.

[0087] The configuration of the first network parameters for the electronic device on the first switch may specifically be as follows:

[0088] Newly created VLAN

[0089] VLAN 102

[0090] Uplink port transparently transmits interconnected VLANs

[0091] interfaceBridge-Aggregation 1

[0092] port trunk permit vlan 102

[0093] Port transparent transmission of cross-linked VLAN (interconnection and business)

[0094] interface Ten-GigabitEthernet10 / 0 / 1

[0095] description yewu

[0096] port link-mode bridge

[0097] port access vlan 102 3000to 4000

[0098] shutdown

[0099] The second network parameters configured on the second switch for the electronic device may specifically be as follows:

[0100] acl number 2020

[0101] description control telnet

[0102] rule 5permit source XXXX XXXX

[0103] Increase the number of IP addresses allowed

[0104] rule 100deny

[0105] telnet server enable

[0106] telnet server acl 2020

[0107] Configure the login password

[0108] line vty 0 15

[0109] authentication-mode password

[0110] set authentication password simple AVY@147258 / / AVY@147258 is the login password

[0111] user-role level-15

[0112] user-role network-operator

[0113] idle-timeout 5 0

[0114] Adding a VLAN

[0115] vlan 102 3000 to 4000

[0116] Adding a VLANIF

[0117] interface Vlan-interface102

[0118] description

[0119] IP address 10.0.0.2 255.255.255.252

[0120] Port transparent transmission VLAN (interconnection and business)

[0121] interface Ten-GigabitEthernet0 / 0 / 1

[0122] description yewu

[0123] port link-mode bridge

[0124] port access vlan 102 3000to 4000

[0125] shutdown

[0126] Furthermore, the electronic device may also configure a third network parameter on the uplink router to enable communication between the first switch and the second switch.

[0127] The third network parameters configured on the uplink router for the electronic device may specifically be as follows:

[0128] Bras downlink port sub-interface configuration

[0129] Eth-Trunk1.102

[0130] vlan-type dot1q 102

[0131] description new switch

[0132] ip address 10.0.0.1 255.255.255.252

[0133] After completing the above steps, remotely control the second switch's interconnection IP (10.0.0.2) from the upstream router and enter the correct password to successfully connect to the second switch. During the period before the cutover, the operations and maintenance personnel can schedule a time to log in to the second switch to configure the script, and have someone else log in to the second switch to verify the configuration to ensure it is configured correctly.

[0134] In an embodiment of the present application, after the first switch and the second switch are connected in communication, the ports for running services horizontally between the first switch and the second switch (i.e., the second switch Ten-GigabitEthernet0 / 0 / 1 and the second switch Ten-GigabitEthernet10 / 0 / 1) can be opened. In this way, after the migration of one of the N uplink pigtails is completed, the service can still be transmitted to the second switch through the horizontal connection (i.e., the first routing path), and then transmitted to the uplink router, so as to shorten the service impact time as much as possible.

[0135] Optionally, in the embodiment of the present application, before the above step 101a, the switch cutover method provided in the embodiment of the present application may further include the following step 201.

[0136] Step 201: Receive target network parameters sent by a remote control device.

[0137] It is understandable that the operation and maintenance personnel can send the target network parameters to the electronic device through the remote control device, so that the electronic device can configure the first switch and the second switch.

[0138] As can be seen from the above, the embodiments of the present application provide a switch cutover method that can solve the problems of existing switch cutovers, such as long service impact on the night of cutover, the need for on-site maintenance personnel, high labor costs, inconvenience, and low flexibility. This improves cutover efficiency and customer perception, and saves labor costs. The embodiments of the present application have the following advantages:

[0139] 1) The service impact on the night of the cutover is significantly reduced and manageable, reducing customer complaints and improving customer satisfaction. This solution uses a data cable between the Ethernet ports of the first and second switches to establish a horizontal transparent VLAN to minimize service impact. Furthermore, the duration of service impact is flexible and controllable, allowing for pre-planning based on customer requirements, improving customer perception and satisfaction.

[0140] 2) Low labor costs. This solution utilizes remote configuration and connects the Ethernet ports of the first and second switches. By configuring the interconnection address, the first switch can be directly remotely controlled from the second switch, providing dual protection. This allows for remote configuration, debugging, and verification of the second switch before the cutover. This eliminates the need for dedicated on-site personnel for configuration; everything can be completed when the construction team arrives to install the second switch. On the evening of the cutover, technicians can remotely collaborate with the construction team to complete the fiber patching, significantly reducing labor costs.

[0141] 3) Convenient, reliable, and highly flexible. This solution uses an electronic device and a first switch and a second switch to establish an interconnection so that the second switch can be directly remotely controlled and mutually used as a master and backup to realize the function of remote login device operation. This method is convenient and highly flexible. You can log in to the device anytime and anywhere to view, modify, review the configuration, and other operations. If there is a problem with the electronic device or the method of establishing the device interconnection, remote configuration can also be achieved through the other method. It is relatively reliable and is not prone to situations where remote operations cannot be performed and people need to go to the site to handle the problem. That is, the second switch can be configured in advance, and multiple people can be arranged in advance to review the configuration to ensure that there will be no series of problems caused by incorrect switch configuration during the cutover, which reduces the probability of cutover failure to a certain extent.

[0142] 4) Simple configuration. The cutover method used in this solution is simple to configure. All the configuration is based on basic switch operation commands. It does not require a high level of operation and maintenance personnel. After a simple training, the operation and maintenance personnel can operate it without spending too much time and effort on learning and research.

[0143] It should be noted that the execution entity of the embodiments of the present application may be an electronic device or other device, and the embodiments of the present application are described with the electronic device as the execution entity.

[0144] In the embodiments of the present application, the switch cutover device can be divided into functional modules or functional units according to the above-mentioned method examples. For example, each functional module or functional unit can be divided according to each function, or two or more functions can be integrated into a single processing module. The above-mentioned integrated modules can be implemented in the form of hardware or software functional modules or functional units. The division of modules or units in the embodiments of the present application is illustrative and is merely a logical functional division. In actual implementation, other division methods may be used.

[0145] like Figure 8 As shown, it is a structural schematic diagram of a switch cutover device provided in an embodiment of the present application, and the switch cutover device includes: a configuration module 201 and a migration module 202. The configuration module 201 is used to configure a first routing path, which is a routing path from the first switch to the second switch. The migration module 202 is used to migrate the N uplink pigtails on the first switch to the second switch respectively, so that the business data corresponding to the first switch is routed to the uplink router by the first routing path configured by the configuration module 201, and each of the N uplink pigtails is connected to the uplink router; and the N network cables on the first switch are migrated to the second switch respectively. Each of the above-mentioned N uplink pigtails is associated with a business data corresponding to the first switch, and each of the above-mentioned N network cables is associated with a business data corresponding to the first switch, and N is a positive integer.

[0146] The switch cutover device provided in the embodiment of the present application can configure a first routing path from the first switch to the second switch. Therefore, after a certain uplink pigtail among N uplink pigtails is migrated to the second switch, service data associated with the certain uplink pigtail can be routed to the uplink router via the first routing path without having to wait for the N uplink pigtails and N network cables to be migrated to the second switch. Therefore, the impact on the services on the N uplink pigtails and N network cables can be reduced, thereby reducing the service latency during the switch cutover process.

[0147] In a possible implementation, the configuration module 201 is specifically configured to configure target network parameters on the first switch and the second switch respectively, so that the first switch and the second switch are communicatively connected.

[0148] In a possible implementation, the switch cutover apparatus provided in the embodiment of the present application may further include: a receiving module, wherein the receiving module is configured to receive target network parameters sent by the remote control device.

[0149] In one possible implementation, the migration module 202 is specifically configured to migrate the i-th uplink pigtail on the first switch to the second switch, so that the i-th service data is routed from the first routing path to the uplink router; and migrate the i+1-th uplink pigtail on the first switch to the second switch, so that the i+1-th service data is routed from the first routing path to the uplink router. The i-th uplink pigtail is an uplink pigtail among N uplink pigtails; the i+1-th uplink pigtail is an uplink pigtail next to the i-th uplink pigtail among the N uplink pigtails; the i-th service data is service data associated with the i-th uplink pigtail in the service data corresponding to the first switch; the i+1-th service data is service data associated with the i+1-th uplink pigtail in the service data corresponding to the first switch; and i is a positive integer.

[0150] It can be seen that since the uplink pigtails on the first switch can be migrated to the second switch one by one, after each uplink pigtail is migrated to the second switch, the business data associated with each uplink pigtail can be directly routed to the uplink router by the first routing path without waiting for the migration of all uplink pigtails and network cables to be completed. Therefore, the impact on the business on N uplink pigtails and N network cables can be reduced, and thus the business delay during the switch cutover process can be reduced.

[0151] In one possible implementation, the migration module 202 is specifically configured to migrate the jth network cable on the first switch to the second switch, and to migrate the j+1th network cable on the first switch to the second switch. The jth network cable is a network cable among N network cables, the j+1th network cable is a network cable next to the jth network cable among the N network cables, and j is a positive integer.

[0152] It can be seen that since the network cables on the first switch can be migrated to the second switch one by one, after each network cable is migrated to the second switch, the business data associated with each network cable can be directly transmitted from the second switch to the uplink router without waiting for the migration of all network cables to be completed. Therefore, the impact on the services on N uplink fiber optic cables and N network cables can be reduced, and the service delay during the switch cutover process can be reduced.

[0153] When implemented by hardware, the configuration module 201 and the migration module 202 in the embodiment of the present application can be integrated on the processor. Figure 9 shown.

[0154] Figure 9A schematic diagram of another possible structure of the switch cutover device involved in the above-mentioned embodiments is shown. The switch cutover device includes a processor 302 and a communication interface 303. The processor 302 is used to control and manage the operations of the switch cutover device, for example, executing the steps performed by the configuration module 201 and the migration module 202, and / or performing other processes of the technology described herein. The communication interface 303 is used to support communication between the switch cutover device and other network entities. The switch cutover device may also include a memory 301 and a bus 304. The memory 301 is used to store program code and data of the switch cutover device.

[0155] Among them, the memory 301 can be a memory in a switch cutover device, etc., and the memory can include a volatile memory, such as a random access memory; the memory can also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory can also include a combination of the above types of memory.

[0156] The processor 302 may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure herein. The processor may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field-programmable gate array, or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. The processor may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure herein. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, or a combination of a DSP and a microprocessor.

[0157] The bus 304 may be an Extended Industry Standard Architecture (EISA) bus or the like. The bus 304 may be divided into an address bus, a data bus, a control bus, or the like. For ease of representation, Figure 9 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.

[0158] Figure 10 FIG1 is a schematic diagram of the structure of a chip 170 provided in an embodiment of the present application. The chip 170 includes one or more (including two) processors 1710 and a communication interface 1730 .

[0159] Optionally, the chip 170 further includes a memory 1740, which may include a read-only memory and a random access memory, and provides operation instructions and data to the processor 1710. A portion of the memory 1740 may also include a non-volatile random access memory (NVRAM).

[0160] In some embodiments, the memory 1740 stores the following elements, execution modules or data structures, or a subset thereof, or an extended set thereof.

[0161] In the embodiment of the present application, the corresponding operation is performed by calling the operation instruction stored in the memory 1740 (the operation instruction may be stored in the operating system).

[0162] The processor 1710 can implement or execute the various exemplary logic blocks, units, and circuits described in conjunction with the disclosure of this application. The processor can be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field-programmable gate array, or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. It can implement or execute the various exemplary logic blocks, units, and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0163] Memory 1740 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, hard disk or solid-state drive; the memory may also include a combination of the above types of memory.

[0164] The bus 1720 may be an Extended Industry Standard Architecture (EISA) bus or the like. The bus 1720 may be divided into an address bus, a data bus, a control bus, or the like. For ease of representation, Figure 10 The fact that only one line is used does not mean that there is only one bus or one type of bus.

[0165] Through the description of the above embodiments, those skilled in the art will clearly understand that for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working processes of the above-described systems, devices, and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0166] An embodiment of the present application provides a computer program product including instructions. When the computer program product is run on a computer, the computer is caused to execute the switch cutover method in the above method embodiment.

[0167] An embodiment of the present application further provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a computer, the computer is caused to execute the switch cutover method in the method flow shown in the above method embodiment.

[0168] Among them, the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a register, a hard disk, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above, or any other form of computer-readable storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium can be located in an application-specific integrated circuit (ASIC). In the embodiments of the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0169] An embodiment of the present invention provides a computer program product including instructions. When the instructions are executed on a computer, the computer is enabled to execute the switch cutover method as described in the above method embodiment.

[0170] Since the switch cutover device, computer-readable storage medium, and computer program product in the embodiments of the present invention can be applied to the above method, the technical effects that can be obtained can also refer to the above method embodiments, and the embodiments of the present invention will not be repeated here.

[0171] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0172] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0173] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0174] The above are only specific embodiments of the present application, but the scope of protection of the present application is not limited thereto. Any changes or replacements within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. A switch cutover method, characterized in that: The method comprises: configuring a first routing path, where the first routing path is a routing path from the first switch to the second switch; Migrating N uplink pigtails on the first switch to the second switch, respectively, so that service data corresponding to the first switch is routed to an uplink router via the first routing path, and each of the N uplink pigtails is connected to the uplink router; Migrate N network cables on the first switch to the second switch respectively; Each of the N uplink pigtails is associated with a piece of service data corresponding to the first switch, and each of the N network cables is associated with a piece of service data corresponding to the first switch, where N is a positive integer.

2. The method according to claim 1, characterized in that The configuring the first routing path includes: Target network parameters are configured on the first switch and the second switch respectively, so that the first switch and the second switch are communicatively connected.

3. The method according to claim 2, characterized in that Before configuring target network parameters on the first switch and the second switch respectively, the method further includes: Receive the target network parameters sent by the remote control device.

4. The method according to claim 1, wherein The step of migrating the N uplink pigtails on the first switch to the second switch includes: Migrating the i-th uplink pigtail on the first switch to the second switch, so that the i-th service data is routed to the uplink router via the first routing path; Migrating the (i+1)th uplink pigtail on the first switch to the second switch, so that the (i+1)th service data is routed to the uplink router via the first routing path; Wherein, the i-th uplink pigtail is: the uplink pigtail among the N uplink pigtails; the i+1-th uplink pigtail is: the next uplink pigtail after the i-th uplink pigtail among the N uplink pigtails; The i-th business data is: the business data associated with the i-th uplink pigtail in the business data corresponding to the first switch; the i+1-th business data is: the business data associated with the i+1-th uplink pigtail in the business data corresponding to the first switch; i is a positive integer.

5. The method according to claim 1, wherein Migrating the N network cables on the first switch to the second switch respectively includes: Migrate the jth network cable on the first switch to the second switch; Migrate the j+1th network cable on the first switch to the second switch; The j-th network cable is a network cable among the N network cables; the j+1-th network cable is a network cable next to the j-th network cable among the N network cables; and j is a positive integer.

6. A switch cutover device, characterized in that: The switch cutover device includes: a configuration module and a migration module; The configuration module is configured to configure a first routing path, where the first routing path is a routing path from the first switch to the second switch; The migration module is configured to migrate N uplink pigtails on the first switch to the second switch, respectively, so that service data corresponding to the first switch is routed to an uplink router via the first routing path configured by the configuration module, and each of the N uplink pigtails is connected to the uplink router; and to migrate N network cables on the first switch to the second switch, respectively; Each of the N uplink pigtails is associated with a piece of service data corresponding to the first switch, and each of the N network cables is associated with a piece of service data corresponding to the first switch, where N is a positive integer.

7. The switch cutover device according to claim 6, wherein: The configuration module is specifically configured to configure target network parameters on the first switch and the second switch respectively, so that the first switch and the second switch are communicatively connected.

8. The switch cutover device according to claim 7, wherein: The switch cutover device further includes: a receiving module; The receiving module is configured to receive the target network parameters sent by a remote control device.

9. The switch cutover device according to claim 6, wherein: The migration module is specifically configured to migrate the i-th uplink pigtail on the first switch to the second switch, so that the i-th service data is routed to the uplink router via the first routing path; and migrating the i+1th uplink pigtail on the first switch to the second switch, so that the i+1th service data is routed to the uplink router via the first routing path; Wherein, the i-th uplink pigtail is: the uplink pigtail among the N uplink pigtails; the i+1-th uplink pigtail is: the next uplink pigtail after the i-th uplink pigtail among the N uplink pigtails; The i-th business data is: the business data associated with the i-th uplink pigtail in the business data corresponding to the first switch; the i+1-th business data is: the business data associated with the i+1-th uplink pigtail in the business data corresponding to the first switch; i is a positive integer.

10. The switch cutover device according to claim 6, wherein: The migration module is specifically configured to migrate the jth network cable on the first switch to the second switch; and migrate the j+1th network cable on the first switch to the second switch; The j-th network cable is a network cable among the N network cables; the j+1-th network cable is a network cable next to the j-th network cable among the N network cables; and j is a positive integer.

11. A switch cutover device, characterized in that: include: A processor and a communication interface; the communication interface is coupled to the processor, and the processor is configured to run a computer program or instruction to implement the switch cutover method as described in any one of claims 1 to 5.

12. A computer-readable storage medium storing instructions, characterized in that: When a computer executes the instruction, the computer executes the switch cutover method described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Network path adjusting method, system and device, electronic equipment and storage medium

    CN112491700A

  • Apparatus and Manufacturing Method for an Integrated Multicast Switch, For Use in Reconfigurable Optical Add-Drop Networks

    US20150244492A1