CN118631640A - Heterogeneous stacking device replacement method and network device - Google Patents
Heterogeneous stacking device replacement method and network device Download PDFInfo
- Publication number
- CN118631640A CN118631640A CN202310259112.8A CN202310259112A CN118631640A CN 118631640 A CN118631640 A CN 118631640A CN 202310259112 A CN202310259112 A CN 202310259112A CN 118631640 A CN118631640 A CN 118631640A
- Authority
- CN
- China
- Prior art keywords
- port
- equipment
- network
- heterogeneous
- state
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 65
- 238000004891 communication Methods 0.000 claims abstract description 39
- 230000002093 peripheral effect Effects 0.000 claims description 21
- 230000015654 memory Effects 0.000 claims description 18
- 238000004590 computer program Methods 0.000 claims description 16
- 230000003287 optical effect Effects 0.000 claims description 16
- 230000005540 biological transmission Effects 0.000 claims description 11
- 230000008859 change Effects 0.000 claims description 4
- 238000003780 insertion Methods 0.000 claims description 3
- 230000037431 insertion Effects 0.000 claims description 3
- 238000005516 engineering process Methods 0.000 abstract description 3
- 230000008569 process Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 239000013307 optical fiber Substances 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000001360 synchronised effect Effects 0.000 description 4
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 1
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0668—Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域Technical Field
本发明实施例涉及通讯领域,具体而言,涉及一种异构堆叠设备更换方法及网络设备。The embodiments of the present invention relate to the field of communications, and in particular to a heterogeneous stacking device replacement method and a network device.
背景技术Background Art
随着大数据、人工智能、自动驾驶的蓬勃发展,各个领域对网络通信提出了更高的要求,转发数据及时性、设备稳定运行等越来越重要。现有电信级路由器、交换机设备主要由主用设备、备用设备和外围设备组成,其中主用设备和备用设备形成堆叠模式,在逻辑上形成一个设备。如图1所示,堆叠设备中包含由交换芯片组成的交换单元,实现报文转发、负荷分担等功能,同时,主用设备和备用设备的面板上的网管通道也是连接交换单元中的交换芯片。With the vigorous development of big data, artificial intelligence, and autonomous driving, various fields have put forward higher requirements for network communications, and the timeliness of forwarding data and the stable operation of equipment are becoming increasingly important. Existing telecom-grade routers and switch devices are mainly composed of main devices, backup devices, and peripheral devices, in which the main devices and backup devices form a stacking mode and logically form one device. As shown in Figure 1, the stacking device contains a switching unit composed of switching chips to realize functions such as message forwarding and load sharing. At the same time, the network management channel on the panel of the main device and the backup device is also connected to the switching chip in the switching unit.
主用设备和备用设备之间的堆叠技术是由交换芯片堆叠实现。现有的交换芯片的堆叠技术具有私有性,不同厂家的芯片堆叠协议不相同,进而导致不同厂家的芯片无法实现堆叠。在更换异构设备时,由于两类设备之间交换芯片不能形成堆叠而无法通信,会导致运行的业务中断,给用户造成不良体验且带来损失,也限制了设备商选择交换芯片的范围,不利于设备的发展。The stacking technology between the main device and the backup device is realized by stacking the switching chips. The existing stacking technology of switching chips is proprietary, and the chip stacking protocols of different manufacturers are different, which makes it impossible to stack chips from different manufacturers. When replacing heterogeneous equipment, since the switching chips between the two types of equipment cannot form a stack and cannot communicate, it will cause the running business to be interrupted, causing a bad experience and losses to users, and also limiting the scope of equipment manufacturers to choose switching chips, which is not conducive to the development of equipment.
发明内容Summary of the invention
本发明实施例提供了一种异构堆叠设备更换方法及网络设备,以至少解决相关技术中当堆叠设备需要更换异构设备时,异构设备之间无法形成堆叠模式,从而无法保证业务流量不中断,不能实现异构设备平滑更换的问题。The embodiment of the present invention provides a method for replacing a heterogeneous stacking device and a network device, so as 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 that the business traffic is not interrupted and smooth replacement of the heterogeneous devices cannot be achieved.
根据本发明的一个实施例,提供了一种异构堆叠设备更换方法,包括基于第一设备插入网络设备,启用所述网络设备上的主用设备和所述第一设备之间的网管通道,以建立所述主用设备与所述第一设备之间的通信链路;其中,所述第一设备与所述主用设备异构;所述主用设备和所述第一设备通过所述通信链路进行数据同步,并在完成数据同步后,将所述主用设备从所述网络设备中离线,将所述第一设备的设备状态更改为主用设备状态;在所述第一设备与新插入所述网络设备的第二设备之间建立堆叠,其中,所述第一设备与所述第二设备同构。According to one embodiment of the present invention, a method for replacing a heterogeneous stacking device is provided, including: based on 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 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; and a stack is established between the first device and a second device newly inserted into the network device, wherein the first device and the second device are isomorphic.
根据本发明的另一个实施例,提供了一种网络设备,包括:主用设备、第一设备和第二设备,其中,所述主用设备和所述第一设备,用于基于所述第一设备插入到所述网络设备,启用所述网络设备上各自的网管通道,以建立所述主用设备与所述第一设备之间的通信链路;其中,所述第一设备与所述主用设备异构,所述网管通道位于所述主用设备与所述第一设备之间;所述主用设备和所述第一设备,还用于通过所述通信链路进行数据同步;所述主用设备,还用于在完成数据同步后从所述网络设备中离线;所述第一设备,还用于在完成数据同步后将设备状态更改为主用设备状态,并与新插入所述网络设备的第二设备建立堆叠,其中,所述第一设备与所述第二设备同构。According to another embodiment of the present invention, a network device is provided, comprising: a master device, a first device, and a second device, wherein the master device and the first device are used 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 is heterogeneous with the master device, and the network management channel is located between the master device and the first device; the master device and the first device are also used to synchronize data through the communication link; the master device is also used to go offline from the network device after completing data synchronization; the first device is also used to change the device state to the master device state after completing data synchronization, and establish a stack with the second device newly inserted into the network device, wherein the first device is isomorphic with the second device.
根据本发明的又一个实施例,还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when executed.
根据本发明的又一个实施例,还提供了一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present invention, there is provided 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 execute the steps in any one of the above method embodiments.
通过本发明上述实施例,由于在异构设备更换过程中,会通过启用异构设备之间的网管通道建立通信链路来,以绕行通信的方式将主用设备的数据同步至与其异构的第一设备中,如此,能够保证在更换过程中业务流量不中断,从而实现了异构设备的平滑更换。因此,可以解决相关技术中当堆叠设备需要更换异构设备时,异构设备之间无法形成堆叠模式,从而无法保证业务流量不中断,不能实现异构设备平滑更换的问题,达到了避免异构设备更换时会导致业务中断的效果。Through the above-mentioned embodiment of the present invention, during the replacement process of heterogeneous devices, a communication link is established by enabling the network management channel between the heterogeneous devices, and the data of the main device is synchronized to the first device that is heterogeneous with it in a roundabout communication manner. In this way, it can be ensured that the service flow is not interrupted during the replacement process, thereby achieving smooth replacement of heterogeneous devices. Therefore, it can solve the problem in the related art that when the stacking device needs to replace the heterogeneous device, the heterogeneous devices cannot form a stacking mode, thereby failing to ensure that the service flow is not interrupted and the heterogeneous device cannot be smoothly replaced, and the effect of avoiding service interruption caused by the replacement of heterogeneous devices is achieved.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是相关技术中网络设备的示意图;FIG1 is a schematic diagram of a network device in the related art;
图2是本发明实施例的运行异构堆叠设备更换方法的网络设备的硬件结构框图;2 is a hardware structure block diagram of a network device running a heterogeneous stacking device replacement method according to an embodiment of the present invention;
图3是根据本发明实施例的运行异构堆叠设备更换方法的网络架构的示意图;3 is a schematic diagram of a network architecture for running a heterogeneous stacking device replacement method according to an embodiment of the present invention;
图4是根据本发明实施例的异构堆叠设备更换方法的流程图;4 is a flow chart of a method for replacing a heterogeneous stacking device according to an embodiment of the present invention;
图5是根据本发明实施例的网络设备的结构框图;5 is a structural block diagram of a network device according to an embodiment of the present invention;
图6是根据本发明实施例的实现异构堆叠设备更换方法的流程图;6 is a flow chart of a method for replacing a heterogeneous stacking device according to an embodiment of the present invention;
图7是根据本发明实施例的qx口通信的异构设备更换的流程图;7 is a flowchart of heterogeneous device replacement according to qx port communication according to an embodiment of the present invention;
图8是根据本发明实施例的数据同步失败时异构设备更换的流程图;8 is a flowchart of heterogeneous device replacement when data synchronization fails according to an embodiment of the present invention;
图9是根据本发明实施例的光口通信的异构设备更换的流程图;9 is a flowchart of heterogeneous device replacement according to an optical port communication embodiment of the present invention;
图10是根据本发明实施例的通过无线WIFI实现异构设备更换方法的网络设备的示意图;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 invention;
图11是根据本发明实施例的通过无线WIFI实现异构设备更换方法的流程图;11 is a flow chart of a method for replacing heterogeneous devices through wireless WIFI according to an embodiment of the present invention;
图12是根据本发明实施例的运行多个异构设备更换方法的网络设备的示意图;12 is a schematic diagram of a network device running a method for replacing multiple heterogeneous devices according to an embodiment of the present invention;
图13是根据本发明实施例的多个路由器异构设更换的流程图。FIG. 13 is a flowchart of replacing heterogeneous devices of multiple routers according to an embodiment of the present invention.
具体实施方式DETAILED DESCRIPTION
下文中将参考附图并结合实施例来详细说明本发明的实施例。Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
本申请实施例中所提供的方法实施例可以在网络设备、计算机终端或者类似的运算装置中执行。以运行在网络设备上为例,图2是本发明实施例的运行异构堆叠设备更换方法的网络设备的硬件结构框图。如图2所示,网络设备可以包括一个或多个(图2中仅示出一个)处理器202(处理器202可以包括但不限于微处理器(Central Processing Unit,MCU)或可编程逻辑器件(Field Programmable Gate Array,FPGA)等的处理装置)和用于存储数据的存储器204,其中,上述网络设备还可以包括用于通信功能的传输设备206以及输入输出设备208。本领域普通技术人员可以理解,图2所示的结构仅为示意,其并不对上述网络设备的结构造成限定。例如,网络设备还可包括比图2中所示更多或者更少的组件,或者具有与图2所示不同的配置。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, FIG. 2 is a hardware structure block diagram of a network device running a heterogeneous stacking device replacement method in an embodiment of the present invention. As shown in FIG. 2, the network device may include one or more (only one is shown in FIG. 2) processors 202 (the processor 202 may include but is not limited to a microprocessor (Central Processing Unit, MCU) or a programmable logic device (Field Programmable Gate Array, FPGA) and a processing 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 FIG. 2 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 FIG. 2, or have a configuration different from that shown in FIG. 2.
存储器204可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本发明实施例中的异构堆叠设备更换方法对应的计算机程序,处理器202通过运行存储在存储器204内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器204可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器204可进一步包括相对于处理器202远程设置的存储器,这些远程存储器可以通过网络连接至网络设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。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 invention. The processor 202 executes various functional applications and data processing by running the computer program stored in the memory 204, that is, to implement the above 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 arranged relative to the processor 202, and these remote memories may be connected to the 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.
传输装置206用于经由一个网络接收或者发送数据。上述的网络具体实例可包括网络设备的通信供应商提供的无线网络。在一个实例中,传输装置206包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置206可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。The transmission device 206 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the network device. In one example, the transmission device 206 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 206 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
本申请实施例可以运行于图3所示的网络架构上,如图3所示,该网络架构包括多个上述网络设备:主用设备、备用设备、外围设备,当主用设备与备用设备异构时,主用设备与备用设备之间无法建立堆叠进行通信,从而会导致业务中断,给用户造成不良体验和损失。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 bad experience and losses to users.
在本实施例中提供了一种运行于上述网络设备或网络架构的异构堆叠设备更换方法,图4是根据本发明实施例的异构堆叠设备更换方法的流程图,如图4所示,该流程包括如下步骤:In this embodiment, a method for replacing a heterogeneous stacking device running on the above network device or network architecture is provided. FIG. 4 is a flow chart of the method for replacing a heterogeneous stacking device according to an embodiment of the present invention. As shown in FIG. 4 , the process includes the following steps:
步骤S402,基于第一设备插入网络设备,启用所述网络设备上的主用设备和所述第一设备之间的网管通道,以建立所述主用设备与所述第一设备之间的通信链路;其中,所述第一设备与所述主用设备异构;Step S402, based on the first device being inserted into the network device, enabling the network management channel between the 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;
步骤S404,所述主用设备和所述第一设备通过所述通信链路进行数据同步,并在完成数据同步后,将所述主用设备从所述网络设备中离线,将所述第一设备的设备状态更改为主用设备状态;Step S404, 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;
步骤S406,在所述第一设备与新插入所述网络设备的第二设备之间建立堆叠,其中,所述第一设备与所述第二设备同构。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.
在本实施例的步骤S402中,建立所述主用设备与所述第一设备之间的通信链路,包括:In step S402 of this embodiment, 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.
在本实施例的步骤S402中,所述网络设备上的主用设备和所述第一设备进行端口参数设置,包括:In step S402 of this embodiment, the active device on the network device and the first device perform port parameter setting, including:
所述主用设备根据接收到的异构设备替换命令进行以下参数设置:将所述主用设备交换芯片的第一端口的生成树协议STP状态转换为转发状态;将所述主用设备交换芯片的第一端口和所述主用设备交换芯片的第二端口加入同一局域网中;将所述主用设备交换芯片的第一端口的数据传输速率设置为所述主用设备交换芯片的第一端口能达到的最大速率;所述第一设备根据接收到的报文进行以下参数设置:将所述第一设备的交换芯片的第一端口的STP状态转换为转发状态;将所述第一设备交换芯片的第一端口和所述第一设备的第二端口加入同一局域网中;将所述第一设备交换芯片的第一端口的数据传输速率设置为所述第一设备交换芯片的第一端口能达到的最大速率。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 switching chip to a forwarding state; adds the first port of the master device switching chip and the second port of the master device switching chip to the same local area network; sets the data transmission rate of the first port of the master device switching chip to the maximum rate that the first port of the master device 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 switching chip of the first device to a forwarding state; adds the first port of the first device 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 switching chip to the maximum rate that the first port of the first device switching chip can reach.
在本实施例中,所述网管通道包括以下之一:网口(qx口)、备用口、光级联口、无线WIFI模块。In this embodiment, the network management channel includes one of the following: a network port (qx port), a spare port, an optical cascade port, and a wireless WIFI module.
在本实施例中,在所述数据同步失败的情况下,所述方法还包括:所述主用设备保持设备状态为所述主用设备状态,并在所述主用设备的第一端口和所述第一设备的第一端口由关闭状态转换为开启状态后,重新进行数据同步。In this embodiment, when 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.
在一个示例性实施例中,数据同步失败包括以下之一情景:所述qx口上的网线松动、暂停进行所述第一设备的更换。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.
在一个示例性实施例中,在存在多个第一设备进行更换的情况下,所述方法还包括:所述多个第一设备进行逐个更换,直到所有所述第一设备更换完成。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.
在本实施例的步骤S402之前,所述方法还包括:关闭所述第一设备与交换设备上的外围设备之间相连的端口。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.
在本实施例的步骤S404之后,所述方法还包括:开启所述第一设备与交换设备上的外围设备之间相连的端口。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.
通过上述步骤,由于在异构设备更换过程中,会通过异构设备之间建立的通信链路来将主用设备的数据同步至与其异构的第一设备中,如此,能够保证在更换过程中业务流量不中断,从而实现了异构设备的平滑更换。因此,可以解决相关技术中当堆叠设备需要更换异构设备时,异构设备之间无法形成堆叠模式,从而无法保证业务流量不中断,不能实现异构设备平滑更换的问题,避免了异构设备更换时会导致业务中断的问题。Through the above steps, during the replacement of heterogeneous devices, the data of the main device will be synchronized to the first device that is heterogeneous with it through the communication link established between the heterogeneous devices, so that the service flow can be guaranteed not to be interrupted during the replacement process, thereby achieving smooth replacement of heterogeneous devices. Therefore, the problem in the related art that when the stacked device needs to replace the heterogeneous device, the heterogeneous devices cannot form a stacking mode, thereby failing to ensure that the service flow is not interrupted and the heterogeneous device cannot be smoothly replaced can be solved, and the problem of service interruption caused by the replacement of heterogeneous devices can be avoided.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如只读存储器/随机存取存储器(Read-Only Memory/Random Access Memory,ROM/RAM)、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。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 a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially 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 a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
在本实施例中还提供了一种异构堆叠设备更换装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a heterogeneous stacking device replacement device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and/or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
图5是根据本发明实施例的网络设备的结构框图,如图5所示,该装置包括:主用设备10、第一设备20、第二设备30和外围设备40。FIG5 is a structural block diagram of a network device according to an embodiment of the present invention. As shown in FIG5 , the device includes: a main device 10 , a first device 20 , a second device 30 and a peripheral device 40 .
所述主用设备10和所述第一设备20,用于基于所述第一设备插入到所述网络设备,启用所述网络设备上各自的网管通道,以建立所述主用设备与所述第一设备之间的通信链路;其中,所述第一设备与所述主用设备异构,所述网管通道位于所述主用设备与所述第一设备之间;The main device 10 and the first device 20 are used to enable the 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;
所述主用设备10和所述第一设备20,还用于通过所述通信链路进行数据同步;The main device 10 and the first device 20 are further used to perform data synchronization via the communication link;
所述主用设备10,还用于在完成数据同步后从所述网络设备中离线;The master device 10 is further used to go offline from the network device after completing data synchronization;
所述第一设备20,还用于在完成数据同步后将设备状态更改为主用设备10状态,并与新插入所述网络设备的第二设备30建立堆叠,其中,所述第一设备20与所述第二设备30同构。The first device 20 is further used 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.
外围设备40,用于在所述主用设备10和所述第一设备20进行的端口参数设置之前,关闭与第一设备20相连的端口以及在所述第一设备10将设备状态更改为主用设备状态之后,打开与所述第一设备20相连的端口。The peripheral device 40 is used to close the port connected to the first device 20 before the main device 10 and the first device 20 set the port parameters, and to open the port connected to the first device 20 after the first device 10 changes the device state to the main device state.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that the above modules can be implemented by 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.
为便于对本发明所提供的技术方案的理解,下面将结合具体场景的实施例进行详细的阐述。To facilitate the understanding of the technical solution provided by the present invention, a detailed description will be given below in conjunction with embodiments of specific scenarios.
本发明实施例提出了一种实现异构堆叠设备更换的方法和装置,可应用于多个异构设备更换过程。The embodiment of the present invention provides a method and apparatus for implementing heterogeneous stacking device replacement, which can be applied to a plurality of heterogeneous device replacement processes.
该更换方法包括:首先复用设备面板上的网管通道,该网管通道包括但不限于qx口(即网关接口)、standby口、光级联口、WIFI模块,分别用网线、光纤将两个设备的网管通道连接起来或者采用WIFI模块实现无线传输。其次对主用设备下发异构设备替换命令,通过设置对应端口vlan、stp、速率等参数打通链路,将原先的网管通道转化为主备通信链路,并将原先主备堆叠口的通信数据引流到新的通信链路中;主备异构设备之间发送数据流,该数据流先从各自设备的交换单元发送到面板上的网管通道,再转发到另一块设备面板上的网管通道,再到对应的交换单元,进而实现异构设备之间的通信。该方法克服了现有技术中异构设备替换过程中必须中断业务的问题。The replacement method includes: first, multiplexing the network management channel on the device panel, the network management channel 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, a heterogeneous device replacement command is issued to the main device, and the link is opened by setting the corresponding port vlan, stp, rate and other parameters, and the original network management channel is converted into a main and standby communication link, and the communication data of the original main and standby stacking ports is diverted to the new communication link; the data stream is sent between the main and standby heterogeneous devices, and the data stream is first sent from the switching unit of each device 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 unit, thereby realizing communication between heterogeneous devices. This method overcomes the problem that the service must be interrupted during the replacement of heterogeneous devices in the prior art.
下面是基于图3的网络架构,对上述实现异构堆叠设备更换的方法进行详细阐述,如图6所示,该方法包括如下流程:The following is a detailed description of the method for implementing heterogeneous stacking device replacement based on the network architecture of FIG3 . As shown in FIG6 , the method includes the following process:
步骤S601:拔掉图3中的原备用设备,此时主用设备与外围设备正常通信;Step S601: unplug the original standby device in FIG3 , and the main device and the peripheral device communicate normally at this time;
步骤S602:插入带有异构交换芯片的新备用设备,并启用新备用设备和主用设备间的网管通道,此时两个设备之间无法建立堆叠,也无法通信,新备用设备需要关闭与外围设备连接链路,防止外围设备识别出两个主用主控,影响业务;新备用设备在功能上相当于上述实施例中的第一设备。Step S602: insert a new standby device with a heterogeneous switching chip, and enable the network management channel between the new standby device and the main device. At this time, the two devices cannot establish a stack or communicate with each other. The new standby 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 standby device is functionally equivalent to the first device in the above embodiment.
步骤S603:给主用设备下发异构设备替换命令,如mix-mpu enable;Step S603: Send a heterogeneous device replacement command, such as mix-mpu enable, to the primary device;
步骤S604:主用设备设置交换芯片与网管通道相连的端口的stp状态为转发状态(forwarding);Step S604: the master device sets the STP state of the port connecting the switch chip and the network management channel to the forwarding state (forwarding);
步骤S605:主用设备设置交换芯片与网管通道相连的端口的vlan,将该端口与连接CPU的交换芯片的端口加入同一个vlan,数据进入交换芯片时带vlan转发,转发到指定端口,出交换芯片端口时再剥掉vlan;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, forwards the data with the VLAN when entering the switch chip, forwards it to the designated port, and strips the VLAN when leaving the switch chip port;
步骤S606:主用设备设置网管通道与交换芯片相连端口的速率为该端口所能达到的最大速率,以最大流量收发。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.
步骤S607:带有异构交换芯片的设备根据收到的主用设备发送的报文判断,如果对端是异构交换芯片则默认打开网管通道设置,与步骤S604-S606相同,实现两个设备间间接的通信。Step S607: The device with the heterogeneous switching chip determines based on the received message sent by the main device that if the other end is a heterogeneous switching chip, the network management channel setting is turned on by default, which is the same as steps S604-S606, to achieve indirect communication between the two devices.
步骤S608:两个设备通过新的主备通信链路进行数据同步;Step S608: The two devices synchronize data via the new primary and backup communication link;
具体流量转发路径为:主用设备的CPU发送同步数据流,该数据流转发到主用设备的交换单元、经过交换芯片转发到主用设备的网管口,再到对端设备(新备用设备)的网管口,到对端的交换单元,最后上送其CPU,实现主备之间数据同步;The specific traffic forwarding path is as follows: the CPU of the active device sends a synchronous data stream, which is forwarded to the switching unit of the active device, forwarded to the network management port of the active device through the switching chip, and then to the network management port of the opposite device (new standby device), to the switching unit of the opposite end, and finally sent to its CPU to achieve data synchronization between the active and standby devices;
步骤S609:当数据同步完成后,直接拔掉主用设备,此时新插入的设备则会快速备转主,变成主用设备;同时打开各个外围设备与主用设备的链路;Step S609: When data synchronization is completed, the main device is directly unplugged, and the newly inserted device will quickly switch to the main device and become the main device; at the same time, the links between each peripheral device and the main device are opened;
步骤S610:插入另外一块新的设备,两块设备为同构设备,新设备依旧走堆叠通信,整个系统恢复为正常状态。Step S610: insert another new device. The two devices are isomorphic devices. The new device still uses stacking communication, and the entire system returns to normal.
下面用具体场景下的实施例结合附图对本发明做进一步详细说明:The present invention is further described in detail below using embodiments in specific scenarios in conjunction with the accompanying drawings:
实施例1Example 1
路由器异构设备更换,利用设备面板上的qx口进行通信,如图3所示,假设设备1为主用设备,设备2为备用设备,设备1在功能上相当于上述实施例中的主用设备,qx口连接交换芯片的端口为端口a(图中未标出),具体地,如图7所示,异构设备的更换流程包括如下步骤:When replacing heterogeneous devices of a router, the qx port on the device panel is used for communication. As shown in FIG3 , it is assumed that device 1 is the main device and device 2 is the backup device. Device 1 is functionally equivalent to the main device in the above embodiment. The port of the qx port connected to the switching chip is port a (not shown in the figure). Specifically, as shown in FIG7 , the replacement process of heterogeneous devices includes the following steps:
步骤S701:拔掉设备2;Step S701: unplug device 2;
步骤S702:在设备2所在槽位插入异构交换芯片设备,命名为设备3,并用网线将设备1和设备3的qx口连起来,设备3默认关闭与外围设备相连端口;设备3在功能上相当于上述实施例中的第一设备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.
步骤S703:给设备1下发异构交换芯片升级命令mix-mpu enable;Step S703: Send a heterogeneous switch chip upgrade command mix-mpu enable to device 1;
步骤S704:设备1收到异构替换命令后,设置端口a的stp状态为forwarding;Step S704: after receiving the heterogeneous replacement command, device 1 sets the STP state of port a to forwarding;
步骤S705:设备1设置端口a的vlan,即将端口a与连接CPU的端口b加入同一个vlan,数据从端口b进入交换芯片时打上相应vlan,转发到端口a,出端口a后再剥掉vlan;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 then stripped of the VLAN after exiting port a.
步骤S706:设备1设置端口a速率,以最大流量收发;Step S706: Device 1 sets the rate of port a to send and receive at the maximum flow rate;
步骤S707:设备3与设备1通过qx口进行数据同步。具体数据流转发路径为:设备1的CPU发送所述同步数据流,该数据流进而进入设备1的交换单元,设备1的交换单元从端口b将该数据流转发到端口a,再到qx口,进而转发到设备3对应的qx口,再进入交换单元,设备3的交换单元将数据流转发到设备3的CPU,从而完成设备1的数据同步到设备3中;Step S707: Device 3 and device 1 perform data synchronization through the qx port. The specific data flow forwarding path is: the CPU of device 1 sends the synchronization data flow, and the data flow then enters the switching unit of device 1. The switching unit of device 1 forwards the data flow from port b to port a, and then to the qx port, and then forwards it to the qx port corresponding to device 3, and then enters the switching unit. The switching unit of device 3 forwards the data flow to the CPU of device 3, thereby completing the data synchronization of device 1 to device 3;
步骤S708:设备1与设备3数据同步完成后,拔掉设备1,此时设备3发现主设备1离线,并且自己为备设备,则将自己标识为主设备,并打开与外围设备的链路;Step S708: After the 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 a backup device, so it identifies itself as the master device and opens the link with the peripheral device;
步骤S709:原设备1处插入另外一块新设备,命名为设备4;设备3和设备4为同构设备,此时可以进行堆叠;设备4在功能上相当于上述实施例中的第二设备。Step S709: another new device is inserted in the place of the original device 1, named as device 4; device 3 and device 4 are isomorphic devices and can be stacked at this time; device 4 is functionally equivalent to the second device in the above embodiment.
通过上述步骤,在异构网络设备更换时保证业务流量不中断。Through the above steps, service traffic is guaranteed not to be interrupted when heterogeneous network devices are replaced.
实施例2Example 2
基于实施例1的正常异构设备更换的情况下,在出现异常情况的应用场景时,比如qx口的网线松动或者暂停异构设备更换,异构设备更换的流程如图8所示,还包括如下步骤:Based on the normal heterogeneous device replacement in Example 1, when an abnormal situation occurs, such as the network cable of the qx port is loose or the heterogeneous device replacement is suspended, the heterogeneous device replacement process is shown in FIG8, and further includes the following steps:
假设设备1为主用设备,设备3为异构备用设备,qx口连接交换芯片的端口为端口aAssume 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.
步骤S801:设备1和设备3正通过qx口进行数据同步;Step S801: Device 1 and device 3 are synchronizing data via the qx port;
步骤S802:qx口上的网线松动或者暂停异构设备3更换;Step S802: The network cable on the qx port is loose or the heterogeneous device 3 is suspended for replacement;
步骤S803:设备1和设备3均发现端口a的物理状态变成关闭状态(down),数据同步失败;Step S803: Device 1 and device 3 both find that the physical state of port a becomes down, and data synchronization fails;
具体地,设备3和设备1通过监控端口a的状态变化,发现端口状态由开启状态(up)转为down时,修改端口a的stp状态为阻塞(block)状态,并删除端口a的vlan,恢复端口的速率为原先端口的速率;Specifically, device 3 and device 1 monitor the state change of port a and find that the port state changes from up to down, then modify the stp state of port a to block, delete the vlan of port a, and restore the port rate to the original port rate;
步骤S804:同步失败后设备1保持主用设备状态,保证业务流量正常;此时再插入网线或者插入异构设备3,端口a由down转为up,设备1和设备3会将对应的设置配上,并重新开始数据同步;在本实施例中,重新开始数据同步是指,数据从头开始进行同步;Step S804: after the synchronization fails, device 1 remains in the master device state to ensure normal service traffic; at this time, a network cable is inserted or a heterogeneous device 3 is inserted, port a is changed from down to up, and device 1 and device 3 will match the corresponding settings and restart data synchronization; in this embodiment, restarting data synchronization means that data is synchronized from the beginning;
步骤S805:设备1与设备3数据同步完成后,拔掉设备1,此时设备3发现主设备1离线,并且自已为备用设备,则将自己标识为主设备,并打开与外围设备的链路通道;Step S805: After the data synchronization between device 1 and device 3 is completed, device 1 is unplugged. At this time, device 3 finds that the main device 1 is offline and it is a backup device, so it identifies itself as the main device and opens a link channel with the peripheral device;
步骤S806:原设备1处插入另外一块新设备,命名为设备4;设备3和设备4为同构设备,可以进行堆叠。Step S806: another new device is inserted in the place of the original device 1, named device 4; device 3 and device 4 are isomorphic devices and can be stacked.
通过上述步骤,在异构网络设备更换时保证业务流量不中断。Through the above steps, service traffic is guaranteed not to be interrupted when heterogeneous network devices are replaced.
实施例3Example 3
在进行路由器异构设备更换时,还可利用设备面板上的光口进行通信,如图3所示,假设设备1为主用设备,设备2为备用设备,光级联口连接交换芯片的端口为端口a(图中未标出)。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 main device and device 2 is the backup device. The port of the optical cascade port connected to the switching chip is port a (not marked in the figure).
图9是根据本发明实施例的光口通信的异构设备更换的流程图,如图9所示,该流程包括如下步骤FIG. 9 is a flow chart of heterogeneous device replacement for optical port communication according to an embodiment of the present invention. As shown in FIG. 9 , the flow includes the following steps:
步骤S901:拔掉设备2;Step S901: unplug device 2;
步骤S902:在设备2所在槽位插入异构交换芯片设备,命名为设备3,并用光模块和光纤将设备1和设备3的光口连接,设备3默认关闭与外围设备相连端口;Step S902: insert a heterogeneous switch chip device into the slot where device 2 is located, named device 3, and connect the optical ports of device 1 and device 3 with optical modules and optical fibers. By default, the port connected to the peripheral device is closed in device 3.
步骤S903:给设备1下发异构交换芯片升级命令mix-mpu enable;Step S903: Send a heterogeneous switch chip upgrade command mix-mpu enable to device 1;
步骤S904:设备1收到异构替换命令后,设置端口a的stp状态为forwarding;Step S904: after receiving the heterogeneous replacement command, device 1 sets the STP state of port a to forwarding;
步骤S905:设备1设置端口a的vlan,即将端口a与连接CPU的端口b加入同一个vlan,数据从端口b进入交换芯片时打上相应vlan,转发到端口a,出端口a后再剥掉vlan;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 then stripped of the VLAN after exiting port a.
步骤S906:设备1设置端口a速率,以最大流量收发;Step S906: Device 1 sets the rate of port a to send and receive at the maximum flow rate;
步骤S907:设备3与设备1通过光口进行数据同步。Step S907: Device 3 performs data synchronization with device 1 via the optical port.
步骤S908:设备1与设备3数据同步完成后,拔掉设备1,此时设备3发现主设备1离线,并且自己为备设备,则将自己标识为主设备,并打开与外围设备的链路;Step S908: After the 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 a backup device, so it identifies itself as the master device and opens the link with the peripheral device;
步骤S909:原设备1处插入另外一块新设备,命名为设备4;设备3和设备4为同构设备,此时可以进行堆叠;Step S909: another new device is inserted in the place of the original device 1, named device 4; device 3 and device 4 are isomorphic devices and can be stacked at this time;
通过上述步骤,在异构网络设备更换时保证业务流量不中断。Through the above steps, service traffic is guaranteed not to be interrupted when heterogeneous network devices are replaced.
实施例4Example 4
在进行路由器异构设备更换时,还可以通过无线WIFI实现与异构设备的数据流同步,如图10所示。具体地,基于无线WIFI(即图10中的无线模块)实现异构设备更换的流程,如图11所示,该流程包括如下步骤:When replacing a router heterogeneous device, data stream 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, and the process includes the following steps:
步骤S1101:拔掉设备2;Step S1101: unplug device 2;
步骤S1102:在设备2所在槽位插入异构交换芯片设备,命名为设备3,设备3默认关闭与外围设备相连端口;Step S1102: insert a heterogeneous switch chip device into the slot where device 2 is located, named device 3, and device 3 closes the port connected to the peripheral device by default;
步骤S1103:给设备1下发异构交换芯片升级命令mix-mpu enable;Step S1103: Send a heterogeneous switch chip upgrade command mix-mpu enable to device 1;
步骤S1104:设备1收到异构替换命令后,设置端口a的stp状态为forwarding;Step S1104: after receiving the heterogeneous replacement command, device 1 sets the stp state of port a to forwarding;
步骤S1105:设备1设置端口a的vlan,即将端口a与连接CPU的端口b加入同一个vlan,数据从端口b进入交换芯片时打上相应vlan,转发到端口a,出端口a后再剥掉vlan;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 then stripped of the VLAN after exiting port a;
步骤S1106:设备1设置端口a速率,以最大流量收发;Step S1106: Device 1 sets the rate of port a to send and receive at the maximum flow rate;
步骤S1107:打开设备1、设备3面板上的无线WIFI模块收发功能,使设备1与设备3互联互通,形成无线链路,数据出交换单元后经无线链路收发进行同步;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 be interconnected to form a wireless link. After the data leaves the switching unit, it is sent and received via the wireless link for synchronization;
步骤S1108:设备1与设备3数据同步完成后,拔掉设备1,此时设备3发现主设备1离线,并且自己为备设备,则将自己标识为主设备,并打开与外围设备的链路;Step S1108: After the 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 a backup device, so it identifies itself as the master device and opens the link with the peripheral device;
步骤S1109:原设备1处插入另外一块新设备,命名为设备4;设备3和设备4为同构设备,此时可以进行堆叠。Step S1109: another new device is inserted in the place of the original device 1, named device 4; device 3 and device 4 are isomorphic devices and can be stacked at this time.
通过上述步骤,在异构网络设备更换时保证业务流量不中断。Through the above steps, service traffic is guaranteed not to be interrupted when heterogeneous network devices are replaced.
实施例5Example 5
如图12所示,当存在多个路由器异构设备需更换时,可利用设备面板上的光口进行通信,假设原设备命名为设备1、设备2、设备3,更换后的现设备命名为设备11、设备12、设备13。具体地,基于光口通信进行的多个路由器异构设更换方法,如图13所示,该方法包括如下步骤:As shown in FIG12, when there are multiple heterogeneous router devices that need to be replaced, the 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 FIG13, and the method includes the following steps:
步骤S1301:拔掉设备2;Step S1301: unplug device 2;
步骤S1302:在设备2所在槽位插入异构交换芯片设备12,并用光模块和光纤将设备1和设备12的光口连接;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 device 1 and the device 12 with an optical module and an optical fiber;
步骤S1303:给设备1下发异构交换芯片升级命令mix-mpu enable;Step S1303: Send a heterogeneous switch chip upgrade command mix-mpu enable to device 1;
步骤S1304:设备1收到异构替换命令后,设置端口a的stp状态为forwarding;Step S1304: after receiving the heterogeneous replacement command, device 1 sets the STP state of port a to forwarding;
步骤S1305:设备1设置端口a的vlan,将端口a与连接CPU的端口b加入同一个vlan,数据从端口b进入交换芯片时打上相应vlan,转发到端口a,出端口a后再剥掉vlan;Step S1305: Device 1 sets the VLAN of port a, adds port a and port b connected to the CPU to the same VLAN, and adds the corresponding VLAN to the data when it enters the switch chip from port b, forwards it to port a, and then strips the VLAN after exiting port a;
步骤S1306:设备1设置端口a速率,以最大流量收发;Step S1306: Device 1 sets the rate of port a to send and receive at the maximum flow rate;
步骤S1307:设备12与设备1通过光纤进行数据同步。Step S1307: Device 12 and device 1 perform data synchronization via optical fiber.
步骤S1308:设备1与设备12数据同步完成后,拔掉设备3,插上设备13与设备1的光纤,同样进行上述同步步骤,直到所有异构设备更换完成;Step S1308: After the data synchronization between device 1 and device 12 is completed, unplug device 3, plug in the optical fiber between device 13 and device 1, and perform the above synchronization steps in the same way until all heterogeneous devices are replaced;
步骤S1309:在原设备1处插入另外一块新设备,命名为设备11;设备11、设备12和设备13为同构设备,此时可以进行堆叠。Step S1309: insert another new device at the original device 1, named device 11; device 11, device 12 and device 13 are homogeneous devices and can be stacked at this time.
通过上述步骤,在异构网络设备更换时保证业务流量不中断。Through the above steps, service traffic is guaranteed not to be interrupted when heterogeneous network devices are replaced.
本发明实施例的上述方法或装置可以应用在核心网、承载网、云市场的中心网络设备集群中。The above method or device of the embodiment of the present invention can be applied in the central network equipment cluster of the core network, bearer network, and cloud market.
通过本发明上述实施例,基于设备面板上的网管通道实现异构设备通信,解决了异构设备无法堆叠问题,且尽可能的减少对其他设备依赖,方便实施;保障设备替换过程中业务流量不中断,有效保证用户体验,减少设备商对单一芯片的依赖,扩大芯片选择范围。Through the above-mentioned embodiments of the present invention, 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 the dependence on other devices as much as possible, which is convenient for implementation; it ensures that business traffic is not interrupted during equipment replacement, effectively guarantees user experience, reduces equipment manufacturers' dependence on a single chip, and expands the range of chip selection.
本发明的实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
在一个示例性实施例中,上述计算机可读存储介质可以包括但不限于:u盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。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.
本发明的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
在一个示例性实施例中,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。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.
本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。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 herein.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.
Claims (14)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310259112.8A CN118631640A (en) | 2023-03-09 | 2023-03-09 | Heterogeneous stacking device replacement method and network device |
PCT/CN2023/143615 WO2024183432A1 (en) | 2023-03-09 | 2023-12-29 | Heterogeneous stack device replacement method and network device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310259112.8A CN118631640A (en) | 2023-03-09 | 2023-03-09 | Heterogeneous stacking device replacement method and network device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118631640A true CN118631640A (en) | 2024-09-10 |
Family
ID=92600299
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310259112.8A Pending CN118631640A (en) | 2023-03-09 | 2023-03-09 | Heterogeneous stacking device replacement method and network device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN118631640A (en) |
WO (1) | WO2024183432A1 (en) |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8964781B2 (en) * | 2008-11-05 | 2015-02-24 | Qualcomm Incorporated | Relays in a multihop heterogeneous UMTS wireless communication system |
CN103532853B (en) * | 2013-10-21 | 2016-11-09 | 杭州华三通信技术有限公司 | The implementation method of heterogeneous stacking model and device |
US11442825B2 (en) * | 2017-03-10 | 2022-09-13 | Pure Storage, Inc. | Establishing a synchronous replication relationship between two or more storage systems |
CN112954064A (en) * | 2021-02-24 | 2021-06-11 | 紫光云技术有限公司 | Method for realizing high-availability networking under cloud network |
CN115190003A (en) * | 2021-03-22 | 2022-10-14 | 中兴通讯股份有限公司 | Network equipment |
-
2023
- 2023-03-09 CN CN202310259112.8A patent/CN118631640A/en active Pending
- 2023-12-29 WO PCT/CN2023/143615 patent/WO2024183432A1/en unknown
Also Published As
Publication number | Publication date |
---|---|
WO2024183432A1 (en) | 2024-09-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101968744B (en) | Intelligent resilient framework (IRF) system-based method and system for upgrading box type equipment | |
US8402453B2 (en) | In-service software upgrade of control and line cards of network element | |
US9749186B2 (en) | Method and system for information interaction among systems in the same end in DRNI | |
WO2019101020A1 (en) | Multi-terminal collaborative working method, terminal device and multi-terminal collaborative system | |
US9465417B2 (en) | Cluster system, method and device for expanding cluster system | |
CN111343019B (en) | Reconnection method, reconnection device and storage medium | |
EP4095685A1 (en) | State machine processing method and apparatus, state processing method and apparatus, electronic device, and storage medium | |
CN113678406B (en) | Multi-fabric deployment and management platform | |
CN110391979B (en) | A network device stacking method, network device and storage medium | |
CN104243259B (en) | Collaboration method and system in distributed elastic network interconnection system | |
WO2018161794A1 (en) | Apparatus upgrade method and access apparatus | |
CN110895469A (en) | Upgrading method, device, electronic device and storage medium for dual-system hot standby system | |
WO2022062568A1 (en) | Switch configuration method and related device | |
US11095514B2 (en) | System and method for propagating anima network objective changes | |
CN109150709B (en) | Method, equipment and system for realizing Mux machine | |
CN118631640A (en) | Heterogeneous stacking device replacement method and network device | |
CN107733724B (en) | Configuration method and device of ring network and ring network | |
US20200389359A1 (en) | Unidirectional link detection mode auto-detection | |
CN108123897B (en) | Method and gateway for fusing SDN (software defined network) and NFV (network function virtualization) heterogeneous networks | |
CN117118991A (en) | ARP forwarding table synchronization method and system, storage medium and electronic device | |
CN116248581A (en) | A method and system for active/standby switching of gateway cluster in cloud scene based on SDN | |
CN114257600A (en) | Block chain network communication method, communication device and computer storage medium | |
CN108206786A (en) | Equipment stacking method for building up and device | |
CN115460125B (en) | Method and device for solving island problem in Multi-Link network | |
CN115664746A (en) | Authentication synchronization method, device, equipment and medium of stacking system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication |