WO2021114774A1 - Method and device for processing aggregated link - Google Patents

Method and device for processing aggregated link Download PDF

Info

Publication number
WO2021114774A1
WO2021114774A1 PCT/CN2020/114059 CN2020114059W WO2021114774A1 WO 2021114774 A1 WO2021114774 A1 WO 2021114774A1 CN 2020114059 W CN2020114059 W CN 2020114059W WO 2021114774 A1 WO2021114774 A1 WO 2021114774A1
Authority
WO
WIPO (PCT)
Prior art keywords
aggregated link
aggregated
link group
port
link
Prior art date
Application number
PCT/CN2020/114059
Other languages
French (fr)
Chinese (zh)
Inventor
何志川
李磊
赵子苍
赵茂聪
Original Assignee
盛科网络(苏州)有限公司
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 盛科网络(苏州)有限公司 filed Critical 盛科网络(苏州)有限公司
Publication of WO2021114774A1 publication Critical patent/WO2021114774A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/245Link aggregation, e.g. trunking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and device for processing aggregated links.
  • the chip will first generate a LinkDown interrupt event (also known as Linkdown message, that is, link failure message) to inform the CPU that the CPU is learning the specific member port Then, delete the member port from the aggregation link.
  • LinkDown interrupt event also known as Linkdown message, that is, link failure message
  • the embodiment of the present invention provides a method and device for processing an aggregated link, so as to at least solve the problem of a long time required for processing a fault in an aggregated link group in the related art.
  • a method for processing aggregated links including:
  • the switch chip In the case of detecting that the link state of the aggregated link is a failure state, the switch chip deletes the first port corresponding to the aggregated link from the aggregated link group.
  • the switch chip deleting the first port corresponding to the aggregated link from the aggregated link group includes: determining a target position of the first port in the aggregated link group; Deleting the first port corresponding to the target location from the aggregated link group.
  • the method further includes: updating the number of member ports in the aggregated link group.
  • the method further includes: determining a second port corresponding to a second position in the aggregated link group, wherein the second port is located at the last position in the aggregated link group; writing the second port Enter the target location; delete the second location in the aggregated link group, and update the number of member ports in the aggregated link group.
  • the method further includes: the switch chip sends an interrupt notification to the CPU, wherein: The interrupt notification is used to instruct the CPU to update the soft table.
  • an apparatus for processing aggregated links including:
  • the detection module is set to detect the link status of the aggregated link in the aggregated link group through the switch chip;
  • the deleting module is configured to delete the first port corresponding to the aggregated link from the aggregated link group when it is detected that the link state of the aggregated link is a fault state.
  • the deletion module is further configured to: determine the target position of the first port in the aggregated link group; remove the first port corresponding to the target position from the aggregated link group Delete from the group.
  • the device further includes: an update module configured to update the number of member ports in the aggregated link group.
  • the device further includes: a determining module configured to determine the second position in the aggregated link group when the first port is not the last port in the aggregated link group Corresponding second port, wherein the second port is located at the last position in the aggregated link group; a writing module, configured to write the second port into the target position; a processing module, setting To delete the second position in the aggregated link group and update the number of member ports in the aggregated link group.
  • a determining module configured to determine the second position in the aggregated link group when the first port is not the last port in the aggregated link group Corresponding second port, wherein the second port is located at the last position in the aggregated link group
  • a writing module configured to write the second port into the target position
  • a processing module setting To delete the second position in the aggregated link group and update the number of member ports in the aggregated link group.
  • the device further includes: a notification module configured to, after the switching chip deletes the first port corresponding to the aggregated link from the aggregated link group, the switching chip to the CPU Sending an interrupt notification, where the interrupt notification is used to instruct the CPU to update the soft table.
  • a notification module configured to, after the switching chip deletes the first port corresponding to the aggregated link from the aggregated link group, the switching chip to the CPU Sending an interrupt notification, where the interrupt notification is used to instruct the CPU to update the soft table.
  • a computer-readable storage medium in which a computer program is stored, wherein the computer program is configured to execute any of the above methods when running Steps in the embodiment.
  • an electronic device including a memory and a processor, the memory is stored with a computer program, and the processor is configured to run the computer program to execute any of the above Steps in the method embodiment.
  • the link state of the aggregated link in the aggregated link group is detected by the switch chip; in the case that the link state of the aggregated link is detected as a failure state, the switch chip will communicate with the aggregated link.
  • the first port corresponding to the link is deleted from the aggregated link group. Therefore, it can solve the problem of the long time required to process the failure of the aggregated link group in the related technology, and realize the shortening of the time for processing the failure of the aggregated link group, thereby reducing the number of discarded packets of the aggregated link group .
  • Fig. 1 is a flowchart of a method for processing aggregated links according to an embodiment of the present invention
  • Figure 2 is a schematic diagram of a processing method for aggregated links according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a method for processing aggregated links according to another embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a method for processing aggregated links according to another embodiment of the present invention.
  • Fig. 5 is a schematic diagram of a method for processing aggregated links according to another embodiment of the present invention.
  • Fig. 6 is a structural block diagram of an apparatus for processing aggregated links according to an embodiment of the present invention.
  • Fig. 1 is a flowchart of a method for processing aggregated links according to an embodiment of the present invention, as shown in Fig. 1, including:
  • Step S102 Detect the link state of the aggregated link in the aggregated link group through the switch chip
  • Step S104 In a case where it is detected that the link state of the aggregated link is a failure state, the switch chip deletes the first port corresponding to the aggregated link from the aggregated link group.
  • the fault state includes: a disconnected state.
  • the link state of the aggregated link in the aggregated link group is detected by the switch chip; in the case that the link state of the aggregated link is detected as a failure state, the switch chip will communicate with the aggregated link.
  • the first port corresponding to the link is deleted from the aggregated link group. Therefore, it can solve the problem of long time required to process the failure of the aggregated link group in the related technology, realize the shortening of the time for processing the failure of the aggregated link group, and thereby reduce the number of discarded packets of the aggregated link group .
  • the detecting that the link state of the aggregated link is a failure state includes: detecting a Linkdown event (that is, a Linkdown packet) of a member link in the aggregated link group .
  • Figure 2 is a schematic diagram of a method for processing aggregated links according to an embodiment of the present invention. As shown in Figure 2, the aggregated link group consists of 8 members, namely port #1 to port #8. When port #3 corresponds to After the link is disconnected, the chip will detect the link Link Down event and immediately enter the aggregation link protection processing flow in the chip.
  • a switch chip detects that the link state of the aggregated link is a failure state, it directly removes the first port corresponding to the aggregated link from the aggregated link group. Delete, without notifying the central processing unit (CPU) of the fault status before deleting, which saves the processing time of the fault, speeds up the processing of the fault, and realizes the rapid aggregation of the link heal.
  • CPU central processing unit
  • the switch chip deleting the first port corresponding to the aggregated link from the aggregated link group includes: determining that the first port is in the aggregated link group The target location in the; the first port corresponding to the target location is deleted from the aggregated link group.
  • the chip immediately enters the aggregation link protection processing flow in the chip. Since port #7 is the last member of the link group, it is only necessary to connect the aggregation chain The number of road group members minus 1 becomes 6.
  • FIG. 3 is a schematic diagram of a method for processing an aggregated link according to another embodiment of the present invention. After the foregoing processing, the distribution of members of the aggregated link becomes the distribution as shown in FIG. 3.
  • the method further includes: updating member ports in the aggregated link group Quantity.
  • the method further includes: determining a second port corresponding to a second position in the aggregated link group, wherein the second port is located at the last position in the aggregated link group; The second port is written into the target location; the second location is deleted in the aggregated link group, and the number of member ports in the aggregated link group is updated.
  • the last port in the aggregated link group is also written to the target where the first port is located. Position, and delete the last position in the aggregated link group, thereby realizing the update of the aggregated link group.
  • FIG. 4 is a schematic diagram of a method for processing aggregated links according to another embodiment of the present invention.
  • the chip first finds the location of port #3, moves the last member port #8 of the aggregated link group to the location of port #3, and reduces the number of members of the aggregated link group by 1. When it becomes 7, the chip completes the process of removing port #3 from the aggregated link.
  • FIG. 5 is a schematic diagram of a method for processing an aggregated link according to another embodiment of the present invention. After the foregoing processing, the distribution of members of the aggregated link becomes the distribution shown in FIG. 5. After the chip executes the above steps, it then informs the CPU through interruption, and then the CPU synchronizes the status of the soft table, for example, to update the status of the aggregated link maintained in the soft table.
  • the method further includes: the switching chip sends to the CPU An interrupt notification, where the interrupt notification is used to instruct the CPU to update the soft table.
  • the soft table is stored in the CPU and is used to record information related to the aggregated link group (for example, the status of the member links in the aggregated link group, and the members of the aggregated link group). The status of the port).
  • the foregoing embodiment may be applied to an Ethernet environment that requires high real-time data transmission, such as a data center network and an industrial network. Through the above-mentioned embodiments, it is possible to realize rapid healing at the level of microseconds or even nanoseconds. After the member link in the aggregation link is disconnected (that is, the aggregation link in the failed state in the above-mentioned embodiment), it is sent to the member link. No packet loss or only a few packets are dropped on the traffic on the network.
  • the aforementioned switching chip may be an Application Specific Integrated Circuit (ASIC for short) chip, or a Field Programmable Gate Array (FPGA for short) chip or a network processor ( neural-network process units (referred to as NPU) chip.
  • ASIC Application Specific Integrated Circuit
  • FPGA Field Programmable Gate Array
  • NPU neural-network process units
  • the foregoing technical solution may be executed by an aggregated link protection processing module in the switch chip, and the aggregated link protection processing module is configured to execute the foregoing aggregated link processing method.
  • the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is Better implementation.
  • the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes a number of instructions to enable a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the method described in each embodiment of the present invention.
  • an apparatus for processing aggregated links is provided, and the apparatus is used to implement the above-mentioned embodiments and preferred implementations, and what has been described will not be repeated.
  • the term "module" can implement a combination of software and/or hardware with predetermined functions.
  • the devices described in the following embodiments are preferably implemented by software, implementation by hardware or a combination of software and hardware is also possible and conceived.
  • Fig. 6 is a structural block diagram of an apparatus for processing aggregated links according to an embodiment of the present invention, and the apparatus includes:
  • the detecting module 62 is configured to detect the link state of the aggregated link in the aggregated link group through the switch chip;
  • the deleting module 64 is configured to remove the first port corresponding to the aggregated link from the aggregated link group when the link state of the aggregated link is detected as a failure state. delete.
  • the link state of the aggregated link in the aggregated link group is detected by the switch chip; in the case that the link state of the aggregated link is detected as a failure state, the switch chip will communicate with the aggregated link.
  • the first port corresponding to the link is deleted from the aggregated link group. Therefore, it can solve the problem of the long time required to process the failure of the aggregated link group in the related technology, and realize the shortening of the time for processing the failure of the aggregated link group, thereby reducing the number of discarded packets of the aggregated link group .
  • the deletion module 64 is further configured to: determine the target position of the first port in the aggregated link group; and set the first port corresponding to the target position Delete from the aggregated link group.
  • the device further includes: an update module configured to update the number of member ports in the aggregated link group.
  • the device further includes: a determining module configured to determine the second position in the aggregated link group when the first port is not the last port in the aggregated link group Corresponding second port, wherein the second port is located at the last position in the aggregated link group; a writing module configured to write the second port into the target position; a processing module, setting To delete the second position in the aggregated link group and update the number of member ports in the aggregated link group.
  • a determining module configured to determine the second position in the aggregated link group when the first port is not the last port in the aggregated link group Corresponding second port, wherein the second port is located at the last position in the aggregated link group
  • a writing module configured to write the second port into the target position
  • a processing module setting To delete the second position in the aggregated link group and update the number of member ports in the aggregated link group.
  • the device further includes: a notification module configured to, after the switching chip deletes the first port corresponding to the aggregated link from the aggregated link group, the switching chip to the CPU Sending an interrupt notification, where the interrupt notification is used to instruct the CPU to update the soft table.
  • a notification module configured to, after the switching chip deletes the first port corresponding to the aggregated link from the aggregated link group, the switching chip to the CPU Sending an interrupt notification, where the interrupt notification is used to instruct the CPU to update the soft table.
  • each of the above modules can be implemented by software or hardware.
  • it can be implemented in the following manner, but not limited to this: the above modules are all located in the same processor; or, the above modules can be combined in any combination.
  • the forms are located in different processors.
  • the embodiment of the present invention also provides a computer-readable storage medium having a computer program stored in the computer-readable storage medium, wherein the computer program is configured to execute the steps in any one of the foregoing method embodiments when running.
  • the above-mentioned computer-readable storage medium may include, but is not limited to: U disk, Read-Only Memory (Read-Only Memory, ROM for short), Random Access Memory (Random Access Memory, for short) RAM), mobile hard disks, magnetic disks or optical disks and other media that can store computer programs.
  • U disk Read-Only Memory
  • ROM Read-Only Memory
  • Random Access Memory Random Access Memory
  • mobile hard disks magnetic disks or optical disks and other media that can store computer programs.
  • An embodiment of the present invention also provides an electronic device, including a memory and a processor, 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 foregoing method embodiments.
  • the aforementioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the aforementioned processor, and the input-output device is connected to the aforementioned processor.
  • modules or steps of the present invention can be implemented by a general computing device, and they can be concentrated on a single computing device or distributed in a network composed of multiple computing devices.
  • they can be implemented with program codes executable by the computing device, so that they can be stored in the storage device for execution by the computing device, and in some cases, can be executed in a different order than here.
  • the link state of the aggregated link in the aggregated link group is detected by the switch chip; in the case that the link state of the aggregated link is detected as a failure state, the switch chip will communicate with the aggregated link.
  • the first port corresponding to the link is deleted from the aggregated link group. Therefore, it can solve the problem of the long time required to process the failure of the aggregated link group in the related technology, and realize the shortening of the time for processing the failure of the aggregated link group, thereby reducing the number of discarded packets of the aggregated link group .

Abstract

The present invention provides a method and a device for processing an aggregated link. Said method comprises: detecting a link state of an aggregated link in an aggregated link group by means of a switching chip; and upon detection that the link state of the aggregated link is a failure state, the switching chip deleting, from the aggregated link group, a first port corresponding to the aggregated link. The present invention solves the problem in the related art of a long duration required for processing a failure in an aggregated link group, thereby shortening the duration for processing a failure in the aggregated link group, and further reducing the number of messages discarded in the aggregated link group.

Description

聚合链路的处理方法及装置Method and device for processing aggregated links 技术领域Technical field
本发明涉及通信领域,具体而言,涉及一种聚合链路的处理方法及装置。The present invention relates to the field of communications, and in particular, to a method and device for processing aggregated links.
背景技术Background technique
在相关技术中,在聚合链路组中发现成员链路断开之后,芯片首先会产生LinkDown中断事件(又称为Linkdown报文,即链路故障报文)告知CPU,CPU在获知具体成员端口后,再把该成员端口从聚合链路中进行删除。In related technologies, after the member link is found to be disconnected in the aggregated link group, the chip will first generate a LinkDown interrupt event (also known as Linkdown message, that is, link failure message) to inform the CPU that the CPU is learning the specific member port Then, delete the member port from the aggregation link.
可见,在相关技术中,在检测到成员链路故障之后,需要告知CPU进行处理,然后再把成员端口从聚合链路中删除。而从检测到链路断开到成员端口删除,需要经过一段时间才能处理。在这段时间内,通过聚合链路选路,被发送到处于故障状态的成员链路上的报文将被丢弃,从而导致了从与处于故障状态的成员链路对应的成员端口出去的报文大量丢失。It can be seen that in related technologies, after detecting a member link failure, the CPU needs to be notified for processing, and then the member port is deleted from the aggregated link. However, it takes a period of time to process from the detection of the link disconnection to the deletion of the member port. During this period of time, through aggregation link routing, the packets sent to the failed member link will be discarded, resulting in packets going out from the member port corresponding to the member link in the failed state. A lot of text is lost.
针对相关技术中,处理聚合链路组中的故障所需时间较长的问题,尚未提出技术方案。Regarding the problem of long time required for processing failures in the aggregated link group in related technologies, no technical solution has been proposed.
发明内容Summary of the invention
本发明实施例提供了一种聚合链路的处理方法及装置,以至少解决相关技术中存在的处理聚合链路组中的故障所需时间较长的问题。The embodiment of the present invention provides a method and device for processing an aggregated link, so as to at least solve the problem of a long time required for processing a fault in an aggregated link group in the related art.
根据本发明的一个实施例,提供了一种聚合链路的处理方法,包括:According to an embodiment of the present invention, a method for processing aggregated links is provided, including:
通过交换芯片检测聚合链路组中的聚合链路的链路状态;Detect the link status of the aggregated links in the aggregated link group through the switch chip;
在检测到所述聚合链路的链路状态为故障状态的情况下,所述交换芯片将与所述聚合链路对应的第一端口从所述聚合链路组中删除。In the case of detecting that the link state of the aggregated link is a failure state, the switch chip deletes the first port corresponding to the aggregated link from the aggregated link group.
可选的,所述交换芯片将与所述聚合链路对应的第一端口从所述聚合 链路组中删除,包括:确定所述第一端口在所述聚合链路组中的目标位置;将与所述目标位置对应的所述第一端口从所述聚合链路组中删除。Optionally, the switch chip deleting the first port corresponding to the aggregated link from the aggregated link group includes: determining a target position of the first port in the aggregated link group; Deleting the first port corresponding to the target location from the aggregated link group.
可选的,将与所述目标位置对应的所述第一端口从所述聚合链路组中删除之后,所述方法还包括:更新所述聚合链路组中的成员端口数量。Optionally, after the first port corresponding to the target location is deleted from the aggregated link group, the method further includes: updating the number of member ports in the aggregated link group.
可选的,在所述第一端口不是所述聚合链路组中的最后一个端口的情况下,将与所述目标位置对应的所述第一端口从所述聚合链路组中删除之后,所述方法还包括:确定所述聚合链路组中与第二位置对应的第二端口,其中,所述第二端口位于所述聚合链路组中的最后位置;将所述第二端口写入到所述目标位置中;在所述聚合链路组中删除所述第二位置,并更新所述聚合链路组中的成员端口数量。Optionally, in the case that the first port is not the last port in the aggregated link group, after the first port corresponding to the target location is deleted from the aggregated link group, The method further includes: determining a second port corresponding to a second position in the aggregated link group, wherein the second port is located at the last position in the aggregated link group; writing the second port Enter the target location; delete the second location in the aggregated link group, and update the number of member ports in the aggregated link group.
可选的,在所述交换芯片将与所述聚合链路对应的第一端口从所述聚合链路组中删除之后,所述方法还包括:所述交换芯片向CPU发送中断通知,其中,所述中断通知用于指示所述CPU对软表进行更新。Optionally, after the switch chip deletes the first port corresponding to the aggregate link from the aggregate link group, the method further includes: the switch chip sends an interrupt notification to the CPU, wherein: The interrupt notification is used to instruct the CPU to update the soft table.
根据本发明的一个实施例,提供了一种聚合链路的处理装置,包括:According to an embodiment of the present invention, there is provided an apparatus for processing aggregated links, including:
检测模块,设置为通过交换芯片检测聚合链路组中的聚合链路的链路状态;The detection module is set to detect the link status of the aggregated link in the aggregated link group through the switch chip;
删除模块,设置为在检测到所述聚合链路的链路状态为故障状态的情况下,所述交换芯片将与所述聚合链路对应的第一端口从所述聚合链路组中删除。The deleting module is configured to delete the first port corresponding to the aggregated link from the aggregated link group when it is detected that the link state of the aggregated link is a fault state.
可选的,所述删除模块,还设置为:确定所述第一端口在所述聚合链路组中的目标位置;将与所述目标位置对应的所述第一端口从所述聚合链路组中删除。Optionally, the deletion module is further configured to: determine the target position of the first port in the aggregated link group; remove the first port corresponding to the target position from the aggregated link group Delete from the group.
可选的,所述装置,还包括:更新模块,设置为更新所述聚合链路组中的成员端口数量。Optionally, the device further includes: an update module configured to update the number of member ports in the aggregated link group.
可选的,所述装置,还包括:确定模块,设置为在所述第一端口不是所述聚合链路组中的最后一个端口的情况下,确定所述聚合链路组中与第二位置对应的第二端口,其中,所述第二端口位于所述聚合链路组中的最 后位置;写入模块,设置为将所述第二端口写入到所述目标位置中;处理模块,设置为在所述聚合链路组中删除所述第二位置,并更新所述聚合链路组中的成员端口数量。Optionally, the device further includes: a determining module configured to determine the second position in the aggregated link group when the first port is not the last port in the aggregated link group Corresponding second port, wherein the second port is located at the last position in the aggregated link group; a writing module, configured to write the second port into the target position; a processing module, setting To delete the second position in the aggregated link group and update the number of member ports in the aggregated link group.
可选的,所述装置,还包括:通知模块,设置为在所述交换芯片将与所述聚合链路对应的第一端口从所述聚合链路组中删除之后,所述交换芯片向CPU发送中断通知,其中,所述中断通知用于指示所述CPU对软表进行更新。Optionally, the device further includes: a notification module configured to, after the switching chip deletes the first port corresponding to the aggregated link from the aggregated link group, the switching chip to the CPU Sending an interrupt notification, where the interrupt notification is used to instruct the CPU to update the soft table.
根据本发明的又一个实施例,还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present invention, there is also provided a computer-readable storage medium in which a computer program is stored, wherein the computer program is configured to execute any of the above methods when running Steps in the embodiment.
根据本发明的又一个实施例,还提供了一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行上述任一项方法实施例中的步骤。According to another embodiment of the present invention, there is also provided an electronic device, including a memory and a processor, the memory is stored with a computer program, and the processor is configured to run the computer program to execute any of the above Steps in the method embodiment.
通过本发明,通过交换芯片检测聚合链路组中的聚合链路的链路状态;在检测到所述聚合链路的链路状态为故障状态的情况下,所述交换芯片将与所述聚合链路对应的第一端口从所述聚合链路组中删除。因此,可以解决相关技术中存在的处理聚合链路组中的故障所需时间较长的问题,实现缩短处理聚合链路组故障的时间,进而减少了聚合链路组被丢弃的报文的数量。Through the present invention, the link state of the aggregated link in the aggregated link group is detected by the switch chip; in the case that the link state of the aggregated link is detected as a failure state, the switch chip will communicate with the aggregated link. The first port corresponding to the link is deleted from the aggregated link group. Therefore, it can solve the problem of the long time required to process the failure of the aggregated link group in the related technology, and realize the shortening of the time for processing the failure of the aggregated link group, thereby reducing the number of discarded packets of the aggregated link group .
附图说明Description of the drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described here are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments and descriptions of the present invention are used to explain the present invention, and do not constitute an improper limitation of the present invention. In the attached picture:
图1是根据本发明实施例的聚合链路的处理方法的流程图;Fig. 1 is a flowchart of a method for processing aggregated links according to an embodiment of the present invention;
图2是根据本发明实施例的聚合链路的处理方法的示意图;Figure 2 is a schematic diagram of a processing method for aggregated links according to an embodiment of the present invention;
图3是根据本发明另一实施例的聚合链路的处理方法的示意图;FIG. 3 is a schematic diagram of a method for processing aggregated links according to another embodiment of the present invention;
图4是根据本发明又一实施例的聚合链路的处理方法的示意图;4 is a schematic diagram of a method for processing aggregated links according to another embodiment of the present invention;
图5是根据本发明又一实施例的聚合链路的处理方法的示意图;Fig. 5 is a schematic diagram of a method for processing aggregated links according to another embodiment of the present invention;
图6是根据本发明实施例的聚合链路的处理装置的结构框图。Fig. 6 is a structural block diagram of an apparatus for processing aggregated links according to an embodiment of the present invention.
具体实施方式Detailed ways
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present invention will be described in detail with reference to the drawings and in conjunction with the embodiments. It should be noted that the embodiments in the application and the features in the embodiments can be combined with each other if there is no conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first" and "second" in the description 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 sequence or sequence.
实施例1Example 1
本发明实施例提供了一种聚合链路的处理方法。图1是根据本发明实施例的聚合链路的处理方法的流程图,如图1所示,包括:The embodiment of the present invention provides a processing method for aggregated links. Fig. 1 is a flowchart of a method for processing aggregated links according to an embodiment of the present invention, as shown in Fig. 1, including:
步骤S102,通过交换芯片检测聚合链路组中的聚合链路的链路状态;Step S102: Detect the link state of the aggregated link in the aggregated link group through the switch chip;
步骤S104,在检测到所述聚合链路的链路状态为故障状态的情况下,所述交换芯片将与所述聚合链路对应的第一端口从所述聚合链路组中删除。Step S104: In a case where it is detected that the link state of the aggregated link is a failure state, the switch chip deletes the first port corresponding to the aggregated link from the aggregated link group.
可选的,故障状态包括:断开状态。Optionally, the fault state includes: a disconnected state.
通过本发明,通过交换芯片检测聚合链路组中的聚合链路的链路状态;在检测到所述聚合链路的链路状态为故障状态的情况下,所述交换芯片将与所述聚合链路对应的第一端口从所述聚合链路组中删除。因此,可以解决相关技术中存在的处理聚合链路组中的故障所需时间较长的问题,实现缩短处理聚合链路组故障的时间,进而减少了聚合链路组被丢弃的报文的数量。Through the present invention, the link state of the aggregated link in the aggregated link group is detected by the switch chip; in the case that the link state of the aggregated link is detected as a failure state, the switch chip will communicate with the aggregated link. The first port corresponding to the link is deleted from the aggregated link group. Therefore, it can solve the problem of long time required to process the failure of the aggregated link group in the related technology, realize the shortening of the time for processing the failure of the aggregated link group, and thereby reduce the number of discarded packets of the aggregated link group .
作为一种可选的实施方式,所述检测到所述聚合链路的链路状态为故障状态,包括:检测到所述聚合链路组中的成员链路的Linkdown事件(即Linkdown报文)。图2是根据本发明实施例的聚合链路的处理方法的示意 图,如图2所示,聚合链路组由8个成员组成,分别是端口#1~端口#8,当端口#3对应的链路断开之后,芯片将检测到链路Link Down事件,并立即进入芯片中的聚合链路保护处理流程。As an optional implementation manner, the detecting that the link state of the aggregated link is a failure state includes: detecting a Linkdown event (that is, a Linkdown packet) of a member link in the aggregated link group . Figure 2 is a schematic diagram of a method for processing aggregated links according to an embodiment of the present invention. As shown in Figure 2, the aggregated link group consists of 8 members, namely port #1 to port #8. When port #3 corresponds to After the link is disconnected, the chip will detect the link Link Down event and immediately enter the aggregation link protection processing flow in the chip.
需要说明的,在上述实施例中,由于是有交换芯片在检测到聚合链路的链路状态为故障状态的情况下,直接将与该聚合链路对应的第一端口从聚合链路组中删除,而不需要在将该故障状态通知给中央处理器(central processing unit,简称为CPU)后才进行删除,从而节省了故障的处理时间,加快了故障的处理,实现了聚合链路的快速愈合。It should be noted that in the above-mentioned embodiment, because a switch chip detects that the link state of the aggregated link is a failure state, it directly removes the first port corresponding to the aggregated link from the aggregated link group. Delete, without notifying the central processing unit (CPU) of the fault status before deleting, which saves the processing time of the fault, speeds up the processing of the fault, and realizes the rapid aggregation of the link heal.
作为一种可选的实施方式,所述交换芯片将与所述聚合链路对应的第一端口从所述聚合链路组中删除,包括:确定所述第一端口在所述聚合链路组中的目标位置;将与所述目标位置对应的所述第一端口从所述聚合链路组中删除。如图2中所示,端口#7链路断开之后,芯片立即进入芯片中的聚合链路保护处理流程,由于端口#7是该链路组最后一个成员,只需要将并将该聚合链路组成员个数减1变成6。图3是根据本发明另一实施例的聚合链路的处理方法的示意图,在经过了上述处理后,该聚合链路的成员分布变成了如图3所示的分布。As an optional implementation manner, the switch chip deleting the first port corresponding to the aggregated link from the aggregated link group includes: determining that the first port is in the aggregated link group The target location in the; the first port corresponding to the target location is deleted from the aggregated link group. As shown in Figure 2, after the port #7 link is disconnected, the chip immediately enters the aggregation link protection processing flow in the chip. Since port #7 is the last member of the link group, it is only necessary to connect the aggregation chain The number of road group members minus 1 becomes 6. FIG. 3 is a schematic diagram of a method for processing an aggregated link according to another embodiment of the present invention. After the foregoing processing, the distribution of members of the aggregated link becomes the distribution as shown in FIG. 3.
作为一种可选的实施方式,将与所述目标位置对应的所述第一端口从所述聚合链路组中删除之后,所述方法还包括:更新所述聚合链路组中的成员端口数量。As an optional implementation manner, after the first port corresponding to the target location is deleted from the aggregated link group, the method further includes: updating member ports in the aggregated link group Quantity.
作为一种可选的实施方式,在所述第一端口不是所述聚合链路组中的最后一个端口的情况下,将与所述目标位置对应的所述第一端口从所述聚合链路组中删除之后,所述方法还包括:确定所述聚合链路组中与第二位置对应的第二端口,其中,所述第二端口位于所述聚合链路组中的最后位置;将所述第二端口写入到所述目标位置中;在所述聚合链路组中删除所述第二位置,并更新所述聚合链路组中的成员端口数量。As an optional implementation manner, in the case that the first port is not the last port in the aggregated link group, the first port corresponding to the target location is removed from the aggregated link group. After deleting from the group, the method further includes: determining a second port corresponding to a second position in the aggregated link group, wherein the second port is located at the last position in the aggregated link group; The second port is written into the target location; the second location is deleted in the aggregated link group, and the number of member ports in the aggregated link group is updated.
需要说明的是,在上述实施例中,当第一端口不是聚合链路组中的最后一个端口的情况下,还将聚合链路组中的最后一个端口写入到该第一端 口所在的目标位置,并且删除聚合链路组中的最后位置,从而实现了聚合链路组的更新。It should be noted that in the above embodiment, when the first port is not the last port in the aggregated link group, the last port in the aggregated link group is also written to the target where the first port is located. Position, and delete the last position in the aggregated link group, thereby realizing the update of the aggregated link group.
图4是根据本发明又一实施例的聚合链路的处理方法的示意图。如图4中所示,芯片首先找到端口#3所在位置,并将该聚合链路组最后一个成员端口#8移到端口#3所在位置,并将该聚合链路组成员个数减1改成7,芯片就完成了将端口#3移除聚合链路的处理过程。图5是根据本发明另一实施例的聚合链路的处理方法的示意图,在经过了上述处理后,该聚合链路的成员分布变成了如图5所示的分布。当芯片执行完上述步骤之后,再通过中断的方式通知CPU,然后CPU去同步软表状态,例如,对软表中维护的聚合链路的状态进行更新。Fig. 4 is a schematic diagram of a method for processing aggregated links according to another embodiment of the present invention. As shown in Figure 4, the chip first finds the location of port #3, moves the last member port #8 of the aggregated link group to the location of port #3, and reduces the number of members of the aggregated link group by 1. When it becomes 7, the chip completes the process of removing port #3 from the aggregated link. FIG. 5 is a schematic diagram of a method for processing an aggregated link according to another embodiment of the present invention. After the foregoing processing, the distribution of members of the aggregated link becomes the distribution shown in FIG. 5. After the chip executes the above steps, it then informs the CPU through interruption, and then the CPU synchronizes the status of the soft table, for example, to update the status of the aggregated link maintained in the soft table.
作为一种可选的实施方式,在所述交换芯片将与所述聚合链路对应的第一端口从所述聚合链路组中删除之后,所述方法还包括:所述交换芯片向CPU发送中断通知,其中,所述中断通知用于指示所述CPU对软表进行更新。As an optional implementation manner, after the switching chip deletes the first port corresponding to the aggregated link from the aggregated link group, the method further includes: the switching chip sends to the CPU An interrupt notification, where the interrupt notification is used to instruct the CPU to update the soft table.
需要说明的,所述软表存储在所述CPU中,并用于记录与所述聚合链路组相关的信息(例如,聚合链路组中的成员链路的状态,聚合链路组中的成员端口的状态)。作为一种可选的实施方式,上述实施例可以应用在对数据传输实时性要求较高的以太网环境,如数据中心网络、工业网络中。通过上述实施例,可以实现微妙乃至纳秒级的快速愈合,使聚合链路中的成员链路断开(即上述实施例中的处于故障状态的聚合链路)后,发送到该成员链路上的流量不丢包或者仅丢弃少数几个报文。It should be noted that the soft table is stored in the CPU and is used to record information related to the aggregated link group (for example, the status of the member links in the aggregated link group, and the members of the aggregated link group). The status of the port). As an optional implementation manner, the foregoing embodiment may be applied to an Ethernet environment that requires high real-time data transmission, such as a data center network and an industrial network. Through the above-mentioned embodiments, it is possible to realize rapid healing at the level of microseconds or even nanoseconds. After the member link in the aggregation link is disconnected (that is, the aggregation link in the failed state in the above-mentioned embodiment), it is sent to the member link. No packet loss or only a few packets are dropped on the traffic on the network.
可选的,上述交换芯片可以是特殊应用集成电路(Application Specific Integrated Circuit,简称为ASIC)芯片,还可以是现场可编程逻辑门阵列(Field Programmable Gate Array,简称为FPGA)芯片或网络处理器(neural-network process units,简称为NPU)芯片。作为一种可选的实施方式,上述技术方案可以由交换芯片中的聚合链路保护处理模块执行,该聚合链路保护处理模块用于执行上述聚合链路的处理方法。Optionally, the aforementioned switching chip may be an Application Specific Integrated Circuit (ASIC for short) chip, or a Field Programmable Gate Array (FPGA for short) chip or a network processor ( neural-network process units (referred to as NPU) chip. As an optional implementation manner, the foregoing technical solution may be executed by an aggregated link protection processing module in the switch chip, and the aggregated link protection processing module is configured to execute the foregoing aggregated link processing method.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is Better implementation. Based on this understanding, the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes a number of instructions to enable a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the method described in each embodiment of the present invention.
实施例2Example 2
根据本发明的另一个实施例,提供了一种聚合链路的处理装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。According to another embodiment of the present invention, an apparatus for processing aggregated links is provided, and the apparatus is used to implement the above-mentioned embodiments and preferred implementations, and what has been described will not be repeated. As used below, the term "module" can implement a combination of software and/or hardware with predetermined functions. Although the devices described in the following embodiments are preferably implemented by software, implementation by hardware or a combination of software and hardware is also possible and conceived.
图6是根据本发明实施例的聚合链路的处理装置的结构框图,该装置包括:Fig. 6 is a structural block diagram of an apparatus for processing aggregated links according to an embodiment of the present invention, and the apparatus includes:
检测模块62,设置为通过交换芯片检测聚合链路组中的聚合链路的链路状态;The detecting module 62 is configured to detect the link state of the aggregated link in the aggregated link group through the switch chip;
删除模块64,设置为在检测到所述聚合链路的链路状态为故障状态的情况下,所述交换芯片将与所述聚合链路对应的的第一端口从所述聚合链路组中删除。The deleting module 64 is configured to remove the first port corresponding to the aggregated link from the aggregated link group when the link state of the aggregated link is detected as a failure state. delete.
通过本发明,通过交换芯片检测聚合链路组中的聚合链路的链路状态;在检测到所述聚合链路的链路状态为故障状态的情况下,所述交换芯片将与所述聚合链路对应的第一端口从所述聚合链路组中删除。因此,可以解决相关技术中存在的处理聚合链路组中的故障所需时间较长的问题,实现缩短处理聚合链路组故障的时间,进而减少了聚合链路组被丢弃的报文的数量。Through the present invention, the link state of the aggregated link in the aggregated link group is detected by the switch chip; in the case that the link state of the aggregated link is detected as a failure state, the switch chip will communicate with the aggregated link. The first port corresponding to the link is deleted from the aggregated link group. Therefore, it can solve the problem of the long time required to process the failure of the aggregated link group in the related technology, and realize the shortening of the time for processing the failure of the aggregated link group, thereby reducing the number of discarded packets of the aggregated link group .
作为一种可选的实施方式,所述删除模块64,还设置为:确定所述第一端口在所述聚合链路组中的目标位置;将与所述目标位置对应的所述第一端口从所述聚合链路组中删除。As an optional implementation manner, the deletion module 64 is further configured to: determine the target position of the first port in the aggregated link group; and set the first port corresponding to the target position Delete from the aggregated link group.
可选的,所述装置,还包括:更新模块,设置为更新所述聚合链路组中的成员端口数量。Optionally, the device further includes: an update module configured to update the number of member ports in the aggregated link group.
可选的,所述装置,还包括:确定模块,设置为在所述第一端口不是所述聚合链路组中的最后一个端口的情况下,确定所述聚合链路组中与第二位置对应的第二端口,其中,所述第二端口位于所述聚合链路组中的最后位置;写入模块,设置为将所述第二端口写入到所述目标位置中;处理模块,设置为在所述聚合链路组中删除所述第二位置,并更新所述聚合链路组中的成员端口数量。Optionally, the device further includes: a determining module configured to determine the second position in the aggregated link group when the first port is not the last port in the aggregated link group Corresponding second port, wherein the second port is located at the last position in the aggregated link group; a writing module configured to write the second port into the target position; a processing module, setting To delete the second position in the aggregated link group and update the number of member ports in the aggregated link group.
可选的,所述装置,还包括:通知模块,设置为在所述交换芯片将与所述聚合链路对应的第一端口从所述聚合链路组中删除之后,所述交换芯片向CPU发送中断通知,其中,所述中断通知用于指示所述CPU对软表进行更新。Optionally, the device further includes: a notification module configured to, after the switching chip deletes the first port corresponding to the aggregated link from the aggregated link group, the switching chip to the CPU Sending an interrupt notification, where the interrupt notification is used to instruct the CPU to update the soft table.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that each of the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following manner, but not limited to this: the above modules are all located in the same processor; or, the above modules can be combined in any combination. The forms are located in different processors.
本发明的实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。The embodiment of the present invention also provides a computer-readable storage medium having a computer program stored in the computer-readable storage medium, wherein the computer program is configured to execute the steps in any one of the foregoing method embodiments when running.
可选地,在本实施例中,上述计算机可读存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。Optionally, in this embodiment, the above-mentioned computer-readable storage medium may include, but is not limited to: U disk, Read-Only Memory (Read-Only Memory, ROM for short), Random Access Memory (Random Access Memory, for short) RAM), mobile hard disks, magnetic disks or optical disks and other media that can store computer programs.
本发明的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述 任一项方法实施例中的步骤。An embodiment of the present invention also provides an electronic device, including a memory and a processor, 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 foregoing method embodiments.
可选地,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。Optionally, the aforementioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the aforementioned processor, and the input-output device is connected to the aforementioned processor.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。Optionally, for specific examples in this embodiment, reference may be made to the examples described in the above-mentioned embodiments and optional implementation manners, and details are not described herein again in this embodiment.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented by a general computing device, and they can be concentrated on a single computing device or distributed in a network composed of multiple computing devices. Above, alternatively, they can be implemented with program codes executable by the computing device, so that they can be stored in the storage device for execution by the computing device, and in some cases, can be executed in a different order than here. Perform the steps shown or described, or fabricate them into individual integrated circuit modules respectively, or fabricate multiple modules or steps of them into a single integrated circuit module for implementation. In this way, the present invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention and are not used to limit the present invention. For those skilled in the art, the present invention can have various modifications and changes. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.
工业实用性Industrial applicability
通过本发明,通过交换芯片检测聚合链路组中的聚合链路的链路状态;在检测到所述聚合链路的链路状态为故障状态的情况下,所述交换芯片将与所述聚合链路对应的第一端口从所述聚合链路组中删除。因此,可以解决相关技术中存在的处理聚合链路组中的故障所需时间较长的问题,实现缩短处理聚合链路组故障的时间,进而减少了聚合链路组被丢弃的报文的数量。Through the present invention, the link state of the aggregated link in the aggregated link group is detected by the switch chip; in the case that the link state of the aggregated link is detected as a failure state, the switch chip will communicate with the aggregated link. The first port corresponding to the link is deleted from the aggregated link group. Therefore, it can solve the problem of the long time required to process the failure of the aggregated link group in the related technology, and realize the shortening of the time for processing the failure of the aggregated link group, thereby reducing the number of discarded packets of the aggregated link group .

Claims (10)

  1. 一种聚合链路的处理方法,包括:A processing method for aggregated links includes:
    通过交换芯片检测聚合链路组中的聚合链路的链路状态;Detect the link status of the aggregated links in the aggregated link group through the switch chip;
    在检测到所述聚合链路的链路状态为故障状态的情况下,所述交换芯片将与所述聚合链路对应的第一端口从所述聚合链路组中删除。In the case of detecting that the link state of the aggregated link is a failure state, the switch chip deletes the first port corresponding to the aggregated link from the aggregated link group.
  2. 根据权利要求1所述的方法,其中,所述交换芯片将与所述聚合链路对应的第一端口从所述聚合链路组中删除,包括:The method according to claim 1, wherein the removal of the first port corresponding to the aggregated link from the aggregated link group by the switching chip comprises:
    确定所述第一端口在所述聚合链路组中的目标位置;Determine the target position of the first port in the aggregated link group;
    将与所述目标位置对应的所述第一端口从所述聚合链路组中删除。Deleting the first port corresponding to the target location from the aggregated link group.
  3. 根据权利要求2所述的方法,其中,将与所述目标位置对应的所述第一端口从所述聚合链路组中删除之后,所述方法还包括:The method according to claim 2, wherein after deleting the first port corresponding to the target location from the aggregated link group, the method further comprises:
    更新所述聚合链路组中的成员端口数量。Update the number of member ports in the aggregation link group.
  4. 根据权利要求2所述的方法,其中,在所述第一端口不是所述聚合链路组中的最后一个端口的情况下,将与所述目标位置对应的所述第一端口从所述聚合链路组中删除之后,所述方法还包括:The method according to claim 2, wherein, in the case that the first port is not the last port in the aggregated link group, the first port corresponding to the target location is removed from the aggregated link group. After the link group is deleted, the method further includes:
    确定所述聚合链路组中与第二位置对应的第二端口,其中,所述第二端口位于所述聚合链路组中的最后位置;Determine the second port corresponding to the second position in the aggregated link group, where the second port is located at the last position in the aggregated link group;
    将所述第二端口写入到所述目标位置中;Write the second port into the target location;
    在所述聚合链路组中删除所述第二位置,并更新所述聚合链路组中的成员端口数量。Delete the second position in the aggregate link group, and update the number of member ports in the aggregate link group.
  5. 根据权利要求1所述的方法,其中,在所述交换芯片将与所 述聚合链路对应的第一端口从所述聚合链路组中删除之后,所述方法还包括:The method according to claim 1, wherein after the switching chip deletes the first port corresponding to the aggregated link from the aggregated link group, the method further comprises:
    所述交换芯片向CPU发送中断通知,其中,所述中断通知用于指示所述CPU对软表进行更新。The switch chip sends an interrupt notification to the CPU, where the interrupt notification is used to instruct the CPU to update the soft table.
  6. 一种聚合链路的处理装置,包括:A processing device for aggregated links, including:
    检测模块,设置为通过交换芯片检测聚合链路组中的聚合链路的链路状态;The detection module is set to detect the link status of the aggregated link in the aggregated link group through the switch chip;
    删除模块,设置为在检测到所述聚合链路的链路状态为故障状态的情况下,所述交换芯片将与所述聚合链路对应的第一端口从所述聚合链路组中删除。The deleting module is configured to delete the first port corresponding to the aggregated link from the aggregated link group when it is detected that the link state of the aggregated link is a fault state.
  7. 根据权利要求6所述的装置,其中,所述删除模块,还设置为:The device according to claim 6, wherein the deleting module is further configured to:
    确定所述第一端口在所述聚合链路组中的目标位置;Determine the target position of the first port in the aggregated link group;
    将与所述目标位置对应的所述第一端口从所述聚合链路组中删除。Deleting the first port corresponding to the target location from the aggregated link group.
  8. 根据权利要求7所述的装置,其中,所述装置,还包括:The device according to claim 7, wherein the device further comprises:
    更新模块,设置为更新所述聚合链路组中的成员端口数量。The update module is configured to update the number of member ports in the aggregation link group.
  9. 根据权利要求7所述的装置,其中,所述装置,还包括:The device according to claim 7, wherein the device further comprises:
    确定模块,设置为在所述第一端口不是所述聚合链路组中的最后一个端口的情况下,确定所述聚合链路组中与第二位置对应的第二端口,其中,所述第二端口位于所述聚合链路组中的最后位置;The determining module is configured to determine the second port corresponding to the second position in the aggregated link group in the case that the first port is not the last port in the aggregated link group, wherein the first port is The second port is located at the last position in the aggregated link group;
    写入模块,设置为将所述第二端口写入到所述目标位置中;A writing module, configured to write the second port into the target location;
    处理模块,设置为在所述聚合链路组中删除所述第二位置,并更新所述聚合链路组中的成员端口数量。The processing module is configured to delete the second position in the aggregated link group and update the number of member ports in the aggregated link group.
  10. 根据权利要求6所述的装置,其中,所述装置,还包括:The device according to claim 6, wherein the device further comprises:
    通知模块,设置为在所述交换芯片将与所述聚合链路对应的第一端口从所述聚合链路组中删除之后,所述交换芯片向CPU发送中断通知,其中,所述中断通知用于指示所述CPU对软表进行更新。A notification module, configured to send an interrupt notification to the CPU after the switching chip deletes the first port corresponding to the aggregate link from the aggregate link group, wherein the interrupt notification is used for To instruct the CPU to update the soft table.
PCT/CN2020/114059 2019-12-09 2020-09-08 Method and device for processing aggregated link WO2021114774A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911252252.2 2019-12-09
CN201911252252.2A CN111131024A (en) 2019-12-09 2019-12-09 Processing method and device of aggregated link

Publications (1)

Publication Number Publication Date
WO2021114774A1 true WO2021114774A1 (en) 2021-06-17

Family

ID=70497958

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/114059 WO2021114774A1 (en) 2019-12-09 2020-09-08 Method and device for processing aggregated link

Country Status (2)

Country Link
CN (1) CN111131024A (en)
WO (1) WO2021114774A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131024A (en) * 2019-12-09 2020-05-08 盛科网络(苏州)有限公司 Processing method and device of aggregated link
CN112737945B (en) * 2020-12-30 2022-09-30 杭州迪普信息技术有限公司 Server connection control method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340456A (en) * 2008-08-15 2009-01-07 杭州华三通信技术有限公司 A converging method of distributed aggregated link failure and a stacking apparatus
CN101505270A (en) * 2009-03-24 2009-08-12 神州数码网络(北京)有限公司 Method for aggregated link rapid convergence of distributed switch
CN103501250A (en) * 2013-09-30 2014-01-08 杭州华三通信技术有限公司 Data flow processing method and device in distribution type link aggregation network
US20150288561A1 (en) * 2010-09-26 2015-10-08 Hangzhou H3C Technologies Co., Ltd. Computer network method and device using link aggregation
CN111131024A (en) * 2019-12-09 2020-05-08 盛科网络(苏州)有限公司 Processing method and device of aggregated link
CN111585883A (en) * 2019-02-18 2020-08-25 中兴通讯股份有限公司 Link aggregation port switching method, network equipment and computer storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4830942B2 (en) * 2007-03-28 2011-12-07 日本電気株式会社 Communication apparatus, communication system, and LAG management table management method used therefor
CN102523113B (en) * 2011-12-15 2014-12-17 盛科网络(苏州)有限公司 Chip realization method for MEP configuration on cross-chip aggregated link in Ethernet network OAM and chip realization system
US9071537B2 (en) * 2012-06-15 2015-06-30 Citrix Systems, Inc. Systems and methods for propagating health of a cluster node
CN102857419B (en) * 2012-10-12 2015-07-22 华为技术有限公司 Method and device for processing fault of link aggregation port
CN106533889A (en) * 2016-12-30 2017-03-22 盛科网络(苏州)有限公司 Method of BPE cross-port extension device to realize link aggregation in chip

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340456A (en) * 2008-08-15 2009-01-07 杭州华三通信技术有限公司 A converging method of distributed aggregated link failure and a stacking apparatus
CN101505270A (en) * 2009-03-24 2009-08-12 神州数码网络(北京)有限公司 Method for aggregated link rapid convergence of distributed switch
US20150288561A1 (en) * 2010-09-26 2015-10-08 Hangzhou H3C Technologies Co., Ltd. Computer network method and device using link aggregation
CN103501250A (en) * 2013-09-30 2014-01-08 杭州华三通信技术有限公司 Data flow processing method and device in distribution type link aggregation network
CN111585883A (en) * 2019-02-18 2020-08-25 中兴通讯股份有限公司 Link aggregation port switching method, network equipment and computer storage medium
CN111131024A (en) * 2019-12-09 2020-05-08 盛科网络(苏州)有限公司 Processing method and device of aggregated link

Also Published As

Publication number Publication date
CN111131024A (en) 2020-05-08

Similar Documents

Publication Publication Date Title
WO2020216280A1 (en) Block processing methods, node and system
WO2021114774A1 (en) Method and device for processing aggregated link
US10764119B2 (en) Link handover method for service in storage system, and storage device
CN104714905A (en) Method and system for performing a failover operation from the first adapter to the second adapter
CN111200624B (en) Cross-gatekeeper data transmission method and system
RU2653254C1 (en) Method, node and system for managing data for database cluster
US11132265B2 (en) Multi-replica data restoration method and apparatus
WO2016177231A1 (en) Dual-control-based active-backup switching method and device
US20190387053A1 (en) Message Transmission Method and Apparatus In Cluster File System
CN110912985B (en) Network link scheduling method and related equipment
US11240100B2 (en) Using an out-of-band network to reconfigure a bus interface port
US10459791B2 (en) Storage device having error communication logical ports
WO2016206502A1 (en) Service control method and apparatus, and computer storage medium
WO2019174454A1 (en) Link recovery method and device, system, storage medium, and electronic device
WO2018054109A1 (en) Port setting method, device, and system
CN103414591A (en) Method and system for fast converging when port failure is recovered
CN110603798B (en) System and method for providing elastic consistency platform with high availability
WO2022199229A1 (en) Suspended transaction inspection method and apparatus, electronic device and storage medium
CN109039822B (en) BFD protocol message filtering method and system
CN108616461B (en) Policy switching method and device
CN108089911A (en) The control method and device of calculate node in OpenStack environment
CN111090491B (en) Virtual machine task state recovery method and device and electronic equipment
KR101511841B1 (en) Fault tolerance system based on virtual machine and method for arbitrating packets
CN108206823A (en) A kind of method and the network equipment for handling message
WO2020083271A1 (en) Aggregated link convergence method and apparatus, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20898038

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20898038

Country of ref document: EP

Kind code of ref document: A1