WO2017000096A1 - Link recovery method and network device - Google Patents

Link recovery method and network device Download PDF

Info

Publication number
WO2017000096A1
WO2017000096A1 PCT/CN2015/082583 CN2015082583W WO2017000096A1 WO 2017000096 A1 WO2017000096 A1 WO 2017000096A1 CN 2015082583 W CN2015082583 W CN 2015082583W WO 2017000096 A1 WO2017000096 A1 WO 2017000096A1
Authority
WO
WIPO (PCT)
Prior art keywords
negotiation
link
message
recovery
time range
Prior art date
Application number
PCT/CN2015/082583
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 华为技术有限公司
Priority to CN201580079968.0A priority Critical patent/CN107534576B/en
Priority to PCT/CN2015/082583 priority patent/WO2017000096A1/en
Publication of WO2017000096A1 publication Critical patent/WO2017000096A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/34Signalling channels for network management communication
    • H04L41/344Out-of-band transfers

Definitions

  • an embodiment of the present invention provides a network device, including: a detecting module, configured to detect whether a data packet between a device at another end of the link is lost; and the network device and the other end of the link The device is connected by the link aggregation protocol LACP.
  • the negotiation packet sending module is configured to send the first recovery negotiation report after the detecting module detects that the data packet between the device at the other end of the link is lost.
  • the embodiment of the present invention can reduce the time of renegotiation after the failure of the LACP protocol by ensuring that the value of the timeout field that can be modified in the two consecutively restored negotiation packets is set to a different value.
  • the communication interruption delay is at the millisecond level to meet the needs of telecom operations.
  • the LACP protocol packet contains the following information: the Actor and the peer system priority, the local and peer system IDs, the local and remote port operations keys, and the local end. Port priority of the peer end, port ID of the local end and the peer end, and port status of the local end and the peer end.
  • both parties of the aggregation select an appropriate link according to a certain selection algorithm, and control the state of the aggregation.
  • the selected member link can forward the traffic normally, and the unselected member link will be blocked. No traffic can be forwarded.
  • the total bandwidth of the aggregated link is equal to the sum of the bandwidths of the selected member links, and the traffic on the aggregated link is distributed to each selected member link according to certain rules.
  • the device A detects that the data packet is lost between the device B and the device B. After the device is lost, the device A sends a first recovery negotiation message to the device B that is connected to the device A through the link aggregation protocol LACP. The device A determines whether the device B has received the negotiation response packet in the predetermined first time range. . If device A does not receive the negotiation response message from device B, device A sends an additional recovery negotiation message to device B at a predetermined time interval in the second time range until device A receives the negotiation response message from the second device.
  • the number of the additional recovery negotiation packets sent by the device A to the device B in the second time range is not more than two times, and the additional recovery negotiation message that is not greater than two times carries the timeout field, and the first recovery negotiation is performed.
  • the value of the timeout field included in the adjacent two additional recovery negotiation messages in the message and the additional recovery negotiation message not greater than twice is not the same.
  • the device After receiving the negotiation response packet, the device will resume the data link communication with device 2.
  • the reason that the value of the timeout field included in the two additional recovery negotiation messages cannot be the same is that if the device A repeatedly sends two consecutive recovery negotiation messages with the same content to the device B in one cycle.
  • the device A may send the recovery negotiation message to the device B at a predetermined time interval in less than one second, where the time less than one second may be specifically 400 ms, where the predetermined time interval is It can be a 50ms time interval.
  • the recovery negotiation packet sent by device A or the negotiation response packet from device B is discarded for some reason, for example, device A cannot process the received recovery negotiation packet after the active/standby switchover. If the device needs to wait for 1 second according to the existing scheme, then send the packet to device B again at time T0+1S, and then wait for the negotiation response of device B. Thus, the overall link termination delay will exceed 1 second.
  • the solution of the embodiment of the present invention after the first recovery negotiation negotiation message is sent by the A device, if the negotiation response message is not received within 50 ms, the first additional recovery negotiation message needs to be sent to the device B, and then waits.
  • device A sends a second additional recovery negotiation message to device B, so that device B can respond.
  • the device After receiving the negotiation response packet, the device will resume the data link communication with device 2.
  • the first time the negotiation message is restored the first time the additional recovery negotiation message and the second additional recovery negotiation message carry the timeout field, and the timeout field in the first recovery negotiation message
  • the value is different from the value of the timeout field in the first additional recovery negotiation message, the value of the timeout field in the first additional recovery negotiation message and the timeout in the second additional recovery negotiation message.
  • the value of the time field is different.
  • the first device sends a first recovery negotiation message to the second device that is connected to the first device by using the link aggregation protocol LACP.
  • the first device sends an additional recovery negotiation message to the second device in the predetermined second time range until the first device receives the negotiation from the second device. Response message.
  • the sum of the first time range and the second time range is less than one second, and the first device sends the number of additional recovery negotiation messages to the second device no more than two times in the second time range.
  • the additional recovery negotiation packet that is not more than two times carries a timeout field; the first recovery negotiation packet The value of the timeout period field included in the recovery negotiation message sent in the adjacent two times in the additional recovery negotiation message that is not more than two is different.
  • the sum of the first time range and the second time range is equal to 400 ms. More specifically, the value of the first time range may be 50 ms, and the first device may send an additional recovery negotiation message to the second device at a time interval of 50 ms in the second time range.
  • the first device resumes data link communication with the second device.
  • FIG. 4 is a schematic structural diagram of a network device according to an embodiment of the present invention.
  • the network device 400 may be the device A in FIG. 1 and FIG.
  • the network device 400 includes a detection module 401, configured to detect whether a data packet between the device at the other end of the link is lost.
  • the network device 400 is connected to the device at the other end of the link through a link aggregation protocol LACP.
  • LACP link aggregation protocol
  • the second end of the link is set to the other end of the link.
  • An additional recovery negotiation message is sent, until the determining module 404 confirms that the negotiation response message is received from the device at the other end of the link; wherein the sum of the first time range and the second time range is less than one second.
  • the number of the additional recovery negotiation packets sent by the device at the other end of the link to the second time range is not more than two times, and the first recovery negotiation message and the additional recovery negotiation report not greater than two times.
  • the timeout field is carried in the text; the value of the timeout field included in the two consecutive recovery negotiation messages in the first recovery negotiation message and the additional recovery negotiation message not greater than two times is different. ;
  • the processor 501 is configured to detect whether a data packet is lost between the device at the other end of the link, and the network device 500 is connected to the device at the other end of the link by using a link aggregation protocol LACP.
  • the processor 501 is further configured to determine whether a negotiation response message sent by a device at another end of the link is received in a predetermined first time range and a predetermined second time range;
  • the transceiver 502 is further configured to resume data link communication with a device at another end of the link after the processor 501 confirms that the negotiation response message is received.
  • Secondary storage 603 typically includes one or more disk drives or tape drives for non-volatile storage of data that can be used as an overflow data storage device if RAM 605 is not large enough to process all of the operational data. When the programs loaded onto the RAM 605 are selected and executed, the auxiliary memory 603 can be used to store these programs.
  • ROM 604 is used to store the read instructions and possible data during program execution.
  • the ROM 604 is a non-volatile storage device having a small memory capacity with respect to the auxiliary memory 603 of a larger memory capacity.
  • the RAM 605 is used to store volatile data and perhaps store instructions. Accessing ROM 604 and RAM 605 is typically faster than accessing secondary storage 603.
  • R Rl + k * (Ru - Rl), where k is a variable between 1% and 100% in increments of 1%, ie k is 1%, 2% , 3%, 4%, 5%, up to 50%, 51%, 52%, up to 95%, 96%, 97%, 98%, 99% or 100%.
  • k is a variable between 1% and 100% in increments of 1%, ie k is 1%, 2% , 3%, 4%, 5%, up to 50%, 51%, 52%, up to 95%, 96%, 97%, 98%, 99% or 100%.

Landscapes

  • Communication Control (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Disclosed are a link recovery method and corresponding network devices. The method comprises: a first device detecting that a data message between the first device and a second device is lost and then the first device sending a first recovery negotiation message to the second device; the first device determining whether a negotiation response message sent by the second device is received or not in a pre-set first time range. If the negotiation response message of the second device is not received, the first device sends an extra recovery negotiation message to the second device in a pre-set second time range until the first device receives the negotiation response message from the second device, wherein the values of time-out time fields in the recovery negotiation message which is sent a plurality of times are different. After receiving the negotiation response message, the first device recovers data link communication with the second device. According to the embodiment in the invention, the recovery negotiation message is sent a plurality of times and the values of time-out time fields capable of being modified in two successive recovery negotiation messages are set to different values, so that the time of re-negotiating after an LACP protocol has a fault can be shortened, a communication interrupt time delay is kept to a millisecond level and the requirements of telecommunication operations are met.

Description

一种链路恢复方法和网络设备Link recovery method and network device 技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种链路恢复的方法和网络设备。The present invention relates to the field of communications technologies, and in particular, to a link recovery method and a network device.
背景技术Background technique
链路聚合(Link Aggregation)是指将网络设备的多个物理端口捆绑在一起,成为一个逻辑端口,以实现出/入流量在各成员端口的负荷分担,并且通过一定的负荷分担策略决定报文从哪个成员端口发送。链路聚合控制协议(英文:LiNK AggregatioN CoNtrol Protocol,缩写:LACP)将多个物理端口绑定为一个逻辑端口,以使该多个物理端口形成一个链路聚合组(英文:LiNK AggregatioN Group,缩写:LAG),从而提高链路带宽和链路可靠性。具体的,一端设备的多个物理端口启用LACP后,该端设备可通过该多个物理端口分别向对端设备发送LACP报文,以和对端设备协商该多个物理端口是否能够进行链路聚合,当对端设备接收到这些LACP报文后,对端设备可根据这些LACP报文中携带的该端设备的信息和该多个物理端口的信息,从该多个物理端口中确定出能够进行链路聚合的物理端口,从而当该端设备和对端设备均执行上述操作后,该端设备和对端设备可以对能够进行链路聚合的物理端口协商一致,并完成这些物理端口的链路聚合。Link aggregation (Link Aggregation) is to bundle multiple physical ports of a network device into a logical port to implement the load balancing of the inbound/outbound traffic on each member port and determine the packet through a certain load balancing policy. From which member port to send. Link aggregation control protocol (English: LiNK AggregatioN CoNtrol Protocol, abbreviated as LACP) binds multiple physical ports into one logical port, so that the multiple physical ports form a link aggregation group (English: LiNK AggregatioN Group, abbreviation :LAG) to increase link bandwidth and link reliability. Specifically, after the LACP is enabled on the physical port of the device, the device can send the LACP packet to the peer device through the multiple physical ports to negotiate with the peer device whether the physical port can perform the link. Aggregation, after the peer device receives the LACP packets, the peer device can determine, according to the information of the end device carried in the LACP packets and the information of the multiple physical ports, from the multiple physical ports. A physical port that performs link aggregation. After the device and the peer device perform the above operations, the device and the peer device can negotiate the physical ports that can perform link aggregation and complete the chain of these physical ports. Road aggregation.
电信设备为了增强系统可靠性,通常都有主备两块主控板。在主用主控板故障时,系统倒换到备用主控板。倒换后备用主控板会对动态数据做校验检查,这个过程叫平滑处理。在这个过程的某些阶段,可能处理不了接收的LACP报文。 In order to enhance system reliability, telecom equipment usually has two main control boards. When the main control board is faulty, the system is switched to the standby main control board. After the switchover, the standby main control board checks the dynamic data for verification. This process is called smoothing. At some stage of the process, the received LACP message may not be processed.
在LACP聚合上行的场景,如果一方设备LACP协议出了状况,需要重新发起协商以便让物理端口快速切换到转发(forward)状态。因为运营商通常要求业务中断时延在几百毫秒以内(比如400ms)。为此通常的的做法是立即发送LACP初始协商报文来触发协商,对端收到LACP报文后,会立即回应,从而使链路快速协商成功。但如果这一个报文或者对端的回应报文由于某种原因被丢弃,按照目前协议规定,需要等待下一个正常的协议发包周期才能发送下一个报文,这样中断时延就会在比较长,满足不了毫秒级要求。In the uplink scenario of the LACP aggregation, if the LACP protocol of one device is out of order, the negotiation needs to be re-initiated to allow the physical port to quickly switch to the forward state. Because operators usually require business interruptions to be within a few hundred milliseconds (such as 400ms). For this reason, the normal negotiation is to send the LACP initial negotiation packet to trigger the negotiation. After receiving the LACP packet, the peer will respond immediately. However, if the packet or the peer response packet is discarded for some reason, according to the current protocol, it is necessary to wait for the next normal protocol packet sending period to send the next packet, so that the interrupt delay will be longer. Can not meet the millisecond level requirements.
发明内容Summary of the invention
有鉴于此,本发明实施例提供了一种链路聚合的方法、装置和系统,以解决上述技术问题。In view of this, the embodiments of the present invention provide a method, an apparatus, and a system for link aggregation to solve the above technical problem.
第一方面,本发明实施例提供了一种链路恢复的方法,包括:第一设备检测到与第二设备之间的数据报文丢失,所述第一设备与所述第二设备通过链路聚合协议LACP聚合相连;所述第一设备发送第一恢复协商报文给所述第二设备;所述第一设备判断在预定的第一时间范围是否接收到所述第二设备发出的协商响应报文;如果未接收到所述第二设备的协商响应报文,所述第一设备在预定的第二时间范围内以给第二设备发送额外的恢复协商报文,直到所述第一设备从第二设备接收到协商响应报文;其中所述第一时间范围和第二时间范围之和小于一秒,所述第一设备在第二时间范围内给第二设备发送额外的恢复协商报文的数量不大于两次,所述第一恢复协商报文和所述不大于两次的额外的恢复协商报文中携带超时时间(Timeout)字段;所述第一恢复协商报文和所述不大于两次的额外的 恢复协商报文中相邻两次发送的恢复协商报文所包括的超时时间字段的值不相同;所述第一设备在接收到协商响应报文后恢复与所述第二设备的数据链路通信。In a first aspect, an embodiment of the present invention provides a method for link recovery, including: detecting, by a first device, a data packet loss with a second device, where the first device and the second device pass a chain The first aggregation device sends a first recovery negotiation message to the second device; the first device determines whether the negotiation sent by the second device is received in the predetermined first time range. a response message; if the negotiation response message of the second device is not received, the first device sends an additional recovery negotiation message to the second device within a predetermined second time range until the first The device receives the negotiation response message from the second device, where the sum of the first time range and the second time range is less than one second, and the first device sends an additional recovery negotiation to the second device in the second time range. The number of the packets is not more than two, and the first recovery negotiation message and the additional recovery negotiation message that is not more than two times carry a timeout field; the first recovery negotiation message and the Extra for no more than two The value of the timeout period field included in the recovery negotiation message sent by the two neighboring packets is different. The first device recovers the data link with the second device after receiving the negotiation response packet. Communication.
第二方面,本发明实施例提供了一种网络设备,包括:检测模块,用于检测与链路另一端的设备之间的数据报文是否丢失;所述网络设备与所述链路另一端的设备通过链路聚合协议LACP聚合相连;协商报文发送模块,用于在所述检测模块检测到与所述链路另一端的设备之间的数据报文丢失后,发送第一恢复协商报文给所述链路另一端的设备;判断模块,用于判断在预定的第一时间范围和第二时间范围内是否接收到所述链路另一端的设备发出的协商响应报文;所述协商报文发送模块还用于:在所述判断模块确认在第一时间范围内未接收到所述链路另一端的设备发出的协商响应报文后,在预定的第二时间范围内以给所述链路另一端的设备发送额外的恢复协商报文,直到所述判断模块确认从所述链路另一端的设备接收到协商响应报文;其中所述第一时间范围和第二时间范围之和小于一秒,所述在第二时间范围内给链路另一端的设备发送额外的恢复协商报文的数量不大于两次,所述第一恢复协商报文和所述不大于两次的额外的恢复协商报文中携带超时时间字段;所述第一恢复协商报文和所述不大于两次的额外的恢复协商报文中相邻两次发送的恢复协商报文所包括的超时时间字段的值不相同;通信恢复模块,用于在所述判断模块确认从链路另一端的设备接收到协商响应报文后恢复与所述链路另一端的设备的数据链路通信。In a second aspect, an embodiment of the present invention provides a network device, including: a detecting module, configured to detect whether a data packet between a device at another end of the link is lost; and the network device and the other end of the link The device is connected by the link aggregation protocol LACP. The negotiation packet sending module is configured to send the first recovery negotiation report after the detecting module detects that the data packet between the device at the other end of the link is lost. The device is provided to the device at the other end of the link, and the determining module is configured to determine whether a negotiation response message sent by the device at the other end of the link is received in the predetermined first time range and the second time range; The negotiation message sending module is further configured to: after the determining module confirms that the negotiation response message sent by the device at the other end of the link is not received within the first time range, within a predetermined second time range, The device at the other end of the link sends an additional recovery negotiation message until the determining module confirms that the negotiation response message is received from the device at the other end of the link; And the sum of the second time range is less than one second, and the number of the additional recovery negotiation messages sent by the device at the other end of the link is not more than two times in the second time range, the first recovery negotiation message and The timeout time field is carried in the additional recovery negotiation message that is not more than two times; the first recovery negotiation message and the additional recovery negotiation message that is not more than two times are sent to the recovery negotiation of two consecutive transmissions. The value of the timeout field included in the packet is different. The communication recovery module is configured to resume the device with the other end of the link after the determining module confirms that the device responds to the negotiation response message from the device at the other end of the link. Data link communication.
第三方面,本发明实施例提供了另一种网络设备,包括:一种网络设 备,其特征在于,包括处理器和收发器,其中:所述处理器,用于检测与链路另一端的设备之间的数据报文是否丢失;所述网络设备与所述链路另一端的设备通过链路聚合协议LACP聚合相连;所述收发器,用于在所述处理器检测到与所述链路另一端的设备之间的数据报文丢失后,发送第一恢复协商报文给所述链路另一端的设备;所述处理器,还用于判断在预定的第一时间范围和预定的第二时间范围是否接收到所述链路另一端的设备发出的协商响应报文;所述收发器还用于,在所述处理器确认在预定的第一时间范围未接收到所述链路另一端的设备发出的协商响应报文后,在所述预定的第二时间范围内以给所述链路另一端的设备发送额外的恢复协商报文,直到所述处理器确认从所述链路另一端的设备接收到协商响应报文;其中所述第一时间范围和第二时间范围之和小于一秒,所述在第二时间范围内给链路另一端的设备发送额外的恢复协商报文的数量不大于两次,所述第一恢复协商报文和所述不大于两次的额外的恢复协商报文中携带超时时间字段;所述第一恢复协商报文和所述不大于两次的额外的恢复协商报文中相邻两次发送的恢复协商报文所包括的超时时间字段的值不相同;所述收发器,还用于在所述处理器确认接收到协商响应报文后恢复与所述链路另一端的设备的数据链路通信。In a third aspect, an embodiment of the present invention provides another network device, including: a network design And comprising: a processor and a transceiver, wherein: the processor is configured to detect whether a data packet between the device at the other end of the link is lost; and the network device and the other end of the link The device is connected by the link aggregation protocol LACP; the transceiver is configured to send the first recovery negotiation message after the processor detects that the data packet between the device at the other end of the link is lost. And the processor is further configured to determine whether a negotiation response message sent by the device at the other end of the link is received in the predetermined first time range and the predetermined second time range. The transceiver is further configured to: after the processor confirms that the negotiation response message sent by the device at the other end of the link is not received in the predetermined first time range, in the predetermined second time range Sending an additional recovery negotiation message to the device at the other end of the link until the processor acknowledges receipt of the negotiation response message from the device at the other end of the link; wherein the first time range and the first Second hour The sum of the range is less than one second, and the number of the additional recovery negotiation packets sent by the device at the other end of the link is not more than two, and the first recovery negotiation message and the The timeout time field is carried in the two additional recovery negotiation messages; the first recovery negotiation message and the additional recovery negotiation message that is not more than two times are included in the two adjacent recovery negotiation messages. The value of the timeout field is different; the transceiver is further configured to resume data link communication with the device at the other end of the link after the processor confirms receipt of the negotiation response message.
本发明实施例通过发送多次恢复协商报文,并且将连续两次恢复协商报文中能修改的超时时间字段中的值设置成不同值,可以降低更LACP协议故障后重新协商的时间,保障通信中断时延在毫秒级别,满足电信运营需要。The embodiment of the present invention can reduce the time of renegotiation after the failure of the LACP protocol by ensuring that the value of the timeout field that can be modified in the two consecutively restored negotiation packets is set to a different value. The communication interruption delay is at the millisecond level to meet the needs of telecom operations.
附图说明 DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only some of the present invention. For the embodiments, those skilled in the art can obtain other drawings according to the drawings without any creative work.
图1是本发明一个实施例链路恢复方法所涉及的聚合场景示例;1 is an example of an aggregation scenario involved in a link recovery method according to an embodiment of the present invention;
图2是本发明另一实施例的链路恢复方法所涉及的聚合场景示例;2 is an example of an aggregation scenario involved in a link recovery method according to another embodiment of the present invention;
图3是本发明实施例的链路恢复方法流程图;3 is a flowchart of a link recovery method according to an embodiment of the present invention;
图4是本发明实施例提供的一种网络设备的结构示意图;4 is a schematic structural diagram of a network device according to an embodiment of the present invention;
图5是本发明实施例提供的另一种网络设备的结构示意图;FIG. 5 is a schematic structural diagram of another network device according to an embodiment of the present disclosure;
图6显示了一个用于本发明实施例的典型的通用网络组件。Figure 6 shows a typical general network component for use with embodiments of the present invention.
具体实施例Specific embodiment
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整的描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
链路聚合控制协议(Link Aggregation Control Protocol,LACP)是IEEE 802.ad标准中实现链路聚合的控制协议。通过该协议,在一个链路两端的伙伴系统之间交换信息,以允许它们的链路聚合控制实例对该链路所属的链路聚合组的标识达成一致,移动链路到该链路聚合组,并按照一个有序的方式来行使它的发送和接收功能。LACP协议使用LACPDU的交互来实现聚合场景下链路的自动选择,链路变化的自动感知和重新选择,以达到自动控制聚合组内各成员链路的正常工作的目的。 The Link Aggregation Control Protocol (LACP) is a control protocol for implementing link aggregation in the IEEE 802.ad standard. Through this protocol, information is exchanged between partner systems at both ends of a link to allow their link aggregation control instances to agree on the identity of the link aggregation group to which the link belongs, and the mobile link to the link aggregation group And perform its send and receive functions in an orderly manner. The LACP protocol uses the LACPDUs to implement the automatic selection of links in the aggregation scenario and the automatic sensing and reselection of link changes to automatically control the normal working of each member link in the aggregation group.
LACP协议报文主要包含以下信息:本端(Actor)和对端(Partner)系统优先级、本端和对端系统标识ID(identifier)、本端和对端的端口操作秘钥Key、本端和对端的端口优先级、本端和对端的端口ID、本端和对端的端口状态。聚合的双方根据这些信息,按照一定的选择算法选择合适的链路,控制聚合的状态,被选中的成员链路可以正常的转发流量,而未被选中的成员链路将被置为阻塞状态,不能转发任何流量。聚合链路的总带宽等于被选中的成员链路的带宽之和,并且聚合链路上的流量会按照一定的规则分担到各个选中的成员链路上。The LACP protocol packet contains the following information: the Actor and the peer system priority, the local and peer system IDs, the local and remote port operations keys, and the local end. Port priority of the peer end, port ID of the local end and the peer end, and port status of the local end and the peer end. Based on the information, both parties of the aggregation select an appropriate link according to a certain selection algorithm, and control the state of the aggregation. The selected member link can forward the traffic normally, and the unselected member link will be blocked. No traffic can be forwarded. The total bandwidth of the aggregated link is equal to the sum of the bandwidths of the selected member links, and the traffic on the aggregated link is distributed to each selected member link according to certain rules.
图1是本发明实施例链路恢复方法所涉及的聚合场景示例。在图1中,设备A和设备B通过传输设备N聚合。在设备A和设备B协商成功正常运行时,设备A和设备B每秒钟发送一个报文给对方。在T0时刻,设备A接收到设备B发送的报文,并且给设备B也发送报文,在这个时候设备A会再隔一秒才能接收和发送下一报文,此时设备N的端口N1发生闪断,在闪断过程中N1端口断开后很快又恢复,N1的闪断导致端口A1也发生闪断,此时A1端口的LACP协议状态被清除,需要重新协商。按照通常的做法,设备A需要等待一秒钟,即在T0+1秒,才会发送恢复协商报文给设备B,B回应后双方才能协商成功,这会导致链路终端延时大于1秒。FIG. 1 is an example of an aggregation scenario involved in a link recovery method according to an embodiment of the present invention. In Figure 1, device A and device B are aggregated by transmission device N. When device A and device B negotiate successful operation, device A and device B send a message to the other party every second. At time T0, device A receives the packet sent by device B, and sends a packet to device B. At this time, device A will receive and send the next packet every second. At this time, port N1 of device N. A flashing occurs. After the N1 port is disconnected, the N1 port is restored. The flashing of the N1 causes the port A1 to be flashed. The LACP status of the A1 port is cleared and needs to be renegotiated. According to the usual practice, device A needs to wait for one second, that is, at T0+1 seconds, it will send a recovery negotiation message to device B. After B responds, the two parties can negotiate successfully, which will cause the link terminal delay to be greater than 1 second. .
在这里需要注意,A1端口的LACP协议状态被清除,需要重新协商的情况不仅仅只限于A1端口发生闪断。设备A发出的报文,或者设备B回复给设备A的响应报文由于特定原因丢弃,例如主备倒换后设备A在平滑过程中一些时间段内无法处理收到的LACP报文,这时设备B回复给设备A的响应报文设备A无法收到和处理,需要重新协商。Note that the status of the LACP protocol on the A1 port is cleared. The renegotiation is not limited to the flashing of the A1 port. The device sends a LACP packet to the device. The device sends a response to the device. The device does not process the received LACP packet for a certain period of time. B responds to device A. The response packet device A cannot receive and process, and needs to be renegotiated.
本发明实施例的方案中,设备A在检测到与所述设备B之间的数据报文丢 失后,设备A会发送第一恢复协商报文给与设备A通过链路聚合协议LACP聚合相连的设备B,设备A判断在预定的第一时间范围内是否接收到设备B的协商响应报文。如果设备A未接收到设备B的协商响应报文,设备A在第二时间范围内以预定的时间间隔给设备B发送额外的恢复协商报文,直到设备A从第二设备收到协商响应报文,其中设备A在第二时间范围内给设备B发送额外的恢复协商报文的数量不大于二次,该不大于二次的额外的恢复协商报文中携带超时字段,该第一恢复协商报文和该不大于二次的额外的恢复协商报文中相邻两次的额外的恢复协商报文所包括的超时时间字段的值不相同。设备一在收到协商响应报文后会恢复与设备二的数据链路通信。在这里,相邻两次的额外的恢复协商报文所包括的超时时间字段的值不能相同的原因是,如果设备A在一个周期内重复发送连续两个内容相同的恢复协商报文给设备B,设备B会认为设备A重发的报文和刚才处理的报文是重复的,设备B不会处理后面收到的这个重复的报文。恢复协商报文所包括的字段中,所有字段都有固定的含义,表示一个状态,根据实际情况任何一个状态有变化时,发送出去的报文里对应的字段就要相应变化。本发明实施例之所以选超时时间这个字段,是因为其他字段的修改会影响协商结果。而超时时间这个字段是表示协商成功后正常发送报文时的发送周期,在协商阶段不会对业务有影响,所以本发明实施例通过修改超时时间字段的值来区别连续发送的两个其他内容相同的恢复协商报文,从而让设备B在收到后面发送的恢复协商报文时,能识别超时时间字段的值的不同,从而确认连续收到的两个恢复协商报文不是相同的,这样设备B会处理收到的这两个恢复协商报文。In the solution of the embodiment of the present invention, the device A detects that the data packet is lost between the device B and the device B. After the device is lost, the device A sends a first recovery negotiation message to the device B that is connected to the device A through the link aggregation protocol LACP. The device A determines whether the device B has received the negotiation response packet in the predetermined first time range. . If device A does not receive the negotiation response message from device B, device A sends an additional recovery negotiation message to device B at a predetermined time interval in the second time range until device A receives the negotiation response message from the second device. And the number of the additional recovery negotiation packets sent by the device A to the device B in the second time range is not more than two times, and the additional recovery negotiation message that is not greater than two times carries the timeout field, and the first recovery negotiation is performed. The value of the timeout field included in the adjacent two additional recovery negotiation messages in the message and the additional recovery negotiation message not greater than twice is not the same. After receiving the negotiation response packet, the device will resume the data link communication with device 2. Here, the reason that the value of the timeout field included in the two additional recovery negotiation messages cannot be the same is that if the device A repeatedly sends two consecutive recovery negotiation messages with the same content to the device B in one cycle. The device B will consider that the packet retransmitted by the device A and the packet that has just been processed are duplicated, and the device B will not process the repeated packet received later. All the fields included in the recovery negotiation message have a fixed meaning, indicating a state. When any state changes according to the actual situation, the corresponding field in the sent message will change accordingly. The reason why the timeout period is selected in the embodiment of the present invention is because the modification of other fields affects the negotiation result. The timeout period field is a transmission period when the packet is sent normally after the negotiation is successful, and does not affect the service during the negotiation phase. Therefore, the embodiment of the present invention distinguishes two consecutive contents by modifying the value of the timeout field. The same recovery negotiation message, so that device B can recognize the difference of the value of the timeout field when receiving the recovery negotiation message sent later, so as to confirm that the two recovery negotiation messages received consecutively are not the same, Device B processes the two recovered negotiation packets received.
在本发明的实施例中,恢复协商报文是一种LACP协议报文,协商响应报 文也是一种LACP协议报文。设备A可以在小于一秒的时间内以预定的时间间隔给设备B依次发送三次恢复协商报文,之后设备A从设备B收到协商响应报文,该三次恢复协商报文包括第一恢复协商报文,第一次额外的恢复协商报文和第二次额外的恢复协商报文。其中第一恢复协商报文中包括的超时时间字段的值与第二次额外的恢复报文中包括的超时时间字段的值可以相同。在这种情况下,第一恢复协商报文中包括的超时时间字段的值和第一次额外的恢复报文中包括的超时字段的值不能相同,同理,第一次额外的恢复协商报文中包括的超时时间字段的值和第二次额外的恢复协商报文中包括的超时字段的值不能相同。In the embodiment of the present invention, the recovery negotiation message is an LACP protocol message, and the negotiation response message is reported. The text is also a LACP protocol message. The device A may send the device to the device B for three times in a time interval of less than one second. The device A receives the negotiation response message from the device B. The device A receives the negotiation response message from the device B. The three recovery negotiation messages include the first recovery negotiation. The message, the first additional recovery negotiation message and the second additional recovery negotiation message. The value of the timeout field included in the first recovery negotiation message may be the same as the value of the timeout field included in the second additional recovery message. In this case, the value of the timeout field included in the first recovery negotiation message and the value of the timeout field included in the first additional recovery message cannot be the same. Similarly, the first additional recovery negotiation report. The value of the timeout field included in the text and the value of the timeout field included in the second additional recovery negotiation message cannot be the same.
在本发明的实施例中,设备A可以在小于一秒的时间内以预定的时间间隔给设备B发送恢复协商报文,这里的小于一秒的时间可以具体为400ms,这里的预定的时间间隔可以是50ms的时间间隔。In the embodiment of the present invention, the device A may send the recovery negotiation message to the device B at a predetermined time interval in less than one second, where the time less than one second may be specifically 400 ms, where the predetermined time interval is It can be a 50ms time interval.
图2是本发明另一实施例的链路恢复方法所涉及的聚合场景示例。在图2中,设备A和设备B直接连接聚合,在链路双方协商成功正常运行时,设备A和设备B每秒钟给对方发送报文。在时刻T0设备A收到设备B的报文,同时设备A也给设备B发送报文。此时设备A会再隔一秒才能接收和发送下一个报文。此时如果设备A发生了主备倒换,协议状态数据需要重新协商来刷新,这种情况设备B并未感知到,设备A需要立即发起重新协商才能快速恢复。设备A向设备B发送恢复协商报文。此时如果设备A发出的恢复协商报文或者设备B回应的协商响应报文由于某种原因丢弃,比如由于主备倒换后设备A在平滑的时间段无法处理收到的恢复协商报文,此时设备如果按现有的方案需要等待1秒,然后再T0+1S时刻再次发送报文给设备B,之后等待设备B的协商响应报 文,这样整体链路终端延时会超过1秒。本发明实施例的方案在A设备发出第一次恢复协商报文后,如果在50ms内没有收到协商响应报文,就需要发第一次额外的恢复协商报文给设备B,然后再等待50ms,如果还是没有收到协商响应报文,设备A会发第二次额外的恢复协商报文给设备B,以此来促使设备B能做出响应。设备一在收到协商响应报文后会恢复与设备二的数据链路通信。在这里,第一次恢复协商报文,第一次额外的恢复协商报文和第二次额外的恢复协商报文中都携带有超时时间字段,第一次恢复协商报文中的超时时间字段的值与第一次额外的恢复协商报文中的超时时间字段的值不同,第一次额外的恢复协商报文中的超时时间字段的值与第二次额外的恢复协商报文中的超时时间字段的值不同。FIG. 2 is an example of an aggregation scenario involved in a link recovery method according to another embodiment of the present invention. In Figure 2, device A and device B are directly connected to each other. When both links are successfully negotiated, device A and device B send packets to each other every second. At time T0, device A receives the packet of device B, and device A also sends a packet to device B. At this point, device A will take another second to receive and send the next message. If the active/standby switchover occurs on device A, the protocol status data needs to be renegotiated to be refreshed. In this case, device B does not detect that device A needs to initiate renegotiation immediately to recover quickly. Device A sends a recovery negotiation packet to device B. If the recovery negotiation packet sent by device A or the negotiation response packet from device B is discarded for some reason, for example, device A cannot process the received recovery negotiation packet after the active/standby switchover. If the device needs to wait for 1 second according to the existing scheme, then send the packet to device B again at time T0+1S, and then wait for the negotiation response of device B. Thus, the overall link termination delay will exceed 1 second. The solution of the embodiment of the present invention, after the first recovery negotiation negotiation message is sent by the A device, if the negotiation response message is not received within 50 ms, the first additional recovery negotiation message needs to be sent to the device B, and then waits. 50ms, if the negotiation response message is still not received, device A sends a second additional recovery negotiation message to device B, so that device B can respond. After receiving the negotiation response packet, the device will resume the data link communication with device 2. Here, the first time the negotiation message is restored, the first time the additional recovery negotiation message and the second additional recovery negotiation message carry the timeout field, and the timeout field in the first recovery negotiation message The value is different from the value of the timeout field in the first additional recovery negotiation message, the value of the timeout field in the first additional recovery negotiation message and the timeout in the second additional recovery negotiation message. The value of the time field is different.
图3是本发明实施例的链路恢复方法流程图,该链路恢复方法包括:FIG. 3 is a flowchart of a link recovery method according to an embodiment of the present invention, where the link recovery method includes:
S301、第一设备检测到与第二设备之间的数据报文丢失。S301. The first device detects that the data packet is lost between the second device and the second device.
S302、第一设备发送第一恢复协商报文给与第一设备通过链路聚合协议LACP聚合相连的第二设备。S302: The first device sends a first recovery negotiation message to the second device that is connected to the first device by using the link aggregation protocol LACP.
S303、第一设备判断在预定的第一时间范围是否接收到第二设备的协商响应报文。S303. The first device determines whether a negotiation response packet of the second device is received in the predetermined first time range.
S304、如果未接收到第二设备的协商响应报文,第一设备在预定的第二时间范围内以给第二设备发送额外的恢复协商报文,直到第一设备从第二设备收到协商响应报文。S304. If the negotiation response packet of the second device is not received, the first device sends an additional recovery negotiation message to the second device in the predetermined second time range until the first device receives the negotiation from the second device. Response message.
在这里,所述第一时间范围和第二时间范围之和小于一秒,所述第一设备在第二时间范围内给第二设备发送额外的恢复协商报文的数量不大于两次,所述不大于两次的额外的恢复协商报文中携带超时字段;所述第一恢复协商报文 和所述不大于两次的额外的恢复协商报文中相邻两次发送的恢复协商报文所包括的超时时间字段的值不相同。Here, the sum of the first time range and the second time range is less than one second, and the first device sends the number of additional recovery negotiation messages to the second device no more than two times in the second time range. The additional recovery negotiation packet that is not more than two times carries a timeout field; the first recovery negotiation packet The value of the timeout period field included in the recovery negotiation message sent in the adjacent two times in the additional recovery negotiation message that is not more than two is different.
在这里,所述第一设备在第二时间范围内以预定的时间间隔给第二设备依次发送第一次额外的恢复协商报文和第二次额外的恢复协商报文后,所述第一设备从第二设备收到协商响应报文,其中第一恢复协商报文包括的超时时间字段的值与第二次额外的恢复报文中包括的超时时间字段的值可以相同。Here, after the first device sequentially sends the first additional recovery negotiation message and the second additional recovery negotiation message to the second device at a predetermined time interval in the second time range, the first The device receives the negotiation response message from the second device, where the value of the timeout period field included in the first recovery negotiation message and the value of the timeout time field included in the second additional recovery message may be the same.
第一时间范围和所述第二时间范围的和等于400ms。更具体地,其中第一时间范围的值可以为50ms,第一设备在第二时间范围内可以以50ms的时间间隔给第二设备发送额外的恢复协商报文。The sum of the first time range and the second time range is equal to 400 ms. More specifically, the value of the first time range may be 50 ms, and the first device may send an additional recovery negotiation message to the second device at a time interval of 50 ms in the second time range.
S305、所述第一设备恢复与所述第二设备的数据链路通信。S305. The first device resumes data link communication with the second device.
图4是本发明实施例提供的一种网络设备的结构示意图,网络设备400可以是图1和图2中的设备A。网络设备400包括检测模块401,用于检测与链路另一端的设备之间的数据报文是否丢失;所述网络设备400与所述链路另一端的设备通过链路聚合协议LACP聚合相连。FIG. 4 is a schematic structural diagram of a network device according to an embodiment of the present invention. The network device 400 may be the device A in FIG. 1 and FIG. The network device 400 includes a detection module 401, configured to detect whether a data packet between the device at the other end of the link is lost. The network device 400 is connected to the device at the other end of the link through a link aggregation protocol LACP.
协商报文发送模块403,用于在所述检测模块401检测到与所述链路另一端的设备之间的数据报文丢失后,发送第一恢复协商报文给所述链路另一端的设备;The negotiation packet sending module 403 is configured to send the first recovery negotiation message to the other end of the link after the detecting module 401 detects that the data packet between the device at the other end of the link is lost. device;
判断模块404,用于判断在预定的第一时间范围和第二时间范围内是否接收到所述链路另一端的设备发出的协商响应报文;所述协商报文发送模块403还用于:The determining module 404 is configured to determine whether the negotiation response message sent by the device at the other end of the link is received in the predetermined first time range and the second time range; the negotiation message sending module 403 is further configured to:
在所述判断模块404确认在第一时间范围内未接收到所述链路另一端的设备发出的协商响应报文后,在预定的第二时间范围内以给所述链路另一端的设 备发送额外的恢复协商报文,直到所述判断模块404确认从所述链路另一端的设备接收到协商响应报文;其中所述第一时间范围和第二时间范围之和小于一秒,所述在第二时间范围内给链路另一端的设备发送额外的恢复协商报文的数量不大于两次,所述第一恢复协商报文和所述不大于两次的额外的恢复协商报文中携带超时时间字段;所述第一恢复协商报文和所述不大于两次的额外的恢复协商报文中相邻两次发送的恢复协商报文所包括的超时时间字段的值不相同;After the judging module 404 confirms that the negotiation response message sent by the device at the other end of the link is not received within the first time range, the second end of the link is set to the other end of the link. An additional recovery negotiation message is sent, until the determining module 404 confirms that the negotiation response message is received from the device at the other end of the link; wherein the sum of the first time range and the second time range is less than one second. The number of the additional recovery negotiation packets sent by the device at the other end of the link to the second time range is not more than two times, and the first recovery negotiation message and the additional recovery negotiation report not greater than two times. The timeout field is carried in the text; the value of the timeout field included in the two consecutive recovery negotiation messages in the first recovery negotiation message and the additional recovery negotiation message not greater than two times is different. ;
通信恢复模块402,用于在所述判断模块确认从链路另一端的设备接收到协商响应报文后恢复与所述链路另一端的设备的数据链路通信。The communication recovery module 402 is configured to resume data link communication with the device at the other end of the link after the determining module confirms that the negotiation response message is received from the device at the other end of the link.
本发明实施例的协商报文发送模块403可以在第二时间范围内以预定的时间间隔给所述链路另一端的设备依次发送第一次额外的恢复协商报文和第二次额外的恢复协商报文后,所述网络设备400从链路另一端的设备收到协商响应报文,其中第一恢复协商报文包括的超时时间字段的值可以与第二次额外的恢复报文中包括的超时时间字段的值相同。本发明实施例的第一时间范围和所述第二时间范围的和可以等于400ms。本发明实施例的第一时间范围可以是50ms,第一设备在第二时间范围内可以以50ms的时间间隔给链路另一端的设备发送额外的恢复协商报文。The negotiation packet sending module 403 of the embodiment of the present invention may sequentially send the first additional recovery negotiation message and the second additional recovery to the device at the other end of the link at a predetermined time interval in the second time range. After the negotiation packet, the network device 400 receives the negotiation response packet from the device at the other end of the link, where the value of the timeout period field included in the first restoration negotiation message may be included in the second additional recovery message. The timeout field has the same value. The sum of the first time range and the second time range of the embodiment of the present invention may be equal to 400 ms. The first time range of the embodiment of the present invention may be 50 ms, and the first device may send an additional recovery negotiation message to the device at the other end of the link at a time interval of 50 ms in the second time range.
图5是本发明实施例提供的另一种网络设备500的结构示意图,网络设备500可以是图1和图2中的设备A,网络设备500包括处理器501和收发器502,其中:FIG. 5 is a schematic structural diagram of another network device 500 according to an embodiment of the present invention. The network device 500 may be the device A in FIG. 1 and FIG. 2. The network device 500 includes a processor 501 and a transceiver 502, where:
所述处理器501,用于检测与链路另一端的设备之间的数据报文是否丢失;所述网络设备500与所述链路另一端的设备通过链路聚合协议LACP聚合相连; The processor 501 is configured to detect whether a data packet is lost between the device at the other end of the link, and the network device 500 is connected to the device at the other end of the link by using a link aggregation protocol LACP.
所述收发器502,用于在所述处理器501检测到与所述链路另一端的设备之间的数据报文丢失后,发送第一恢复协商报文给所述链路另一端的设备;The transceiver 502 is configured to send a first recovery negotiation message to the device at the other end of the link after the processor 501 detects that the data packet between the device at the other end of the link is lost. ;
所述处理器501,还用于判断在预定的第一时间范围和预定的第二时间范围是否接收到所述链路另一端的设备发出的协商响应报文;The processor 501 is further configured to determine whether a negotiation response message sent by a device at another end of the link is received in a predetermined first time range and a predetermined second time range;
所述收发器502还用于,在所述处理器501确认在预定的第一时间范围未接收到所述链路另一端的设备发出的协商响应报文后,在所述预定的第二时间范围内以给所述链路另一端的设备发送额外的恢复协商报文,直到所述处理器确认从所述链路另一端的设备接收到协商响应报文;其中所述第一时间范围和第二时间范围之和小于一秒,所述在第二时间范围内给链路另一端的设备发送额外的恢复协商报文的数量不大于两次,所述第一恢复协商报文和所述不大于两次的额外的恢复协商报文中携带超时时间字段;所述第一恢复协商报文和所述不大于两次的额外的恢复协商报文中相邻两次发送的恢复协商报文所包括的超时时间字段的值不相同;The transceiver 502 is further configured to: after the processor 501 confirms that the negotiation response message sent by the device at the other end of the link is not received in the predetermined first time range, at the predetermined second time Sending an additional recovery negotiation message to the device at the other end of the link until the processor acknowledges receipt of the negotiation response message from the device at the other end of the link; wherein the first time range and The sum of the second time range is less than one second, and the number of the additional recovery negotiation messages sent by the device at the other end of the link is not more than two times in the second time range, the first recovery negotiation message and the The timeout period field is carried in the additional recovery negotiation packet that is not more than two times; the first restoration negotiation negotiation message and the recovery negotiation negotiation message sent in the two adjacent recovery negotiation messages that are not more than two times The value of the timeout field included is not the same;
所述收发器502,还用于在所述处理器501确认接收到协商响应报文后恢复与所述链路另一端的设备的数据链路通信。The transceiver 502 is further configured to resume data link communication with a device at another end of the link after the processor 501 confirms that the negotiation response message is received.
本发明实施例的处理器501在第二时间范围内以预定的时间间隔给所述链路另一端的设备依次发送第一次额外的恢复协商报文和第二次额外的恢复协商报文后,所述收发器502从所述链路另一端的设备收到协商响应报文,其中第一恢复协商报文包括的超时时间字段的值与第二次额外的恢复报文中包括的超时时间字段的值可以相同。The processor 501 of the embodiment of the present invention sends the first additional recovery negotiation message and the second additional recovery negotiation message to the device at the other end of the link in a predetermined time interval. The transceiver 502 receives the negotiation response message from the device at the other end of the link, where the value of the timeout period field included in the first recovery negotiation message and the timeout period included in the second additional recovery message The values of the fields can be the same.
本发明实施例通过发送多次恢复协商报文,并且将连续两次恢复协商报文中能修改的超时时间字段中的值设置成不同值,可以降低更LACP协议故障后 重新协商的时间,保障通信中断时延在毫秒级别,满足电信运营需要。In the embodiment of the present invention, after the negotiation message is sent multiple times, and the value in the timeout period field that can be modified in the two consecutive recovery negotiation messages is set to a different value, the LACP protocol failure may be reduced. The time of renegotiation ensures that the communication interruption delay is at the millisecond level to meet the needs of telecom operations.
上述组件可以配合任何通用的网络组件一起使用,例如有足够的处理能力、内存资源和网络吞吐量能力的计算机或网络组件,以共同处理其承担的工作量。图6显示了一个典型的通用网络组600,其适用于为本文中公开的组件实施一个或多个实施例。网络组件600可以包括处理器602(可被称为中央处理单元或CPU),其可与任何内存设备保持通信,包括辅助存储器603、只读存储器(ROM)604、随机存储器(RAM)605、输入/输出(I/O)设备601、网络连接设备606或者这些设备的组合。处理器602可以作为一个或多个CPU芯片,也可作为一个或多个专用集成电路(ASIC)的一部分。These components can be used with any common network component, such as a computer or network component with sufficient processing power, memory resources, and network throughput capabilities to collectively handle the amount of work it undertakes. FIG. 6 shows a typical general network group 600 that is suitable for implementing one or more embodiments for the components disclosed herein. Network component 600 can include a processor 602 (which can be referred to as a central processing unit or CPU) that can be in communication with any memory device, including auxiliary memory 603, read only memory (ROM) 604, random access memory (RAM) 605, input. /output (I/O) device 601, network connection device 606, or a combination of these devices. The processor 602 can function as one or more CPU chips or as part of one or more application specific integrated circuits (ASICs).
辅助存储器603通常包括由一个或多个磁盘驱动器或磁带机组成,用于数据的非易失性存储,如果RAM 605没有大到足以处理所有工作数据,可以作为溢出数据存储设备。在选择并执行加载到RAM 605上的程序时,可使用辅助存储器603存储这些程序。ROM 604用于在程序执行期间存储读取的指令和可能数据。ROM 604是非易失性存储设备,相对于更大内存容量的辅助存储器603而言,其内存容量较小。RAM 605用于存储易失性数据,也许可存储指令。访问ROM 604和RAM 605的速度通常比访问辅助存储器603的速度要快。 Secondary storage 603 typically includes one or more disk drives or tape drives for non-volatile storage of data that can be used as an overflow data storage device if RAM 605 is not large enough to process all of the operational data. When the programs loaded onto the RAM 605 are selected and executed, the auxiliary memory 603 can be used to store these programs. ROM 604 is used to store the read instructions and possible data during program execution. The ROM 604 is a non-volatile storage device having a small memory capacity with respect to the auxiliary memory 603 of a larger memory capacity. The RAM 605 is used to store volatile data and perhaps store instructions. Accessing ROM 604 and RAM 605 is typically faster than accessing secondary storage 603.
至少公开了一个实施例,所属领域的技术人员可以在本发明的范围内对实施例和/或实施例的功能进行变动、组合和/或修改。通过组合、整合和/或删除实施例的功能而得出的替代实施例也将包括在本发明的范围之内。如果明确规定了数值范围或限制,应了解明确的范围或限制,使得包括的类似等级的迭代范围或限制在明确规定的范围或限制之内(例如,从1到10的范围包括2、3、4等;大于0.10的范围包括0.11、0.12、0.13等)。例如,如果公开了数字范 围的下限值Rl和上限值Ru,则需要具体公开此范围内的任何数字。尤其是,具体公开范围内的以下数字:R=Rl+k*(Ru-Rl),其中k是1%到100%之间以1%以增量的变量,即k是1%、2%、3%、4%、5%、直到50%、51%、52%、直到95%、96%、97%、98%、99%或100%。而且,也需要具体公开上述定义的两个R定义的任何数字范围。针对权利要求中的任何元件使用“选择性地”词语时,意味着需要此元件,或者不需要此元件,这两种替代都在权利要求的范围内。使用“包括”、“包含”、“含有”等广义词应理解提供对“由…组成”、“基本上由…组成”、“大体上由…组成”等狭义词支持。相应地,保护范围不受上述说明的限制,但由下文的权利要求定义,该范围包括权利要求的主题的等同主题。每个权利要求作为进一步发明纳入本说明书中,这些权利要求是本发明的实施例。不得对本发明中的属于现有技术的参考资料,尤其是出版日期在本申请的优先权日期之后的参考资料,进行讨论。本发明中引用的所有专利、专利申请和出版物的公开在本文中作为参考资料引入,为本发明提供示范性、程序性或其他方面的细节补充。At least one embodiment is disclosed, and variations, combinations, and/or modifications of the functions of the embodiments and/or embodiments can be made by those skilled in the art within the scope of the invention. Alternative embodiments resulting from combining, integrating, and/or deleting the functionality of the embodiments are also included within the scope of the invention. If a numerical range or limitation is explicitly stated, an explicit range or limitation should be understood such that the range of iterations of a similar level included or limitation is within the scope or limitation specified (for example, ranges from 1 to 10 include 2, 3, 4; a range greater than 0.10 includes 0.11, 0.12, 0.13, etc.). For example, if the number is disclosed For the lower limit value R1 and the upper limit value Ru, it is necessary to specifically disclose any number within this range. In particular, the following numbers within the specific disclosure: R = Rl + k * (Ru - Rl), where k is a variable between 1% and 100% in increments of 1%, ie k is 1%, 2% , 3%, 4%, 5%, up to 50%, 51%, 52%, up to 95%, 96%, 97%, 98%, 99% or 100%. Moreover, it is also necessary to specifically disclose any numerical range defined by the two R definitions defined above. The use of the terms "optionally" with respect to any element in the claims means that the element is required or is not required, and both alternatives are within the scope of the claims. The use of broad terms such as "including", "comprising", "including", and the like, shall be understood to provide support for narrow words such as "consisting of," "consisting essentially of," "consisting essentially of." Accordingly, the scope of protection is not limited by the foregoing description, but is defined by the following claims, which are the equivalent of the subject matter of the claims. Each of the claims is included in the specification as a further invention, which is an embodiment of the invention. References pertaining to the prior art in the present invention, particularly references having a publication date after the priority date of the present application, are not discussed. The disclosures of all patents, patent applications, and publications cited in this specification are hereby incorporated by reference in their entirety to the extent of the disclosure of the disclosure of the disclosure.
虽然本发明中提供了多个实施例,但是应这样理解为:公开的系统和方法可以在不脱离本发明的基本精神或范围内以很多其他特定的方式体现。本发明中的范例被视为解释本发明,而不是用于限制本发明,而且本发明不限于本文中提供的详情。例如,在其他系统中,可以组合或整合各个元件或组件,也可以删除或不实施某些特征。Although a plurality of embodiments are provided in the present invention, it should be understood that the disclosed systems and methods may be embodied in many other specific forms without departing from the spirit and scope of the invention. The examples in the present invention are considered to be illustrative of the present invention and are not intended to limit the invention, and the invention is not limited to the details provided herein. For example, in other systems, individual components or components may be combined or integrated, and certain features may or may not be implemented.
对于各个实施例中以离散形式或者单独地解释说明的技术、系统、子系统和方法,在不脱离本发明的范围内,可以将其与其他系统、模块、技术或方法组合或整合起来。本文中显示或讨论的其他有关相互之间直接或间接相连或者连通的项目可以通过某些接口、设备或中间组件以电气方式、机械方式或其他 方式进行间接相连或连通。对其他范例的更改、替换和变动需要由所属领域的技术人员进行确定,而且不得脱离本说明中的基本精神和范围。 The techniques, systems, subsystems, and methods in the various embodiments may be combined or integrated with other systems, modules, techniques, or methods without departing from the scope of the invention. Other items shown or discussed herein that are directly or indirectly connected or connected to each other may be electrically, mechanically or otherwise by some interface, device or intermediate component. The way is indirectly connected or connected. Changes, substitutions and variations of the other examples are intended to be determined by those skilled in the art and are not to be

Claims (11)

  1. 一种链路恢复的方法,其特征在于,包括:A method for link recovery, comprising:
    第一设备检测到与第二设备之间的数据报文丢失,所述第一设备与所述第二设备通过链路聚合协议LACP聚合相连;The first device detects that the data packet is lost between the second device and the second device, and the first device is connected to the second device by using a link aggregation protocol LACP.
    所述第一设备发送第一恢复协商报文给所述第二设备;The first device sends a first recovery negotiation message to the second device;
    所述第一设备判断在预定的第一时间范围是否接收到所述第二设备发出的协商响应报文;Determining, by the first device, whether a negotiation response message sent by the second device is received in a predetermined first time range;
    如果未接收到所述第二设备的协商响应报文,所述第一设备在预定的第二时间范围内以给第二设备发送额外的恢复协商报文,直到所述第一设备从第二设备接收到协商响应报文;其中所述第一时间范围和第二时间范围之和小于一秒,所述第一设备在第二时间范围内给第二设备发送额外的恢复协商报文的数量不大于两次,所述第一恢复协商报文和所述不大于两次的额外的恢复协商报文中携带超时时间字段;所述第一恢复协商报文和所述不大于两次的额外的恢复协商报文中相邻两次发送的恢复协商报文所包括的超时时间字段的值不相同;If the negotiation response message of the second device is not received, the first device sends an additional recovery negotiation message to the second device within a predetermined second time range until the first device is from the second device. The device receives the negotiation response message; the sum of the first time range and the second time range is less than one second, and the first device sends the number of additional recovery negotiation messages to the second device in the second time range. The timeout time field is carried in the first recovery negotiation message and the additional recovery negotiation message that is not more than two times; the first recovery negotiation message and the extra is not more than twice The value of the timeout field included in the recovery negotiation message sent by the two adjacent recovery packets is different.
    所述第一设备在接收到协商响应报文后恢复与所述第二设备的数据链路通信。The first device resumes data link communication with the second device after receiving the negotiation response message.
  2. 如权利要求1所述的方法,其特征在于,所述第一设备在预定的第二时间范围内以给第二设备发送额外的恢复协商报文,直到所述第一设备从第二设备收到协商响应报文包括:所述第一设备在第二时间范围内以预定的时间间隔给第二设备依次发送第一次额外的恢复协商报文和第二次额外的恢复协商报文后,所述第一设备从第二设备收到协商响应报文。 The method of claim 1, wherein the first device transmits an additional recovery negotiation message to the second device within a predetermined second time range until the first device receives from the second device The negotiation response message includes: after the first device sends the first additional recovery negotiation message and the second additional recovery negotiation message to the second device at a predetermined time interval in the second time range, The first device receives a negotiation response message from the second device.
  3. 如权利要求2所述的方法,其特征在于,其中第一恢复协商报文包括的超时时间字段的值与第二次额外的恢复协商报文中包括的超时时间字段的值相同。The method of claim 2, wherein the value of the timeout period field included in the first recovery negotiation message is the same as the value of the timeout field included in the second additional recovery negotiation message.
  4. 如权利要求1所述的方法,其特征在于,其中所述第一时间范围和所述第二时间范围的和不大于400ms。The method of claim 1 wherein the sum of said first time range and said second time range is no more than 400 ms.
  5. 如权利要求2所述的方法,其特征在于,其中所述第一时间范围为50ms,所述第一设备在第二时间范围内以预定的时间间隔给第二设备发送额外的恢复协商报文包括:The method of claim 2, wherein the first time range is 50 ms, the first device sends an additional recovery negotiation message to the second device at a predetermined time interval in the second time range. include:
    所述第一设备在第二时间范围内以50ms的时间间隔给第二设备发送额外的恢复协商报文。The first device sends an additional recovery negotiation message to the second device at a time interval of 50 ms in the second time range.
  6. 一种网络设备,包括:A network device, including:
    检测模块,用于检测与链路另一端的设备之间的数据报文是否丢失;所述网络设备与所述链路另一端的设备通过链路聚合协议LACP聚合相连;a detecting module, configured to detect whether a data packet is lost between the device at the other end of the link; and the network device is connected to the device at the other end of the link by using a link aggregation protocol LACP;
    协商报文发送模块,用于在所述检测模块检测到与所述链路另一端的设备之间的数据报文丢失后,发送第一恢复协商报文给所述链路另一端的设备;a negotiation packet sending module, configured to send a first recovery negotiation message to a device at another end of the link after the detecting module detects that the data packet is lost between the device at the other end of the link;
    判断模块,用于判断在预定的第一时间范围和预定的第二时间范围内是否接收到所述链路另一端的设备发出的协商响应报文;所述协商报文发送模块还用于:The determining module is configured to determine whether a negotiation response message sent by the device at the other end of the link is received in the predetermined first time range and the predetermined second time range; the negotiation message sending module is further configured to:
    在所述判断模块确认在第一时间范围内未接收到所述链路另一端的设备发出的协商响应报文后,在预定的第二时间范围内给所述链路另一端的设备发送额外的恢复协商报文,直到所述判断模块确认从所述链路另一端的设备接收到协商响应报文;其中所述第一时间范围和第二时间范围之和小于一秒,所述在 第二时间范围内给链路另一端的设备发送额外的恢复协商报文的数量不大于两次,所述第一恢复协商报文和所述不大于两次的额外的恢复协商报文中携带超时时间字段;所述第一恢复协商报文和所述不大于两次的额外的恢复协商报文中相邻两次发送的恢复协商报文所包括的超时时间字段的值不相同;After the determining module confirms that the negotiation response message sent by the device at the other end of the link is not received within the first time range, sending an additional message to the device at the other end of the link within a predetermined second time range. Recovering the negotiation message until the determining module confirms that the negotiation response message is received from the device at the other end of the link; wherein the sum of the first time range and the second time range is less than one second, The number of the additional recovery negotiation packets sent by the device at the other end of the link is not more than two in the second time range, and the first recovery negotiation message and the additional recovery negotiation message that is not more than two times are carried in the second recovery negotiation message. a timeout period field, where the value of the timeout period field included in the two consecutive recovery negotiation messages sent by the two consecutive recovery negotiation messages is not the same;
    通信恢复模块,用于在所述判断模块确认从链路另一端的设备接收到协商响应报文后恢复与所述链路另一端的设备的数据链路通信。The communication recovery module is configured to resume data link communication with the device at the other end of the link after the determining module confirms that the negotiation response message is received from the device at the other end of the link.
  7. 如权利要求6所述的网络设备,其特征在于:The network device of claim 6 wherein:
    所述协商报文发送模块在第二时间范围内以预定的时间间隔给所述链路另一端的设备依次发送第一次额外的恢复协商报文和第二次额外的恢复协商报文后,所述判断模块判断所述网络设备从所述链路另一端的设备收到协商响应报文。The negotiation packet sending module sends the first additional recovery negotiation message and the second additional recovery negotiation message to the device at the other end of the link in a second time interval at a predetermined time interval. The determining module determines that the network device receives a negotiation response message from a device at another end of the link.
  8. 如权利要求7所述的网络设备,其特征在于:其中第一恢复协商报文包括的超时时间字段的值与第二次额外的恢复协商报文中包括的超时时间字段的值相同。The network device according to claim 7, wherein the value of the timeout period field included in the first restoration negotiation message is the same as the value of the timeout time field included in the second additional restoration negotiation message.
  9. 一种网络设备,其特征在于,包括处理器和收发器,其中:A network device, including a processor and a transceiver, wherein:
    所述处理器,用于检测与链路另一端的设备之间的数据报文是否丢失;所述网络设备与所述链路另一端的设备通过链路聚合协议LACP聚合相连;The processor is configured to detect whether a data packet is lost between the device at the other end of the link; and the network device is connected to the device at the other end of the link by using a link aggregation protocol LACP;
    所述收发器,用于在所述处理器检测到与所述链路另一端的设备之间的数据报文丢失后,发送第一恢复协商报文给所述链路另一端的设备;The transceiver is configured to send a first recovery negotiation message to a device at another end of the link after the processor detects that the data packet is lost between the device at the other end of the link;
    所述处理器,还用于判断在预定的第一时间范围和预定的第二时间范围是否接收到所述链路另一端的设备发出的协商响应报文;The processor is further configured to determine whether a negotiation response message sent by the device at the other end of the link is received in the predetermined first time range and the predetermined second time range;
    所述收发器还用于,在所述处理器确认在预定的第一时间范围未接收到所 述链路另一端的设备发出的协商响应报文后,在所述预定的第二时间范围内以给所述链路另一端的设备发送额外的恢复协商报文,直到所述处理器确认从所述链路另一端的设备接收到协商响应报文;其中所述第一时间范围和第二时间范围之和小于一秒,所述在第二时间范围内给链路另一端的设备发送额外的恢复协商报文的数量不大于两次,所述第一恢复协商报文和所述不大于两次的额外的恢复协商报文中携带超时时间字段;所述第一恢复协商报文和所述不大于两次的额外的恢复协商报文中相邻两次发送的恢复协商报文所包括的超时时间字段的值不相同;The transceiver is further configured to: after the processor confirms that the first time range is not received After the negotiation response message sent by the device at the other end of the link, in the predetermined second time range, an additional recovery negotiation message is sent to the device at the other end of the link until the processor confirms the The device at the other end of the link receives the negotiation response message; wherein the sum of the first time range and the second time range is less than one second, and the second time range sends an additional to the device at the other end of the link. The number of the recovery negotiation packets is not more than two, and the first recovery negotiation message and the additional recovery negotiation message that is not more than two times carry a timeout field; the first recovery negotiation message and the The value of the timeout field included in the two consecutive recovery negotiation messages sent by the two adjacent recovery negotiation messages is not the same;
    所述收发器,还用于在所述处理器确认接收到协商响应报文后恢复与所述链路另一端的设备的数据链路通信。The transceiver is further configured to resume data link communication with a device at another end of the link after the processor confirms receipt of the negotiation response message.
  10. 如权利要求9所述的网络设备,其特征在于:The network device of claim 9 wherein:
    所述处理器在第二时间范围内以预定的时间间隔给所述链路另一端的设备依次发送第一次额外的恢复协商报文和第二次额外的恢复协商报文后,所述收发器从所述链路另一端的设备收到协商响应报文。After the processor sends the first additional recovery negotiation message and the second additional recovery negotiation message to the device at the other end of the link in the second time range, the transceiver sends and receives the first additional recovery negotiation message and the second additional recovery negotiation message. The device receives a negotiation response message from the device at the other end of the link.
  11. 如权利要求9所述的网络设备,其特征在于:其中第一恢复协商报文包括的超时时间字段的值与第二次额外的恢复报文中包括的超时时间字段的值相同。 The network device according to claim 9, wherein the value of the timeout period field included in the first restoration negotiation message is the same as the value of the timeout time field included in the second additional recovery message.
PCT/CN2015/082583 2015-06-27 2015-06-27 Link recovery method and network device WO2017000096A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201580079968.0A CN107534576B (en) 2015-06-27 2015-06-27 Link recovery method and network equipment
PCT/CN2015/082583 WO2017000096A1 (en) 2015-06-27 2015-06-27 Link recovery method and network device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/082583 WO2017000096A1 (en) 2015-06-27 2015-06-27 Link recovery method and network device

Publications (1)

Publication Number Publication Date
WO2017000096A1 true WO2017000096A1 (en) 2017-01-05

Family

ID=57609341

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/082583 WO2017000096A1 (en) 2015-06-27 2015-06-27 Link recovery method and network device

Country Status (2)

Country Link
CN (1) CN107534576B (en)
WO (1) WO2017000096A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019174454A1 (en) * 2018-03-13 2019-09-19 中兴通讯股份有限公司 Link recovery method and device, system, storage medium, and electronic device
US20220116313A1 (en) * 2020-10-09 2022-04-14 Arris Enterprises Llc Dynamic fast link aggregation control protocol
CN116915670A (en) * 2023-09-14 2023-10-20 浙江国利信安科技有限公司 Method, apparatus and medium for determining network recovery time

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110784339B (en) 2019-10-09 2022-08-26 杭州迪普科技股份有限公司 LACP message overtime fault detection method and device, and electronic equipment
CN111654435B (en) * 2020-06-02 2022-03-18 中电科航空电子有限公司 Link protection fault processing system and method based on LACP

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1925429A (en) * 2006-09-30 2007-03-07 杭州华为三康技术有限公司 Method and equipment for realizing fast detection
CN102025616A (en) * 2010-11-25 2011-04-20 中兴通讯股份有限公司 Method, device and switch for realizing BFD (Bidirectional Forwarding Detection)
CN103188172A (en) * 2011-12-28 2013-07-03 中兴通讯股份有限公司 Link aggregation abnormity recovery method and exchange equipment
US9047417B2 (en) * 2012-10-29 2015-06-02 Intel Corporation NUMA aware network interface

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100479465C (en) * 2005-06-10 2009-04-15 杭州华三通信技术有限公司 Method of implementing link aggregation of network equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1925429A (en) * 2006-09-30 2007-03-07 杭州华为三康技术有限公司 Method and equipment for realizing fast detection
CN102025616A (en) * 2010-11-25 2011-04-20 中兴通讯股份有限公司 Method, device and switch for realizing BFD (Bidirectional Forwarding Detection)
CN103188172A (en) * 2011-12-28 2013-07-03 中兴通讯股份有限公司 Link aggregation abnormity recovery method and exchange equipment
US9047417B2 (en) * 2012-10-29 2015-06-02 Intel Corporation NUMA aware network interface

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019174454A1 (en) * 2018-03-13 2019-09-19 中兴通讯股份有限公司 Link recovery method and device, system, storage medium, and electronic device
US20220116313A1 (en) * 2020-10-09 2022-04-14 Arris Enterprises Llc Dynamic fast link aggregation control protocol
CN116915670A (en) * 2023-09-14 2023-10-20 浙江国利信安科技有限公司 Method, apparatus and medium for determining network recovery time
CN116915670B (en) * 2023-09-14 2023-12-05 浙江国利信安科技有限公司 Method, apparatus and medium for determining network recovery time

Also Published As

Publication number Publication date
CN107534576A (en) 2018-01-02
CN107534576B (en) 2020-03-31

Similar Documents

Publication Publication Date Title
US8886831B2 (en) System and methodology for fast link failover based on remote upstream failures
WO2017000096A1 (en) Link recovery method and network device
CN104253764B (en) Link aggregation method and device
EP2627039B1 (en) Method and device for switching aggregation links
CN112491700B (en) Network path adjustment method, system, device, electronic equipment and storage medium
CN107612754B (en) Bidirectional forwarding link fault detection method and device and network node equipment
CN107465613B (en) Link aggregation interface communication state switching method and device
CN107948063B (en) Method for establishing aggregation link and access equipment
EP3029883B1 (en) Network protection method and apparatus, next-ring node, and system
CN106936683B (en) A kind of method and device for realizing tunnel configuration
CN106533736A (en) Network device reboot method and apparatus
WO2015070383A1 (en) Link aggregation method, apparatus, and system
CN110943878A (en) Heartbeat packet transmission method, terminal and device with storage function
CN104427012B (en) Port negotiation method and apparatus
CN106453074A (en) Switching method and apparatus
CN106100988A (en) A kind of realize the method that link aggregation is switched fast
WO2015180265A1 (en) Multi-link protection switching method and device
CN102594696B (en) A kind of method and device managing network device link aggregation group
CN106161232B (en) tunnel protection switching method and device
CN107948000B (en) Method, device and system for switching main channel and standby channel
CN108667640A (en) Communication means and equipment, network access system
CN103414591A (en) Method and system for fast converging when port failure is recovered
EP3232617B1 (en) Protection switching method and system, and nodes
CN106130783B (en) Port fault processing method and device
CN113949623A (en) MLAG double-master abnormity repairing method and device, electronic equipment 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: 15896627

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: 15896627

Country of ref document: EP

Kind code of ref document: A1