[go: up one dir, main page]

CN115396385B - Method, device and computing equipment for quick service recovery of stacked switches - Google Patents

Method, device and computing equipment for quick service recovery of stacked switches Download PDF

Info

Publication number
CN115396385B
CN115396385B CN202110547840.XA CN202110547840A CN115396385B CN 115396385 B CN115396385 B CN 115396385B CN 202110547840 A CN202110547840 A CN 202110547840A CN 115396385 B CN115396385 B CN 115396385B
Authority
CN
China
Prior art keywords
switch
stack
stack switch
service
control module
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.)
Active
Application number
CN202110547840.XA
Other languages
Chinese (zh)
Other versions
CN115396385A (en
Inventor
单申佳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Group Zhejiang Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202110547840.XA priority Critical patent/CN115396385B/en
Publication of CN115396385A publication Critical patent/CN115396385A/en
Application granted granted Critical
Publication of CN115396385B publication Critical patent/CN115396385B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors
    • H04L49/557Error correction, e.g. fault recovery or fault tolerance

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明实施例涉及通信技术领域,公开了一种堆叠交换机快速恢复业务的方法、装置及计算设备,该方法包括:堆叠交换机分裂时,通过设置在所述堆叠交换机中的控制模块确定所述堆叠交换机的工作模式;通过所述控制模块根据所述堆叠交换机的工作模式获取所述堆叠交换机的业务受阻情况;根据所述业务受阻情况通过所述控制模块应用最优保护算法获取当前业务的最优解。通过上述方式,本发明实施例能够避免堆叠交换机分裂后自动打死备机业务端口导致业务全阻或者分裂后出现交换机双主、多主现象导致业务环路受阻的风险。

The embodiment of the present invention relates to the field of communication technologies, and discloses a method, device, and computing device for quickly restoring services of a stack switch. The method includes: when the stack switch splits, a control module disposed in the stack switch determines the working mode of the stack switch; the control module obtains the service blocking situation of the stack switch according to the working mode of the stack switch; and obtains an optimal solution of the current service by applying an optimal protection algorithm to the control module according to the service blocking situation. Through the above method, the embodiment of the present invention can avoid the risk that the service port of the standby machine is automatically killed after the stack switch is split, and the service loop is blocked due to the dual-master or multi-master phenomenon of the switch after the split.

Description

堆叠交换机快速恢复业务的方法、装置及计算设备Method, device and computing equipment for quick service recovery of stacked switches

技术领域technical field

本发明实施例涉及通信技术领域,具体涉及一种堆叠交换机快速恢复业务的方法、装置及计算设备。The embodiments of the present invention relate to the technical field of communication, and in particular to a method, device and computing equipment for quickly restoring services of a stack switch.

背景技术Background technique

互联网时代随着大带宽业务的飞速发展,通常采用堆叠交换机以满足大型网络对端口数量的要求。堆叠交换机是通过堆叠端口相连的以太网交换机组成的一个管理域,其中包括一个主交换机和若干个从交换机,主交换和从交换机都是堆叠交换机的堆叠成员。堆叠在一起的以太网交换机可看作为一个设备,用户可通过主交换机实现对堆叠交换机内所有交换机的管理。同时,一旦主交换机发生故障,堆叠系统会根据每台从交换机的优先级,重新选举出新的主设备,从而保证系统正在运行的业务不出现中断。With the rapid development of large-bandwidth services in the Internet era, stacked switches are usually used to meet the port quantity requirements of large-scale networks. A stack switch is a management domain composed of Ethernet switches connected through stack ports, including a master switch and several slave switches. Both the master switch and the slave switches are stack members of the stack switch. Stacked Ethernet switches can be regarded as a device, and users can manage all switches in the stacked switch through the main switch. At the same time, once the master switch fails, the stacking system will re-elect a new master device according to the priority of each slave switch, so as to ensure that the running services of the system will not be interrupted.

当从交换机离开/加入堆叠交换机的堆叠环时,会造成短时间的报文丢失,无法实现从交换机无缝离开/加入堆叠交换机。现有的解决方法均是在链路又恢复后,进行堆叠重组的恢复或者在分裂后通过软分离,对其他备机宣告分裂控制业务最小化的影响,而在发生堆叠线路和心跳线路中断时,往往伴随着传输设备或者线路的大规模故障,同时会发生交换机上联或者下联链路的批量中断,此时触发交换机堆叠分裂,会对业务产生完全中断或者部分业务出现环路风险。当前并无技术方法进行业务链路的自动判断和自动化控制来实现交换机堆叠分裂并伴随上联、下联链路批量中断的业务保护最优解。When the slave switch leaves/joins the stack ring of the stack switch, packets will be lost for a short time, and the slave switch cannot seamlessly leave/join the stack switch. The existing solutions are to restore the stack reorganization after the link is restored or to use soft separation after splitting to minimize the impact on other standby machines to declare split control services. When stacking lines and heartbeat lines are interrupted, it is often accompanied by large-scale failures of transmission equipment or lines. At the same time, batch interruptions of uplinks or downlinks of switches will occur. Triggering switch stack splits at this time will completely interrupt services or cause loop risks in some services. At present, there is no technical method for automatic judgment and automatic control of service links to realize the optimal solution for service protection in which switch stacks are split and the uplink and downlink links are interrupted in batches.

发明内容Contents of the invention

鉴于上述问题,本发明实施例提供了一种堆叠交换机快速恢复业务的方法、装置及计算设备,克服了上述问题或者至少部分地解决了上述问题。In view of the above problems, embodiments of the present invention provide a method, device, and computing device for quickly restoring services of a stack switch, which overcome the above problems or at least partially solve the above problems.

根据本发明实施例的一个方面,提供了一种堆叠交换机快速恢复业务的方法,所述方法包括:堆叠交换机分裂时,通过设置在所述堆叠交换机中的控制模块确定所述堆叠交换机的工作模式;通过所述控制模块根据所述堆叠交换机的工作模式获取所述堆叠交换机的业务受阻情况;根据所述业务受阻情况通过所述控制模块应用最优保护算法获取当前业务的最优解。According to an aspect of an embodiment of the present invention, a method for quickly restoring services of a stacked switch is provided, the method comprising: when the stacked switch splits, a control module disposed in the stacked switch determines the working mode of the stacked switch; the control module obtains a service blocking situation of the stacked switch according to the working mode of the stacked switch; according to the service blocked situation, the control module applies an optimal protection algorithm to obtain an optimal solution of the current service.

在一种可选的方式中,所述堆叠交换机分裂之前,包括:在堆叠交换机中设置控制模块,所述堆叠交换机至少包括一个主交换机和一个从交换机;在交换机形成堆叠前,对所述堆叠交换机的上联链路进行配置;通过所述控制模块根据上联端口、堆叠互联端口和心跳互联端口自动计算出所述堆叠交换机的下联链路的所有端口。In an optional manner, before the splitting of the stack switch, it includes: setting a control module in the stack switch, the stack switch including at least one master switch and one slave switch; before the switches form a stack, configure the uplink of the stack switch; automatically calculate all ports of the downlink of the stack switch according to the uplink port, the stack interconnection port and the heartbeat interconnection port through the control module.

在一种可选的方式中,所述通过设置在所述堆叠交换机中的控制模块确定所述堆叠交换机的工作模式,包括:通过所述控制模块根据所述堆叠交换机中堆叠线路和心跳线路的中断情况判断堆叠交换机分裂后所述堆叠交换机是多主模式还是主从模式。In an optional manner, the determining the working mode of the stack switch through the control module arranged in the stack switch includes: judging by the control module whether the stack switch is in multi-master mode or master-slave mode after the stack switch splits according to the interruption of the stack line and the heartbeat line in the stack switch.

在一种可选的方式中,所述通过所述控制模块根据所述堆叠交换机的工作模式读取所述堆叠交换机的业务受阻情况,包括:如果所述堆叠交换机为主从模式,则确定从交换机链路全部关闭后对业务的影响;如果所述堆叠交换机为多主模式,则确定所述堆叠交换机会发生业务链路丢包或环路。In an optional manner, the reading of the service blocking situation of the stack switch by the control module according to the working mode of the stack switch includes: if the stack switch is in the slave mode, determining the impact on services after all links of the slave switches are closed; if the stack switch is in the multi-master mode, determining that the stack switch will experience packet loss or loops on service links.

在一种可选的方式中,所述如果所述堆叠交换机为多主模式,则确定从交换机链路全部关闭后对业务的影响,包括:如果所述堆叠交换机为主从模式,则读取所述堆叠交换机中各交换机链路状态;根据各交换机链路状态判断从交换机链路全部关闭后是否影响业务。In an optional manner, if the stacked switch is in the multi-master mode, determining the impact on the business after all the links of the slave switches are closed includes: if the stacked switch is in the slave mode, reading the link status of each switch in the stacked switch; judging according to the link status of each switch whether the service is affected after the links of the slave switches are all closed.

在一种可选的方式中,所述根据所述业务受阻情况通过所述控制模块应用最优保护算法获取当前业务的最优解,包括:如果所述堆叠交换机分裂对业务产生影响,则通过所述控制模块主动介入端口处理,关闭会产生业务环路的链路和分裂后多主交换机业务分发时有上联无下联、有下联无上联的业务链路。In an optional manner, the obtaining the optimal solution of the current service by applying the optimal protection algorithm by the control module according to the service blocking situation includes: if the split of the stack switch affects the service, the control module actively intervenes in port processing, closes the link that will generate a service loop, and the service link of the multi-master switch after the split.

在一种可选的方式中,所述关闭会产生业务环路的链路和分裂后多主交换机业务分发时有上联无下联、有下联无上联的业务链路,包括:如果分裂后的交换机至上联链路存在多套设备,则关闭至上联设备的其余链路;如果分裂后的交换机至下联链路存在多套设备,则关闭至下联设备的其余链路。In an optional manner, the closing of the link that will generate a service loop and the business link with uplink but no downlink, and downlink but no uplink when the service distribution of the multi-master switch after the split includes: if there are multiple sets of equipment from the split switch to the uplink link, then closing the remaining links to the uplink equipment; if there are multiple sets of equipment from the split switch to the downlink link, then closing the remaining links to the downlink equipment.

根据本发明实施例的另一个方面,提供了一种堆叠交换机快速恢复业务的装置,所述装置包括:模式确定单元,用于堆叠交换机分裂时,通过设置在所述堆叠交换机中的控制模块确定所述堆叠交换机的工作模式;业务受阻确定单元,用于通过所述控制模块根据所述堆叠交换机的工作模式获取所述堆叠交换机的业务受阻情况;业务恢复单元,用于根据所述业务受阻情况通过所述控制模块应用最优保护算法获取当前业务的最优解。According to another aspect of an embodiment of the present invention, an apparatus for rapidly restoring services of a stack switch is provided, the apparatus comprising: a mode determination unit configured to determine the working mode of the stack switch through a control module disposed in the stack switch when the stack switch splits; a service interruption determination unit configured to obtain the service interruption situation of the stack switch according to the operation mode of the stack switch through the control module; and a service restoration unit to obtain an optimal solution of the current service by applying an optimal protection algorithm through the control module according to the service interruption situation.

根据本发明实施例的另一方面,提供了一种计算设备,包括:处理器、存储器、通信接口和通信总线,所述处理器、所述存储器和所述通信接口通过所述通信总线完成相互间的通信;According to another aspect of the embodiments of the present invention, a computing device is provided, including: a processor, a memory, a communication interface, and a communication bus, and the processor, the memory, and the communication interface complete mutual communication through the communication bus;

所述存储器用于存放至少一可执行指令,所述可执行指令使所述处理器执行上述堆叠交换机快速恢复业务的方法的步骤。The memory is used to store at least one executable instruction, and the executable instruction causes the processor to execute the steps of the method for quickly restoring services of the stack switch.

根据本发明实施例的又一方面,提供了一种计算机存储介质,所述存储介质中存储有至少一可执行指令,所述可执行指令使所述处理器执行上述堆叠交换机快速恢复业务的方法的步骤。According to still another aspect of the embodiments of the present invention, a computer storage medium is provided, and at least one executable instruction is stored in the storage medium, and the executable instruction causes the processor to execute the steps of the above-mentioned method for quickly restoring services of a stack switch.

本发明实施例通过堆叠交换机分裂时,通过设置在所述堆叠交换机中的控制模块确定所述堆叠交换机的工作模式;通过所述控制模块根据所述堆叠交换机的工作模式获取所述堆叠交换机的业务受阻情况;根据所述业务受阻情况通过所述控制模块应用最优保护算法获取当前业务的最优解,能够避免堆叠交换机分裂后自动打死备机业务端口导致业务全阻或者分裂后出现交换机双主、多主现象导致业务环路受阻的风险。In the embodiment of the present invention, when the stack switch is split, the control module installed in the stack switch determines the working mode of the stack switch; the control module obtains the service blocking situation of the stack switch according to the working mode of the stack switch; according to the service blocking situation, the optimal protection algorithm is applied by the control module to obtain the optimal solution of the current service, which can avoid the risk of full service blocking caused by the automatic killing of the service port of the standby machine after the stack switch is split, or the double-master and multi-master phenomenon of the switch after the split, resulting in blocked business loops.

上述说明仅是本发明实施例技术方案的概述,为了能够更清楚了解本发明实施例的技术手段,而可依照说明书的内容予以实施,并且为了让本发明实施例的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the embodiments of the present invention. In order to better understand the technical means of the embodiments of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the embodiments of the present invention more obvious and understandable, the specific implementation modes of the present invention are listed below.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same components. In the attached picture:

图1示出了本发明实施例提供的堆叠交换机快速恢复业务的方法的流程示意图;FIG. 1 shows a schematic flowchart of a method for quickly restoring services of a stack switch provided by an embodiment of the present invention;

图2示出了本发明实施例提供的堆叠交换机快速恢复业务的方法的堆叠交换机的典型拓扑示意图;Fig. 2 shows a typical topology diagram of a stacked switch according to a method for quickly restoring services of a stacked switch provided by an embodiment of the present invention;

图3示出了本发明实施例提供的堆叠交换机快速恢复业务的方法的分裂后处理示意图;FIG. 3 shows a schematic diagram of post-split processing of a method for quickly restoring services of a stack switch provided by an embodiment of the present invention;

图4示出了本发明实施例提供的堆叠交换机快速恢复业务的方法的场景1示意图;FIG. 4 shows a schematic diagram of Scenario 1 of a method for quickly restoring services of a stack switch provided by an embodiment of the present invention;

图5示出了本发明实施例提供的堆叠交换机快速恢复业务的方法的场景2示意图;FIG. 5 shows a schematic diagram of scenario 2 of a method for quickly restoring services of a stack switch provided by an embodiment of the present invention;

图6示出了本发明实施例提供的堆叠交换机快速恢复业务的方法的场景3示意图;FIG. 6 shows a schematic diagram of scenario 3 of a method for quickly restoring services of a stack switch provided by an embodiment of the present invention;

图7示出了本发明实施例提供的堆叠交换机快速恢复业务的装置的结构示意图;FIG. 7 shows a schematic structural diagram of a device for rapidly restoring services of a stack switch provided by an embodiment of the present invention;

图8示出了本发明实施例提供的计算设备的结构示意图。Fig. 8 shows a schematic structural diagram of a computing device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将参照附图更详细地描述本发明的示例性实施例。虽然附图中显示了本发明的示例性实施例,然而应当理解,可以以各种形式实现本发明而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本发明,并且能够将本发明的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

图1示出了本发明实施例提供的堆叠交换机快速恢复业务的方法的流程示意图。该堆叠交换机快速恢复业务的方法应用于服务器端,如图1所示,堆叠交换机快速恢复业务的方法包括:Fig. 1 shows a schematic flowchart of a method for quickly restoring services of a stack switch provided by an embodiment of the present invention. The method for rapidly restoring services of the stacked switch is applied to the server side. As shown in Figure 1, the method for quickly restoring services of the stacked switch includes:

步骤S11:堆叠交换机分裂时,通过设置在所述堆叠交换机中的控制模块确定所述堆叠交换机的工作模式。Step S11: When the stack switch splits, the working mode of the stack switch is determined through a control module provided in the stack switch.

堆叠交换机的典型拓扑如图2所示,交换机(switch,SW)至宽带远程接入服务器(Broadband Remote Access Server,BRAS)的链路为上联链路,中间链路为堆叠链路和心跳链路,SW至光线路终端(optical line terminal,OLT)的链路为下联链路。其中,上联链路的设备可以为其他路由器、交换机、BRAS等设备;下联链路的设备可以为交换机、服务器、OLT等设备,均不仅限于图示中的设备。A typical topology of a stacked switch is shown in Figure 2. The link from the switch (Switch, SW) to the Broadband Remote Access Server (BRAS) is an uplink link, the intermediate link is a stack link and a heartbeat link, and the link from the SW to an optical line terminal (OLT) is a downlink link. Wherein, the devices on the uplink may be other routers, switches, BRAS and other devices; the devices on the downlink may be switches, servers, OLT and other devices, which are not limited to the devices shown in the figure.

在本发明实施例中,在步骤S11之前,在堆叠交换机中设置控制模块,所述堆叠交换机至少包括一个主交换机和一个从交换机。在交换机形成堆叠前,对所述堆叠交换机的上联链路进行配置,如此控制模块可以主动对堆叠交换机中的上联链路进行标记。通过所述控制模块根据上联端口、堆叠互联端口和心跳互联端口自动计算出所述堆叠交换机的下联链路的所有端口。堆叠线路及心跳线路因为是堆叠初始化中已有的配置,控制模块只需读取其对应的堆叠链路和心跳链路即可,剩余所有的存活端口通过控制模块自动计算其为下联链路。具体地,控制模块可以根据上联端口具体的配置读取并解析出端口类别,进而根据解析出的端口,自动计算出该堆叠交换机的下联链路所有端口。控制模块具体为堆叠交换机底层实现对应功能的一个软件操作系统。In the embodiment of the present invention, before step S11, a control module is set in a stack switch, and the stack switch includes at least one master switch and one slave switch. Before the switches form a stack, configure the uplinks of the stacked switches, so that the control module can actively mark the uplinks in the stacked switches. All ports of the downlinks of the stack switch are automatically calculated by the control module according to the uplink ports, the stack interconnection ports and the heartbeat interconnection ports. Because stack lines and heartbeat lines are already configured during stack initialization, the control module only needs to read the corresponding stack links and heartbeat links, and all remaining surviving ports are automatically calculated as downlinks by the control module. Specifically, the control module can read and analyze the port category according to the specific configuration of the uplink port, and then automatically calculate all the downlink ports of the stack switch according to the analyzed ports. The control module is specifically a software operating system that implements corresponding functions at the bottom layer of the stack switch.

在步骤S11中,堆叠交换机出现堆叠线路和/或心跳线路中断而发生堆叠分裂时,通过所述控制模块根据所述堆叠交换机中堆叠线路和心跳线路的中断情况判断堆叠交换机分裂后所述堆叠交换机是多主模式还是主从模式。In step S11, when the stacking switch has a stacking line and/or heartbeat line interruption and a stacking split occurs, the control module judges whether the stacking switch is in multi-master mode or master-slave mode after the stacking switch is split according to the interruption of the stacking line and the heartbeat line in the stacking switch.

步骤S12:通过所述控制模块根据所述堆叠交换机的工作模式获取所述堆叠交换机的业务受阻情况。Step S12: Obtain the service blocking situation of the stack switch according to the working mode of the stack switch through the control module.

在本发明实施例中,如果所述堆叠交换机为多主模式,则确定所述堆叠交换机会发生业务链路丢包或环路,通过控制模块主动介入对堆叠交换机端口的控制。如果所述堆叠交换机为主从模式,则确定从交换机链路全部关闭后对业务的影响。如果所述堆叠交换机为主从模式,则读取所述堆叠交换机中各交换机链路状态;根据各交换机链路状态判断从交换机链路全部关闭后是否影响业务。In the embodiment of the present invention, if the stack switch is in the multi-master mode, it is determined that the stack switch will experience packet loss or loop on the service link, and the control module actively intervenes to control the ports of the stack switch. If the stack switch is in the master-slave mode, determine the impact on services after all the links of the slave switches are shut down. If the stack switch is in master-slave mode, read the link status of each switch in the stack switch; judge whether the service is affected after all the links of the slave switches are closed according to the link status of each switch.

步骤S13:根据所述业务受阻情况通过所述控制模块应用最优保护算法获取当前业务的最优解。Step S13: Obtain an optimal solution for the current service by applying an optimal protection algorithm through the control module according to the blocked service.

在本发明实施例中,具体地,如果所述堆叠交换机分裂对业务产生影响,则通过所述控制模块主动介入端口处理,关闭会产生业务环路的链路和分裂后多主交换机业务分发时有上联无下联、有下联无上联的业务链路。具体地,如果分裂后的交换机至上联链路存在多套设备,则关闭至上联设备的其余链路,使其保持其中任一个上联设备至交换机只有一组链路存在,可以避免业务环路。如果分裂后的交换机至下联链路存在多套设备,则关闭至下联设备的其余链路,使其保持其中任一个下联设备至交换机只有一组链路存在,避免业务转发的丢包。In the embodiment of the present invention, specifically, if the split of the stack switch affects services, the control module actively intervenes in port processing to close links that will generate service loops and service links that have uplinks but no downlinks, and downlinks but no uplinks when the service distribution of the multi-master switch after splitting occurs. Specifically, if there are multiple sets of devices from the split switch to the uplink, the rest of the links to the uplink are closed so that only one set of links exists from any uplink device to the switch, which can avoid service loops. If there are multiple sets of equipment from the split switch to the downlink link, close the remaining links to the downlink equipment so that only one set of links from any downlink equipment to the switch exists to avoid packet loss in service forwarding.

如判断分裂后的主交换机上联链路、下联链路均有正常链路时,则控制模块不介入具体的控制处理,按原有的模式,对从交换机的业务端口进行全部主动关闭。If it is judged that both the uplink and downlink of the split master switch have normal links, the control module does not intervene in specific control processing, and actively shuts down all the service ports of the slave switch according to the original mode.

本发明实施例主要通过在堆叠交换机中增加一个控制模块,实时收集堆叠交换机的上联链路和下联链路状态,当堆叠交换机发生分裂后,根据原先整机设置的上联、下联链路,自动判断上联、下联链路的状态,通过控制模块的业务最优保护算法求得当前业务保护的最优解,主动介入控制分裂后堆叠交换机的上联、下联端口,从而避免因为堆叠交换机的机制对业务产生完全中断或者部分业务出现环路风险,如此解决了堆叠交换机分裂后自动打死备机业务端口导致业务全阻或者分裂后出现交换机双主、多主现象导致业务环路受阻的问题。The embodiment of the present invention mainly adds a control module to the stack switch to collect the status of the uplink and downlink of the stack switch in real time. When the stack switch splits, the status of the uplink and downlink is automatically judged according to the original uplink and downlink links set by the whole machine, and the optimal solution of the current service protection is obtained through the business optimization protection algorithm of the control module, and the uplink and downlink ports of the split stack switch are actively intervened to avoid the complete interruption of the service due to the mechanism of the stack switch or the loop risk of some services. After the split of the stack switch, the service port of the standby machine is automatically killed, resulting in full service blocking, or the dual-master and multi-master phenomena of the switch after the split, resulting in the blocking of the service loop.

在堆叠交换机分裂后,通过控制模块对堆叠交换机链路状态的自动判断并进行端口处理的完整过程如图3所示,包括:After the stack switch is split, the complete process of automatically judging the link status of the stack switch and performing port processing by the control module is shown in Figure 3, including:

步骤201:堆叠交换机出现堆叠线路和心跳线路中断而发生堆叠分裂。Step 201: A stack split occurs when a stack line and a heartbeat line of the stack switch are interrupted.

堆叠交换机分裂可以是堆叠线路或心跳线路中断,也可以是堆叠线路和心跳线路同时中断造成的。The split of a stack switch can be caused by the interruption of the stack line or the heartbeat line, or the interruption of both the stack line and the heartbeat line.

步骤202:控制模块介入判断分裂后是否主从模式。如果是,则执行步骤204;如果否,则执行步骤203。Step 202: The control module intervenes to determine whether the split is in master-slave mode. If yes, go to step 204; if not, go to step 203.

具体地,控制模块根据堆叠线路和心跳线路的中断情况,主动介入判断分裂后是多主还是主从模式。例如,如果堆叠交换机出现堆叠线路中断,心跳线路未断,则堆叠交换机仍工作在主从模式。如果堆叠交换机出现堆叠线路和心跳线路同时中断,则堆叠交换机工作在多主模式。Specifically, the control module actively intervenes to determine whether the division is in a multi-master or master-slave mode according to the interruption of the stacking line and the heartbeat line. For example, if the stacking switch is disconnected but the heartbeat line is not broken, the stacking switch still works in the master-slave mode. If the stacking switch and the heartbeat line are interrupted at the same time, the stacking switch works in multi-active mode.

步骤203:控制模块判断多主交换机会发生业务链路丢包或环路,进行主动介入控制。Step 203: the control module judges that the multi-master switch will have packet loss or loop in the service link, and performs active intervention control.

如果堆叠交换机分裂后工作在多主模式,说明堆叠交换机的业务必然会受阻,则通过控制模块主动介入控制。If the stack switch works in the multi-master mode after splitting, it means that the services of the stack switch will inevitably be blocked, and the control module will take the initiative to intervene in the control.

步骤204:控制模块对交换机链路状态进行读取。Step 204: the control module reads the link state of the switch.

如果堆叠交换机分裂后工作在主从模式,堆叠交换机的机制会将从交换机的业务端口全部主动关闭,如此需要通过控制模块读取交换机链路状态,方便后续根据交换机链路状态进行进一步的处理。If the stack switch works in the master-slave mode after splitting, the mechanism of the stack switch will actively shut down all the service ports of the slave switch, so it is necessary to read the link status of the switch through the control module, so as to facilitate further processing according to the link status of the switch.

步骤205:根据当前全局链路状态判断从交换机链路全部关闭后是否影响业务。如果是,则跳转至执行步骤207;如果否,则执行步骤206。Step 205: According to the current global link state, it is judged whether the service is affected after all links of the slave switch are shut down. If yes, go to step 207; if not, go to step 206.

步骤206:控制模块不介入具体的控制处理。Step 206: The control module does not intervene in specific control processing.

根据读取的全局链路状态判断堆叠交换机不会影响业务,不需要通过控制模块介入具体的控制处理,直接主动将从交换机链路全部关闭即可。According to the read global link status, it is judged that the stacked switch will not affect the business, and there is no need to intervene in specific control processing through the control module, and it is sufficient to directly and actively shut down all the links of the slave switch.

步骤207:控制模块介入具体的端口处理。Step 207: The control module intervenes in specific port processing.

堆叠交换机分裂后当前的分裂模式或者因为链路状态原因,会对业务产生影响,通过控制模块介入具体的端口处理。After the split of the stack switch, the current split mode or the link status will affect the service, and the control module will intervene in specific port processing.

步骤208:当分裂后的交换机至上联链路存在多套设备时,关闭至上联设备的其余链路,使其保持其中一个上联设备至交换机只有一组链路存在。Step 208: When there are multiple sets of uplinks from the split switch to the uplink device, shut down the rest of the uplinks to the uplink device so that only one set of links from one uplink device to the switch exists.

步骤209:当分裂后的交换机至下联链路存在多套设备时,关闭至下联设备的其余链路,使其保持其中一个下联设备至交换机只有一组链路存在。Step 209: When there are multiple sets of equipment on the downlink link from the split switch, shut down the remaining links to the downlink equipment so that only one set of links from one downlink equipment to the switch exists.

当堆叠交换机出现批量的链路中断而发生堆叠分裂时,控制模块就介入进行上联、下联链路状态的读取,并通过控制模块中的业务最优保护算法求得当前业务保护的最优解,通过关闭会产生业务环路的链路和分裂后多主交换机业务分发时有上联无下联、有下联无上联的业务链路,只要分裂后的主从交换机至下联链路、上联链路还有链路存活,即可实现业务无感知的自动恢复,完全无需人工的介入控制进行故障的抢修。通过应用本发明实施例的实施,一方面解决了堆叠交换机分裂后自动打死备机业务端口导致业务全阻或者分裂后出现交换机双主、多主现象导致业务环路受阻的问题,另一方面在发生故障时,无需人工介入控制,避免了因为业务拓扑的错误判断从而关闭端口导致的业务全阻风险,同时增强了堆叠交换机的业务自愈能力。When a batch of link interruptions occurs in the stack switch and a stack split occurs, the control module intervenes to read the status of the uplink and downlink links, and obtains the optimal solution for the current service protection through the business optimal protection algorithm in the control module. By closing the links that will generate service loops and the multi-master switches after the split, there are uplinks but no downlinks, downlinks and no uplinks. As long as the split master-slave switch survives to the downlink, uplink, and link, it can realize automatic business recovery without manual intervention control at all. rush repair. By applying the implementation of the embodiment of the present invention, on the one hand, it solves the problem that the service port of the standby machine is automatically killed after the stacking switch is split, or the problem of the service loop being blocked due to the dual-master and multi-master phenomenon of the switch after the split is formed;

以下通过实际发生的场景由控制模块对实际的业务判断进而对端口进行控制的实例分析:The following is an example analysis of how the control module judges the actual business and then controls the port through the actual scene:

实施例场景1:Example Scenario 1:

如图4所示,当堆叠交换机SW01中间的堆叠线路全部中断,而心跳线路仍然存活时,目前堆叠交换机的机制会将从交换机SW01(2)的业务端口全部主动关闭。而此时下联设备OLT01到主交换机SW01(1)的链路是中断的,至从交换机SW01(2)的链路正常,但因为堆叠机制从交换机SW01(2)下的所有业务链路均主动关闭,导致下联设备OLT01发生中断,所挂业务全部受阻。As shown in Figure 4, when all the stacking lines in the middle of the stacking switch SW01 are interrupted, but the heartbeat line is still alive, the current mechanism of the stacking switch will actively shut down all the service ports of the secondary switch SW01(2). At this time, the link from the downlink device OLT01 to the master switch SW01(1) is interrupted, and the link to the slave switch SW01(2) is normal. However, due to the stacking mechanism, all service links under the slave switch SW01(2) are actively shut down, causing the downlink device OLT01 to be interrupted, and all connected services are blocked.

在堆叠交换机SW01中的控制模块介入后,会在堆叠交换机分裂为主从交换机之前,主动进行链路判断,因为存在下联设备到从交换机的链路中断,故而判断按原先的分裂机制会导致下联设备OLT01下挂的业务全阻,因此控制模块会将其心跳链路先主动关闭,使原来的主交换机SW01(1)和从交换机SW01(2)成为双主模式,而非原先的主从模式,即如图5中的拓扑。此时上联设备针对原先堆叠交换机SW01中的链路捆绑会因交换机分裂后MAC地址改变,而将至MAC地址大的那套交换机的链路汇聚控制协议(Link Aggregation ControlProtocol,LACP)主动更改状态为unselected,即原先的多路捆绑中,只有至MAC小的交换机的链路存活,其他链路不会再做业务数据转发处理。但如OLT-N至SW01的链路均正常,而经过其中一路上联设备无法进行转发,因此会有一半的业务无法进行正常响应而受阻。因此通过控制模块根据自身的最优业务保全算法会在上联链路中,主动关闭上联设备BRAS01至交换机SW01(1)的链路和上联设备BRAS02至交换机SW01(2)的链路,从而避免由上联设备BRAS进行选择MAC地址小的交换机链路保活而导致业务的受阻。After the control module in the stacked switch SW01 intervenes, it will actively perform link judgment before the stacked switch splits into a master-slave switch. Because there is an interruption of the link from the downlink device to the slave switch, it is judged that the original split mechanism will cause all services connected to the downlink device OLT01 to be blocked. Therefore, the control module will actively shut down its heartbeat link first, so that the original master switch SW01(1) and slave switch SW01(2) become dual-master mode instead of the original master-slave mode, which is the topology in Figure 5. At this time, the uplink device will change the link aggregation control protocol (Link Aggregation Control Protocol, LACP) status of the switch with the larger MAC address to unselected due to the change of the MAC address after the split of the switch for the link bundling of the original stack switch SW01. However, if the links from OLT-N to SW01 are normal, but the uplink equipment passing through one of them cannot forward, so half of the services will not be able to respond normally and be blocked. Therefore, the control module will actively close the link from the uplink device BRAS01 to the switch SW01(1) and the link from the uplink device BRAS02 to the switch SW01(2) in the uplink according to its own optimal service preservation algorithm, so as to avoid service interruption caused by the uplink device BRAS selecting the switch link with a small MAC address to keep alive.

实施例场景2:Example Scenario 2:

如图5所示,当堆叠交换机SW01中间的堆叠线路全部中断,而心跳线路也中断时,目前堆叠交换机的机制会将交换机SW01(1)和交换机SW01(2)同时升级了主交换机。此时下联设备OLT01到主交换机SW01(1)的链路是中断的,至从交换机SW01(2)的链路正常,但因为堆叠机制从交换机SW01(2)下的所有业务链路均主动关闭,导致OLT01发生中断,所挂业务全部受阻。此时上联设备针对原先堆叠交换机SW01的链路捆绑会因堆叠交换机分裂后MAC地址改变,而将至MAC地址大的那套交换机的链路LACP协议主动更改状态为unselected,即原先的多路捆绑中,只有至MAC小的交换机的链路存活,其他链路不会再做业务数据转发处理。而图5中的下联设备OLT01、OLT02链路至交换机SW01(1)和交换机SW01(2)各中断了一路,且交换机SW01的上联链路关闭了至MAC地址小的交换机,因此下联设备OLT01和OLT02中有一套业务全阻,而经过其中一路上联设备无法进行转发,因此会有一半的业务无法进行正常响应而受阻。As shown in Figure 5, when all the stacking lines in the middle of the stacking switch SW01 are interrupted, and the heartbeat line is also interrupted, the current stacking switch mechanism will simultaneously upgrade the switch SW01(1) and switch SW01(2) to the main switch. At this time, the link from the downlink device OLT01 to the master switch SW01(1) is interrupted, and the link to the slave switch SW01(2) is normal. However, due to the stacking mechanism, all service links under the slave switch SW01(2) are actively shut down, which causes OLT01 to be interrupted, and all connected services are blocked. At this time, the link bundling of the uplink device for the original stack switch SW01 will change the MAC address after the stack switch is split, and the LACP protocol of the link to the switch with the larger MAC address will actively change the status to unselected. In Figure 5, the links from the downlink devices OLT01 and OLT02 to the switch SW01(1) and the switch SW01(2) are interrupted, and the uplink link of the switch SW01 to the switch with a small MAC address is closed. Therefore, a set of services in the downlink devices OLT01 and OLT02 are completely blocked, and the uplink device cannot forward through one of them, so half of the services cannot respond normally and are blocked.

在堆叠交换机SW01中的控制模块介入后,会在堆叠交换机分裂为双主交换机之前,通过控制模块根据自身的最优业务保全算法会在上联链路中,主动关闭上联设备BRAS01至交换机SW01(1)的链路和上联设备BRAS02至交换机SW01(2)的链路,从而避免由BRAS进行选择MAC地址小的交换机链路保活而导致业务的受阻。After the control module in the stack switch SW01 intervenes, before the stack switch splits into a dual-master switch, the control module will actively shut down the link from the uplink device BRAS01 to the switch SW01(1) and the link from the uplink device BRAS02 to the switch SW01(2) in the uplink according to its own optimal service preservation algorithm before the stack switch splits into a dual-master switch, so as to prevent the BRAS from selecting the switch link with a small MAC address to keep alive and causing service interruption.

实施例场景3:Example Scenario 3:

如图6所示,当堆叠交换机SW01中间的堆叠线路全部中断,心跳线路也中断时,目前堆叠交换机的机制会将交换机SW01(1)和交换机SW01(2)同时升级了主交换机。交换机SW01(1)和交换机SW01(2)的上联链路和下联链路均有部分链路中断,上联设备BRAS01因其只有至交换机SW01(2)的链路存活,上联设备BRAS02因其只有至交换机SW01(1)的链路存活,因此无需控制模块进行相应的端口操作。但上联设备BRAS-N至交换机SW01(1)和交换机SW01(2)的链路均正常,由其进行选择的话,会导致OLT-N部分业务丢包和环路的风险。As shown in Figure 6, when all the stacking lines in the middle of the stacking switch SW01 are interrupted, and the heartbeat line is also interrupted, the current mechanism of the stacking switch upgrades the switch SW01(1) and the switch SW01(2) to the main switch at the same time. Some of the uplinks and downlinks of switch SW01(1) and switch SW01(2) are interrupted. The uplink device BRAS01 has only the link to the switch SW01(2) alive, and the uplink device BRAS02 has only the link to the switch SW01(1). Therefore, there is no need for the control module to perform corresponding port operations. However, the links from the uplink device BRAS-N to the switch SW01(1) and the switch SW01(2) are normal. If it is selected by it, it will lead to the risk of packet loss and loop of some services of OLT-N.

在堆叠交换机SW01中的控制模块介入后,主动关闭BRAS-N至SWO1(1)的链路和BRAS-N至SW01(2)的链路之间延时较大的链路,从而避免BRAS至SW再至OLT之间产生业务环路或者无法有效转发导致的业务受阻。After the control module in the stack switch SW01 intervenes, it actively shuts down the link from BRAS-N to SWO1(1) and the link with longer delay between the link from BRAS-N to SW01(2), so as to avoid service loops between BRAS and SW and then to OLT or service interruption caused by inability to effectively forward.

本发明实施例通过堆叠交换机分裂时,通过设置在所述堆叠交换机中的控制模块确定所述堆叠交换机的工作模式;通过所述控制模块根据所述堆叠交换机的工作模式获取所述堆叠交换机的业务受阻情况;根据所述业务受阻情况通过所述控制模块应用最优保护算法获取当前业务的最优解,能够避免堆叠交换机分裂后自动打死备机业务端口导致业务全阻或者分裂后出现交换机双主、多主现象导致业务环路受阻的风险。In the embodiment of the present invention, when the stack switch is split, the control module installed in the stack switch determines the working mode of the stack switch; the control module obtains the service blocking situation of the stack switch according to the working mode of the stack switch; according to the service blocking situation, the optimal protection algorithm is applied by the control module to obtain the optimal solution of the current service, which can avoid the risk of full service blocking caused by the automatic killing of the service port of the standby machine after the stack switch is split, or the double-master and multi-master phenomenon of the switch after the split, resulting in blocked business loops.

图7示出了本发明实施例的堆叠交换机快速恢复业务的装置的结构示意图。如图7所示,该堆叠交换机快速恢复业务的装置包括:模式确定单元701、业务受阻确定单元702、业务恢复单元703以及设置单元704。其中:FIG. 7 shows a schematic structural diagram of an apparatus for rapidly restoring services of a stacked switch according to an embodiment of the present invention. As shown in FIG. 7 , the apparatus for quickly restoring services of a stack switch includes: a mode determining unit 701 , a service blocking determining unit 702 , a service restoring unit 703 and a setting unit 704 . in:

模式确定单元701用于堆叠交换机分裂时,通过设置在所述堆叠交换机中的控制模块确定所述堆叠交换机的工作模式;业务受阻确定单元702用于通过所述控制模块根据所述堆叠交换机的工作模式获取所述堆叠交换机的业务受阻情况;业务恢复单元703用于根据所述业务受阻情况通过所述控制模块应用最优保护算法获取当前业务的最优解。The mode determining unit 701 is used to determine the working mode of the stacking switch through the control module provided in the stacking switch when the stacking switch is split; the service blocking determination unit 702 is used to obtain the service blocking situation of the stacking switch according to the working mode of the stacking switch through the control module; the service recovery unit 703 is used to obtain the optimal solution of the current service by applying the optimal protection algorithm through the control module according to the service blocking situation.

在一种可选的方式中,设置单元704用于:在堆叠交换机中设置控制模块,所述堆叠交换机至少包括一个主交换机和一个从交换机;在交换机形成堆叠前,对所述堆叠交换机的上联链路进行配置;通过所述控制模块根据上联端口、堆叠互联端口和心跳互联端口自动计算出所述堆叠交换机的下联链路的所有端口。In an optional manner, the setting unit 704 is configured to: set a control module in the stack switch, the stack switch includes at least one master switch and one slave switch; before the switches form a stack, configure the uplink of the stack switch; through the control module, automatically calculate all ports of the downlink of the stack switch according to the uplink port, the stack interconnection port and the heartbeat interconnection port.

在一种可选的方式中,模式确定单元701用于:通过所述控制模块根据所述堆叠交换机中堆叠线路和心跳线路的中断情况判断堆叠交换机分裂后所述堆叠交换机是多主模式还是主从模式。In an optional manner, the mode determination unit 701 is configured to: use the control module to determine whether the stack switch is in multi-master mode or master-slave mode after the stack switch splits according to interruption of stack lines and heartbeat lines in the stack switch.

在一种可选的方式中,业务受阻确定单元702用于:如果所述堆叠交换机为主从模式,则确定从交换机链路全部关闭后对业务的影响;如果所述堆叠交换机为多主模式,则确定所述堆叠交换机会发生业务链路丢包或环路。In an optional manner, the service blocking determination unit 702 is configured to: if the stack switch is in the master-slave mode, determine the impact on services after all links of the slave switch are closed; if the stack switch is in the multi-master mode, determine that the stack switch will experience packet loss or loops on service links.

在一种可选的方式中,业务受阻确定单元702用于:如果所述堆叠交换机为主从模式,则读取所述堆叠交换机中各交换机链路状态;根据各交换机链路状态判断从交换机链路全部关闭后是否影响业务。In an optional manner, the service blocking determination unit 702 is configured to: if the stack switch is in master-slave mode, read the link status of each switch in the stack switch; judge according to the link status of each switch whether the service is affected after all the links of the slave switches are shut down.

在一种可选的方式中,业务恢复单元703用于:如果所述堆叠交换机分裂对业务产生影响,则通过所述控制模块主动介入端口处理,关闭会产生业务环路的链路和分裂后多主交换机业务分发时有上联无下联、有下联无上联的业务链路。In an optional manner, the service recovery unit 703 is configured to: if the split of the stack switch affects the service, the control module actively intervenes in port processing to close the link that will generate a service loop and the service link of the multi-master switch after the split.

在一种可选的方式中,业务恢复单元703用于:如果分裂后的交换机至上联链路存在多套设备,则关闭至上联设备的其余链路;如果分裂后的交换机至下联链路存在多套设备,则关闭至下联设备的其余链路。In an optional manner, the service recovery unit 703 is configured to: if there are multiple sets of devices from the split switch to the uplink, shut down the rest of the links to the uplink; if there are multiple sets of equipment from the split switch to the downlink, shut down the rest of the links to the downlink.

本发明实施例通过堆叠交换机分裂时,通过设置在所述堆叠交换机中的控制模块确定所述堆叠交换机的工作模式;通过所述控制模块根据所述堆叠交换机的工作模式获取所述堆叠交换机的业务受阻情况;根据所述业务受阻情况通过所述控制模块应用最优保护算法获取当前业务的最优解,能够避免堆叠交换机分裂后自动打死备机业务端口导致业务全阻或者分裂后出现交换机双主、多主现象导致业务环路受阻的风险。In the embodiment of the present invention, when the stack switch is split, the control module installed in the stack switch determines the working mode of the stack switch; the control module obtains the service blocking situation of the stack switch according to the working mode of the stack switch; according to the service blocking situation, the optimal protection algorithm is applied by the control module to obtain the optimal solution of the current service, which can avoid the risk of full service blocking caused by the automatic killing of the service port of the standby machine after the stack switch is split, or the double-master and multi-master phenomenon of the switch after the split, resulting in blocked business loops.

本发明实施例提供了一种非易失性计算机存储介质,所述计算机存储介质存储有至少一可执行指令,该计算机可执行指令可执行上述任意方法实施例中的堆叠交换机快速恢复业务的方法。An embodiment of the present invention provides a non-volatile computer storage medium, where at least one executable instruction is stored in the computer storage medium, and the computer executable instruction can execute the method for quickly restoring services of a stack switch in any of the above method embodiments.

可执行指令具体可以用于使得处理器执行以下操作:Specifically, the executable instruction can be used to make the processor perform the following operations:

堆叠交换机分裂时,通过设置在所述堆叠交换机中的控制模块确定所述堆叠交换机的工作模式;When the stack switch splits, the operation mode of the stack switch is determined by a control module arranged in the stack switch;

通过所述控制模块根据所述堆叠交换机的工作模式获取所述堆叠交换机的业务受阻情况;Obtaining the service blocking situation of the stack switch according to the working mode of the stack switch through the control module;

根据所述业务受阻情况通过所述控制模块应用最优保护算法获取当前业务的最优解。According to the blocked situation of the service, the optimal solution of the current service is obtained by applying the optimal protection algorithm through the control module.

在一种可选的方式中,所述可执行指令使所述处理器执行以下操作:In an optional manner, the executable instructions cause the processor to perform the following operations:

在堆叠交换机中设置控制模块,所述堆叠交换机至少包括一个主交换机和一个从交换机;A control module is set in a stack switch, and the stack switch includes at least one master switch and one slave switch;

在交换机形成堆叠前,对所述堆叠交换机的上联链路进行配置;Before the switches form a stack, configure the uplink of the stack switches;

通过所述控制模块根据上联端口、堆叠互联端口和心跳互联端口自动计算出所述堆叠交换机的下联链路的所有端口。All ports of the downlinks of the stack switch are automatically calculated by the control module according to the uplink ports, the stack interconnection ports and the heartbeat interconnection ports.

在一种可选的方式中,所述可执行指令使所述处理器执行以下操作:In an optional manner, the executable instructions cause the processor to perform the following operations:

通过所述控制模块根据所述堆叠交换机中堆叠线路和心跳线路的中断情况判断堆叠交换机分裂后所述堆叠交换机是多主模式还是主从模式。The control module judges whether the stack switch is in a multi-master mode or a master-slave mode after the stack switch splits according to the interruption of the stack line and the heartbeat line in the stack switch.

在一种可选的方式中,所述可执行指令使所述处理器执行以下操作:In an optional manner, the executable instructions cause the processor to perform the following operations:

如果所述堆叠交换机为主从模式,则确定从交换机链路全部关闭后对业务的影响;If the stack switch is in the master-slave mode, then determine the impact on the business after all links of the slave switch are closed;

如果所述堆叠交换机为多主模式,则确定所述堆叠交换机会发生业务链路丢包或环路。If the stack switch is in the multi-master mode, it is determined that a service link packet loss or a loop will occur in the stack switch.

在一种可选的方式中,所述可执行指令使所述处理器执行以下操作:In an optional manner, the executable instructions cause the processor to perform the following operations:

如果所述堆叠交换机为主从模式,则读取所述堆叠交换机中各交换机链路状态;If the stack switch is in master-slave mode, read the link status of each switch in the stack switch;

根据各交换机链路状态判断从交换机链路全部关闭后是否影响业务。According to the link status of each switch, it is judged whether the service is affected after all the links of the secondary switches are shut down.

在一种可选的方式中,所述可执行指令使所述处理器执行以下操作:In an optional manner, the executable instructions cause the processor to perform the following operations:

如果所述堆叠交换机分裂对业务产生影响,则通过所述控制模块主动介入端口处理,关闭会产生业务环路的链路和分裂后多主交换机业务分发时有上联无下联、有下联无上联的业务链路。If the split of the stack switch affects services, the control module actively intervenes in port processing to close the links that will generate service loops and service links with uplinks but no downlinks and downlinks but no uplinks when the multi-master switch distributes services after splitting.

在一种可选的方式中,所述可执行指令使所述处理器执行以下操作:In an optional manner, the executable instructions cause the processor to perform the following operations:

如果分裂后的交换机至上联链路存在多套设备,则关闭至上联设备的其余链路;If there are multiple sets of equipment from the split switch to the uplink, shut down the remaining links to the uplink;

如果分裂后的交换机至下联链路存在多套设备,则关闭至下联设备的其余链路。If there are multiple sets of equipment from the split switch to the downlink, shut down the rest of the links to the downlink.

本发明实施例通过堆叠交换机分裂时,通过设置在所述堆叠交换机中的控制模块确定所述堆叠交换机的工作模式;通过所述控制模块根据所述堆叠交换机的工作模式获取所述堆叠交换机的业务受阻情况;根据所述业务受阻情况通过所述控制模块应用最优保护算法获取当前业务的最优解,能够避免堆叠交换机分裂后自动打死备机业务端口导致业务全阻或者分裂后出现交换机双主、多主现象导致业务环路受阻的风险。In the embodiment of the present invention, when the stack switch is split, the control module installed in the stack switch determines the working mode of the stack switch; the control module obtains the service blocking situation of the stack switch according to the working mode of the stack switch; according to the service blocking situation, the optimal protection algorithm is applied by the control module to obtain the optimal solution of the current service, which can avoid the risk of full service blocking caused by the automatic killing of the service port of the standby machine after the stack switch is split, or the double-master and multi-master phenomenon of the switch after the split, resulting in blocked business loops.

本发明实施例提供了一种计算机程序产品,所述计算机程序产品包括存储在计算机存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任意方法实施例中的堆叠交换机快速恢复业务的方法。An embodiment of the present invention provides a computer program product, the computer program product includes a computer program stored on a computer storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer, the computer is made to execute the method for quickly restoring services of a stack switch in any of the above method embodiments.

可执行指令具体可以用于使得处理器执行以下操作:Specifically, the executable instruction can be used to make the processor perform the following operations:

堆叠交换机分裂时,通过设置在所述堆叠交换机中的控制模块确定所述堆叠交换机的工作模式;When the stack switch splits, the operation mode of the stack switch is determined by a control module arranged in the stack switch;

通过所述控制模块根据所述堆叠交换机的工作模式获取所述堆叠交换机的业务受阻情况;Obtaining the service blocking situation of the stack switch according to the working mode of the stack switch through the control module;

根据所述业务受阻情况通过所述控制模块应用最优保护算法获取当前业务的最优解。According to the blocked situation of the service, the optimal solution of the current service is obtained by applying the optimal protection algorithm through the control module.

在一种可选的方式中,所述可执行指令使所述处理器执行以下操作:In an optional manner, the executable instructions cause the processor to perform the following operations:

在堆叠交换机中设置控制模块,所述堆叠交换机至少包括一个主交换机和一个从交换机;A control module is set in a stack switch, and the stack switch includes at least one master switch and one slave switch;

在交换机形成堆叠前,对所述堆叠交换机的上联链路进行配置;Before the switches form a stack, configure the uplink of the stack switches;

通过所述控制模块根据上联端口、堆叠互联端口和心跳互联端口自动计算出所述堆叠交换机的下联链路的所有端口。All ports of the downlinks of the stack switch are automatically calculated by the control module according to the uplink ports, the stack interconnection ports and the heartbeat interconnection ports.

在一种可选的方式中,所述可执行指令使所述处理器执行以下操作:In an optional manner, the executable instructions cause the processor to perform the following operations:

通过所述控制模块根据所述堆叠交换机中堆叠线路和心跳线路的中断情况判断堆叠交换机分裂后所述堆叠交换机是多主模式还是主从模式。The control module judges whether the stack switch is in a multi-master mode or a master-slave mode after the stack switch splits according to the interruption of the stack line and the heartbeat line in the stack switch.

在一种可选的方式中,所述可执行指令使所述处理器执行以下操作:In an optional manner, the executable instructions cause the processor to perform the following operations:

如果所述堆叠交换机为主从模式,则确定从交换机链路全部关闭后对业务的影响;If the stack switch is in the master-slave mode, then determine the impact on the business after all links of the slave switch are closed;

如果所述堆叠交换机为多主模式,则确定所述堆叠交换机会发生业务链路丢包或环路。If the stack switch is in the multi-master mode, it is determined that a service link packet loss or a loop will occur in the stack switch.

在一种可选的方式中,所述可执行指令使所述处理器执行以下操作:In an optional manner, the executable instructions cause the processor to perform the following operations:

如果所述堆叠交换机为主从模式,则读取所述堆叠交换机中各交换机链路状态;If the stack switch is in master-slave mode, read the link status of each switch in the stack switch;

根据各交换机链路状态判断从交换机链路全部关闭后是否影响业务。According to the link status of each switch, it is judged whether the service is affected after all the links of the secondary switches are shut down.

在一种可选的方式中,所述可执行指令使所述处理器执行以下操作:In an optional manner, the executable instructions cause the processor to perform the following operations:

如果所述堆叠交换机分裂对业务产生影响,则通过所述控制模块主动介入端口处理,关闭会产生业务环路的链路和分裂后多主交换机业务分发时有上联无下联、有下联无上联的业务链路。If the split of the stack switch affects services, the control module actively intervenes in port processing to close the links that will generate service loops and service links with uplinks but no downlinks and downlinks but no uplinks when the multi-master switch distributes services after splitting.

在一种可选的方式中,所述可执行指令使所述处理器执行以下操作:In an optional manner, the executable instructions cause the processor to perform the following operations:

如果分裂后的交换机至上联链路存在多套设备,则关闭至上联设备的其余链路;If there are multiple sets of equipment from the split switch to the uplink, shut down the remaining links to the uplink;

如果分裂后的交换机至下联链路存在多套设备,则关闭至下联设备的其余链路。If there are multiple sets of equipment from the split switch to the downlink, shut down the rest of the links to the downlink.

本发明实施例通过堆叠交换机分裂时,通过设置在所述堆叠交换机中的控制模块确定所述堆叠交换机的工作模式;通过所述控制模块根据所述堆叠交换机的工作模式获取所述堆叠交换机的业务受阻情况;根据所述业务受阻情况通过所述控制模块应用最优保护算法获取当前业务的最优解,能够避免堆叠交换机分裂后自动打死备机业务端口导致业务全阻或者分裂后出现交换机双主、多主现象导致业务环路受阻的风险。In the embodiment of the present invention, when the stack switch is split, the control module installed in the stack switch determines the working mode of the stack switch; the control module obtains the service blocking situation of the stack switch according to the working mode of the stack switch; according to the service blocking situation, the optimal protection algorithm is applied by the control module to obtain the optimal solution of the current service, which can avoid the risk of full service blocking caused by the automatic killing of the service port of the standby machine after the stack switch is split, or the double-master and multi-master phenomenon of the switch after the split, resulting in blocked business loops.

图8示出了本发明实施例提供的计算设备的结构示意图,本发明具体实施例并不对设备的具体实现做限定。FIG. 8 shows a schematic structural diagram of a computing device provided by an embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the device.

如图8所示,该计算设备可以包括:处理器(processor)802、通信接口(Communications Interface)804、存储器(memory)806、以及通信总线808。As shown in FIG. 8 , the computing device may include: a processor (processor) 802 , a communication interface (Communications Interface) 804 , a memory (memory) 806 , and a communication bus 808 .

其中:处理器802、通信接口804、以及存储器806通过通信总线808完成相互间的通信。通信接口804,用于与其它设备比如客户端或其它服务器等的网元通信。处理器802,用于执行程序810,具体可以执行上述堆叠交换机快速恢复业务的方法实施例中的相关步骤。Wherein: the processor 802 , the communication interface 804 , and the memory 806 communicate with each other through the communication bus 808 . The communication interface 804 is used to communicate with network elements of other devices such as clients or other servers. The processor 802 is configured to execute the program 810, specifically, may execute relevant steps in the above embodiment of the method for quickly restoring services of the stack switch.

具体地,程序810可以包括程序代码,该程序代码包括计算机操作指令。Specifically, the program 810 may include program codes including computer operation instructions.

处理器802可能是中央处理器CPU,或者是特定集成电路ASIC(ApplicationSpecific Integrated Circuit),或者是被配置成实施本发明实施例的一个或各个集成电路。设备包括的一个或各个处理器,可以是同一类型的处理器,如一个或各个CPU;也可以是不同类型的处理器,如一个或各个CPU以及一个或各个ASIC。The processor 802 may be a central processing unit CPU, or an ASIC (Application Specific Integrated Circuit), or one or each integrated circuit configured to implement the embodiments of the present invention. The one or each processor included in the device may be of the same type, such as one or each CPU, or may be of different types, such as one or each CPU and one or each ASIC.

存储器806,用于存放程序810。存储器806可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。The memory 806 is used to store the program 810 . The memory 806 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

程序810具体可以用于使得处理器802执行以下操作:The program 810 can specifically be used to make the processor 802 perform the following operations:

堆叠交换机分裂时,通过设置在所述堆叠交换机中的控制模块确定所述堆叠交换机的工作模式;When the stack switch splits, the operation mode of the stack switch is determined by a control module arranged in the stack switch;

通过所述控制模块根据所述堆叠交换机的工作模式获取所述堆叠交换机的业务受阻情况;Obtaining the service blocking situation of the stack switch according to the working mode of the stack switch through the control module;

根据所述业务受阻情况通过所述控制模块应用最优保护算法获取当前业务的最优解。According to the blocked situation of the service, the optimal solution of the current service is obtained by applying the optimal protection algorithm through the control module.

在一种可选的方式中,所述程序810使所述处理器执行以下操作:In an optional manner, the program 810 enables the processor to perform the following operations:

在堆叠交换机中设置控制模块,所述堆叠交换机至少包括一个主交换机和一个从交换机;A control module is set in a stack switch, and the stack switch includes at least one master switch and one slave switch;

在交换机形成堆叠前,对所述堆叠交换机的上联链路进行配置;Before the switches form a stack, configure the uplink of the stack switches;

通过所述控制模块根据上联端口、堆叠互联端口和心跳互联端口自动计算出所述堆叠交换机的下联链路的所有端口。All ports of the downlinks of the stack switch are automatically calculated by the control module according to the uplink ports, the stack interconnection ports and the heartbeat interconnection ports.

在一种可选的方式中,所述程序810使所述处理器执行以下操作:In an optional manner, the program 810 enables the processor to perform the following operations:

通过所述控制模块根据所述堆叠交换机中堆叠线路和心跳线路的中断情况判断堆叠交换机分裂后所述堆叠交换机是多主模式还是主从模式。The control module judges whether the stack switch is in a multi-master mode or a master-slave mode after the stack switch splits according to the interruption of the stack line and the heartbeat line in the stack switch.

在一种可选的方式中,所述程序810使所述处理器执行以下操作:In an optional manner, the program 810 enables the processor to perform the following operations:

如果所述堆叠交换机为主从模式,则确定从交换机链路全部关闭后对业务的影响;If the stack switch is in the master-slave mode, then determine the impact on the business after all links of the slave switch are closed;

如果所述堆叠交换机为多主模式,则确定所述堆叠交换机会发生业务链路丢包或环路。If the stack switch is in the multi-master mode, it is determined that a service link packet loss or a loop will occur in the stack switch.

在一种可选的方式中,所述程序810使所述处理器执行以下操作:In an optional manner, the program 810 enables the processor to perform the following operations:

如果所述堆叠交换机为主从模式,则读取所述堆叠交换机中各交换机链路状态;If the stack switch is in master-slave mode, read the link status of each switch in the stack switch;

根据各交换机链路状态判断从交换机链路全部关闭后是否影响业务。According to the link status of each switch, it is judged whether the service is affected after all the links of the secondary switches are shut down.

在一种可选的方式中,所述程序810使所述处理器执行以下操作:In an optional manner, the program 810 enables the processor to perform the following operations:

如果所述堆叠交换机分裂对业务产生影响,则通过所述控制模块主动介入端口处理,关闭会产生业务环路的链路和分裂后多主交换机业务分发时有上联无下联、有下联无上联的业务链路。If the split of the stack switch affects services, the control module actively intervenes in port processing to close the links that will generate service loops and service links with uplinks but no downlinks and downlinks but no uplinks when the multi-master switch distributes services after splitting.

在一种可选的方式中,所述程序810使所述处理器执行以下操作:In an optional manner, the program 810 enables the processor to perform the following operations:

如果分裂后的交换机至上联链路存在多套设备,则关闭至上联设备的其余链路;If there are multiple sets of equipment from the split switch to the uplink, shut down the remaining links to the uplink;

如果分裂后的交换机至下联链路存在多套设备,则关闭至下联设备的其余链路。If there are multiple sets of equipment from the split switch to the downlink, shut down the rest of the links to the downlink.

本发明实施例通过堆叠交换机分裂时,通过设置在所述堆叠交换机中的控制模块确定所述堆叠交换机的工作模式;通过所述控制模块根据所述堆叠交换机的工作模式获取所述堆叠交换机的业务受阻情况;根据所述业务受阻情况通过所述控制模块应用最优保护算法获取当前业务的最优解,能够避免堆叠交换机分裂后自动打死备机业务端口导致业务全阻或者分裂后出现交换机双主、多主现象导致业务环路受阻的风险。In the embodiment of the present invention, when the stack switch is split, the control module installed in the stack switch determines the working mode of the stack switch; the control module obtains the service blocking situation of the stack switch according to the working mode of the stack switch; according to the service blocking situation, the optimal protection algorithm is applied by the control module to obtain the optimal solution of the current service, which can avoid the risk of full service blocking caused by the automatic killing of the service port of the standby machine after the stack switch is split, or the double-master and multi-master phenomenon of the switch after the split, resulting in blocked business loops.

在此提供的算法或显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明实施例也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, embodiments of the present invention are not directed to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.

类似地,应当理解,为了精简本发明并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明实施例的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。Similarly, it should be understood that in the above description of exemplary embodiments of the invention, in order to streamline the present invention and to facilitate understanding of one or more of the various inventive aspects, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim.

本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and all procedures or elements of any method or apparatus so disclosed may be combined in any combination, unless at least some of such features and/or procedures or elements are mutually exclusive. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。上述实施例中的步骤,除有特殊说明外,不应理解为对执行顺序的限定。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be construed as limiting the execution order.

Claims (8)

1. A method for quickly restoring traffic to a stack switch, the method comprising:
when a stack switch is split, determining an operation mode of the stack switch through a control module arranged in the stack switch comprises the following steps: judging whether the stack switch is in a multi-master mode or a master-slave mode after the stack switch is split according to the interruption condition of the stack circuit and the heartbeat circuit in the stack switch; if the stack switch has a stack line interruption and the heartbeat line is not broken, the stack switch still works in a master-slave mode; if the stack switch is interrupted by both the stack line and the heartbeat line, the stack switch operates in a multi-master mode;
acquiring the service blocking condition of the stack switch according to the working mode of the stack switch through the control module;
according to the service blocking condition, an optimal solution of the current service is obtained by applying an optimal protection algorithm through the control module, and the method comprises the following steps: if the split stack switch has influence on the service, the control module actively intervenes in port processing to close the link which can generate a service loop and the service link with upper connection or lower connection or upper connection when the split multi-main switch service is distributed.
2. The method of claim 1, wherein prior to splitting the stack switch, comprising:
providing a control module in a stack switch, the stack switch comprising at least one master switch and one slave switch;
configuring uplink of a stack switch before the switch forms a stack;
and automatically calculating all ports of the downlink of the stack switch according to the uplink port, the stack interconnection port and the heartbeat interconnection port by the control module.
3. The method according to claim 1, wherein said reading, by said control module, a traffic blocking condition of said stack switch according to an operation mode of said stack switch, comprises:
if the stack switch is in a master-slave mode, determining the influence on the service after all the links of the slave switch are closed;
if the stack switch is in the multi-master mode, determining that the stack switch has a service link packet loss or loop.
4. A method according to claim 3, wherein determining the effect on traffic after all slave switch links are closed if the stack switch is in multi-master mode comprises:
If the stack switch is in a master-slave mode, reading the link state of each switch in the stack switch;
judging whether the business is influenced after all the slave switch links are closed according to the link states of all the switches.
5. The method of claim 1, wherein said closing the link that would result in the traffic loop and the traffic link with or without the downlinks and with or without the uplinks at the time of post-split multi-master switch traffic distribution comprises:
if multiple sets of equipment exist in the split switch to the uplink equipment, closing the rest links of the uplink equipment;
if there are multiple sets of devices in the split switch-to-downstream link, the remaining links to the downstream devices are closed.
6. An apparatus for fast restoration of traffic for a stack switch, the apparatus comprising:
a mode determining unit for determining an operation mode of a stack switch through a control module provided in the stack switch when the stack switch splits, comprising: judging whether the stack switch is in a multi-master mode or a master-slave mode after the stack switch is split according to the interruption condition of the stack circuit and the heartbeat circuit in the stack switch; if the stack switch has a stack line interruption and the heartbeat line is not broken, the stack switch still works in a master-slave mode; if the stack switch is interrupted by both the stack line and the heartbeat line, the stack switch operates in a multi-master mode;
The service blocking determining unit is used for acquiring the service blocking condition of the stack switch according to the working mode of the stack switch through the control module;
the service recovery unit is configured to obtain an optimal solution of a current service by applying an optimal protection algorithm through the control module according to the service blocking condition, and includes: if the split stack switch has influence on the service, the control module actively intervenes in port processing to close the link which can generate a service loop and the service link with upper connection or lower connection or upper connection when the split multi-main switch service is distributed.
7. A computing device, comprising: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to perform the steps of the method for fast restoration of traffic for a stack switch according to any one of claims 1-5.
8. A computer storage medium having stored therein at least one executable instruction for causing a processor to perform the steps of the method for fast restoration of traffic for a stack switch according to any one of claims 1-5.
CN202110547840.XA 2021-05-19 2021-05-19 Method, device and computing equipment for quick service recovery of stacked switches Active CN115396385B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110547840.XA CN115396385B (en) 2021-05-19 2021-05-19 Method, device and computing equipment for quick service recovery of stacked switches

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110547840.XA CN115396385B (en) 2021-05-19 2021-05-19 Method, device and computing equipment for quick service recovery of stacked switches

Publications (2)

Publication Number Publication Date
CN115396385A CN115396385A (en) 2022-11-25
CN115396385B true CN115396385B (en) 2023-07-21

Family

ID=84114232

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110547840.XA Active CN115396385B (en) 2021-05-19 2021-05-19 Method, device and computing equipment for quick service recovery of stacked switches

Country Status (1)

Country Link
CN (1) CN115396385B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0404159D0 (en) * 2004-02-25 2004-03-31 3Com Corp Cascade control system for network units
TW200735579A (en) * 2006-03-14 2007-09-16 Netronix Inc Method of controlling switchboard with high degree of network security
CN101309185A (en) * 2008-07-16 2008-11-19 杭州华三通信技术有限公司 Processing method of multi-active devices and stack member devices in stacking system
CN101335716A (en) * 2008-07-25 2008-12-31 华为技术有限公司 Method and apparatus for separation and recombination of stacked switch
CN101605102A (en) * 2009-07-16 2009-12-16 杭州华三通信技术有限公司 Load sharing method during a kind of IRF piles up and device
CN102255751A (en) * 2011-06-30 2011-11-23 杭州华三通信技术有限公司 Stacking conflict resolution method and equipment
CN102263678A (en) * 2011-08-26 2011-11-30 杭州华三通信技术有限公司 Method and device for predicting stack division
CN103457766A (en) * 2013-08-23 2013-12-18 福建星网锐捷网络有限公司 Method and device for managing equipment in stacking split
CN104394017A (en) * 2014-11-26 2015-03-04 迈普通信技术股份有限公司 Stacking system electing method and main device
CN106921527A (en) * 2017-04-27 2017-07-04 新华三技术有限公司 The processing method and processing device of stacking conflict
US9807051B1 (en) * 2015-06-23 2017-10-31 Cisco Technology, Inc. Systems and methods for detecting and resolving split-controller or split-stack conditions in port-extended networks
CN109286514A (en) * 2017-07-20 2019-01-29 中兴通讯股份有限公司 A kind of stacking system keepalive method and stacking system
CN111224803A (en) * 2018-11-23 2020-06-02 中兴通讯股份有限公司 Multi-master detection method in stacking system and stacking system
CN112217658A (en) * 2019-07-11 2021-01-12 华为技术有限公司 Stacking and splitting processing method and device
CN112787960A (en) * 2020-11-30 2021-05-11 北京东土军悦科技有限公司 Stack splitting processing method, device and equipment and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7505403B2 (en) * 2004-10-28 2009-03-17 Alcatel Lucent Stack manager protocol with automatic set up mechanism
EP2122942B1 (en) * 2007-03-01 2017-08-30 Extreme Networks, Inc. Software control plane for switches and routers
US8243729B2 (en) * 2010-07-01 2012-08-14 Force10 Networks, Inc. Multiple chassis stacking using front end ports
US9671841B2 (en) * 2014-05-12 2017-06-06 Dell Products L.P. System and method for temperature management of information handling systems
US10361948B2 (en) * 2017-03-02 2019-07-23 Dell Products, L.P. Communication loop prevention in an information handling system
US11310097B2 (en) * 2019-01-24 2022-04-19 Hewlett Packard Enterprise Development Lp Virtual stack recovery
US11520530B2 (en) * 2019-09-24 2022-12-06 Amazon Technologies, Inc. Peripheral device for configuring compute instances at client-selected servers

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0404159D0 (en) * 2004-02-25 2004-03-31 3Com Corp Cascade control system for network units
TW200735579A (en) * 2006-03-14 2007-09-16 Netronix Inc Method of controlling switchboard with high degree of network security
CN101309185A (en) * 2008-07-16 2008-11-19 杭州华三通信技术有限公司 Processing method of multi-active devices and stack member devices in stacking system
CN101335716A (en) * 2008-07-25 2008-12-31 华为技术有限公司 Method and apparatus for separation and recombination of stacked switch
CN101605102A (en) * 2009-07-16 2009-12-16 杭州华三通信技术有限公司 Load sharing method during a kind of IRF piles up and device
CN102255751A (en) * 2011-06-30 2011-11-23 杭州华三通信技术有限公司 Stacking conflict resolution method and equipment
CN102263678A (en) * 2011-08-26 2011-11-30 杭州华三通信技术有限公司 Method and device for predicting stack division
CN103457766A (en) * 2013-08-23 2013-12-18 福建星网锐捷网络有限公司 Method and device for managing equipment in stacking split
CN104394017A (en) * 2014-11-26 2015-03-04 迈普通信技术股份有限公司 Stacking system electing method and main device
US9807051B1 (en) * 2015-06-23 2017-10-31 Cisco Technology, Inc. Systems and methods for detecting and resolving split-controller or split-stack conditions in port-extended networks
CN106921527A (en) * 2017-04-27 2017-07-04 新华三技术有限公司 The processing method and processing device of stacking conflict
CN109286514A (en) * 2017-07-20 2019-01-29 中兴通讯股份有限公司 A kind of stacking system keepalive method and stacking system
CN111224803A (en) * 2018-11-23 2020-06-02 中兴通讯股份有限公司 Multi-master detection method in stacking system and stacking system
CN112217658A (en) * 2019-07-11 2021-01-12 华为技术有限公司 Stacking and splitting processing method and device
CN112787960A (en) * 2020-11-30 2021-05-11 北京东土军悦科技有限公司 Stack splitting processing method, device and equipment and storage medium

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
IEEE Communications Magazine;P. T. Dat, et. al.;《WDM RoF-MMW and linearly located distributed antenna system for future high-speed railway communications》;全文 *
Mystique: A Fine-Grained and Transparent Congestion Control Enforcement Scheme;Y. Zhang, et. al.;《IEEE Transactions on Network and Service Management》;全文 *
交换机CSS堆叠技术研究;王勇亮;《信息与电脑(理论版)》;全文 *
基于分布式交换机IRF堆叠的板间通信研究与实现;朱奇;《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》;全文 *
基于分布式交换机跨网络堆叠的研究与实现;宋修军;《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》;全文 *

Also Published As

Publication number Publication date
CN115396385A (en) 2022-11-25

Similar Documents

Publication Publication Date Title
US10686749B2 (en) Packet sending method and network device
US10999125B1 (en) Inter-application communication via signal-routes
US10601656B2 (en) Network element upgrade method and device
US11201782B1 (en) Automation of maintenance mode operations for network devices
US10938660B1 (en) Automation of maintenance mode operations for network devices
US8774054B2 (en) Network policy configuration method, management device, and network management center device
US8566653B2 (en) Infrastructure for rapid service deployment
US10681091B2 (en) N:1 stateful application gateway redundancy model
US20150319081A1 (en) Method and apparatus for optimized network and service processing
CN102364900B (en) Based on the data transmission method of FRR and equipment in a kind of IRF system
US10516599B1 (en) Link priority for loop-protect
US9912592B2 (en) Troubleshooting openflow networks
US10447581B2 (en) Failure handling at logical routers according to a non-preemptive mode
US10873527B2 (en) Link protection method in SDN, switching device, and network controller
CN113709220B (en) High-availability implementation method and system of virtual load equalizer and electronic equipment
WO2020114017A1 (en) Data center traffic exchange method and apparatus, device and storage medium
US20170063617A1 (en) Seamless migration from rapid spanning tree protocol to ethernet ring protection switching protocol
KR20180122513A (en) Method and framework for traffic engineering in network hypervisor of sdn-based network virtualization platform
CN113364678A (en) Data transmission system, method, device, electronic equipment and computer readable medium
CN112217680B (en) Controller capability benchmark test method and device based on software-defined wide area network
CN115396385B (en) Method, device and computing equipment for quick service recovery of stacked switches
EP4229848A1 (en) Ghost routing
WO2018223991A1 (en) Method and system for switching between active bng and standby bng, and bng
CN116248581A (en) A method and system for active/standby switching of gateway cluster in cloud scene based on SDN
CN112637054B (en) Networking optimization method, device, computing equipment and storage medium for IP bearer network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant