Heterogeneous stack device replacement method and network device
By establishing communication links and data synchronization between heterogeneous devices on network devices, the problem that heterogeneous devices cannot be stacked is solved, the smooth replacement of heterogeneous devices and the stability of business traffic are achieved, and the exchange between equipment vendors is expanded. Chip selection range.
Patent Information
- Application Number
- PCT/CN2023/143615
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-09
- Filing Date
- 2023-12-29
- Publication Date
- 2024-09-12
AI Technical Summary
The stacking technology of existing switching chips is proprietary, which means that chips from different manufacturers cannot be stacked. As a result, stacking mode cannot be formed when heterogeneous equipment is replaced, resulting in business interruption and limiting the scope of switching chips that equipment manufacturers can choose.
By establishing a communication link between the main device and the heterogeneous device on the network device, data synchronization is performed, and after the synchronization is completed, the main device is taken offline, and the status of the heterogeneous device is changed to the status of the main device to achieve heterogeneous heterogeneity. stacking between devices.
It realizes the smooth replacement of heterogeneous equipment, ensures that business traffic is not interrupted, avoids business interruption problems when equipment is replaced, and expands the selection range of switching chips for equipment manufacturers.
Smart Images

Figure CN2023143615_12092024_PF_FP_ABST
Abstract
Description
Heterogeneous stacking device replacement method and network device
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application is based on Chinese patent application CN202310259112.8, filed on March 9, 2023, entitled “Heterogeneous Stacking Device Replacement Method and Network Device,” and claims the priority of that patent application. All of its disclosed contents are incorporated into this application by reference. Technical Field
[0003] The embodiments of the present disclosure relate to the field of communications, and in particular, to a method for replacing heterogeneous stacking devices and network devices. Background Art
[0004] With the rapid development of big data, artificial intelligence, and autonomous driving, various fields are placing higher demands on network communications. Timely data forwarding and stable device operation are becoming increasingly important. Existing carrier-grade routers and switches primarily consist of a primary device, a backup device, and peripheral devices. The primary and backup devices form a stack, logically forming a single device. As shown in Figure 1, the stack includes switching units composed of switching chips that implement functions such as packet forwarding and load balancing. Furthermore, the network management channels on the panels of the primary and backup devices connect to the switching chips in the switching units.
[0005] Stacking between active and standby devices is achieved through the use of switch chip stacking. Existing switch chip stacking technology is proprietary, and different manufacturers use different stacking protocols, making it impossible to stack chips from different manufacturers. When replacing heterogeneous devices, the switch chips between the two devices cannot form a stack and cannot communicate. This can cause service interruptions, resulting in a poor user experience and losses. It also limits the range of switch chip options available to equipment manufacturers, hindering device development.
[0006] Summary of the Invention
[0007] The embodiments of the present disclosure provide a method for replacing heterogeneous stacking devices and a network device to at least solve the problem in the related art that when a stacking device needs to replace a heterogeneous device, a stacking mode cannot be formed between the heterogeneous devices, thereby failing to ensure uninterrupted business traffic and failing to achieve smooth replacement of heterogeneous devices.
[0008] According to one embodiment of the present disclosure, a method for replacing heterogeneous stacking devices is provided, including inserting a first device into a network device, enabling a network management channel between a master device on the network device and the first device to establish a communication link between the master device and the first device; wherein the first device and the master device are heterogeneous; the master device and the first device synchronize data through the communication link, and after completing the data synchronization, the master device is taken offline from the network device, and the device status of the first device is changed to the master device status; establishing a stack between the first device and a second device newly inserted into the network device, wherein the first device and the second device are homogeneous.
[0009] According to another embodiment of the present disclosure, a network device is provided, including: a master device, a first device, and a second device, wherein the master device and the first device are configured to enable respective network management channels on the network devices based on the insertion of the first device into the network device, so as to establish a communication link between the master device and the first device; wherein the first device and the master device are heterogeneous, and the network management channel is located between the master device and the first device; the master device and the first device are further configured to synchronize data through the communication link; the master device is further configured to go offline from the network device after completing data synchronization; the first device is further configured to change the device status to the master device status after completing data synchronization, and establish a stack with the second device newly inserted into the network device, wherein the first device and the second device are homogeneous.
[0010] According to another embodiment of the present disclosure, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is configured to execute the steps of any one of the above method embodiments when running.
[0011] According to another embodiment of the present disclosure, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] FIG1 is a schematic diagram of a network device in the related art;
[0013] FIG2 is a hardware structure block diagram of a network device running a heterogeneous stack device replacement method according to an embodiment of the present disclosure;
[0014] FIG3 is a schematic diagram of a network architecture for running a heterogeneous stacking device replacement method according to an embodiment of the present disclosure;
[0015] FIG4 is a flow chart of a method for replacing a heterogeneous stacking device according to an embodiment of the present disclosure;
[0016] FIG5 is a structural block diagram of a network device according to an embodiment of the present disclosure;
[0017] FIG6 is a flowchart of a method for implementing heterogeneous stacking device replacement according to an embodiment of the present disclosure;
[0018] FIG7 is a flowchart of heterogeneous device replacement for qx port communication according to an embodiment of the present disclosure;
[0019] FIG8 is a flowchart of heterogeneous device replacement when data synchronization fails according to an embodiment of the present disclosure;
[0020] FIG9 is a flowchart of heterogeneous device replacement for optical communication according to an embodiment of the present disclosure;
[0021] 10 is a schematic diagram of a network device implementing a method for replacing heterogeneous devices through wireless WIFI according to an embodiment of the present disclosure;
[0022] FIG11 is a flowchart of a method for implementing heterogeneous device replacement through wireless WIFI according to an embodiment of the present disclosure;
[0023] FIG12 is a schematic diagram of a network device running a method for replacing multiple heterogeneous devices according to an embodiment of the present disclosure;
[0024] FIG13 is a flowchart of heterogeneous device replacement of multiple routers according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings and in conjunction with embodiments.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0027] The method embodiments provided in the embodiments of the present application can be executed in a network device, a computer terminal or a similar computing device. Taking operation on a network device as an example, FIG2 is a hardware structure block diagram of a network device running a heterogeneous stacking device replacement method in an embodiment of the present disclosure. As shown in FIG2 , the network device may include one or more (only one is shown in FIG2 ) processors 202 (the processor 202 may include but is not limited to a processing device such as a microprocessor or a programmable logic device) and a memory 204 for storing data, wherein the above-mentioned network device may also include a transmission device 206 and an input and output device 208 for communication functions. It can be understood by those skilled in the art that the structure shown in FIG2 is only for illustration, and it does not limit the structure of the above-mentioned network device. For example, the network device may also include more or fewer components than those shown in FIG2 , or have a configuration different from that shown in FIG2 .
[0028] The memory 204 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the heterogeneous stacking device replacement method in the embodiment of the present disclosure. The processor 202 executes various functional applications and data processing by running the computer program stored in the memory 204, that is, implementing the above-mentioned method. The memory 204 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 instances, the memory 204 may further include a memory remotely located relative to the processor 202, and these remote memories may be connected to a network device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0029] Transmission device 206 is used to receive or send data via a network. Specific examples of the aforementioned network may include a wireless network provided by a communications provider of the network device. In one embodiment, transmission device 206 includes a network interface controller (NIC), which can be connected to other network devices via a base station to enable communication with the Internet. In another embodiment, transmission device 206 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0030] The embodiment of the present application can run on the network architecture shown in Figure 3. As shown in Figure 3, the network architecture includes multiple network devices mentioned above: a main device, a backup device, and a peripheral device. When the main device and the backup device are heterogeneous, the main device and the backup device cannot establish a stack for communication, which will cause business interruption and cause a bad experience and loss to users.
[0031] In this embodiment, a method for replacing a heterogeneous stacking device running on the above-mentioned network device or network architecture is provided. FIG4 is a flow chart of the method for replacing a heterogeneous stacking device according to an embodiment of the present disclosure. As shown in FIG4 , the flow chart includes the following steps:
[0032] Step S402: upon inserting a first device into a network device, enabling a network management channel between a primary device on the network device and the first device to establish a communication link between the primary device and the first device; wherein the first device and the primary device are heterogeneous;
[0033] Step S404: the master device and the first device synchronize data via the communication link. After data synchronization is completed, the master device is taken offline from the network device, and the device state of the first device is changed to the master device state.
[0034] Step S406: Establish a stack between the first device and a second device newly inserted into the network device, wherein the first device and the second device are of the same structure.
[0035] In step S402 of this embodiment, establishing a communication link between the primary device and the first device includes:
[0036] Port parameters are set for the active device and the first device.
[0037] In step S402 of this embodiment, the active device and the first device on the network device perform port parameter setting, including:
[0038] The master device sets the following parameters according to the received heterogeneous device replacement command: converts the Spanning Tree Protocol (STP) state of the first port of the master device's switching chip to a forwarding state; adds the first port of the master device's switching chip and the second port of the master device's switching chip to the same local area network; sets the data transmission rate of the first port of the master device's switching chip to the maximum rate that the first port of the master device's switching chip can reach; the first device sets the following parameters according to the received message: converts the STP state of the first port of the first device's switching chip to a forwarding state; adds the first port of the first device's switching chip and the second port of the first device to the same local area network; sets the data transmission rate of the first port of the first device's switching chip to the maximum rate that the first port of the first device's switching chip can reach.
[0039] In this embodiment, the network management channel includes one of the following: a network port (ie, a qx port), a spare port, an optical cascade port, and a wireless WIFI module.
[0040] In this embodiment, in the event that the data synchronization fails, the method further includes: the master device maintains the device state as the master device state, and re-synchronizes the data after the first port of the master device and the first port of the first device are converted from a closed state to an open state.
[0041] In an exemplary embodiment, the data synchronization failure includes one of the following scenarios: the network cable on the qx port is loose, and the replacement of the first device is suspended.
[0042] In an exemplary embodiment, when there are multiple first devices to be replaced, the method further includes: replacing the multiple first devices one by one until all the first devices are replaced.
[0043] Before step S402 of this embodiment, the method further includes: closing a port connecting the first device to a peripheral device on the switching device.
[0044] After step S404 of this embodiment, the method further includes: opening a port connected between the first device and a peripheral device on the switching device.
[0045] Through the above steps, during the heterogeneous device replacement process, the data of the primary device is synchronized with the first heterogeneous device via the communication link established between the heterogeneous devices. This ensures that service traffic is not interrupted during the replacement process, thereby achieving a smooth replacement of heterogeneous devices. Therefore, this solves the problem in the related art that when a stacked device needs to be replaced with a heterogeneous device, the heterogeneous devices cannot form a stacking mode, thereby failing to ensure uninterrupted service traffic and unable to achieve a smooth replacement of heterogeneous devices. This avoids the problem of service interruption caused by heterogeneous device replacement.
[0046] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory (ROM / RAM), a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present disclosure.
[0047] This embodiment also provides a heterogeneous stacking device replacement device, which is used to implement the above-mentioned embodiments and preferred embodiments. Details already described will not be repeated here. As used below, the term "module" may refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.
[0048] FIG5 is a structural block diagram of a network device according to an embodiment of the present disclosure. As shown in FIG5 , the apparatus includes: a master device 10 , a first device 20 , a second device 30 and a peripheral device 40 .
[0049] The master device 10 and the first device 20 are configured to enable respective network management channels on the network devices upon insertion of the first device into the network device, so as to establish a communication link between the master device and the first device; wherein the first device and the master device are heterogeneous, and the network management channel is located between the master device and the first device;
[0050] The master device 10 and the first device 20 are further configured to synchronize data via the communication link;
[0051] The master device 10 is further configured to be offline from the network device after completing data synchronization;
[0052] The first device 20 is further configured to change the device state to the master device 10 state after completing data synchronization, and to establish a stack with the second device 30 newly inserted into the network device, wherein the first device 20 and the second device 30 are isomorphic.
[0053] The peripheral device 40 is configured to close the port connected to the first device 20 before the active device 10 and the first device 20 perform port parameter setting, and to open the port connected to the first device 20 after the first device 10 changes the device state to the active device state.
[0054] It should be noted that the above modules can be implemented through software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0055] To facilitate understanding of the technical solutions provided by the present disclosure, embodiments of specific scenarios will be described in detail below.
[0056] The embodiments of the present disclosure provide a method and apparatus for implementing heterogeneous stacking device replacement, which can be applied to multiple heterogeneous device replacement processes.
[0057] The replacement method includes: first, reusing the network management channel on the device panel, which includes but is not limited to the qx port (i.e., gateway interface), standby port, optical cascade port, and WIFI module, and connecting the network management channels of the two devices with network cables and optical fibers, or using WIFI modules to achieve wireless transmission. Secondly, issuing a heterogeneous device replacement command to the main device, opening the link by setting the corresponding port vlan, stp, rate and other parameters, converting the original network management channel into a master-slave communication link, and diverting the communication data of the original master-slave stacking port to the new communication link; sending data streams between the main and standby heterogeneous devices, and the data streams are first sent from the switching units of their respective devices to the network management channel on the panel, and then forwarded to the network management channel on the other device panel, and then to the corresponding switching units, thereby realizing communication between heterogeneous devices. This method overcomes the problem in the prior art that the service must be interrupted during the replacement of heterogeneous devices.
[0058] The following is a detailed description of the method for replacing heterogeneous stack devices based on the network architecture of FIG3 . As shown in FIG6 , the method includes the following steps:
[0059] Step S601: unplug the original standby device in FIG3 , and the active device now communicates normally with the peripheral device;
[0060] Step S602: Insert a new backup device with a heterogeneous switching chip and enable the network management channel between the new backup device and the main device. At this time, the two devices cannot establish a stack or communicate with each other. The new backup device needs to close the connection link with the peripheral device to prevent the peripheral device from identifying the two main controllers and affecting the business. The new backup device is functionally equivalent to the first device in the above embodiment.
[0061] Step S603: Send a heterogeneous device replacement command to the primary device, such as mix-mpu enable;
[0062] Step S604: The master device sets the STP state of the port connecting the switch chip and the network management channel to forwarding state (forwarding);
[0063] Step S605: The master device sets the VLAN of the port connected to the switch chip and the network management channel, adds the port and the port of the switch chip connected to the CPU to the same VLAN, and forwards the data with the VLAN when entering the switch chip and forwards it to the designated port. The VLAN is stripped when the data exits the switch chip port;
[0064] Step S606: The master device sets the rate of the port connecting the network management channel and the switch chip to the maximum rate that the port can reach, and transmits and receives at the maximum flow rate.
[0065] Step S607: The device with the heterogeneous switching chip determines based on the received message sent by the master device that if the other end is a heterogeneous switching chip, the network management channel setting is opened by default, which is the same as steps S604-S606, to achieve indirect communication between the two devices.
[0066] Step S608: The two devices synchronize data via the new primary and backup communication links;
[0067] The specific traffic forwarding path is as follows: The CPU of the active device sends a synchronization data stream, which is forwarded to the active device's switching unit, then forwarded through the switching chip to the active device's network management port. The data stream then continues to the network management port of the peer device (the new standby device), reaches the peer device's switching unit, and is finally sent to its CPU, achieving data synchronization between the active and standby devices.
[0068] Step S609: After data synchronization is complete, the active device is directly unplugged. The newly plugged-in device will quickly switch to the active device and become the active device. At the same time, the links between each peripheral device and the active device are opened.
[0069] Step S610: insert another new device. The two devices are homogeneous devices. The new device still uses stacking communication, and the entire system returns to normal.
[0070] The present disclosure is further described in detail below using embodiments in specific scenarios in conjunction with the accompanying drawings:
[0071] Example 1
[0072] When replacing heterogeneous router devices, communication is performed using the qx ports on the device panels. As shown in Figure 3, assume that device 1 is the active device and device 2 is the standby device. Device 1 is functionally equivalent to the active device in the above embodiment. The port connected to the switch chip through the qx port is port a (not shown in the figure). Specifically, as shown in Figure 7, the heterogeneous device replacement process includes the following steps:
[0073] Step S701: unplug device 2;
[0074] Step S702: Insert a heterogeneous switching chip device into the slot where device 2 is located, named device 3, and connect the qx ports of device 1 and device 3 with a network cable. By default, the port connected to the peripheral device is closed in device 3; device 3 is functionally equivalent to the first device in the above embodiment.
[0075] Step S703: Send the heterogeneous switch chip upgrade command mix-mpu enable to device 1;
[0076] Step S704: After receiving the heterogeneous replacement command, device 1 sets the STP state of port a to forwarding;
[0077] Step S705: Device 1 sets the VLAN of port a, that is, port a and port b connected to the CPU are added to the same VLAN. When data enters the switch chip from port b, it is marked with the corresponding VLAN, forwarded to port a, and stripped of the VLAN after leaving port a.
[0078] Step S706: Device 1 sets the rate of port a to transmit and receive at the maximum flow rate;
[0079] Step S707: Device 3 synchronizes data with device 1 via the qx port. The specific data flow forwarding path is as follows: the CPU of device 1 sends the synchronization data flow, which then enters the switching unit of device 1. The switching unit of device 1 forwards the data flow from port b to port a, then to the qx port, and then to the corresponding qx port of device 3. The data flow then enters the switching unit. The switching unit of device 3 forwards the data flow to the CPU of device 3, thus completing the data synchronization of device 1 to device 3.
[0080] Step S708: After device 1 and device 3 complete data synchronization, device 1 is unplugged. At this time, device 3 finds that master device 1 is offline and it is the backup device. It identifies itself as the master device and opens a link with the peripheral device.
[0081] Step S709: another new device is inserted in the place of the original device 1, named device 4; device 3 and device 4 are homogeneous devices and can be stacked at this time; device 4 is functionally equivalent to the second device in the above embodiment.
[0082] By following these steps, service traffic is not interrupted when heterogeneous network devices are replaced.
[0083] Example 2
[0084] Based on the normal heterogeneous device replacement in Example 1, in an application scenario where an abnormal situation occurs, such as a loose network cable on the QX port or a suspension of heterogeneous device replacement, the heterogeneous device replacement process is shown in FIG8 and further includes the following steps:
[0085] Assume that device 1 is the active device, device 3 is the heterogeneous standby device, and the port connected to the switch chip by the qx port is port a.
[0086] Step S801: Device 1 and device 3 are synchronizing data via the qx port;
[0087] Step S802: The network cable on the qx port is loose or the heterogeneous device 3 is suspended for replacement;
[0088] Step S803: Device 1 and device 3 both find that the physical state of port a has become down, and data synchronization fails.
[0089] Specifically, device 3 and device 1 monitor the status change of port a. When they find that the port status changes from up to down, they modify the STP status of port a to block, delete the VLAN of port a, and restore the port rate to the original port rate.
[0090] Step S804: After synchronization fails, device 1 remains in the master state to ensure normal service flow. A network cable or heterogeneous device 3 is then plugged in, and port a changes from down to up. Devices 1 and 3 then reconfigure their settings and restart data synchronization. In this embodiment, restarting data synchronization means synchronizing data from the beginning.
[0091] Step S805: After device 1 and device 3 complete data synchronization, device 1 is unplugged. At this time, device 3 finds that the master device 1 is offline and that it is the backup device. It then identifies itself as the master device and opens a link channel with the peripheral device.
[0092] Step S806: another new device is inserted in the place of the original device 1, named device 4; device 3 and device 4 are homogeneous devices and can be stacked.
[0093] By following these steps, service traffic is not interrupted when heterogeneous network devices are replaced.
[0094] Example 3
[0095] When replacing heterogeneous router devices, the optical port on the device panel can also be used for communication, as shown in Figure 3. Assume that device 1 is the active device and device 2 is the standby device. The port where the optical cascade port is connected to the switch chip is port a (not marked in the figure).
[0096] FIG9 is a flow chart of heterogeneous device replacement for optical port communication according to an embodiment of the present disclosure. As shown in FIG9 , the flow includes the following steps:
[0097] Step S901: unplug device 2;
[0098] Step S902: Insert a heterogeneous switch chip device, named Device 3, into the slot where Device 2 is located. Connect the optical ports of Device 1 and Device 3 using an optical module and optical fiber. By default, the ports of Device 3 connected to peripheral devices are closed.
[0099] Step S903: Send the heterogeneous switch chip upgrade command mix-mpu enable to device 1;
[0100] Step S904: After receiving the heterogeneous replacement command, device 1 sets the STP state of port a to forwarding;
[0101] Step S905: Device 1 sets the VLAN of port a, that is, port a and port b connected to the CPU are added to the same VLAN. When data enters the switch chip from port b, it is marked with the corresponding VLAN, forwarded to port a, and stripped of the VLAN after leaving port a.
[0102] Step S906: Device 1 sets the rate of port a to transmit and receive at the maximum flow rate;
[0103] Step S907: Device 3 and device 1 perform data synchronization via the optical port.
[0104] Step S908: After device 1 and device 3 complete data synchronization, device 1 is unplugged. At this time, device 3 finds that master device 1 is offline and it is the backup device. It identifies itself as the master device and opens a link with the peripheral device.
[0105] Step S909: Insert another new device, named device 4, in the place of the original device 1. Devices 3 and 4 are homogeneous devices and can be stacked.
[0106] By following these steps, service traffic is not interrupted when heterogeneous network devices are replaced.
[0107] Example 4
[0108] When replacing a router with a heterogeneous device, data flow synchronization with the heterogeneous device can also be achieved through wireless WIFI, as shown in Figure 10. Specifically, the process of implementing heterogeneous device replacement based on wireless WIFI (i.e., the wireless module in Figure 10) is shown in Figure 11. The process includes the following steps:
[0109] Step S1101: unplug device 2;
[0110] Step S1102: insert a heterogeneous switch chip device into the slot where device 2 is located, named device 3. Device 3 closes the port connected to the peripheral device by default.
[0111] Step S1103: Send the heterogeneous switch chip upgrade command mix-mpu enable to device 1;
[0112] Step S1104: After receiving the heterogeneous replacement command, device 1 sets the STP state of port a to forwarding;
[0113] Step S1105: Device 1 sets the VLAN of port a, that is, port a and port b connected to the CPU are added to the same VLAN. When data enters the switch chip from port b, it is marked with the corresponding VLAN, forwarded to port a, and stripped of the VLAN after exiting port a.
[0114] Step S1106: Device 1 sets the rate of port a to transmit and receive at the maximum flow rate;
[0115] Step S1107: Turn on the wireless WIFI module transceiver function on the panels of device 1 and device 3, so that device 1 and device 3 can communicate with each other and form a wireless link. After the data leaves the switching unit, it is sent and received via the wireless link for synchronization;
[0116] Step S1108: After data synchronization between device 1 and device 3 is completed, device 1 is unplugged. At this time, device 3 finds that the master device 1 is offline and it is the backup device. It then identifies itself as the master device and opens a link with the peripheral device.
[0117] Step S1109: another new device is inserted in the place of the original device 1, named device 4; device 3 and device 4 are homogeneous devices and can be stacked at this time.
[0118] By following these steps, service traffic is not interrupted when heterogeneous network devices are replaced.
[0119] Example 5
[0120] As shown in Figure 12, when multiple heterogeneous router devices need to be replaced, optical ports on the device panels can be used for communication. Assume that the original devices are named Device 1, Device 2, and Device 3, and the replaced devices are named Device 11, Device 12, and Device 13. Specifically, the method for replacing multiple heterogeneous router devices based on optical port communication is shown in Figure 13. The method includes the following steps:
[0121] Step S1301: unplug device 2;
[0122] Step S1302: Insert the heterogeneous switch chip device 12 into the slot where the device 2 is located, and connect the optical ports of the devices 1 and 12 using optical modules and optical fibers.
[0123] Step S1303: Send the heterogeneous switch chip upgrade command mix-mpu enable to device 1;
[0124] Step S1304: After receiving the heterogeneous replacement command, device 1 sets the STP state of port a to forwarding;
[0125] Step S1305: Device 1 sets the VLAN of port a and adds port a and port b connected to the CPU to the same VLAN. When data enters the switch chip from port b, it is marked with the corresponding VLAN and forwarded to port a. After exiting port a, the VLAN is stripped off.
[0126] Step S1306: Device 1 sets the rate of port a to transmit and receive at the maximum flow rate;
[0127] Step S1307: Device 12 and device 1 perform data synchronization via optical fiber.
[0128] Step S1308: After the data synchronization between device 1 and device 12 is completed, unplug device 3 and plug in the optical fiber between device 13 and device 1, and repeat the above synchronization steps until all heterogeneous devices are replaced;
[0129] Step S1309: insert another new device in place of the original device 1, named device 11; device 11, device 12, and device 13 are homogeneous devices and can be stacked.
[0130] By following these steps, service traffic is not interrupted when heterogeneous network devices are replaced.
[0131] The above-mentioned method or apparatus of the embodiments of the present disclosure can be applied in the central network equipment cluster of the core network, the bearer network, and the cloud market.
[0132] Through the above-mentioned embodiments of the present disclosure, heterogeneous device communication is achieved based on the network management channel on the device panel, which solves the problem that heterogeneous devices cannot be stacked, and reduces dependence on other devices as much as possible, making implementation convenient; ensuring that business traffic is not interrupted during device replacement, effectively guaranteeing user experience, reducing equipment manufacturers' dependence on a single chip, and expanding the range of chip selection.
[0133] An embodiment of the present disclosure further provides a computer-readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps of any one of the above method embodiments when run.
[0134] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
[0135] An embodiment of the present disclosure further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0136] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0137] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail here.
[0138] Obviously, those skilled in the art should understand that the various modules or steps of the above-mentioned embodiments of the present disclosure can be implemented using a general-purpose 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 using program codes executable by the 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 performed in a different order than herein, or they can be made into individual integrated circuit modules, or multiple modules or steps can be made into a single integrated circuit module for implementation. Thus, the present disclosure is not limited to any specific combination of hardware and software.
[0139] The foregoing description is merely a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Those skilled in the art will readily appreciate that various modifications and variations of the present disclosure are possible. Any modifications, equivalent substitutions, or improvements made within the principles of the present disclosure shall be included within the scope of protection of the present disclosure.
Claims
1. A method for replacing a heterogeneous stacking device, comprising: Based on the insertion of the first device into the network device, enabling the network management channel between the main device on the network device and the first device to establish a communication link between the main device and the first device; wherein the first device and the main device are heterogeneous; The master device and the first device perform data synchronization via the communication link, and after completing the data synchronization, the master device is taken offline from the network device, and the device state of the first device is changed to the master device state; A stack is established between the first device and a second device newly inserted into the network device, wherein the first device is isomorphic with the second device.
2. The method according to claim 1, wherein: Establishing a communication link between the primary device and the first device includes: Port parameters are set for the primary device and the first device.
3. The method according to claim 2, wherein: The step of setting port parameters for the primary device and the first device includes: The master device performs the following parameter settings according to the received heterogeneous device replacement command: converting the spanning tree protocol STP state of the first port of the master device switch chip to a forwarding state; adding the first port of the master device switch chip and the second port of the master device switch chip to the same local area network; setting the data transmission rate of the first port of the master device switch chip to the maximum rate that the first port of the master device switch chip can reach; The first device sets the following parameters according to the received message: converts the STP state of the first port of the switching chip of the first device to a forwarding state; adds the first port of the switching chip of the first device and the second port of the switching chip of the first device to the same local area network; and sets the data transmission rate of the first port of the switching chip of the first device to the maximum rate that the first port of the switching chip of the first device can reach.
4. The method according to claim 1, wherein: The network management channel includes one of the following: a network port, a spare port, an optical cascade port, and a wireless WIFI module.
5. The method according to claim 1, wherein: In the case where the data synchronization fails, the method further includes: The master device maintains the device state as the master device state, and re-synchronizes data after the first port of the master device and the first port of the first device are converted from a closed state to an open state.
6. The method according to claim 5, wherein: The data synchronization failure includes one of the following scenarios: the network cable on the network port is loose, and the first device is suspended for replacement.
7. The method according to claim 1, wherein: In the case that there are multiple first devices to be replaced, the method further includes: The multiple first devices are replaced one by one until all the first devices are replaced.
8. The method according to claim 2, wherein: Before setting port parameters for the main device and the first device, the method further includes: The port connecting the first device and the peripheral device on the network device is closed.
9. The method according to claim 1, wherein: After changing the device state of the first device to an active device state, the method further includes: Opening a port connecting the first device and a peripheral device on the network device.
10. A network device comprising: A primary device, a first device, and a second device, wherein: The main device and the first device are configured to enable respective network management channels on the network devices based on the insertion of the first device into the network device, so as to establish a communication link between the main device and the first device; wherein the first device and the main device are heterogeneous, and the network management channel is located between the main device and the first device; The master device and the first device are further configured to perform data synchronization via the communication link; The master device is further configured to be offline from the network device after completing data synchronization; The first device is further configured to change the device state to a master device state after completing data synchronization, and to establish a stack with a second device newly inserted into the network device, wherein the first device and the second device are isomorphic.
11. The network device according to claim 10, further comprising: The peripheral device is configured to close the port connected to the first device before the main device and the first device perform port parameter setting.
12. The network device according to claim 11, wherein: The peripheral device is further configured to open a port connected to the first device after the first device changes the device state to the active device state.
13. A computer-readable storage medium having a computer program stored therein, wherein: When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 9 are implemented.
14. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in any one of claims 1 to 9 when executing the computer program.
Citation Information
Patent Citations
Method and device for realizing heterogeneous stacking module
CN103532853A
Networking method for realizing high availability under cloud network
CN112954064A
Network equipment
CN115190003A
Relays in a Multihop Heterogeneous UMTS Wireless Communication System
US20100202343A1
Establishing a synchronous replication relationship between two or more storage systems
US20210326223A1
