WO2020047842A1 - Method, system and apparatus for sending link aggregation control protocol message - Google Patents

Method, system and apparatus for sending link aggregation control protocol message Download PDF

Info

Publication number
WO2020047842A1
WO2020047842A1 PCT/CN2018/104611 CN2018104611W WO2020047842A1 WO 2020047842 A1 WO2020047842 A1 WO 2020047842A1 CN 2018104611 W CN2018104611 W CN 2018104611W WO 2020047842 A1 WO2020047842 A1 WO 2020047842A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
cycle
link aggregation
period
control protocol
Prior art date
Application number
PCT/CN2018/104611
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 CN201880097208.6A priority Critical patent/CN112655178B/en
Priority to PCT/CN2018/104611 priority patent/WO2020047842A1/en
Publication of WO2020047842A1 publication Critical patent/WO2020047842A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/26Flow control; Congestion control using explicit feedback to the source, e.g. choke packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/245Traffic characterised by specific attributes, e.g. priority or QoS using preemption

Abstract

Provided are an information sending method and a related device. The method comprises: a first device determining whether a load of the first device is greater than a preset threshold value; and when the load is greater than the preset threshold value, the first device sending a first instruction message to a second device to instruct the second device to select a first period from a period set and send an LACP message to the first device in the first period, wherein the period set comprises the first period and a second period, the first period is greater than the second period, and the first device and the second device are two devices which are connected by means of link aggregation. By means of implementing the embodiments of the present application, where a first device determines that a load of the first device is greater than a preset threshold value, a second device sends an LACP message to the first device in a busy state in a longer first period, so as to avoid LACP oscillation of the two devices, which are connected by means of link aggregation, caused due to the fact that the first device cannot receive or send the LACP message in a timely manner.

Description

一种发送链路聚合控制协议报文的方法、系统及装置Method, system and device for sending link aggregation control protocol message 技术领域Technical field
本申请涉及通信领域,尤其涉及一种发送链路聚合控制协议报文的方法、系统及装置。The present application relates to the field of communications, and in particular, to a method, system, and device for sending Link Aggregation Control Protocol messages.
背景技术Background technique
链路聚合(Link Aggregation)技术是通过将多个物理接口聚合在一起作为一个逻辑接口实现增大链路带宽的技术,同时,链路聚合技术可以采用备份链路机制,有效的提高设备之间链路的可靠性。Link aggregation technology is a technology that increases the bandwidth of a link by aggregating multiple physical interfaces together as a logical interface. At the same time, link aggregation technology can use a backup link mechanism to effectively improve equipment Link reliability.
采用链路聚合技术在两台设备之间建立链路聚合组之后,链路聚合组的每条链路的两个端口之间需要以预设周期互发链路聚合控制协议(Link Aggregation Control Protocol,LACP)报文,以确定对方端口是否能够正常工作,如果一个端口在三倍的预设周期内没有收到对端发送的LACP报文,则会认为对端端口已失效,LACP会置该端口对应的成员链路为阻塞状态,并从备份链路中寻找一条正常链路替换已失效的链路。LACP预设周期有短周期和长周期两种,在选择短周期作为预设周期的情况下,若采用链路聚合连接的两台设备中有一台设备处于繁忙状态,例如CPU占用率高、网络中瞬间流量增多、设备内存占用率高等,可能导致该设备处理数据的能力有限,从而使该设备不能及时接收对端发送的LACP报文导致该设备认为对端设备端口失效,或者不能及时向对端设备发送LACP报文导致对端设备认为该设备端口失效,从而导致LACP震荡。After using the link aggregation technology to establish a link aggregation group between two devices, the two ports of each link in the link aggregation group need to send a link aggregation control protocol (Link Aggregation Control Protocol) to each other at a preset period. (LACP) packets to determine whether the other port can work normally. If a port does not receive a LACP packet sent by the peer within three times the preset period, it will consider the peer port to be invalid and LACP will set the The member link corresponding to the port is in a blocked state, and a normal link is found from the backup link to replace the failed link. There are two types of LACP preset cycles: short cycle and long cycle. When the short cycle is selected as the preset cycle, if one of the two devices connected by link aggregation is busy, such as high CPU usage, network Instantaneous increase in traffic and high memory usage of the device may cause the device to have limited data processing capabilities. As a result, the device cannot receive the LACP packets sent by the peer in a timely manner, causing the device to consider the port of the peer device to be invalid or fail to report to the peer The end device sends a LACP packet, which causes the peer device to consider the device port to be invalid, resulting in LACP flapping.
发明内容Summary of the Invention
本申请实施例公开了一种发送链路聚合控制协议报文的方法,通过监测接收设备的负载,在接收设备的负载大于预设阈值的情况下,通过延长发送设备向接收设备发送LACP报文的周期,从而能够防止通过链路聚合连接的两台设备之间发生LACP震荡。The embodiment of the present application discloses a method for sending a Link Aggregation Control Protocol message. By monitoring the load of a receiving device, when the load of the receiving device is greater than a preset threshold, an LACP message is sent to the receiving device by extending the sending device. Period to prevent LACP flapping between two devices connected through link aggregation.
第一方面,本申请实施例提供一种发送链路聚合控制协议报文的方法,包括:In a first aspect, an embodiment of the present application provides a method for sending a link aggregation control protocol message, including:
第一设备确定所述第一设备的负载是否大于预设阈值;The first device determines whether the load of the first device is greater than a preset threshold;
在所述负载大于所述预设阈值的情况下,所述第一设备向第二设备发送第一指示消息,所述第一指示消息用于指示所述第二设备从周期集合中选择第一周期,并以所述第一周期向所述第一设备发送链路聚合控制协议报文,所述周期集合包括第一周期和第二周期,所述第一周期大于所述第二周期,所述第一设备与所述第二设备为通过链路聚合连接的两台设备。When the load is greater than the preset threshold, the first device sends a first instruction message to a second device, and the first instruction message is used to instruct the second device to select the first device from a periodic set. Period, and sending a link aggregation control protocol message to the first device in the first period, the period set includes a first period and a second period, and the first period is greater than the second period, so The first device and the second device are two devices connected through link aggregation.
通过实施本申请实施例,通过链路聚合连接的第一设备和第二设备能够监测各自的负载情况,在第一设备确定所述第一设备的负载大于所述预设阈值的情况下,确定所述第一设备处于繁忙状态,则所述第一设备向第二台设备发送第一指示消息,以使第二设备以更长的第一周期向处于繁忙状态的所述第一设备发送LACP报文,以避免所述第一设备不能及时接收LACP报文而导致通过链路聚合连接的两台设备之间发生LACP震荡。By implementing the embodiments of the present application, the first device and the second device connected through link aggregation can monitor their respective load conditions. When the first device determines that the load of the first device is greater than the preset threshold, it determines If the first device is in a busy state, the first device sends a first instruction message to a second device, so that the second device sends LACP to the first device in a busy state with a longer first period. Message to avoid LACP oscillation between the two devices connected by link aggregation due to the first device not receiving the LACP message in time.
在一可能的实施例中,所述方法还包括:在所述负载小于或者等于所述预设阈值的情况下,所述第一设备向所述第二设备发送第二指示消息,所述第二指示消息用于指示所述第二设备从所述周期集合中选择第二周期,并以所述第二周期向所述第一设备发送链路聚合控制协议报文。In a possible embodiment, the method further includes: when the load is less than or equal to the preset threshold, the first device sends a second indication message to the second device, and the first The two indication messages are used to instruct the second device to select a second period from the period set, and send a link aggregation control protocol message to the first device in the second period.
在一可能的实施例中,所述在所述工作状态为空闲状态的情况下,所述第一设备向所述 第二设备发送第二指示消息,包括:In a possible embodiment, when the working state is an idle state, the sending, by the first device, a second indication message to the second device includes:
在所述负载小于或者等于所述预设阈值,且所述负载小于或者等于所述预设阈值的持续时长大于预设时长的情况下,所述第一设备向所述第二设备发送第二指示消息。When the load is less than or equal to the preset threshold, and the duration of the load is less than or equal to the preset threshold, the first device sends a second to the second device Indication message.
通过实施本申请实施例,通过设置预设时长,在监测到所述第一设备的负载小于或者等于所述预设阈值且所述负载小于或者等于所述预设阈值的持续时长大于预设时长的情况下,才确定所述第一设备处于非繁忙状态,以防止所述第一设备误检测或者由于所述第一设备的负载小于或者等于所述预设阈值的时间短暂,而导致通知所述第二设备之后,所述第一设备的负载再次大于所述预设阈值,而所述第二设备收到所述第二指示消息之后以第二周期发送所述LACP报文导致所述第一设备无法及时处理进而导致链路震荡。By implementing the embodiments of the present application, by setting a preset duration, when the load of the first device is monitored to be less than or equal to the preset threshold and the duration of the load is less than or equal to the preset threshold is greater than the preset duration , The first device is determined to be in a non-busy state to prevent the first device from falsely detecting or due to a short period of time when the load of the first device is less than or equal to the preset threshold, causing the notification to the After the second device is described, the load of the first device is greater than the preset threshold again, and the second device sends the LACP packet at a second cycle after receiving the second indication message, which causes the first device A device cannot be processed in time, which causes link flapping.
在一可能的实施例中,所述第一设备向第二设备发送第二指示消息之后,还包括:所述第一设备接收所述第二设备发送的第三指示消息,根据所述第三指示消息从所述周期集合中选择所述第二周期,并以所述第二周期向所述第二设备发送链路聚合控制协议报文。In a possible embodiment, after the first device sends the second instruction message to the second device, the method further includes: receiving, by the first device, a third instruction message sent by the second device, according to the third device, The instruction message selects the second period from the period set, and sends a link aggregation control protocol message to the second device in the second period.
在一可能的实施例中,所述第一设备向第二设备发送第一指示消息之后,还包括:所述第一设备接收所述第二设备发送的第四指示消息,根据所述第四指示消息从所述周期集合中选择所述第一周期,并以所述第一周期向所述第二设备发送链路聚合控制协议报文。In a possible embodiment, after the first device sends the first instruction message to the second device, the method further includes: receiving, by the first device, a fourth instruction message sent by the second device, according to the fourth The instruction message selects the first period from the period set, and sends a link aggregation control protocol message to the second device in the first period.
通过实施本申请实施例,在所述第一设备监测到负载大于所述预设阈值,确定所述第一设备处于繁忙状态的情况下,所述第一设备在向所述第二设备发送所述第一指示消息以使所述第二设备以第一周期向所述第一设备发送LACP报文,所述第二设备在根据所述第一指示消息确定所述第一设备繁忙的情况下,所述第二设备也可以向所述第一设备发送第四指示消息,所述第一设备在接收所述第四指示消息之后,根据所述第四指示消息从所述周期集合中选择所述第一周期,并以较长的所述第一周期向所述第二设备发送LACP报文,以防止所述第一设备不能及时向所述第二设备发送LACP报文而导致链路震荡。By implementing the embodiment of the present application, when the first device detects that the load is greater than the preset threshold, and determines that the first device is in a busy state, the first device sends the second device to the second device. The first instruction message so that the second device sends a LACP message to the first device in a first cycle, and the second device determines that the first device is busy according to the first instruction message , The second device may also send a fourth instruction message to the first device, and after receiving the fourth instruction message, the first device selects all the information from the periodic set according to the fourth instruction message. The first cycle is described, and a LACP message is sent to the second device in a longer first cycle to prevent the first device from sending a LACP message to the second device in a timely manner, resulting in link flapping. .
在一可能的实施例中,所述第一指示消息承载于第一链路聚合控制协议报文中;所述第二指示消息承载于第二链路聚合控制协议报文中;所述第三指示消息承载于第三链路聚合控制协议报文中;所述第四指示消息承载于第四链路聚合控制协议报文中。In a possible embodiment, the first indication message is carried in a first link aggregation control protocol message; the second indication message is carried in a second link aggregation control protocol message; the third The indication message is carried in a third link aggregation control protocol message; the fourth indication message is carried in a fourth link aggregation control protocol message.
由于所述第一设备和所述第二设备通过链路聚合连接,所述第一设备和所述第二设备需要周期性的互发LACP报文,因此可以将所述第一指示消息、所述第二指示消息、所述第三指示消息以及所述第四指示消息承载于LACP报文中,而不必增加其他类型的报文承载上述四种指示消息,减少了用于发送的报文的类型,从而减少了设备需要处理的数据量。Since the first device and the second device are connected through link aggregation, the first device and the second device need to periodically exchange LACP packets, so the first instruction message, all The second indication message, the third indication message, and the fourth indication message are carried in a LACP message, without adding other types of messages to carry the above four kinds of indication messages, reducing the number of messages used for sending. Type, which reduces the amount of data the device needs to process.
在一可能的实施例中,所述第一设备确定所述第一设备的负载是否大于预设阈值,包括:In a possible embodiment, the first device determining whether the load of the first device is greater than a preset threshold includes:
获取所述第一设备的CPU占用率,根据所述CPU占用率确定所述第一设备的负载是否大于预设阈值。Acquiring the CPU usage of the first device, and determining whether the load of the first device is greater than a preset threshold according to the CPU usage.
第二方面,本申请实施例提供一种发送链路聚合控制协议报文的方法,包括:In a second aspect, an embodiment of the present application provides a method for sending a link aggregation control protocol message, including:
第二设备接收第一设备发送的指示消息,所述第一设备和所述第二设备为通过链路聚合连接的两台设备;Receiving, by the second device, an instruction message sent by the first device, where the first device and the second device are two devices connected through link aggregation;
在所述指示消息为第一指示消息的情况下,所述第二设备根据所述第一指示消息,从周期集合中选择第一周期,并以所述第一周期向所述第一设备发送链路聚合控制协议报文,所述周期集合包括第一周期和第二周期,所述第一周期大于所述第二周期。When the instruction message is a first instruction message, the second device selects a first cycle from a cycle set according to the first instruction message, and sends the first cycle to the first device in the first cycle. For a link aggregation control protocol message, the period set includes a first period and a second period, and the first period is greater than the second period.
在一可能的实施例中,所述方法还包括:In a possible embodiment, the method further includes:
在所述标记为第二指示消息的情况下,所述第二设备根据所述第二指示消息,从周期集合中选择所述第二周期,并以所述第二周期向所述第一设备发送链路聚合控制协议报文。When the mark is a second instruction message, the second device selects the second cycle from a cycle set according to the second instruction message, and sends the second cycle to the first device in the second cycle. Send Link Aggregation Control Protocol messages.
在一可能的实施例中,所述第二设备根据所述第二指示消息,从周期集合中选择所述第二周期,并以所述第二周期向所述第一设备发送链路聚合控制协议报文之后,还包括:In a possible embodiment, the second device selects the second period from a period set according to the second instruction message, and sends the link aggregation control to the first device in the second period. After the protocol message, it also includes:
所述第二设备向所述第一设备发送第三指示消息,所述第三指示消息用于指示所述第一设备从所述周期集合中选择第二周期,并以所述第二周期向所述第二设备发送链路聚合控制协议报文。Sending, by the second device, a third instruction message to the first device, where the third instruction message is used to instruct the first device to select a second cycle from the cycle set, and send the third cycle to the first device The second device sends a link aggregation control protocol message.
在一可能的实施例中,所述第二设备根据所述第一指示消息,所述从周期集合中选择第一周期,并以所述第一周期向所述第一设备发送链路聚合控制协议报文之后,还包括:In a possible embodiment, the second device selects a first period from a set of periods according to the first instruction message, and sends a link aggregation control to the first device in the first period. After the protocol message, it also includes:
所述第二设备向所述第一设备发送第四指示消息,所述第四指示消息用于指示所述第一设备从所述周期集合中选择第一周期,并以所述第一周期向所述第二设备发送链路聚合控制协议报文。Sending, by the second device, a fourth instruction message to the first device, where the fourth instruction message is used to instruct the first device to select a first cycle from the cycle set, and send the first cycle to the first device The second device sends a link aggregation control protocol message.
在一可能的实施例中,所述第一指示消息承载于第一链路聚合控制协议报文中;所述第二指示消息承载于第二链路聚合控制协议报文中;所述第三指示消息承载于第三链路聚合控制协议报文中;所述第四指示消息承载于第四链路聚合控制协议报文中。In a possible embodiment, the first indication message is carried in a first link aggregation control protocol message; the second indication message is carried in a second link aggregation control protocol message; the third The indication message is carried in a third link aggregation control protocol message; the fourth indication message is carried in a fourth link aggregation control protocol message.
第三方面,本申请实施例提供一种发送链路聚合控制协议报文的系统,包括第一设备和第二设备,其中,In a third aspect, an embodiment of the present application provides a system for sending a Link Aggregation Control Protocol message, which includes a first device and a second device.
所述第一设备确定所述第一设备的负载是否大于预设阈值;Determining, by the first device, whether a load of the first device is greater than a preset threshold;
所述第一设备在负载大于所述预设阈值的情况下,向所述第二设备发送第一指示消息;Sending, by the first device, a first indication message to the second device when the load is greater than the preset threshold;
所述第二设备接收所述第一指示消息,根据所述第一指示消息,从周期集合中选择第一周期,并以所述第一周期向所述第一设备发送链路聚合控制协议报文,所述周期集合包括第一周期和第二周期,所述第一周期大于所述第二周期,所述第一设备和所述第二设备为通过链路聚合连接的两台设备。Receiving, by the second device, the first indication message, selecting a first period from a period set according to the first indication message, and sending a link aggregation control protocol message to the first device at the first period In the text, the period set includes a first period and a second period, the first period is greater than the second period, and the first device and the second device are two devices connected through link aggregation.
在一可能的实施例中,所述第一设备在确定所述负载小于或者等于所述预设阈值的情况下,向所述第二设备发送第二指示消息;In a possible embodiment, when the first device determines that the load is less than or equal to the preset threshold, the first device sends a second indication message to the second device;
所述第二设备接收所述第二指示消息,根据所述第二指示消息,从周期集合中选择所述第二周期,并以所述第二周期向所述第一设备发送链路聚合控制协议报文。The second device receives the second instruction message, selects the second cycle from a set of cycles according to the second instruction message, and sends a link aggregation control to the first device in the second cycle Protocol messages.
在一可能的实施例中,所述第一设备在确定所述负载小于或者等于所述预设阈值的情况下,向所述第二设备发送第二指示消息,包括:In a possible embodiment, when the first device determines that the load is less than or equal to the preset threshold, sending a second instruction message to the second device includes:
所述第一设备在确定所述负载小于或者等于所述预设阈值,且所述负载小于或者等于所述预设阈值的持续时长大于预设时长的情况下,所述第一设备向所述第二设备发送第二指示消息。When the first device determines that the load is less than or equal to the preset threshold, and the duration of the load is less than or equal to the preset threshold is greater than a preset duration, the first device sends the The second device sends a second indication message.
在一可能的实施例中,所述第二设备接收所述第二指示消息,根据所述第二指示消息,从周期集合中选择所述第二周期,并以所述第二周期向所述第一设备发送链路聚合控制协议报文之后,还包括:In a possible embodiment, the second device receives the second instruction message, selects the second cycle from a cycle set according to the second instruction message, and sends the second cycle to the second cycle according to the second cycle. After the first device sends the link aggregation control protocol message, the method further includes:
所述第二设备向所述第一设备发送第三指示消息;Sending, by the second device, a third indication message to the first device;
所述第一设备接收所述第三指示消息,根据所述第三指示消息从所述周期集合中选择所述第二周期,并以所述第二周期向所述第二设备发送链路聚合控制协议报文。The first device receives the third instruction message, selects the second cycle from the cycle set according to the third instruction message, and sends link aggregation to the second device in the second cycle Control protocol messages.
在一可能的实施例中,所述第二设备接收所述第一指示消息,根据所述第一指示消息从 周期集合中选择第一周期,并以所述第一周期向所述第一设备发送链路聚合控制协议报文之后,还包括:In a possible embodiment, the second device receives the first indication message, selects a first period from a period set according to the first indication message, and sends the first period to the first device in the first period. After sending the Link Aggregation Control Protocol message, it also includes:
所述第二设备向所述第一设备发送第四指示消息;Sending, by the second device, a fourth indication message to the first device;
所述第一设备接收所述第四指示消息,根据所述第四指示消息从所述周期集合中选择所述第一周期,并以所述第一周期向所述第二设备发送链路聚合控制协议报文。The first device receives the fourth instruction message, selects the first cycle from the cycle set according to the fourth instruction message, and sends link aggregation to the second device in the first cycle Control protocol messages.
在一可能的实施例中,所述第一指示消息承载于第一链路聚合控制协议报文中;所述第二指示消息承载于第二链路聚合控制协议报文中;所述第三指示消息承载于第三链路聚合控制协议报文中;所述第四指示消息承载于第四链路聚合控制协议报文中。In a possible embodiment, the first indication message is carried in a first link aggregation control protocol message; the second indication message is carried in a second link aggregation control protocol message; the third The indication message is carried in a third link aggregation control protocol message; the fourth indication message is carried in a fourth link aggregation control protocol message.
第四方面,本申请实施例提供一种网络设备,包括执行如第一方面所述的方法的单元。In a fourth aspect, an embodiment of the present application provides a network device including a unit that executes the method according to the first aspect.
第五方面,本申请实施例提供一种网络设备,包括执行如第二方面所述的方法的单元。In a fifth aspect, an embodiment of the present application provides a network device including a unit that executes the method according to the second aspect.
第六方面,本申请实施例提供一种网络设备,包括处理器、收发器以及存储器;所述存储器用于存储指令,所述处理器用于执行所述指令,所述收发器用于在所述处理器的控制下与其他设备进行通信,所述处理器执行所述指令时执行上述第一方面或第一方面的任意可能的实施方式中所描述的方法。According to a sixth aspect, an embodiment of the present application provides a network device, including a processor, a transceiver, and a memory; the memory is configured to store instructions, the processor is configured to execute the instructions, and the transceiver is configured to perform processing in the processing Communicate with other devices under the control of the processor, and when the processor executes the instruction, the method described in the first aspect or any possible implementation manner of the first aspect is executed.
第七方面,本申请实施例提供一种网络设备,包括处理器、收发器以及存储器;所述存储器用于存储指令,所述处理器用于执行所述指令,所述收发器用于在所述处理器的控制下与其他设备进行通信,所述处理器执行所述指令时执行上述第二方面或第二方面的任意可能的实施方式中所描述的方法。In a seventh aspect, an embodiment of the present application provides a network device, including a processor, a transceiver, and a memory; the memory is used to store instructions, the processor is used to execute the instructions, and the transceiver is used to process the instructions Communicate with other devices under the control of the processor, and when the processor executes the instructions, execute the method described in the second aspect or any possible implementation manner of the second aspect.
第八方面,本申请实施例提供了一种计算机非瞬态(non-transitory)存储介质,所述计算机非瞬态存储介质存储了用于数据处理的程序代码,所述程序代码包括用于执行上述第一方面或第一方面的任意可能的实施方式中所描述的方法的指令。In an eighth aspect, an embodiment of the present application provides a computer non-transitory storage medium. The computer non-transitory storage medium stores program code for data processing, where the program code includes a program code for executing Instructions for the method described in the first aspect or any possible implementation of the first aspect above.
第九方面,本申请实施例提供了一种计算机非瞬态存储介质,所述计算机非瞬态存储介质存储了用于数据处理的程序代码,所述程序代码包括用于执行上述第二方面或第二方面的任意可能的实施方式中所描述的方法的指令。In a ninth aspect, an embodiment of the present application provides a computer non-transitory storage medium, where the computer non-transitory storage medium stores program code for data processing, and the program code includes a program for executing the second aspect or Instructions for the method described in any possible implementation of the second aspect.
通过实施本申请实施例,通过监测接收设备的负载,在接收设备的负载大于预设阈值的情况下,通过延长发送设备向接收设备发送LACP报文的周期,从而能够防止通过链路聚合连接的两台设备之间发生LACP震荡。By implementing the embodiments of the present application, by monitoring the load of the receiving device, in the case that the load of the receiving device is greater than a preset threshold, by extending the period in which the sending device sends LACP packets to the receiving device, it is possible to prevent the LACP flapping between the two devices.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍。In order to explain the technical solutions in the embodiments of the present application or the prior art more clearly, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below.
图1是本申请实施例提供的一种链路聚合示意图。FIG. 1 is a schematic diagram of link aggregation provided by an embodiment of the present application.
图2是本申请实施例提供的通过链路聚合连接的两台设备间互发链路聚合控制协议报文的示意图。FIG. 2 is a schematic diagram of sending a Link Aggregation Control Protocol message between two devices connected through link aggregation according to an embodiment of the present application.
图3是本申请实施例提供的一种信息交互示意图。FIG. 3 is a schematic diagram of information interaction provided by an embodiment of the present application.
图4是本申请实施例提供的另一种信息交互示意图。FIG. 4 is another schematic diagram of information interaction provided by an embodiment of the present application.
图5是本申请实施例提供的另一种信息交互示意图。FIG. 5 is another schematic diagram of information interaction provided by an embodiment of the present application.
图6是本申请实施例提供的一种网络设备的结构示意图。FIG. 6 is a schematic structural diagram of a network device according to an embodiment of the present application.
图7是本申请实施例提供的另一种网络设备的结构示意图。FIG. 7 is a schematic structural diagram of another network device according to an embodiment of the present application.
图8是本申请实施例提供的一种网络设备的结构示意图。FIG. 8 is a schematic structural diagram of a network device according to an embodiment of the present application.
图9是本申请实施例提供的另一种网络设备的结构示意图。FIG. 9 is a schematic structural diagram of another network device according to an embodiment of the present application.
具体实施方式detailed description
链路聚合是将多个物理接口聚合在一起作为一个逻辑接口,以实现增大链路带宽、提高链路可靠性的技术。链路聚合控制协议(Link Aggregation Control Protocol,LACP)为基于IEEE802.3ad标准实现链路动态汇聚的协议。LACP为交换数据的设备提供一种标准的协商方式,以供设备根据自身配置自动形成聚合链路,启动聚合链路收发数据并在聚合链路形成以后,负责维护链路状态,在聚合条件发生变化时,自动调整或解散链路聚合。Link aggregation is a technology that aggregates multiple physical interfaces together as one logical interface to increase link bandwidth and improve link reliability. The Link Aggregation Control Protocol (LACP) is a protocol that implements dynamic link aggregation based on the IEEE802.3ad standard. LACP provides a standard negotiation method for the devices that exchange data, so that the devices can automatically form aggregate links according to their own configuration, start the aggregate link to send and receive data, and after the aggregate link is formed, it is responsible for maintaining the link status and when the aggregation conditions occur. When changes occur, link aggregation is automatically adjusted or disbanded.
链路聚合将若干条物理链路聚合在一起所形成的的逻辑链路称之为链路聚合组(Link Aggregation Group,LAG)或者Trunk,如果这些被聚合链路都是以太网链路,该LAG被称为以太网链路聚合组(Ethernet Trunk,Eth-Trunk),一个LAG即一个逻辑上的二层接口,组成LAG的各个接口称之为成员接口,在LAG工作时,转发数据的接口称为活动接口(selected),不转发数据的接口称为非活动接口(standby),活动接口对应的链路为活动链路,非活动接口对应的链路为非活动链路。Link aggregation The logical link formed by aggregating several physical links together is called a Link Aggregation Group (LAG) or Trunk. If these aggregated links are all Ethernet links, the A LAG is called an Ethernet link aggregation (Eth-Trunk). A LAG is a logical Layer 2 interface. The interfaces that make up a LAG are called member interfaces. When the LAG works, the interface that forwards data It is called an active interface (selected), and an interface that does not forward data is called an inactive interface (standby). The link corresponding to the active interface is an active link, and the link corresponding to the inactive interface is an inactive link.
根据链路聚合组中成员接口的管理模式,链路聚合可以分为三种模式:手工聚合模式、静态聚合模式以及动态聚合模式。由于手工聚合模式下,Trunk的建立、成员接口的加入均由手工配置,没有LACP的参与,因此本申请不考虑手工聚合模式。在静态聚合模式中,Trunk接口的建立,成员接口的加入,都是由手工配置完成的,而由LACP协议报文参与活动接口的选择,即在管理员把一组接口加入Trunk接口后,这些成员接口中哪些接口作为活动接口,哪些接口作为非活动接口需要经过LACP的协商确定。在动态聚合模式中,Trunk接口的建立,成员接口的加入,活动接口的选择完全由LACP通过协商完成,即动态LACP汇聚是一种系统自动创建/删除的汇聚,不需要也不允许用户增加或删除动态LACP汇聚中的成员接口,两台设备会通过LACP协商自动完成链路的聚合操作。According to the management mode of member interfaces in a link aggregation group, link aggregation can be divided into three modes: manual aggregation mode, static aggregation mode, and dynamic aggregation mode. In the manual aggregation mode, the establishment of the trunk and the addition of member interfaces are manually configured without the participation of LACP. Therefore, this application does not consider the manual aggregation mode. In static aggregation mode, the establishment of trunk interfaces and the addition of member interfaces are all manually configured, and LACP protocol packets participate in the selection of active interfaces. That is, after the administrator adds a group of interfaces to the trunk interface, these Which interfaces of the member interfaces are active interfaces and which interfaces are inactive interfaces need to be determined through LACP negotiation. In dynamic aggregation mode, the establishment of trunk interfaces, the addition of member interfaces, and the selection of active interfaces are completely completed by LACP through negotiation. That is, dynamic LACP aggregation is an aggregation that is automatically created / deleted by the system. It does not require or allow users to add or Delete the member interfaces in dynamic LACP aggregation, and the two devices will automatically complete the link aggregation operation through LACP negotiation.
在上述静态聚合模式以及动态聚合模式中,当两台设备之间通过LACP建立LAG之后,两台设备(本端和对端)之间需要通过每条链路(包括活动链路和非活动链路)周期性的互发LACP报文,以确定对方设备的每个接口是否有效。在LACP中,两台设备间互发LACP报文的周期包括长周期(30秒)和短周期(1秒)两种,通过链路聚合连接的两台设备中,本端可以要求对端按照长周期或者短周期向本端发送LACP报文,对端也可以要求本端按照长周期或者短周期向对端发送LACP报文,即两台设备发送LACP报文的周期可以相同也可以不同。举例来讲,如图1所示,交换机Switch A与交换机Switch B之间通过静态聚合模式建立Eth-Trunk,其中,Switch A的端口GE1/0/1与Switch B的端口GE1/0/1之间形成的链路1以及Switch A的端口GE1/0/2与Switch B的端口GE1/0/2之间形成的链路2为两条活动链路,Switch A的端口GE1/0/3与Switch B的端口GE1/0/3之间形成的链路3为非活动链路,在Switch A与Switch B之间建立Eth-Trunk之后,Switch A要求Switch B以短周期向Switch A发送LACP报文,Switch B要求Switch A以长周期向Switch B发送LACP报文,如图2所示,则Switch B每隔1秒分别通过上述三条链路向Switch A的三个接口发送LACP报文,Switch A每个30秒分别通过上述三条链路向Switch B的三个接口发送LACP报文,Switch A的一个接口在接收到一个LACP报文之后,若在3秒之后Switch A的该接口没有再次接收到LACP报文,则Eth-Trunk会将该接口对应的链路关闭,或者Switch B的一个接口在接收到一 个LACP报文之后,若在90秒之后Switch B的该接口没有再次接收到LACP报文,则Eth-Trunk会将该接口对应的链路关闭。In the above static aggregation mode and dynamic aggregation mode, when two devices establish a LAG through LACP, the two devices (the local end and the opposite end) need to pass each link (including the active link and the inactive link). Path) Periodically exchange LACP packets to determine whether each interface of the other device is valid. In LACP, the interval for sending LACP packets between two devices includes long period (30 seconds) and short period (1 second). In two devices connected through link aggregation, the local end can require the peer end to A long or short period sends a LACP packet to the local end. The peer end can also require the local end to send a LACP packet to the peer end according to the long or short period. That is, the two devices can send LACP packets at the same or different periods. For example, as shown in Figure 1, an Eth-Trunk is established between Switch A and Switch B through a static aggregation mode. Among them, the port GE1 / 0/1 of Switch A and the port GE1 / 0/1 of Switch B Link 1 formed between the two ports and GE 1/0/2 of Switch A and GE 1/0/2 of Switch B are two active links. Port GE 1/0/3 of Switch A and Link 3 formed between GE1 / 0/3 of Switch B is an inactive link. After an Eth-Trunk is established between Switch A and Switch B, Switch A requires Switch B to send a LACP report to Switch A in a short period. Switch B requires Switch A to send LACP packets to Switch B with a long period. As shown in Figure 2, Switch B sends LACP packets to the three interfaces of Switch A through the above three links every 1 second. Switch A sends LACP packets to the three interfaces of Switch B through the above three links every 30 seconds. After an interface of Switch A receives a LACP packet, if the interface of Switch A does not receive it again after 3 seconds To LACP packets, the Eth-Trunk will shut down the link corresponding to the interface, or Switch B An interface LACP after receiving a message, Switch B if after 90 seconds no interface LACP packets received again, the Eth-Trunk Interface will close the corresponding link.
目前,设备采用长周期还是采用短周期发送LACP报文是由LACP配置决定的,通过LACP报文中的发送端状态(Actor_State)字段中的一个比特位LACP_Timeout配置设备发送LACP的周期,如表1所示,表1是LACP报文中Actor_State字段的组成,在发送端发送的LACP报文中的LACP_Timeout被设置为0的情况下,则表示要求接收到该LACP报文的接收端以长周期向发送端发送LACP报文,在发送端发送的LACP报文中的LACP_Timeout被设置为1的情况下,则表示要求接收到该LACP报文的接收端以短周期向发送端发送LACP报文。Currently, whether a device sends a LACP packet with a long period or a short period is determined by the LACP configuration. A bit LACP_Timeout in the Actor_State field in the LACP packet configures the period for the device to send LACP, as shown in Table 1. As shown in the table, Table 1 is the composition of the Actor_State field in the LACP message. When the LACP_Timeout in the LACP message sent by the sender is set to 0, it indicates that the receiver receiving the LACP message is required to request The sender sends a LACP message. When the LACP_Timeout in the LACP message sent by the sender is set to 1, it indicates that the receiver that receives the LACP message is required to send a LACP message to the sender in a short period.
表1Table 1
LACP_ActivityLACP_Activity LACP_TimeoutLACP_Timeout AggregationAggregation SynchronizationSynchronization CollectingCollecting DistributingDistributing DefaultedDefaulted ExpiredExpired
上述在对设备发送LACP报文的长短周期进行配置之后,两台通过链路聚合连接的设备发送LACP的周期将会固定不变,若一台设备配置的LACP_Timeout为1,即要求与该设备连接的设备一直以短周期向该设备发送LACP报文,在这种情况下,可能出现由于该设备CPU占用率高、内存占用率高等原因导致设备处理能力有限,使得该设备不能及时接收或者发送LACP报文,Eth-Trunk会将聚合链路关闭,导致聚合链路震荡。After configuring the length of the LACP packet sent by the device, the period of sending LACP between two devices connected through link aggregation will be fixed. If the LACP_Timeout of a device is set to 1, it is required to connect to the device. Device always sends LACP packets to the device in a short period. In this case, the device may have limited processing capabilities due to high CPU usage and high memory usage of the device, making the device unable to receive or send LACP in a timely manner. In the packet, the Eth-Trunk shuts down the aggregated link, causing the aggregated link to flap.
为了克服上述问题,本申请实施例提供一种发送链路聚合控制协议报文的系统,所述系统包括第一设备以及第二设备,所述第一设备和所述第二设备通过链路聚合方式连接的两台设备,所述第一设备与所述第二设备之间的信息交互图如图3所示,其中,In order to overcome the above problems, an embodiment of the present application provides a system for sending a link aggregation control protocol message. The system includes a first device and a second device, and the first device and the second device are aggregated through a link. The information interaction diagram between the two devices connected by way of the first device and the second device is shown in FIG. 3, where:
201、第一设备确定所述第一设备的负载是否大于预设阈值。201. The first device determines whether a load of the first device is greater than a preset threshold.
本申请实施例中,所述预设阈值可以用来表征所述第一设备的数据处理能力,所述第一设备周期性获取所述第一设备的负载,在监测到所述第一设备的负载大于所述预设阈值的情况下,确定所述第一设备处于繁忙状态,数据处理能力有限,所述预设阈值可以是关于所述第一设备的CPU占用率的预设阈值,也可以是关于所述第一设备内存占用率的预设阈值等,本申请实施例不做具体限制。该预设阈值若是关于CPU占用率的预设阈值或者所述内存占用率的预设阈值,则所述预设阈值可以为百分比阈值,所述预设阈值可以设置为80%,本申请实施例不做具体限制。In the embodiment of the present application, the preset threshold may be used to characterize the data processing capability of the first device. The first device periodically obtains the load of the first device and monitors the load of the first device. In the case where the load is greater than the preset threshold, it is determined that the first device is in a busy state and data processing capacity is limited. The preset threshold may be a preset threshold regarding the CPU usage of the first device, or may be The preset threshold of the memory usage of the first device is not specifically limited in the embodiment of the present application. If the preset threshold is a preset threshold regarding CPU usage or a preset threshold for memory usage, the preset threshold may be a percentage threshold, and the preset threshold may be set to 80%. Embodiments of the present application No specific restrictions.
202、所述第一设备在负载大于所述预设阈值的情况下,向所述第二设备发送第一指示消息。202. When the load is greater than the preset threshold, the first device sends a first indication message to the second device.
本申请实施例中,所述第一设备若确定所述第一设备的负载大于所述预设阈值,则所述第一设备向所述第二设备发送第一指示消息,所述第一指示消息用于指示所述第二设备以第一周期向所述第一设备发送LACP报文,并通知所述第二设备所述第一设备的负载大于所述预设阈值,处于繁忙状态。以CPU占用率为例,所述第一设备以预设周期获取所述第一设备的CPU占用率,若所述CPU占用率大于所述预设阈值,所述第一设备确定所述第一设备的CPU处于繁忙状态,CPU处理能力有限,则所述第一设备向所述第二设备发送所述第一指示消息。In the embodiment of the present application, if the first device determines that the load of the first device is greater than the preset threshold, the first device sends a first instruction message to the second device, and the first instruction The message is used to instruct the second device to send a LACP packet to the first device in a first cycle, and notify the second device that the load of the first device is greater than the preset threshold and is in a busy state. Taking the CPU usage as an example, the first device acquires the CPU usage of the first device at a preset period. If the CPU usage is greater than the preset threshold, the first device determines the first device. If the CPU of the device is in a busy state and the processing capacity of the CPU is limited, the first device sends the first instruction message to the second device.
203、所述第二设备接收所述第一指示消息,根据所述第一指示消息,从周期集合中选择第一周期,并以所述第一周期向所述第一设备发送链路聚合控制协议报文。203. The second device receives the first instruction message, selects a first cycle from a cycle set according to the first instruction message, and sends a link aggregation control to the first device in the first cycle. Protocol messages.
所述第二设备在接收到所述第一设备发送的所述第一指示消息之后,根据所述第一指示消息,从预设的周期集合中选择第一周期,并以所述第一周期作为向所述第一设备发送LACP报文的周期,其中,所述周期集合中包括第一周期和第二周期,所述第一周期大于所述第二周期。After receiving the first instruction message sent by the first device, the second device selects a first period from a preset period set according to the first instruction message, and uses the first period as the first period. As a period for sending a LACP packet to the first device, the period set includes a first period and a second period, and the first period is greater than the second period.
通过实施本申请实施例,通过链路聚合连接的第一设备和第二设备能够监测各自的负载,在第一设备确定所述第一设备的负载大于所述预设阈值的情况下,确定所述第一设备处于繁忙状态,则所述第一设备向第二台设备发送第一指示消息,以使第二设备以更长的第一周期向所述第一设备发送LACP报文,以避免所述第一设备由非繁忙状态转换为繁忙状态后,不能及时接收并处理LACP报文而导致通过链路聚合连接的两台设备发生LACP震荡。By implementing the embodiments of the present application, the first device and the second device connected through link aggregation can monitor their respective loads. When the first device determines that the load of the first device is greater than the preset threshold, it determines the If the first device is in a busy state, the first device sends a first indication message to the second device, so that the second device sends a LACP packet to the first device with a longer first period to avoid After the first device transitions from the non-busy state to the busy state, it cannot receive and process the LACP packets in time, which results in LACP oscillation of the two devices connected through link aggregation.
本申请实施例中,所述第一设备周期性获取所述第一设备的负载,在所述第一设备监测到的负载小于或者等于所述预设阈值的情况下,表明所述第一设备处于非繁忙状态,则所述第一设备向所述第二设备发送第二指示消息。所述第二设备接收所述第二指示消息,根据所述第二指示消息,从周期集合中选择所述第二周期,并以所述第二周期向所述第一设备发送链路聚合控制协议报文。In the embodiment of the present application, the first device periodically obtains the load of the first device, and when the load monitored by the first device is less than or equal to the preset threshold, it indicates that the first device In a non-busy state, the first device sends a second indication message to the second device. The second device receives the second instruction message, selects the second cycle from a set of cycles according to the second instruction message, and sends a link aggregation control to the first device in the second cycle Protocol messages.
在一种可能的实施例中,如图4所示,本申请实施例还可以包括步骤2041以及步骤2051:In a possible embodiment, as shown in FIG. 4, the embodiment of the present application may further include step 2041 and step 2051:
2041、所述第一设备确定所述第一设备的负载小于或者等于所述预设阈值,向所述第二设备发送第二指示消息。2041. The first device determines that the load of the first device is less than or equal to the preset threshold, and sends a second indication message to the second device.
若所述第一设备在前一次监测到所述第一设备的负载大于所述预设阈值,本次监测到的负载小于或者等于所述预设阈值,则所述第一设备在本次获取负载之后,继续向所述第二设备发送所述第一指示消息,直至在预设的连续多次监测到的负载仍然小于或者等于所述预设阈值,所述第一设备才确定所述第一设备的负载小于或者等于所述预设阈值,进而向所述第二设备发送所述第二指示消息,所述第一指示消息用于指示所述第二设备以第一周期向所述第一设备发送LACP报文,并通知所述第二设备所述第一设备处于繁忙状态。If the first device previously monitored that the load of the first device was greater than the preset threshold, and that the load monitored this time was less than or equal to the preset threshold, the first device acquired this time After the load, the first device continues to send the first indication message to the second device, and the first device determines that the first device does not determine the load until the load monitored for multiple consecutive presets is still less than or equal to the preset threshold. The load of a device is less than or equal to the preset threshold, and then the second instruction message is sent to the second device, and the first instruction message is used to instruct the second device to the second device in a first cycle. A device sends a LACP message, and notifies the second device that the first device is busy.
2051、所述第二设备接收所述第二指示消息,根据所述第二指示消息,从周期集合中选择第二周期,并以所述第二周期向所述第一设备发送链路聚合控制协议报文。2051. The second device receives the second instruction message, selects a second cycle from a cycle set according to the second instruction message, and sends a link aggregation control to the first device in the second cycle. Protocol messages.
通过实施上述实施例,可以防止所述第一设备误检测或者由于所述第一设备的负载小于或者等于所述预设阈值的时间短暂,而导致所述第一设备在向所述第二设备发送所述第二指示消息之后,所述第一设备的负载再次大于所述预设阈值,而所述第二设备收到所述第二指示消息之后以第二周期向所述第一设备发送LACP报文,导致所述第一设备无法及时处理进而导致链路震荡。By implementing the foregoing embodiment, the first device may be prevented from being detected incorrectly, or the first device may be transmitting to the second device due to a short period of time when the load of the first device is less than or equal to the preset threshold. After sending the second instruction message, the load of the first device is greater than the preset threshold again, and the second device sends the second instruction message to the first device after receiving the second instruction message LACP packets cause the first device to fail to process in a timely manner and thus cause link flapping.
在一种可能的实施例中,如图5所示,本申请实施例还可以包括步骤2042以及步骤2052:In a possible embodiment, as shown in FIG. 5, the embodiment of the present application may further include step 2042 and step 2052:
2042、所述第一设备监测到所述第一设备的负载小于或者等于所述预设阈值,向所述第二设备发送第二指示消息。2042. The first device detects that the load of the first device is less than or equal to the preset threshold, and sends a second instruction message to the second device.
若所述第一设备在前一次监测到所述第一设备的负载大于所述预设阈值,本次监测到的负载小于或者等于所述预设阈值,则所述第一设备立即向所述第二设备发送所述第二指示消息。If the first device has previously monitored that the load of the first device is greater than the preset threshold, and the load monitored this time is less than or equal to the preset threshold, the first device immediately reports to the The second device sends the second indication message.
2052、所述第二设备确定所述第一设备的负载小于或者等于所述预设阈值,从周期集合中选择第二周期,并以所述第二周期向所述第一设备发送链路聚合控制协议报文。2052. The second device determines that the load of the first device is less than or equal to the preset threshold, selects a second period from a period set, and sends a link aggregation to the first device in the second period. Control protocol messages.
所述第二设备在前一次接收到指示消息为第一指示消息,本次接收到的标记为第二指示 消息的情况下,所述第二设备继续以所述第一周期向所述第一设备发送LACP报文,直至所述第二设备在预设的连续多次接收到的指示消息都为第二指示消息的情况下,所述第二设备才会确定所述第一设备的负载小于或者等于所述预设阈值,进而从所述周期集合中选择所述第二周期,并以所述第二周期向所述第一设备发送LACP报文,以防止所述第一设备误检测或者由于所述第一设备的负载小于或者等于所述预设阈值的时间短暂,而导致所述第一设备在向所述第二设备发送所述第二指示消息之后,所述第一设备的负载再次大于所述预设阈值,而所述第二设备收到所述第二指示消息之后以第二周期向所述第一设备发送LACP报文,导致所述第一设备无法及时处理进而导致链路震荡。When the second device receives the indication message as the first indication message the previous time, and the flag received this time is the second indication message, the second device continues to the first device in the first cycle. The device sends a LACP message, and the second device does not determine that the load of the first device is less than the case that the second device receives the second instruction message in a preset instruction message that is received multiple consecutive times. Or is equal to the preset threshold, and then selects the second period from the period set, and sends a LACP packet to the first device in the second period to prevent the first device from falsely detecting or Because the load of the first device is less than or equal to the preset threshold, the load of the first device after the first device sends the second instruction message to the second device is short. It is greater than the preset threshold again, and the second device sends a LACP packet to the first device in a second cycle after receiving the second instruction message, which causes the first device to fail to process in time and causes a chain. road Shock.
在一种可能的实施例中,若所述第一设备原本是以所述第二周期向所述第二设备发送LACP报文,所述第一设备在向所述第二设备发送所述第一指示消息,以指示所述第二设备以第一周期向所述第一设备发送LACP报文,并通知所述第二设备所述第一设备处于繁忙状态之后,所述第二设备根据所述第一指示消息确定所述第一设备处于繁忙状态,所述第二设备可以向所述第一设备发送第四指示消息,以指示所述第一设备也选择所述第一周期向所述第二设备发送LACP报文。所述第一设备接收到所述第四指示消息之后,根据所述第四指示消息转换为以所述第一周期向所述第二设备发送LACP报文,以防止所述第一设备不能及时向所述第二设备发送LACP报文而导致链路震荡。In a possible embodiment, if the first device originally sends a LACP packet to the second device in the second period, the first device is sending the first device to the second device. An instruction message to instruct the second device to send a LACP packet to the first device in a first cycle, and to notify the second device that the first device is busy, and the second device The first indication message determines that the first device is busy, and the second device may send a fourth indication message to the first device to instruct the first device to also select the first period to the first device. The second device sends a LACP message. After the first device receives the fourth instruction message, it is converted into sending a LACP message to the second device in the first period according to the fourth instruction message, so as to prevent the first device from failing to timely Sending a LACP packet to the second device causes link flapping.
在一种可能的实施例中,若所述第一设备原本是以所述第一周期向所述第二设备发送LACP报文,所述第一设备在向所述第二设备发送所述第二指示消息,以指示所述第二设备以第二周期向所述第一设备发送LACP报文,并通知所述第二设备所述第一设备处于非繁忙状态之后,所述第二设备根据所述第一指示消息确定所述第一设备处于非繁忙状态,所述第二设备可以向所述第一设备发送第三指示消息,以指示所述第一设备也选择所述第二周期向所述第二设备发送LACP报文,所述第一设备接收到所述第三指示消息之后,根据所述第三指示消息转换为以所述第二周期向所述第二设备发送LACP报文。In a possible embodiment, if the first device originally sends a LACP packet to the second device in the first period, the first device sends the first device to the second device. Two indication messages to instruct the second device to send a LACP packet to the first device in a second cycle, and to notify the second device that the first device is in a non-busy state, the second device The first instruction message determines that the first device is in a non-busy state, and the second device may send a third instruction message to the first device to instruct the first device to also select the second periodic direction. The second device sends a LACP message, and after receiving the third instruction message, the first device converts to a second device to send a LACP message according to the third instruction message .
在一种可能的实施例中,所述第一指示消息或所述第二指示消息可以承载于LACP报文中,如下表2所示,表2是本申请实施例提供的一种LACP报文的格式,LACP报文包括LACP_Timeout标志位以及保留字段,所述第一指示消息或第二指示消息即为LACP_Timeout标志位以及保留字段包含的消息,其中,所述LACP_Timeout用于指示所述第二设备选择第一周期或第二周期,所述保留字段用于通知所述第二设备所述第一设备是否处于繁忙状态,所述保留字段默认状态为全0,将所述保留字段的默认状态用于表示设备处于非繁忙状态。举例来讲,在所述第一设备和所述第二设备在建立链路聚合并互发LACP协议时,若所述第一设备发送给所述第二设备的LACP报文以及所述第二设备发送给所述第一设备的LACP报文中的LACP_Timeout均设置为1,保留字段均为默认状态,即所述第一设备和所述第二设备均采用第二周期向对方发送LACP报文,所述第一设备和所述第二设备均处于非繁忙状态。在所述第一设备监测到负载大于预设阈值的情况下,所述第一设备将发送给所述第二设备的LACP报文中的LACP_Timeout更改为0,并将LACP报文保留字段的最后一个比特位更改为1,得的承载有所述第一指示消息的第一LACP报文,将所述第一LACP报文发送给所述第二设备。所述第二设备接收所述第一LACP报文之后,根据所述第一LACP报文中的LACP_Timeout,选择第一周期向所述第一设备发送LACP报文,并根据所述保留字段确定所 述第一设备处于繁忙状态。所述第二设备在确定所述第一设备处于繁忙状态后,所述第二设备也可以将发送给所述第一设备的LACP报文中的LACP_Timeout更改为0,得到承载有第三指示消息的第三LACP报文,将所述第三LACP报文发送给所述第一设备,所述第一设备在接收到所述第三LACP报文之后,根据所述第三LACP报文中的LACP_Timeout,选择第一周期向所述第二设备发送LACP报文。In a possible embodiment, the first indication message or the second indication message may be carried in a LACP message, as shown in Table 2 below. Table 2 is a LACP message provided in the embodiment of the present application. Format, the LACP message includes a LACP_Timeout flag bit and a reserved field, the first indication message or the second indication message is a LACP_Timeout flag bit and a message contained in the reserved field, wherein the LACP_Timeout is used to indicate the second device Selecting the first period or the second period, the reserved field is used to notify the second device whether the first device is busy, the default state of the reserved field is all 0, and the default state of the reserved field is used Yu indicates that the device is not busy. For example, when the first device and the second device establish link aggregation and exchange LACP protocols, if the first device sends a LACP packet to the second device and the second device The LACP_Timeout in the LACP message sent by the device to the first device is set to 1, and the reserved fields are the default state, that is, the first device and the second device both send LACP messages to each other in the second cycle. , The first device and the second device are both in a non-busy state. When the first device detects that the load is greater than a preset threshold, the first device changes the LACP_Timeout in the LACP message sent to the second device to 0, and changes the last field of the LACP message to the reserved field. When a bit is changed to 1, the first LACP message carrying the first indication message is obtained, and the first LACP message is sent to the second device. After receiving the first LACP message, the second device selects a first period to send a LACP message to the first device according to the LACP_Timeout in the first LACP message, and determines The first device is in a busy state. After the second device determines that the first device is in a busy state, the second device may also change the LACP_Timeout in the LACP packet sent to the first device to 0 to obtain a third indication message. Sending the third LACP message to the first device, after receiving the third LACP message, the first device receives the third LACP message according to the third LACP message. LACP_Timeout: Select a first period to send a LACP packet to the second device.
表2Table 2
Figure PCTCN2018104611-appb-000001
Figure PCTCN2018104611-appb-000001
在所述第一设备监测到负载小于或者等于所述预设阈值的情况下,所述第一设备将发送给所述第二设备的LACP报文中的LACP_Timeout更改为1,并将LACP报文保留字段的最后一个比特位更改为0,得到承载有所述第二指示消息的第二LACP报文,并将所述LACP报文发送给所述第二设备。所述第二设备接收所述第二LACP报文,根据所述第二LACP报文中的LACP_Timeout,选择第二周期向所述第一设备发送LACP报文,并根据所述保留字段确定所述第一设备处于非繁忙状态。所述第二设备在确定所述第一设备处于非繁忙状态后,所述第二设备也可以将发送给所述第一设备的LACP报文中的LACP_Timeout更改为1,得到承载有所述第四指示消息的第四LACP报文,将所述第四LACP报文发送给所述第一设备,所述第一设备在接收到所述第四LACP报文之后,根据所述第四LACP报文中的LACP_Timeout,选择第二周期向所述第二设备发送LACP报文。When the first device detects that the load is less than or equal to the preset threshold, the first device changes the LACP_Timeout in the LACP message sent to the second device to 1 and changes the LACP message The last bit of the reserved field is changed to 0 to obtain a second LACP message carrying the second indication message, and send the LACP message to the second device. Receiving, by the second device, the second LACP message, selecting a second period to send a LACP message to the first device according to the LACP_Timeout in the second LACP message, and determining the second device according to the reserved field The first device is in a non-busy state. After the second device determines that the first device is in a non-busy state, the second device may also change the LACP_Timeout in the LACP packet sent to the first device to 1 to obtain the bearer of the first device. Sending a fourth LACP message of four indication messages to the first device, and after receiving the fourth LACP message, the first device according to the fourth LACP message In the text, LACP_Timeout, select a second period to send a LACP packet to the second device.
可以理解,上述采用LACP保留字段中的最后一个比特位表示设备是否繁忙仅是一种举例,在其他可能的实施例中,可以采用LACP保留字段中的连续多个比特位表示,例如,在所述设备需要发送5种指示消息的情况下,可以采用LACP保留字段中的最后3个比特位表示设备是否繁忙,本申请实施例不做具体限定。It can be understood that the foregoing use of the last bit in the LACP reserved field to indicate whether the device is busy is only an example. In other possible embodiments, multiple consecutive bits in the LACP reserved field may be used to represent, for example, in all In the case where the device needs to send 5 kinds of indication messages, the last 3 bits in the LACP reserved field can be used to indicate whether the device is busy or not, which is not specifically limited in this embodiment of the present application.
由于所述第一设备和所述第二设备通过链路聚合连接,所述第一设备和所述第二设备需要周期性的互发LACP报文,因此可以将所述第一指示消息、所述第二指示消息、所述第三指示消息以及所述第四指示消息承载于LACP报文中,而不必增加其他类型的报文承载上述四种指示消息,减少了设备需要发送的报文的类型,从而减少了设备需要处理的数据量。Since the first device and the second device are connected through link aggregation, the first device and the second device need to periodically exchange LACP packets, so the first instruction message, all The second indication message, the third indication message, and the fourth indication message are carried in a LACP message without having to add other types of messages to carry the above four kinds of indication messages, reducing the number of messages that the device needs to send. Type, which reduces the amount of data the device needs to process.
本申请实施例中,所述第一设备在向所述第二设备发送所述第一指示消息之后,在所述第一设备没有确定所述第一设备的负载小于或者等于所述预设阈值之前,所述第一设备一直向所述第二设备发送所述第一指示消息,例如,所述第一设备采用LACP报文承载所述第一指示消息,所述第一设备在将承载有所述第一指示消息的第一LACP报文发送给所述第二设 备之后,则一直向所述第二设备发送所述第一LACP报文,直至所述第一设备确定所述第一设备的负载小于或者等于所述预设阈值之后,所述第一设备才会向所述第二设备发送承载有所述第二指示消息的第二LACP报文,并在监测到所述第一设备的负载大于所述预设阈值之前,一直向所述第二设备发送所述第二LACP报文。In the embodiment of the present application, after the first device sends the first instruction message to the second device, after the first device does not determine that the load of the first device is less than or equal to the preset threshold Previously, the first device always sent the first instruction message to the second device. For example, the first device used a LACP message to carry the first instruction message, and the first device was After the first LACP message of the first indication message is sent to the second device, the first LACP message is sent to the second device until the first device determines that the first device After the load is less than or equal to the preset threshold, the first device sends a second LACP message carrying the second indication message to the second device, and the first device is monitored. The second LACP packet is always sent to the second device until the load of the load is greater than the preset threshold.
在一种可能的实施例中,所述第一设备可以设置m个预设阈值,所述第一设备可以发送m种指示消息,所述周期集合中可以包括m个周期,所述m个预设阈值与所述m种指示消息一一对应,所述m种指示消息与所述m个周期一一对应,其中,m为大于或者等于2的正整数,在所述第一设备监测到所述第一设备的负载小于或者等于第i(i小于或者等于m-1)个预设阈值,大于第i+1个预设阈值的情况下,所述第一设备向所述第二设备发送第i+1指示消息,所述第二设备在接收到所述第i指示消息后,从所述周期集合中选取第i周期,以所述第i周期向所述第一设备发送LACP报文。举例来讲,若所述m等于3,以所述CPU占用率为例,将所述CPU占用率为90%,80%,70%分别作为第一预设阈值、第二预设阈值以及第三预设阈值,在所述第一设备监测到所述第一设备的CPU占用率为91%的情况下,所述第一设备向所述第二设备发送第一指示消息,所述第二设备在接收到所述第一指示消息之后,从所述周期集合中选择第一周期,以所述第一周期向所述第一设备发送LACP报文;在所述第一设备监测到所述第一设备的CPU占用率为83%的情况下,所述第一设备向所述第二设备发送第二指示消息,所述第二设备在接收到所述第二指示消息之后,从所述周期集合中选择第二周期,以所述第二周期向所述第一设备发送LACP报文,所述第一周期长于所述第二周期。In a possible embodiment, the first device may set m preset thresholds, the first device may send m types of indication messages, and the period set may include m periods, and the m Set the threshold to one-to-one correspondence with the m types of indication messages, and one-to-one correspondence with the m types of indication messages, where m is a positive integer greater than or equal to 2, and the first device detects all If the load of the first device is less than or equal to the i-th (i is less than or equal to m-1) preset thresholds, and if the load of the first device is greater than the i + 1th preset threshold, the first device sends to the second device The i + 1th indication message, after receiving the ith indication message, the second device selects the ith period from the period set, and sends a LACP message to the first device in the ith period . For example, if the m is equal to 3, taking the CPU occupancy rate as an example, the CPU occupancy rates are 90%, 80%, and 70% as the first preset threshold value, the second preset threshold value, and the first Three preset thresholds, when the first device detects that the CPU usage of the first device is 91%, the first device sends a first instruction message to the second device, and the second device After receiving the first indication message, the device selects a first period from the period set, and sends a LACP packet to the first device at the first period; when the first device detects that the When the CPU usage of the first device is 83%, the first device sends a second instruction message to the second device, and the second device receives the second instruction message from the second device A second cycle is selected from the cycle set, and a LACP message is sent to the first device in the second cycle, and the first cycle is longer than the second cycle.
在一可能的实施例中,所述第二设备也可以执行与上述各实施例中所述第一设备相同的功能,同理,所述第一设备也可以执行与上述各实施例中所述第二设备相同的功能。In a possible embodiment, the second device may also perform the same functions as the first device in the foregoing embodiments. Similarly, the first device may also perform the same functions as described in the foregoing embodiments. The second device has the same function.
请参见图6,图6是本申请实施例提供的一种网络设备的结构示意图,如图6所示,第一网络设备400包括:处理单元410以及发送单元420,其中,Please refer to FIG. 6. FIG. 6 is a schematic structural diagram of a network device according to an embodiment of the present application. As shown in FIG. 6, the first network device 400 includes a processing unit 410 and a sending unit 420.
所述处理单元410,用于确定所述第一网络设备的负载是否大于预设阈值;The processing unit 410 is configured to determine whether a load of the first network device is greater than a preset threshold;
所述发送单元420,用于在所述处理单元410确定所述第一网络设备的负载大于所述预设阈值的情况下,向第二网络设备发送第一指示消息,所述第一指示消息用于指示所述第二网络设备从周期集合中选择第一周期,并以所述第一周期向所述第一网络设备发送LACP报文,所述周期集合包括第一周期和第二周期,所述第一周期大于所述第二周期,所述第一网络设备与所述第二网络设备为通过链路聚合连接的两台设备。The sending unit 420 is configured to send a first instruction message to a second network device when the processing unit 410 determines that the load of the first network device is greater than the preset threshold. For instructing the second network device to select a first period from a set of periods and to send a LACP packet to the first network device in the first period, where the period set includes a first period and a second period, The first period is greater than the second period, and the first network device and the second network device are two devices connected through link aggregation.
在本申请实施例中,所述发送单元420还用于在所述处理单元410确定所述第一网络设备的负载小于或者等于所述预设阈值的情况下,所述第一网络设备向所述第二网络设备发送第二指示消息,所述第二指示消息用于指示所述第二网络设备从所述周期集合中选择第二周期,并以所述第二周期向所述第一网络设备发送LACP报文。In the embodiment of the present application, the sending unit 420 is further configured to: when the processing unit 410 determines that the load of the first network device is less than or equal to the preset threshold, the first network device sends the The second network device sends a second instruction message, and the second instruction message is used to instruct the second network device to select a second period from the period set, and send the second period to the first network in the second period. The device sends a LACP packet.
在一种可能的实施例中,所述发送单元420还用于所述在所述处理单元410确定所述第一网络设备的负载小于或者等于所述预设阈值,,且所述负载小于或者等于所述预设阈值的持续时长大于预设时长的情况下,向所述第二网络设备发送第二指示消息。In a possible embodiment, the sending unit 420 is further configured to determine in the processing unit 410 that a load of the first network device is less than or equal to the preset threshold, and the load is less than or When the duration equal to the preset threshold is greater than the preset duration, sending a second indication message to the second network device.
在一种可能的实施例中,所述第一网络设备在向所述第二网络设备发送所述第一指示消 息之后,所述第一网络设备接收所述第二设备发送的第四指示消息,根据所述第四指示消息从所述周期集合中选择所述第一周期,并以所述第一周期向所述第二网络设备发送LACP报文。In a possible embodiment, after the first network device sends the first indication message to the second network device, the first network device receives a fourth indication message sent by the second device , Selecting the first period from the period set according to the fourth instruction message, and sending a LACP message to the second network device in the first period.
在一种可能的实施例中,所述第一网络设备在向所述第二网络设备发送所述第二指示消息之后,所述第一网络设备接收所述第二设备发送的第三指示消息,根据所述第三指示消息从所述周期集合中选择所述第二周期,并以所述第二周期向所述第二网络设备发送LACP报文。In a possible embodiment, after the first network device sends the second indication message to the second network device, the first network device receives a third indication message sent by the second device , Selecting the second period from the period set according to the third instruction message, and sending a LACP message to the second network device in the second period.
在一种可能的实施例中,所述第一指示消息承载于第一链路聚合控制协议报文中,所述第二指示消息承载于第二链路聚合控制协议报文中,所述第三指示消息承载于第三链路聚合控制协议报文中,所述第四指示消息承载于第四链路聚合控制协议报文中。In a possible embodiment, the first indication message is carried in a first link aggregation control protocol message, and the second indication message is carried in a second link aggregation control protocol message. The three indication messages are carried in a third link aggregation control protocol message, and the fourth indication message is carried in a fourth link aggregation control protocol message.
在一种可能的实施例中,所述处理单元410确定所述第一网络设备的负载是否大于预设阈值,具体为所述处理单元410获取所述第一网络设备的CPU的占用率,根据所述占用率确定所述第一网络设备的负载是否大于所述预设阈值。In a possible embodiment, the processing unit 410 determines whether the load of the first network device is greater than a preset threshold. Specifically, the processing unit 410 obtains the CPU usage of the first network device. The occupancy rate determines whether a load of the first network device is greater than the preset threshold.
具体地,上述第一网络设备400执行的各项操作的具体实现可参照上述系统实施例中第一设备的具体操作,在此不再赘述。Specifically, for specific implementation of the operations performed by the first network device 400, reference may be made to specific operations of the first device in the foregoing system embodiment, and details are not described herein again.
请参见图7,图7是本申请实施例提供的另一种网络设备的结构示意图,如图7所示,第二网络设备500包括:处理单元510、接收单元520以及发送单元530,其中,Please refer to FIG. 7. FIG. 7 is a schematic structural diagram of another network device according to an embodiment of the present application. As shown in FIG. 7, the second network device 500 includes a processing unit 510, a receiving unit 520, and a sending unit 530.
所述接收单元520用于接收第一网络设备发送的指示消息,所述第一网络设备与所述第二网络设备为通过链路聚合连接的两台设备;The receiving unit 520 is configured to receive an instruction message sent by a first network device, where the first network device and the second network device are two devices connected through link aggregation;
所述处理单元510用于确定所述接收单元接收到的指示消息的类型;The processing unit 510 is configured to determine a type of an instruction message received by the receiving unit;
所述发送单元530用于在所述处理单元510确定接收单元520接收到的指示消息为第一指示消息的情况下,从周期集合中选择第一周期,并以所述第一周期向所述第一网络设备发送LACP报文,所述周期集合包括第一周期和第二周期,所述第一周期大于所述第二周期。The sending unit 530 is configured to: when the processing unit 510 determines that the instruction message received by the receiving unit 520 is a first instruction message, select a first cycle from a cycle set, and send the first cycle to the The first network device sends a LACP message, and the period set includes a first period and a second period, and the first period is greater than the second period.
本申请实施例中,所述发送单元530用于在所述处理单元510确定接收单元520接收到的指示消息为第二指示消息的情况下,从周期集合中选择第二周期,并以所述第二周期向所述第一网络设备发送LACP报文。In the embodiment of the present application, the sending unit 530 is configured to: when the processing unit 510 determines that the instruction message received by the receiving unit 520 is a second instruction message, select a second cycle from a cycle set, and use the Sending a LACP packet to the first network device in a second period.
在一种可能的实施例中,所述第二设备根据所述第二指示消息,从周期集合中选择所述第二周期,并以所述第二周期向所述第一设备发送链路聚合控制协议报文之后,还包括:所述第二设备向所述第一设备发送第三指示消息,所述第三指示消息用于指示所述第一设备从所述周期集合中选择第二周期,并以所述第二周期向所述第二设备发送链路聚合控制协议报文。In a possible embodiment, the second device selects the second period from a period set according to the second instruction message, and sends the link aggregation to the first device in the second period. After the control protocol message, the method further includes: the second device sends a third instruction message to the first device, where the third instruction message is used to instruct the first device to select a second cycle from the cycle set And sending a link aggregation control protocol message to the second device in the second period.
在一种可能的实施例中,所述第二设备根据所述第一指示消息,所述从周期集合中选择第一周期,并以所述第一周期向所述第一设备发送链路聚合控制协议报文之后,还包括:所述第二设备向所述第一设备发送第四指示消息,所述第四指示消息用于指示所述第一设备从所述周期集合中选择第一周期,并以所述第一周期向所述第二设备发送链路聚合控制协议报文。In a possible embodiment, the second device selects a first period from a set of periods according to the first instruction message, and sends link aggregation to the first device in the first period. After the control protocol message, the method further includes: sending, by the second device, a fourth instruction message to the first device, where the fourth instruction message is used to instruct the first device to select a first period from the period set. And sending a link aggregation control protocol message to the second device in the first period.
在一种可能的实施例中,所述第一指示消息承载于第一链路聚合控制协议报文中,所述第二指示消息承载于第二链路聚合控制协议报文中,所述第三指示消息承载于第三链路聚合控制协议报文中,所述第四指示消息承载于第四链路聚合控制协议报文中。In a possible embodiment, the first indication message is carried in a first link aggregation control protocol message, and the second indication message is carried in a second link aggregation control protocol message. The three indication messages are carried in a third link aggregation control protocol message, and the fourth indication message is carried in a fourth link aggregation control protocol message.
具体地,上述第二网络设备500执行的各项操作的具体实现可参照上述系统实施例中第二设备的具体操作,在此不再赘述。Specifically, for specific implementation of each operation performed by the second network device 500, reference may be made to specific operations of the second device in the foregoing system embodiment, and details are not described herein again.
请参见图8,图8是本申请实施例提供的一种网络设备的结构示意图,如图8所示,第三网络设备600至少包括:处理器610、输入输出设备620以及存储器630,所述处理器610、输入输出设备620以及存储器630通过总线640相互连接,其中,Please refer to FIG. 8. FIG. 8 is a schematic structural diagram of a network device according to an embodiment of the present application. As shown in FIG. 8, the third network device 600 includes at least a processor 610, an input-output device 620, and a memory 630. The processor 610, the input-output device 620, and the memory 630 are connected to each other through a bus 640.
所述网络设备600中的处理器610用于读取存储器630中的相关指令执行以下操作:The processor 610 in the network device 600 is configured to read related instructions in the memory 630 and perform the following operations:
处理器610确定所述第三网络设备的负载是否大于预设阈值;The processor 610 determines whether the load of the third network device is greater than a preset threshold;
在所述处理器610确定所述负载大于所述预设阈值的情况下,所述处理器610调用所述输入输出设备620向第四网络设备发送第一指示消息,所述第一指示消息用于指示所述第四网络设备从周期集合中选择第一周期,并以所述第一周期向所述第三网络设备发送LACP报文,所述周期集合包括第一周期和第二周期,所述第一周期大于所述第二周期,所述第三网络设备与所述第四网络设备为通过链路聚合连接的两台设备。When the processor 610 determines that the load is greater than the preset threshold, the processor 610 calls the input / output device 620 to send a first instruction message to a fourth network device, and the first instruction message is used for And instructing the fourth network device to select a first period from a period set, and sending a LACP packet to the third network device in the first period, the period set includes a first period and a second period, so The first period is greater than the second period, and the third network device and the fourth network device are two devices connected through link aggregation.
需要说明的,图8仅仅是本申请实施例的一种可能的实现方式,实际应用中,所述第三网络设备还可以包括更多或更少的部件,这里不作限制。关于第三网络设备600执行的各项操作的具体实现可参照上述系统实施例中第一设备的操作,在此不再赘述。It should be noted that FIG. 8 is only one possible implementation manner of the embodiment of the present application. In practical applications, the third network device may further include more or fewer components, which is not limited herein. For specific implementation of each operation performed by the third network device 600, reference may be made to the operation of the first device in the foregoing system embodiment, and details are not described herein again.
请参见图9,图9是本申请实施例提供的一种网络设备的结构示意图,如图9所示,第四网络设备700至少包括:处理器710、输入输出设备720以及存储器730,所述处理器710、输入输出设备720以及存储器730通过总线740相互连接,其中,Please refer to FIG. 9. FIG. 9 is a schematic structural diagram of a network device according to an embodiment of the present application. As shown in FIG. 9, the fourth network device 700 includes at least a processor 710, an input-output device 720, and a memory 730. The processor 710, the input-output device 720, and the memory 730 are connected to each other through a bus 740.
所述网络设备700中的处理器710用于读取存储器730中的相关指令执行以下操作:The processor 710 in the network device 700 is configured to read related instructions in the memory 730 and perform the following operations:
处理器710控制所述输入输出设备720接收第三网络设备发送的指示消息,所述第三网络设备与所述第四网络设备为通过链路聚合连接的两台设备;The processor 710 controls the input / output device 720 to receive an instruction message sent by a third network device, where the third network device and the fourth network device are two devices connected through link aggregation;
在所述处理器710确定所述指示消息为第一指示消息的情况下,所述第四网络设备根据所述第一指示消息,从周期集合中选择第一周期,并控制所述输入输出设备720以所述第一周期向所述第三网络设备发送LACP报文。When the processor 710 determines that the instruction message is a first instruction message, the fourth network device selects a first cycle from a cycle set according to the first instruction message, and controls the input / output device 720 sends a LACP message to the third network device in the first period.
本申请实施例中,在所述处理器710确定所述指示消息为第二指示消息的情况下,所述第四网络设备根据所述第二指示消息,从周期集合中选择第二周期,并控制所述输入输出设备720以所述第二周期向所述第三网络设备发送LACP报文。In the embodiment of the present application, when the processor 710 determines that the instruction message is a second instruction message, the fourth network device selects a second cycle from a cycle set according to the second instruction message, and Controlling the input / output device 720 to send a LACP message to the third network device in the second period.
需要说明的,图9仅仅是本申请实施例的一种可能的实现方式,实际应用中,所述第三网络设备还可以包括更多或更少的部件,这里不作限制。关于第四网络设备700执行的各项操作的具体实现可参照上述系统实施例中第一设备的操作,在此不再赘述。It should be noted that FIG. 9 is only one possible implementation manner of the embodiment of the present application. In practical applications, the third network device may further include more or fewer components, which is not limited herein. For specific implementation of each operation performed by the fourth network device 700, reference may be made to the operation of the first device in the foregoing system embodiment, and details are not described herein again.
上述实施例中,所述处理器610以及所述处理器710可以是中央处理器(Central Processing Unit,CPU),或者CPU和硬件芯片的组合。上述硬件芯片可以是专用集成电路(Application-Specific Integrated Circuit,ASIC),可编程逻辑器件(Programmable Logic Device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(Complex Programmable Logic device,CPLD),现场可编程逻辑门阵列(Field-Programmable Gate Array,FPGA),通用阵列逻辑(Generic Array Logic,GAL)或其任意组合。In the foregoing embodiment, the processor 610 and the processor 710 may be a central processing unit (CPU), or a combination of a CPU and a hardware chip. The above-mentioned hardware chip may be an Application-Specific Integrated Circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a universal array logic (GAL), or any combination thereof.
所述存储器630以及所述处理器730包括但不限于是随机存取存储器(Random Access  Memory,RAM)、只读存储器(Read-Only Memory,ROM)或可擦除可编程只读存储器(Erasable Programmable Read-Only Memory,EPROM或者快闪存储器),用于存储程序代码及数据,并可以将存储的数据传输给处理器。The memory 630 and the processor 730 include, but are not limited to, Random Access Memory (RAM), Read-Only Memory (ROM), or Erasable Programmable Read-Only Memory (EPROM or flash memory), used to store program code and data, and can transfer the stored data to the processor.
所述总线640以及总线740可以是外设部件互连标准(Peripheral Component Interconnect,简称PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,简称EISA)总线等。所述总线640以及总线740可以分为地址总线、数据总线、控制总线等。为便于表示,图8以及图9中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus 640 and the bus 740 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, or the like. The bus 640 and the bus 740 may be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is used in FIG. 8 and FIG. 9, but it does not mean that there is only one bus or one type of bus.
本发明实施例还提供一种计算机非瞬态存储介质,所述计算机非瞬态存储介质中存储有指令,当其在处理器上运行时,可以实现上述系统实施例中所述第一设备执行的操作,或者实现上述系统实施例中所述第二设备执行的操作,还可以即能实现所述第一设备执行的操作,又能实现所述第二设备执行的操作。An embodiment of the present invention further provides a computer non-transitory storage medium. The computer non-transitory storage medium stores instructions, and when the computer non-transitory storage medium is run on a processor, the first device in the system embodiment described above can be executed. The operations performed by the second device or the operations performed by the second device in the foregoing system embodiment may also implement the operations performed by the first device and the operations performed by the second device.
在上述实施例中,可以全部或部分地通过软件、硬件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions according to the embodiments of the present application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be from a website site, computer, server, or data center Transmission by wire (for example, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (for example, infrared, wireless, microwave, etc.) to another website site, computer, server, or data center. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, and the like that includes one or more available medium integration. The available medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (Solid State Disk) (SSD)).
本申请实施例方法中的步骤可以根据实际需要进行顺序调整、合并或删减;本申请实施例装置中的模块可以根据实际需要进行划分、合并或删减。The steps in the method of the embodiment of the present application may be sequentially adjusted, combined, or deleted according to actual needs; the modules in the apparatus of the embodiment of the present application may be divided, combined, or deleted according to actual needs.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been described in detail above. Specific examples have been used in this document to explain the principles and implementation of the present application. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application. Persons of ordinary skill in the art may change the specific implementation and application scope according to the idea of the present application. In summary, the content of this description should not be construed as a limitation on the present application.

Claims (25)

  1. 一种发送链路聚合控制协议报文的方法,其特征在于,包括:A method for sending a Link Aggregation Control Protocol message includes:
    第一设备确定所述第一设备的负载是否大于预设阈值;The first device determines whether the load of the first device is greater than a preset threshold;
    在所述负载大于所述预设阈值的情况下,所述第一设备向第二设备发送第一指示消息,所述第一指示消息用于指示所述第二设备从周期集合中选择第一周期,并以所述第一周期向所述第一设备发送链路聚合控制协议报文,所述周期集合包括第一周期和第二周期,所述第一周期大于所述第二周期,所述第一设备与所述第二设备为通过链路聚合连接的两台设备。When the load is greater than the preset threshold, the first device sends a first instruction message to a second device, and the first instruction message is used to instruct the second device to select the first device from a periodic set. Period, and sending a link aggregation control protocol message to the first device in the first period, the period set includes a first period and a second period, and the first period is greater than the second period, so The first device and the second device are two devices connected through link aggregation.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    在所述负载小于或者等于所述预设阈值的情况下,所述第一设备向所述第二设备发送第二指示消息,所述第二指示消息用于指示所述第二设备从所述周期集合中选择所述第二周期,并以所述第二周期向所述第一设备发送链路聚合控制协议报文。When the load is less than or equal to the preset threshold, the first device sends a second instruction message to the second device, where the second instruction message is used to instruct the second device to send the second device from the second device. The second period is selected in a period set, and a link aggregation control protocol message is sent to the first device in the second period.
  3. 根据权利要求2所述的方法,其特征在于,所述在所述负载小于或者等于所述预设阈值的情况下,所述第一设备向所述第二设备发送第二指示消息,包括:The method according to claim 2, wherein when the load is less than or equal to the preset threshold, the sending, by the first device, a second indication message to the second device comprises:
    在所述负载小于或者等于所述预设阈值,且所述负载小于或者等于所述预设阈值的持续时长大于预设时长的情况下,所述第一设备向所述第二设备发送第二指示消息。When the load is less than or equal to the preset threshold, and the duration of the load is less than or equal to the preset threshold, the first device sends a second to the second device Indication message.
  4. 根据权利要求2或3所述的方法,其特征在于,所述第一设备向第二设备发送第二指示消息之后,还包括:The method according to claim 2 or 3, wherein after the first device sends the second instruction message to the second device, the method further comprises:
    所述第一设备接收所述第二设备发送的第三指示消息,根据所述第三指示消息从所述周期集合中选择所述第二周期,并以所述第二周期向所述第二设备发送链路聚合控制协议报文。Receiving, by the first device, a third instruction message sent by the second device, selecting the second cycle from the cycle set according to the third instruction message, and sending the second cycle to the second device in the second cycle The device sends Link Aggregation Control Protocol packets.
  5. 根据权利要求1至4任一项所述的方法,其特征在于,所述第一设备向第二设备发送第一指示消息之后,还包括:The method according to any one of claims 1 to 4, wherein after the first device sends the first instruction message to the second device, the method further comprises:
    所述第一设备接收所述第二设备发送的第四指示消息,根据所述第四指示消息从所述周期集合中选择所述第一周期,并以所述第一周期向所述第二设备发送链路聚合控制协议报文。Receiving, by the first device, a fourth instruction message sent by the second device, selecting the first cycle from the cycle set according to the fourth instruction message, and sending the first cycle to the second cycle in the first cycle The device sends Link Aggregation Control Protocol packets.
  6. 根据权利要求5所述的方法,其特征在于,The method according to claim 5, wherein:
    所述第一指示消息承载于第一链路聚合控制协议报文中;The first indication message is carried in a first link aggregation control protocol message;
    所述第二指示消息承载于第二链路聚合控制协议报文中;The second indication message is carried in a second link aggregation control protocol message;
    所述第三指示消息承载于第三链路聚合控制协议报文中;The third indication message is carried in a third link aggregation control protocol message;
    所述第四指示消息承载于第四链路聚合控制协议报文中。The fourth indication message is carried in a fourth link aggregation control protocol message.
  7. 根据权利要求1至6任一项所述的方法,其特征在于,所述第一设备确定所述第一设备的负载是否大于预设阈值,包括:The method according to any one of claims 1 to 6, wherein the determining, by the first device, whether a load of the first device is greater than a preset threshold comprises:
    获取所述第一设备的CPU占用率,根据所述CPU占用率确定所述第一设备的负载是否大于预设阈值。Acquiring the CPU usage of the first device, and determining whether the load of the first device is greater than a preset threshold according to the CPU usage.
  8. 一种发送链路聚合控制协议报文的方法,其特征在于,包括:A method for sending a Link Aggregation Control Protocol message includes:
    第二设备接收第一设备发送的指示消息,所述第一设备和所述第二设备为通过链路聚合连接的两台设备;Receiving, by the second device, an instruction message sent by the first device, where the first device and the second device are two devices connected through link aggregation;
    在所述指示消息为第一指示消息的情况下,所述第二设备根据所述第一指示消息,从周期集合中选择第一周期,并以所述第一周期向所述第一设备发送链路聚合控制协议报文,所述周期集合包括第一周期和第二周期,所述第一周期大于所述第二周期。When the instruction message is a first instruction message, the second device selects a first cycle from a cycle set according to the first instruction message, and sends the first cycle to the first device in the first cycle. For a link aggregation control protocol message, the period set includes a first period and a second period, and the first period is greater than the second period.
  9. 根据权利要求8所述的方法,其特征在于,所述方法还包括:The method according to claim 8, further comprising:
    在所述指示消息为第二指示消息的情况下,所述第二设备根据所述第二指示消息,从周期集合中选择所述第二周期,并以所述第二周期向所述第一设备发送链路聚合控制协议报文。When the instruction message is a second instruction message, the second device selects the second cycle from a cycle set according to the second instruction message, and sends the second cycle to the first The device sends Link Aggregation Control Protocol packets.
  10. 根据权利要求9所述的方法,其特征在于,所述从周期集合中选择所述第二周期,并以所述第二周期向所述第一设备发送链路聚合控制协议报文之后,还包括:The method according to claim 9, wherein after selecting the second period from a period set, and sending a link aggregation control protocol message to the first device in the second period, the method further comprises: include:
    所述第二设备向所述第一设备发送第三指示消息,所述第三指示消息用于指示所述第一设备从所述周期集合中选择第二周期,并以所述第二周期向所述第二设备发送链路聚合控制协议报文。Sending, by the second device, a third instruction message to the first device, where the third instruction message is used to instruct the first device to select a second cycle from the cycle set, and send the third cycle to the first device The second device sends a link aggregation control protocol message.
  11. 根据权利要求7至10任一项所述的方法,其特征在于,所述从周期集合中选择第一周期,并以所述第一周期向所述第一设备发送链路聚合控制协议报文之后,还包括:The method according to any one of claims 7 to 10, wherein the first period is selected from a period set, and a link aggregation control protocol message is sent to the first device in the first period. After that, it also includes:
    所述第二设备向所述第一设备发送第四指示消息,所述第四指示消息用于指示所述第一设备从所述周期集合中选择第一周期,并以所述第一周期向所述第二设备发送链路聚合控制协议报文。Sending, by the second device, a fourth instruction message to the first device, where the fourth instruction message is used to instruct the first device to select a first cycle from the cycle set, and send the first cycle to the first device The second device sends a link aggregation control protocol message.
  12. 根据权利要求11所述的方法,其特征在于,The method according to claim 11, wherein:
    所述第一指示消息承载于第一链路聚合控制协议报文中;The first indication message is carried in a first link aggregation control protocol message;
    所述第二指示消息承载于第二链路聚合控制协议报文中;The second indication message is carried in a second link aggregation control protocol message;
    所述第三指示消息承载于第三链路聚合控制协议报文中;The third indication message is carried in a third link aggregation control protocol message;
    所述第四指示消息承载于第四链路聚合控制协议报文中。The fourth indication message is carried in a fourth link aggregation control protocol message.
  13. 一种发送链路聚合控制协议报文的系统,其特征在于,包括:第一设备和第二设备,A system for sending a Link Aggregation Control Protocol message includes: a first device and a second device;
    所述第一设备确定所述第一设备的负载是否大于预设阈值;Determining, by the first device, whether a load of the first device is greater than a preset threshold;
    所述第一设备在负载大于所述预设阈值的情况下,向所述第二设备发送第一指示消息;Sending, by the first device, a first indication message to the second device when the load is greater than the preset threshold;
    所述第二设备接收所述第一指示消息,根据所述第一指示消息从周期集合中选择第一周期,并以所述第一周期向所述第一设备发送链路聚合控制协议报文,所述周期集合包括第一周期和第二周期,所述第一周期大于所述第二周期,所述第一设备和所述第二设备为通过链路聚合连接的两台设备。The second device receives the first instruction message, selects a first cycle from a cycle set according to the first instruction message, and sends a link aggregation control protocol message to the first device in the first cycle. The cycle set includes a first cycle and a second cycle, the first cycle is greater than the second cycle, and the first device and the second device are two devices connected through link aggregation.
  14. 根据权利要求13所述的系统,其特征在于,The system according to claim 13, wherein:
    所述第一设备在确定所述负载小于或者等于所述预设阈值的情况下,向所述第二设备发送第二指示消息;When the first device determines that the load is less than or equal to the preset threshold, sending a second instruction message to the second device;
    所述第二设备接收所述第二指示消息,根据所述第二指示消息,从周期集合中选择所述第二周期,并以所述第二周期向所述第一设备发送链路聚合控制协议报文。The second device receives the second instruction message, selects the second cycle from a set of cycles according to the second instruction message, and sends a link aggregation control to the first device in the second cycle Protocol messages.
  15. 根据权利要求14所述的系统,其特征在于,所述第一设备在确定所述负载小于或者等于所述预设阈值的情况下,向所述第二设备发送第二指示消息,包括:The system according to claim 14, wherein when the first device determines that the load is less than or equal to the preset threshold, sending a second instruction message to the second device includes:
    所述第一设备在确定所述负载小于或者等于所述预设阈值,且所述负载小于或者等于所述预设阈值的持续时长大于预设时长的情况下,所述第一设备向所述第二设备发送第二指示消息。When the first device determines that the load is less than or equal to the preset threshold, and the duration of the load is less than or equal to the preset threshold is greater than a preset duration, the first device sends the The second device sends a second indication message.
  16. 根据权利要求14所述的系统,其特征在于,所述第二设备接收所述第二指示消息,根据所述第二指示消息,从周期集合中选择所述第二周期,并以所述第二周期向所述第一设备发送链路聚合控制协议报文之后,还包括:The system according to claim 14, wherein the second device receives the second instruction message, selects the second cycle from a cycle set according to the second instruction message, and uses the first After sending a Link Aggregation Control Protocol message to the first device in two cycles, the method further includes:
    所述第二设备向所述第一设备发送第三指示消息;Sending, by the second device, a third indication message to the first device;
    所述第一设备接收所述第三指示消息,根据所述第三指示消息从所述周期集合中选择所述第二周期,并以所述第二周期向所述第二设备发送链路聚合控制协议报文。The first device receives the third instruction message, selects the second cycle from the cycle set according to the third instruction message, and sends link aggregation to the second device in the second cycle Control protocol messages.
  17. 根据权利要求13至16任一项所述的系统,其特征在于,所述第二设备接收所述第一指示消息,根据所述第一指示消息从周期集合中选择第一周期,并以所述第一周期向所述第一设备发送链路聚合控制协议报文之后,还包括:The system according to any one of claims 13 to 16, wherein the second device receives the first instruction message, selects a first cycle from a cycle set according to the first instruction message, and uses the After sending the link aggregation control protocol message to the first device in the first period, the method further includes:
    所述第二设备向所述第一设备发送第四指示消息;Sending, by the second device, a fourth indication message to the first device;
    所述第一设备接收所述第四指示消息,根据所述第四指示消息从所述周期集合中选择所述第一周期,并以所述第一周期向所述第二设备发送链路聚合控制协议报文。The first device receives the fourth instruction message, selects the first cycle from the cycle set according to the fourth instruction message, and sends link aggregation to the second device in the first cycle Control protocol messages.
  18. 根据权利要求17所述的系统,其特征在于,The system according to claim 17, wherein:
    所述第一指示消息承载于第一链路聚合控制协议报文中;The first indication message is carried in a first link aggregation control protocol message;
    所述第二指示消息承载于第二链路聚合控制协议报文中;The second indication message is carried in a second link aggregation control protocol message;
    所述第三指示消息承载于第三链路聚合控制协议报文中;The third indication message is carried in a third link aggregation control protocol message;
    所述第四指示消息承载于第四链路聚合控制协议报文中。The fourth indication message is carried in a fourth link aggregation control protocol message.
  19. 根据权利要求13至18任一项所述的方法,其特征在于,所述第一设备确定所述第一设备的负载是否大于预设阈值,包括:The method according to any one of claims 13 to 18, wherein the determining, by the first device, whether a load of the first device is greater than a preset threshold comprises:
    获取所述第一设备的CPU占用率,根据所述CPU占用率确定所述第一设备的负载是否大于预设阈值。Acquiring the CPU usage of the first device, and determining whether the load of the first device is greater than a preset threshold according to the CPU usage.
  20. 一种网络设备,其特征在在于,包括执行如权利要求1至7任一项所述的方法的单元。A network device, comprising a unit that executes the method according to any one of claims 1 to 7.
  21. 一种网络设备,其特征在在于,包括执行如权利要求8至12任一项所述的方法的单元。A network device, comprising a unit that executes the method according to any one of claims 8 to 12.
  22. 一种网络设备,其特征在于,包括处理器、收发器以及存储器,所述存储器用于存储指令,所述处理器用于执行所述指令,所述收发器用于在所述处理器的控制下与其他设备进行通信,所述处理器执行所述指令时执行如上权利要求1至7任一项所述的方法。A network device includes a processor, a transceiver, and a memory. The memory is used to store instructions, the processor is used to execute the instructions, and the transceiver is used to communicate with the processor under the control of the processor. Other devices perform communication, and when the processor executes the instructions, the method according to any one of claims 1 to 7 is performed.
  23. 一种网络设备,其特征在于,包括处理器、收发器以及存储器,所述存储器用于存储指令,所述处理器用于执行所述指令,所述收发器用于在所述处理器的控制下与其他设备进行通信,所述处理器执行所述指令时执行如上权利要求8至12任一项所述的方法。A network device includes a processor, a transceiver, and a memory. The memory is used to store instructions, the processor is used to execute the instructions, and the transceiver is used to communicate with the processor under the control of the processor. Other devices communicate, and when the processor executes the instructions, the method according to any one of claims 8 to 12 is executed.
  24. 一种计算机非瞬态存储介质,所述计算机非瞬态存储介质存储有计算机程序,其特征在于,所述计算机程序被计算设备执行时实现如权利要求1至7任一项所述方法。A computer non-transitory storage medium, wherein the computer non-transitory storage medium stores a computer program, characterized in that, when the computer program is executed by a computing device, the method according to any one of claims 1 to 7 is implemented.
  25. 一种计算机非瞬态存储介质,所述计算机非瞬态存储介质存储有计算机程序,其特征在于,所述计算机程序被计算设备执行时实现如权利要求8至12任一项所述方法。A computer non-transitory storage medium storing a computer program, wherein the computer program implements the method according to any one of claims 8 to 12 when executed by a computing device.
PCT/CN2018/104611 2018-09-07 2018-09-07 Method, system and apparatus for sending link aggregation control protocol message WO2020047842A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880097208.6A CN112655178B (en) 2018-09-07 2018-09-07 Method, system and device for sending link aggregation control protocol message
PCT/CN2018/104611 WO2020047842A1 (en) 2018-09-07 2018-09-07 Method, system and apparatus for sending link aggregation control protocol message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/104611 WO2020047842A1 (en) 2018-09-07 2018-09-07 Method, system and apparatus for sending link aggregation control protocol message

Publications (1)

Publication Number Publication Date
WO2020047842A1 true WO2020047842A1 (en) 2020-03-12

Family

ID=69721536

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/104611 WO2020047842A1 (en) 2018-09-07 2018-09-07 Method, system and apparatus for sending link aggregation control protocol message

Country Status (2)

Country Link
CN (1) CN112655178B (en)
WO (1) WO2020047842A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102882805A (en) * 2012-09-24 2013-01-16 华为技术有限公司 Method and device for preventing link aggregation group from state transition
CN106330586A (en) * 2015-06-29 2017-01-11 中兴通讯股份有限公司 Method and device for improving service detection reliability in switch network link
CN107204888A (en) * 2016-03-16 2017-09-26 华为技术有限公司 A kind of method, device and the communication equipment of switching overtime time

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9374298B2 (en) * 2012-05-08 2016-06-21 Cisco Technology, Inc. Grace state and pacing in link aggregation
US9325622B2 (en) * 2013-12-03 2016-04-26 International Business Machines Corporation Autonomic traffic load balancing in link aggregation groups

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102882805A (en) * 2012-09-24 2013-01-16 华为技术有限公司 Method and device for preventing link aggregation group from state transition
CN106330586A (en) * 2015-06-29 2017-01-11 中兴通讯股份有限公司 Method and device for improving service detection reliability in switch network link
CN107204888A (en) * 2016-03-16 2017-09-26 华为技术有限公司 A kind of method, device and the communication equipment of switching overtime time

Also Published As

Publication number Publication date
CN112655178A (en) 2021-04-13
CN112655178B (en) 2023-03-03

Similar Documents

Publication Publication Date Title
CN101640644B (en) Method and equipment for flow equilibrium based on flexible link group
US11190451B2 (en) Packet transmission method and network device
WO2018082382A1 (en) Method for processing message in hybrid access network, and network device
US10484289B2 (en) Adjusting connection validating control signals in response to changes in network traffic
US10797986B2 (en) Link discovery method and apparatus
CN107196820B (en) Switch performance test method, device and system
WO2021232568A1 (en) Method, terminal and system for transceiving data over wireless local area network, and network access device
CN112511456B (en) Flow control method, apparatus, device, storage medium, and computer program product
WO2018028715A1 (en) Wireless communication system quality of service management method and system
CN107547430B (en) Message sending method and device
WO2015070383A1 (en) Link aggregation method, apparatus, and system
CN113411263B (en) Data transmission method, device, equipment and storage medium
WO2022042600A1 (en) Communication method, apparatus and system
WO2017041577A1 (en) Method and device for managing link aggregation member port packet loss
CN112822102A (en) Link switching method, device, equipment, system and storage medium
CN113055935A (en) Congestion control method, equipment and system
US20240089213A1 (en) Pfc storm detection and processing method
WO2020047842A1 (en) Method, system and apparatus for sending link aggregation control protocol message
CN109347734B (en) Message sending method, device, network equipment and computer readable medium
CN113765703B (en) Data transmission switching control method and system of intelligent gateway
US11765076B2 (en) Distributed spanning tree protocol
CN111526042B (en) Port aggregation method, system and storage medium based on rate
EP2953299A1 (en) Protection switching method, system and node
CN113794634B (en) Load sharing method and equipment
WO2022126411A1 (en) Network congestion management method and related apparatus

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

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

Country of ref document: EP

Kind code of ref document: A1