WO2016177190A1 - Method and device for auto-negotiating lacp reference system and reference port - Google Patents

Method and device for auto-negotiating lacp reference system and reference port Download PDF

Info

Publication number
WO2016177190A1
WO2016177190A1 PCT/CN2016/077579 CN2016077579W WO2016177190A1 WO 2016177190 A1 WO2016177190 A1 WO 2016177190A1 CN 2016077579 W CN2016077579 W CN 2016077579W WO 2016177190 A1 WO2016177190 A1 WO 2016177190A1
Authority
WO
WIPO (PCT)
Prior art keywords
port
board
resource usage
status
belongs
Prior art date
Application number
PCT/CN2016/077579
Other languages
French (fr)
Chinese (zh)
Inventor
郭宇
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016177190A1 publication Critical patent/WO2016177190A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/245Link aggregation, e.g. trunking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks

Definitions

  • the present invention relates to the field of link aggregation technologies, and in particular, to a method and an apparatus for a self-negotiating LACP protocol (Link Aggregation Control Protocol) reference system and a reference port.
  • LACP protocol Link Aggregation Control Protocol
  • LA Link Aggregation
  • the LACP protocol defined by the IEEE 802.3ad standard, is a standard Layer 2 protocol for dynamically forming link aggregation groups between devices.
  • the basic principle of LACP is to dynamically detect the status and information of the peer port through the periodic exchange of packets between the two device ports, and determine whether the port joins or leaves a LAG (Link Aggregation Group).
  • LAG Link Aggregation Group
  • the possible states of the port are selected, standby, and unselected.
  • the member port in the selected state is the port that can finally carry the service (the port that actually delivers the hardware).
  • the port in the standby state is the port that meets the aggregation condition but cannot be aggregated due to the maximum number of aggregated ports.
  • the ports in the unselected state are those that are not at all. A port that satisfies the aggregation condition (such as link down).
  • the LACP protocol exchanges information with the peer through the LACPDU (Link Aggregation Control Protocol Data Unit) message.
  • the format of the LACPDU packet is shown in Figure 2.
  • System priority The LACP protocol needs to distinguish the system priorities of the devices at both ends.
  • the device with the highest priority serves as the reference system, and the other device selects the selected active port according to the reference system configuration, as shown in Figure 3.
  • the MAC address Media Access Control address of the devices at both ends is compared (only 802.3 MAC is supported). The smaller the value, the higher the priority.
  • Port priority It is used to define the priority of the port selected as the reference port. Other ports need to be the same as the reference port's KEY value to become the selected active port to participate in data forwarding. Otherwise, it is an unselected port and cannot forward data. As shown in Figure 4, if the LACP priorities of the ports are the same, the port numbers of the two ports are compared. The smaller the value, the higher the priority.
  • the KEY value of the port is obtained by combining the aggregation group number, the port rate, and the duplex mode.
  • the LACP protocol determines whether the port is consistent by comparing the KEY values of the port and the reference port. Can become a selected active port;
  • the workflow of the LACP protocol is as follows:
  • the device at both ends completes the negotiation and configuration of the link aggregation group by sending LACP packets.
  • the working process is as follows:
  • the reference system After being used as a reference system, the selected active port selected by it becomes the reference standard, and the peer device takes it as the standard.
  • the reference port is selected as the selected active port, and the other ports require the same KEY value as the reference port to become the selected active port.
  • the KEY value of the port should be the same as the reference port.
  • the LACP protocol can be divided into two modes: load balancing mode and protection mode. In load balancing mode, all selected active ports will carry service flows. In protected mode, The port is responsible for carrying all the traffic, and the other selected ports are negative for the link-level protection of n:1, so the selection of the reference port is significant.
  • the LACP protocol is widely used in the industry, but there are several shortcomings in the application of the standard protocol directly: 1.
  • the selection of a device with high system priority (reference system) is crucial because its configuration directly determines which selected activities are adopted by the peer device.
  • the port (the selected active port of the peer is the direct port of the port configured corresponding to the reference system), and once the system priority is set, the stable operation of LACP will rely more on the device with higher priority.
  • the MC-LAG Multi-Chassis Link Aggregation Group
  • the user prefers to determine the reference system based on the real-time resource status of the system in real time. 2.
  • the current priority value of each port is also If the local port is a member of a different board, the local LACPDUs are not related to the real-time resource information of the board. It is not limited to cpu utilization and memory usage. The ability of different boards to process LACPDU packets is different, but once the reference port is selected. The board is faulty on the board where the peer port is directly connected (for example, the CPU usage is high, or there is a memory leak, etc.). Especially in the protection mode, the LACP protocol may be reported only after the resources are really exhausted. If the negotiation fails, the switch can perform the switchover of the reference port. The switchover cannot be performed in a timely manner. If the protocol packet negotiation fails, the service flow may have been lost.
  • each port does not participate in the decision of the port priority (the setting of the port priority does not consider this factor), assuming that a port has a short-term probability Link down, but because its (or its peer port) meets the reference port condition, each port is selected as the reference port by default after the port is normal. This choice will affect the stability of the system link bearer service flow.
  • the purpose of the embodiments of the present invention is to provide a method and a device for auto-negoing the LACP protocol reference system and the reference port, which solves the problem that the stability of the reference link cannot be timely switched to affect the stability of the system link bearer service flow in the prior art.
  • a method for auto-negotiating a LACP protocol reference system and a reference port including the following steps:
  • the first system and the second system of the LACP protocol link aggregation group determine the stability of the respective systems by performing real-time detection on the real-time resource usage status of the respective systems;
  • the first system and the second system select, by negotiation, a system with the best stability in the first system and the second system as a reference system;
  • the reference system selects a port from the reference port of the reference system as a reference according to the state history information of each port pair formed by each port and the corresponding peer system direct port and the resource usage status of the board. port;
  • the LACP protocol refers to a link aggregation control protocol.
  • the status history information of each port pair and the resource usage status of the associated board include:
  • Port state history information of each port and the resource usage status of the card to which the port belongs are stored.
  • the resource usage status includes a board CPU utilization rate and a board memory usage rate; and the port status history information includes the number of times the port link is disconnected in the current time period.
  • the first system constructs a resource usage metric value of each board of the first system according to a resource usage status of a card to which the port of each port of the system belongs;
  • the resource usage status of each board of the second system is constructed, and the resource usage metric of each board in the second system is constructed.
  • the resource usage metric of each board in the first system includes: a board CPU utilization rate and a board memory usage rate of the board to which the port of each port of the first system belongs; the second system
  • the resource usage metrics of the boards include: the CPU usage of the board and the memory usage of the board of the board to which the port of each port of the second system belongs.
  • the determining respective system stability includes:
  • the reference system is based on the state history information of each port pair formed by each port and the corresponding peer system direct port, and the resource usage status of the card to which the card belongs, from the port to which the reference system belongs. Selecting a port as a reference port includes:
  • the port to be referenced is used as a reference port in the reference system.
  • an apparatus for auto-negotiating a LACP protocol reference system and a reference port including:
  • Determining the stability module, the first system and the second system set to the LACP protocol link aggregation group determine the stability of the respective systems by performing real-time detection on the real-time resource usage status of the respective systems;
  • Selecting a reference system module configured to select, by the first system and the second system, a system with the best stability in the first system and the second system as a reference system;
  • the LACP protocol refers to a link aggregation control protocol.
  • the status history information of each port pair and the resource usage status of the associated board include:
  • Port state history information of each port and the resource usage status of the card to which the port belongs are stored.
  • the resource usage status includes a board CPU utilization rate and a board memory usage rate; and the port status history information includes the number of times the port link is disconnected in the current time period.
  • the embodiment of the present invention introduces the recording of the resource and the port state history information of the system board, and combines the transmission of the LACPDUs between the two systems, and automatically adjusts the system priority and the port priority to help improve the bearer service flow chain. Road stability.
  • FIG. 1 is a schematic diagram of a network running the LACP protocol provided by the prior art
  • FIG. 2 is a schematic diagram of a packet format of an LACP protocol provided by the prior art
  • FIG. 3 is a schematic diagram of system priority of an LACP protocol provided by the prior art
  • FIG. 5 is a flowchart of a method for a self-negotiating LACP protocol reference system and a reference port according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram of an apparatus for a self-negotiating LACP protocol reference system and a reference port according to an embodiment of the present invention
  • FIG. 7 is a schematic diagram of an LACP protocol single device environment according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a multi-device environment of an LACP protocol according to an embodiment of the present invention.
  • FIG. 9 is a flowchart of a method for calculating a reference port of an LACP protocol according to an embodiment of the present invention.
  • FIG. 10 is a flowchart of a method for obtaining a reference port during operation of an LACP protocol according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of a method for a self-negotiating LACP protocol reference system and a reference port according to an embodiment of the present invention. As shown in FIG. 5, the method includes the following steps:
  • Step S501 The first system and the second system of the link aggregation group of the LACP protocol perform real-time detection on the real-time resource usage status of the respective systems to determine the stability of the respective systems;
  • Step S502 The first system and the second system select, by negotiation, a system with the best stability in the first system and the second system as a reference system;
  • Step S503 The reference system selects one of the ports of the reference system according to the state history information of each port pair formed by each port and the corresponding peer system direct port and the resource usage status of the board.
  • the port acts as a reference port.
  • the status history information of each port pair and the resource usage status of the port are as follows: the port state history information of each port and the resource usage status of the board to which the port belongs; the peer directly connected to each port System port port Status history information and resource usage status of the board to which the port belongs.
  • the resource usage status includes a board CPU utilization and a board memory usage rate; and the port status history information includes the number of times the port link is disconnected in the current time period.
  • the first system is configured to use a resource usage metric of each board of the first system according to a resource usage status of a card to which the port of each port of the system belongs; the second system is configured according to each port of the system.
  • the resource usage metric of each board of the second system is configured, and the resource usage metric of each board of the first system includes: the first system The CPU usage of the board to which the port of the port belongs and the memory usage of the board.
  • the resource usage metric of each board in the second system includes: the board of the port to which the port of the second system belongs. Board CPU utilization and board memory usage.
  • Determining the stability of the respective systems includes: selecting a maximum resource usage metric value as the stability of the first system among the resource usage metric values of each board of the first system; The resource usage metric of each board selects the largest resource usage metric as the stability of the second system; wherein the greater the resource usage metric, the worse the stability.
  • the port of each reference port of the reference system is constructed according to the resource usage status of the board to which the port of each port belongs and the resource usage status of the board to which the port of the peer system port directly connected to each port belongs.
  • the metric of the resource usage of the board including the CPU usage of the board to which the port of each port belongs and the memory usage of the board.
  • the port of the peer system port directly connected to each port belongs to the board. Board CPU utilization and board memory usage.
  • the reference system selects the state history information of each port pair formed by each port of the port and the corresponding peer system directly connected port, and the resource usage status of the board to which the board belongs.
  • a port as a reference port includes: sorting the resource usage metrics of the card to be used in a descending order, and sequentially using the port of the card as the port to be referenced; The number of times the port link is disconnected is detected. When the number of times the port link is disconnected in the current time period of the port to be referenced is 0, the port to be referenced is used as a reference port in the reference system.
  • FIG. 6 is a schematic diagram of a device for a self-negotiating LACP protocol reference system and a reference port according to an embodiment of the present invention. As shown in FIG. 6, the method includes: determining a stability module 601, selecting a reference system module 602, and selecting a reference port module 603. .
  • the determining stability module 601 determines the stability of the respective systems by performing real-time detection on the real-time resource usage status of the respective systems;
  • the reference system module 602 is configured to select, by the first system and the second system, a system with the best stability in the first system and the second system as a reference system;
  • the selection reference port module 603 And the reference system is configured to select one of the ports of the reference system according to the state history information of each port pair formed by each port and the corresponding peer system direct port and the resource usage state of the board to which the reference system belongs.
  • the port acts as a reference port.
  • the state history information of each port pair and the resource usage status of the card to be used in the present invention include: the port state history information of each port and the resource usage status of the board to which the port belongs; the peer directly connected to each port Port state history information of the system port and the resource usage status of the card to which the port belongs.
  • the resource usage status includes a board CPU utilization rate and a board memory usage rate; the port status history information includes the number of times the port link is disconnected in the current time period.
  • the innovations of the present invention are mainly as follows: 1.
  • the system priority is self-coordinated according to the real-time resource usage of the local and the peer system.
  • the port priority is adjusted according to the real-time resource usage and port state history information of the board where the local end and the peer port reside.
  • the main functions of these two innovations are: the introduction of the system, the resources of the board, and the record of the port state history information, combined with the transmission of LACPDU packets between the two systems, and the auto-negotiation to adjust the system priority and port priority.
  • the present invention also considers how the device of the present invention supports the peer device in the case where the device using the solution of the present invention is connected with the device not using the LACP protocol.
  • Step 1 The LACP protocol is run between system A and system B. The two ends are classified by ports, and the system resource status table and port abnormal status record table are established. The system priority and port priority are calculated according to the contents of the table. Level, and notify the peer through the LACPDU message;
  • Step 2 A and B decide which of the two is the reference system, and which port is used as the reference port;
  • Step 3 During the whole process of starting and running the LACP protocol between A and B, the above steps are performed periodically.
  • the current system A and system B run the LACP protocol.
  • a and B can be a single device (as shown in Figure 7) or a multi-device aggregation group (Figure 8).
  • the ports of the protocol can be on different boards (such as port 3 and port 4 in Figure 8) or on the same board (such as port 1 and port 2 in Figure 8).
  • the process is as follows: Take system A in Figure 8 as an example. Each board in system A obtains real-time resource information of the board (including but not limited to cpu utilization and memory usage), and establishes port-based system resources.
  • the status table is shown in Table 1 below.
  • Table 1 Port-based system resource status table
  • P(B) calculated on System B is greater than P(A)
  • the LACPDU packet is between A and B.
  • Transfer fill in the Actor_System_Priority field according to the system priority and forward it, as shown in Figure 2).
  • Each port in system A periodically collects port status exception information, and establishes an abnormal status record table for the port and the directly connected peer port, as shown in Table 2 below.
  • Table 2 Port and direct peer port abnormal status record table
  • the number of link down times of each port in the near ⁇ T time period (which can be set by the user) is set, and the value is sent to the system B through the first Reserved field of the LACPDU packet (see Table 3 for field definition).
  • System B will also send its associated value to System A. In this way, even if any device restarts reset, the peer device has a link down count record of its near ⁇ T period.
  • the number of link downs at both ends should be the same. The reason for this design is that the status of the ports on both ends is not synchronized.
  • 0-3 bytes in the table are the device identification bits of the company, 4-7 bytes are cpu utilization, 8-11 bytes are memory usage, and 20-23 bytes are ports near ⁇ T time period. 12-19 bytes are other reserved fields, mainly for other bit resource information.
  • A establishes the system resource status table of each selected port and directly connected peer port, as shown in Table 4 below.
  • the weighted sum of M(n), C'(n) and M'(n) (the weighting parameters are set by the user), where C'(n) and M'(n) represent the direct connection of the peer port Board CPU utilization and memory usage.
  • System B passes the Reserved field of the LACPDU packet. The location of the packet in the Reserved field is shown in Figure 2. The first Reserved field is reserved for the packet sending device. System B can fill in its own timing query here.
  • the resource information, the value of the second Reserved field is filled with the first Reserved field information of the message sent by A to B, and the reserved 3-byte field information definition is as shown in FIG. 10, wherein the first 4 bytes define the present
  • the unique byte information of the invented device is used to distinguish whether the peer device is a device adopting the solution of the present invention) to transmit real-time resource usage information to A.
  • the r(n) value reflects the potential risk of the port processing traffic flow. The larger the r(n) value, the higher the potential risk.
  • Table 4 The system resource status table of the port and the directly connected peer port
  • the first 4 bytes of the first Reserved field of the LACPDU message sent by the A in the present invention are not the unique byte information defined by the method of the present invention, which means that the system B enables the standard LACP protocol or at least the system. If the A does not belong to the same manufacturer, the priority of the reference system and the reference port of the system A will not be dynamically adjusted, and will only be consistent with the initial value. This ensures that the system of the present invention is successfully connected to the LACP protocol of other vendors.
  • FIG. 9 is a flowchart of a method for calculating a reference port by using the LACP protocol according to an embodiment of the present invention.
  • the system periodically detects and records r(1), r(2), ..., r(n) is sorted from small to large, the port corresponding to the smallest value is used as the first candidate for the reference port, the port corresponding to the second smallest value is used as the second candidate for the reference port, and so on, and according to the port and
  • the final ⁇ T time period of the direct connection peer port abnormal state record table is determined by the total number of link down times: 1.
  • r(n) is the first candidate of the reference port, and the number of link down times is N (N>0), then The first candidate is culled, the second candidate is selected, and the number of link down times N is determined. If N is equal to 0, it is used as a reference port. If N is greater than 0, the reference port third candidate is selected by analogy.
  • FIG. 10 is a flowchart of a method for obtaining a reference port during operation of an LACP protocol according to an embodiment of the present invention, as shown in FIG. 10, during the operation of the LACP protocol, considering that the selected reference port is close to the values of other selected ports, for example, port 1 is the reference port, but r(1) and r(2) are similar, and they are The number of link down times of the port is 0, which is easy for the two to take the reference port in turn, which is unfavorable for maintaining the stability of the traffic flow.
  • the resource usage metric threshold Q of the port and the directly connected peer port of the present invention is introduced.
  • the upper limit of the sum of the CPU usage and the memory usage of the local end and the peer end is 4, and the value of Q ranges from 0 to 4. If the port 1 is used as the reference port, it is judged whether r(1) is greater than Q in the next timing detection. If yes, step 4 is started to recalculate the reference port; if not, port 1 is still used as the reference port.
  • the present invention has the following technical effects:
  • the present invention automatically adjusts the port priority according to the real-time resource usage of the local and the peer system, and adjusts the system priority according to the real-time resource usage and port state history information of the board where the local end and the peer port are located. Improve the stability of the bearer service flow link.
  • the technical solution of the embodiment of the present invention can be applied to the process of the self-negotiating LACP reference system and the reference port, and the recording of the resource and the port state history information of the system board is combined with the LACPDU packet between the two systems.
  • Transmission, auto-negotiation adjusts system priority and port priority to help improve the stability of bearer service flow links.

Abstract

The present invention relates to the technical field of link aggregations. Disclosed are a method and device for auto-negotiating a link aggregation control protocol (LACP) reference system and a reference port. The method comprises the following steps: determining, by a first system and a second system of an LACP link aggregation group (LAG), a system stability thereof respectively via a real-time detection on a real-time resource usage condition of the respective system; selecting, by the first system and the second system via a negotiation, a system having the best stability therebetween as a reference system; selecting, by the reference system, a port from ports of the reference system as a reference port, according to condition history information of each of port pairs constituted by each of the ports and a corresponding directly-connected port of an opposite system and a resource usage condition of a single board to which the port belongs. The present invention introduces records of the system, the resource of the single board, and the port condition history information to auto-negotiate and adjust the reference system and reference port, thus improving the stability of a link bearing service flows.

Description

自协商LACP协议参考系统和参考端口的方法及装置Method and device for self-negotiating LACP protocol reference system and reference port 技术领域Technical field
本发明涉及链路聚合技术领域,特别涉及一种自协商LACP协议(Link Aggregation Control Protocol,链路聚合控制协议)参考系统和参考端口的方法及装置。The present invention relates to the field of link aggregation technologies, and in particular, to a method and an apparatus for a self-negotiating LACP protocol (Link Aggregation Control Protocol) reference system and a reference port.
背景技术Background technique
LA(Link Aggregation,链路聚合)技术的特点是将多条物理链路聚合成一条带宽更高的逻辑链路,该逻辑链路的带宽等于被聚合在一起的多条物理链路的带宽之和。LACP协议,由IEEE 802.3ad标准定义,是一个标准的二层协议,用于动态形成设备之间的链路聚合组。LACP的基本原理就是通过两端设备端口之间周期性的交互报文,动态探测对端端口的状态和信息,并据此确定端口加入或离开一个LAG(Link Aggregation Group,聚合组)。为了描述方便,在LACP中,对于聚合链路两端的设备,每个设备端口称呼自己为Actor,对端设备端口为Partner,如图1所示。在聚合组中,端口可能的状态有selected、standby及unselected三种。selected状态的成员端口是最终可承载业务的端口(真正下发硬件的端口),standby状态的端口是满足聚合条件但受最大聚合端口数目限制而无法聚合的端口,unselected状态的端口是那些根本不满足聚合条件的端口(如link down)。LA (Link Aggregation) technology is characterized in that multiple physical links are aggregated into a higher-traffic logical link whose bandwidth is equal to the bandwidth of multiple physical links that are aggregated together. with. The LACP protocol, defined by the IEEE 802.3ad standard, is a standard Layer 2 protocol for dynamically forming link aggregation groups between devices. The basic principle of LACP is to dynamically detect the status and information of the peer port through the periodic exchange of packets between the two device ports, and determine whether the port joins or leaves a LAG (Link Aggregation Group). For the convenience of description, in LACP, for the devices at both ends of the aggregation link, each device port is called an Actor, and the peer device port is a Partner, as shown in Figure 1. In an aggregation group, the possible states of the port are selected, standby, and unselected. The member port in the selected state is the port that can finally carry the service (the port that actually delivers the hardware). The port in the standby state is the port that meets the aggregation condition but cannot be aggregated due to the maximum number of aggregated ports. The ports in the unselected state are those that are not at all. A port that satisfies the aggregation condition (such as link down).
LACP协议通过LACPDU(Link Aggregation Control Protocol Data Unit,链路汇聚控制协议数据单元)报文与对端交互信息。LACPDU的报文格式如图2所示,其中主要包含本端和对端系统优先级、本端和对端的端口优先级、本端和对端的端口Key值等。聚合的双方就根据这些信息,按照一定的选择算法选择合适的链路,控制聚合的状态。The LACP protocol exchanges information with the peer through the LACPDU (Link Aggregation Control Protocol Data Unit) message. The format of the LACPDU packet is shown in Figure 2. The priority of the local and remote systems, the priority of the local and remote ports, and the key value of the local and remote ports. Based on this information, both parties of the aggregation select the appropriate link according to a certain selection algorithm to control the state of the aggregation.
下面按照重要性顺序,讲解一下LACPDU主要信息的含义:The following explains the meaning of the main information of the LACPDU according to the order of importance:
1、系统优先级:LACP协议需要区分两端设备的系统优先级,优先级高的设备(系统)作为参考系统,另一端设备根据参考系统配置来选择自身selected活动端口,如图3所示,另外,如果两端系统LACP优先级一致,则比较两端设备的MAC(Media Access Control,媒体访问控制)地址(只支持802.3MAC),该值越小,优先级越高;1. System priority: The LACP protocol needs to distinguish the system priorities of the devices at both ends. The device with the highest priority (system) serves as the reference system, and the other device selects the selected active port according to the reference system configuration, as shown in Figure 3. In addition, if the LACP priorities of the two systems are the same, the MAC address (Media Access Control) address of the devices at both ends is compared (only 802.3 MAC is supported). The smaller the value, the higher the priority.
2、端口优先级:用于定义端口被选为参考端口的优先程度,其他端口需要和参考端口的KEY值相同才能成为selected活动端口,才能参与数据的转发,否则为unselected端口,不能转发数据,如图4所示,另外,如果各端口LACP优先级一致,则比较两个端口的端口号,该值越小,其优先级越高;2. Port priority: It is used to define the priority of the port selected as the reference port. Other ports need to be the same as the reference port's KEY value to become the selected active port to participate in data forwarding. Otherwise, it is an unselected port and cannot forward data. As shown in Figure 4, if the LACP priorities of the ports are the same, the port numbers of the two ports are compared. The smaller the value, the higher the priority.
3、端口的KEY值:是由聚合组号、端口速率、双工模式等几个要素进行组合计算而得来的,LACP协议通过比较本端口和参考端口的KEY值是否一致,决定本端口是否可以成为selected活动端口; 3. The KEY value of the port is obtained by combining the aggregation group number, the port rate, and the duplex mode. The LACP protocol determines whether the port is consistent by comparing the KEY values of the port and the reference port. Can become a selected active port;
LACP协议工作流程如下:The workflow of the LACP protocol is as follows:
两端设备通过互发LACP协议报文完成链路聚合组的协商配置操作,其工作流程如下:The device at both ends completes the negotiation and configuration of the link aggregation group by sending LACP packets. The working process is as follows:
1、确定参考系统1, determine the reference system
两端设备之中,谁的系统优先级越高,则谁将成为参考系统。作为参考系统之后,它所选择的selected活动端口就成为参考标准,对端设备以它为准。Among the two devices, whoever has higher system priority will become the reference system. After being used as a reference system, the selected active port selected by it becomes the reference standard, and the peer device takes it as the standard.
2、确定参考端口2, determine the reference port
参考设备的端口之中,谁的端口优先级越高,且当前端口与对端端口状态均正常情况下,则谁将成为参考端口。参考端口被选作为selected活动端口,其它的端口需要KEY值和参考端口相同,才能成为selected活动端口。Among the ports of the reference device, whoever has the higher port priority and the current port and peer port status are normal, who will become the reference port. The reference port is selected as the selected active port, and the other ports require the same KEY value as the reference port to become the selected active port.
3、确定其他selected活动端口3. Identify other selected active ports
其余的非参考端口,如果也要成为selected活动端口,那么端口的KEY值要和参考端口相同。The remaining non-reference ports, if they also become selected active ports, the KEY value of the port should be the same as the reference port.
以上就是LACP协议大致的工作流程,最终协议将完成聚合端口的动态形成,之后就可以直接在聚合端口上发送数据了。而从如何分配数据流角度,LACP协议可分为两种工作模式,分别为负载分担模式和保护模式,负载分担模式下,所有selected活动端口都将承载业务流;而在保护模式下,由于参考端口负责承载所有的业务流,其他selected端口负n:1的链路级保护工作,所以参考端口的选择意义重大。The above is the approximate workflow of the LACP protocol. The final protocol will complete the dynamic formation of the aggregation port, and then the data can be sent directly on the aggregation port. From the perspective of how to distribute data flows, the LACP protocol can be divided into two modes: load balancing mode and protection mode. In load balancing mode, all selected active ports will carry service flows. In protected mode, The port is responsible for carrying all the traffic, and the other selected ports are negative for the link-level protection of n:1, so the selection of the reference port is significant.
LACP协议在业界应用广泛,但直接按照标准协议应用存在以下几点不足:1.系统优先级高的设备(参考系统)选取至关重要,因为其配置直接决定了对端设备的采用哪些selected活动端口(对端的selected活动端口均是与参考系统相应配置的端口的直连端口),而一旦系统优先级设定好后,LACP稳定运行将会更多地仰赖预先设定系统优先级高的设备,比如目前应用较多的MC-LAG(Multi-Chassis Link Aggregation Group,多设备聚合组)场景,用户更希望能实时根据系统实时资源情况来决定参考系统;2.目前各端口的优先级值也需人工事先设定,若本端各端口隶属于不同单板(一般地,对端各端口也隶属于不同单板),则由于目前的LACPDU分配的字段没有涉及单板实时资源信息(包含但并不限于cpu利用率,内存使用率),不同单板处理LACPDU报文能力都有所不同,而一旦选择的参考端口所在单板或直连对端端口所在单板存在资源隐患(比如cpu利用率较高,或存在内存泄漏等),尤其在保护模式下,则只有等到资源真正枯竭后,LACP协议才可能因为协议报文连续多次协商不通而产生切换参考端口动作,而不能做到及时切换(协议报文协商不通的情况下,业务流可能已经丢包,直到连续多次协商不通才做出参考端口切换动作,对业务流影响很大);3.在LACP标准协议中,各端口历史异常状态信息没有参与端口优先级的决策(端口优先级的设定不考虑该因素),假设某端口有短时小概率link down,但由于其(或其对端端口)符合参考端口条件所以每次端口正常后均被协议选为参考端口,这种选择会影响系统链路承载业务流的稳定性。 The LACP protocol is widely used in the industry, but there are several shortcomings in the application of the standard protocol directly: 1. The selection of a device with high system priority (reference system) is crucial because its configuration directly determines which selected activities are adopted by the peer device. The port (the selected active port of the peer is the direct port of the port configured corresponding to the reference system), and once the system priority is set, the stable operation of LACP will rely more on the device with higher priority. For example, in the MC-LAG (Multi-Chassis Link Aggregation Group) scenario, the user prefers to determine the reference system based on the real-time resource status of the system in real time. 2. The current priority value of each port is also If the local port is a member of a different board, the local LACPDUs are not related to the real-time resource information of the board. It is not limited to cpu utilization and memory usage. The ability of different boards to process LACPDU packets is different, but once the reference port is selected. The board is faulty on the board where the peer port is directly connected (for example, the CPU usage is high, or there is a memory leak, etc.). Especially in the protection mode, the LACP protocol may be reported only after the resources are really exhausted. If the negotiation fails, the switch can perform the switchover of the reference port. The switchover cannot be performed in a timely manner. If the protocol packet negotiation fails, the service flow may have been lost. In the LACP standard protocol, the historical abnormal state information of each port does not participate in the decision of the port priority (the setting of the port priority does not consider this factor), assuming that a port has a short-term probability Link down, but because its (or its peer port) meets the reference port condition, each port is selected as the reference port by default after the port is normal. This choice will affect the stability of the system link bearer service flow.
发明内容Summary of the invention
本发明实施例的目的在于提供一种自协商LACP协议参考系统和参考端口的方法及装置,解决了现有技术中因参考端口不能及时切换影响系统链路承载业务流的稳定性问题。The purpose of the embodiments of the present invention is to provide a method and a device for auto-negoing the LACP protocol reference system and the reference port, which solves the problem that the stability of the reference link cannot be timely switched to affect the stability of the system link bearer service flow in the prior art.
根据本发明的一个实施例,提供了一种自协商LACP协议参考系统和参考端口的方法,包括以下步骤:According to an embodiment of the present invention, a method for auto-negotiating a LACP protocol reference system and a reference port is provided, including the following steps:
LACP协议链路聚合组的第一系统和第二系统通过对各自系统的实时资源使用状态进行实时检测,确定各自系统稳定性;The first system and the second system of the LACP protocol link aggregation group determine the stability of the respective systems by performing real-time detection on the real-time resource usage status of the respective systems;
所述第一系统和第二系统通过协商,将所述第一系统和所述第二系统中稳定性最好一个系统选作参考系统;The first system and the second system select, by negotiation, a system with the best stability in the first system and the second system as a reference system;
所述参考系统根据其每个端口与对应的对端系统直连端口构成的每个端口对的状态历史信息和所属单板的资源使用状态,从参考系统的所属端口中选出一个端口作为参考端口;The reference system selects a port from the reference port of the reference system as a reference according to the state history information of each port pair formed by each port and the corresponding peer system direct port and the resource usage status of the board. port;
其中,所述LACP协议是指链路聚合控制协议。The LACP protocol refers to a link aggregation control protocol.
在本发明实施例中,所述的每个端口对的状态历史信息和所属单板的资源使用状态包括:In the embodiment of the present invention, the status history information of each port pair and the resource usage status of the associated board include:
每个端口的端口状态历史信息和端口所属单板的资源使用状态;Port state history information of each port and the resource usage status of the card to which the port belongs.
与每个端口直连的对端系统端口的端口状态历史信息和端口所属单板的资源使用状态。Port state history information of the peer system port directly connected to each port and the resource usage status of the board to which the port belongs.
在本发明实施例中,所述资源使用状态包括单板CPU利用率和单板内存使用率;所述端口状态历史信息包括当前时间段内端口链路断开的次数。In the embodiment of the present invention, the resource usage status includes a board CPU utilization rate and a board memory usage rate; and the port status history information includes the number of times the port link is disconnected in the current time period.
在本发明实施例中,所述第一系统根据系统的每个端口的端口所属单板的资源使用状态,构建所述第一系统每个单板的资源使用度量值;所述第二系统根据系统的每个端口的端口所属单板的资源使用状态,构建所述第二系统每个单板的资源使用度量值;In the embodiment of the present invention, the first system constructs a resource usage metric value of each board of the first system according to a resource usage status of a card to which the port of each port of the system belongs; The resource usage status of each board of the second system is constructed, and the resource usage metric of each board in the second system is constructed.
其中,所述第一系统每个单板的资源使用度量值包括:所述第一系统每个端口的端口所属单板的单板CPU利用率和单板内存使用率;所述第二系统每个单板的资源使用度量值包括:所述第二系统每个端口的端口所属单板的单板CPU利用率和单板内存使用率。The resource usage metric of each board in the first system includes: a board CPU utilization rate and a board memory usage rate of the board to which the port of each port of the first system belongs; the second system The resource usage metrics of the boards include: the CPU usage of the board and the memory usage of the board of the board to which the port of each port of the second system belongs.
在本发明实施例中,所述确定各自系统稳定性包括:In the embodiment of the present invention, the determining respective system stability includes:
在所述第一系统每个单板的资源使用度量值中选取最大的资源使用度量值作为所述第一系统的稳定性;Selecting a maximum resource usage metric value as the stability of the first system in a resource usage metric value of each board of the first system;
在所述第二系统每个单板的资源使用度量值中选取最大的资源使用度量值作为所述第二系统的稳定性;Selecting a maximum resource usage metric value as the stability of the second system in a resource usage metric value of each board of the second system;
其中,所述资源使用度量值越大,稳定性越差。The greater the resource usage metric, the worse the stability.
在本发明实施例中,根据所述每个端口的端口所属单板的资源使用状态以及与每个端口 直连的对端系统端口的端口所属单板的资源使用状态,构建所述参考系统每个端口对所属单板的资源使用度量值,包括:In the embodiment of the present invention, according to the resource usage status of the board to which the port of each port belongs, and each port The resource usage status of the board to which the port of the peer system port is directly connected, and the resource usage metric of each board in the reference system.
所述每个端口的端口所属单板的单板CPU利用率和单板内存使用率;The CPU usage and board memory usage of the board of the card to which the port of each port belongs.
所述每个端口直连的对端系统端口的端口所属单板的单板CPU利用率和单板内存使用率。The CPU usage and board memory usage of the board of the board to which the port of the peer system port is directly connected to each port.
在本发明实施例中,所述参考系统根据其每个端口与对应的对端系统直连端口构成的每个端口对的状态历史信息和所属单板的资源使用状态,从参考系统的所属端口中选出一个端口作为参考端口包括:In the embodiment of the present invention, the reference system is based on the state history information of each port pair formed by each port and the corresponding peer system direct port, and the resource usage status of the card to which the card belongs, from the port to which the reference system belongs. Selecting a port as a reference port includes:
通过对所属单板的资源使用度量值按照从小到大的顺序进行排序,并依次将所属单板的端口作为待参考端口;You can sort the resource usage metrics of the card to the port to be referenced.
对所述待参考端口的当前时间段内端口链路断开的次数进行检测;Detecting the number of times the port link is disconnected in the current time period of the port to be referenced;
当检测到所述待参考端口的当前时间段内端口链路断开的次数为0时,则将所述待参考端口作为参考系统中的参考端口。When the number of times the port link is disconnected in the current time period of the port to be referenced is 0, the port to be referenced is used as a reference port in the reference system.
根据本发明的另一实施例,提供了一种自协商LACP协议参考系统和参考端口的装置,包括:According to another embodiment of the present invention, an apparatus for auto-negotiating a LACP protocol reference system and a reference port is provided, including:
确定稳定性模块,设置为LACP协议链路聚合组的第一系统和第二系统通过对各自系统的实时资源使用状态进行实时检测,确定各自系统稳定性;Determining the stability module, the first system and the second system set to the LACP protocol link aggregation group determine the stability of the respective systems by performing real-time detection on the real-time resource usage status of the respective systems;
选择参考系统模块,设置为所述第一系统和第二系统通过协商,将所述第一系统和所述第二系统中稳定性最好一个系统选作参考系统;Selecting a reference system module, configured to select, by the first system and the second system, a system with the best stability in the first system and the second system as a reference system;
选择参考端口模块,设置为所述参考系统根据其每个端口与对应的对端系统直连端口构成的每个端口对的状态历史信息和所属单板的资源使用状态,从参考系统的所属端口中选出一个端口作为参考端口;Selecting a reference port module, and setting the status history information of each port pair formed by the reference system according to each port and the corresponding peer system direct port, and the resource usage status of the board to which the reference system belongs, from the port to which the reference system belongs. Select a port as the reference port;
其中,所述LACP协议是指链路聚合控制协议。The LACP protocol refers to a link aggregation control protocol.
在本发明实施例中,所述的每个端口对的状态历史信息和所属单板的资源使用状态包括:In the embodiment of the present invention, the status history information of each port pair and the resource usage status of the associated board include:
每个端口的端口状态历史信息和端口所属单板的资源使用状态;Port state history information of each port and the resource usage status of the card to which the port belongs.
与每个端口直连的对端系统端口的端口状态历史信息和端口所属单板的资源使用状态。Port state history information of the peer system port directly connected to each port and the resource usage status of the board to which the port belongs.
在本发明实施例中,所述资源使用状态包括单板CPU利用率和单板内存使用率;所述端口状态历史信息包括当前时间段内端口链路断开的次数。In the embodiment of the present invention, the resource usage status includes a board CPU utilization rate and a board memory usage rate; and the port status history information includes the number of times the port link is disconnected in the current time period.
与现有技术相比较,本发明实施例的有益效果在于:Compared with the prior art, the beneficial effects of the embodiments of the present invention are:
本发明实施例通过引入对系统单板的资源以及端口状态历史信息的记录,结合LACPDU报文在两端系统之间的传送,自协商调整系统优先级和端口优先级,帮助提高承载业务流链 路的稳定性。The embodiment of the present invention introduces the recording of the resource and the port state history information of the system board, and combines the transmission of the LACPDUs between the two systems, and automatically adjusts the system priority and the port priority to help improve the bearer service flow chain. Road stability.
附图说明DRAWINGS
图1是现有技术提供的运行LACP协议的网络示意图;1 is a schematic diagram of a network running the LACP protocol provided by the prior art;
图2是现有技术提供的LACP协议的报文格式示意图;2 is a schematic diagram of a packet format of an LACP protocol provided by the prior art;
图3是现有技术提供的LACP协议的系统优先级示意图;3 is a schematic diagram of system priority of an LACP protocol provided by the prior art;
图4是现有技术提供的LACP协议的端口优选级示意图;4 is a schematic diagram of port preference levels of the LACP protocol provided by the prior art;
图5是本发明实施例提供的一种自协商LACP协议参考系统和参考端口的方法流程图;FIG. 5 is a flowchart of a method for a self-negotiating LACP protocol reference system and a reference port according to an embodiment of the present invention;
图6是本发明实施例提供的一种自协商LACP协议参考系统和参考端口的装置示意图;6 is a schematic diagram of an apparatus for a self-negotiating LACP protocol reference system and a reference port according to an embodiment of the present invention;
图7是本发明实施例提供的LACP协议单设备环境的示意图;7 is a schematic diagram of an LACP protocol single device environment according to an embodiment of the present invention;
图8是本发明实施例提供的LACP协议多设备环境的示意图;8 is a schematic diagram of a multi-device environment of an LACP protocol according to an embodiment of the present invention;
图9是本发明实施例提供的LACP协议计算参考端口的方法流程图;9 is a flowchart of a method for calculating a reference port of an LACP protocol according to an embodiment of the present invention;
图10是本发明实施例提供的LACP协议运行期间参考端口获取的方法流程图。FIG. 10 is a flowchart of a method for obtaining a reference port during operation of an LACP protocol according to an embodiment of the present invention.
具体实施方式Detailed ways
以下结合附图对本发明的优选实施例进行详细说明,应当理解,以下所说明的优选实施例仅用于说明和解释本发明,并不用于限定本发明。The preferred embodiments of the present invention are described in detail below with reference to the accompanying drawings.
图5是本发明实施例提供的一种自协商LACP协议参考系统和参考端口的方法流程图,如图5所示,包括以下步骤:FIG. 5 is a flowchart of a method for a self-negotiating LACP protocol reference system and a reference port according to an embodiment of the present invention. As shown in FIG. 5, the method includes the following steps:
步骤S501:LACP协议链路聚合组的第一系统和第二系统通过对各自系统的实时资源使用状态进行实时检测,确定各自系统稳定性;Step S501: The first system and the second system of the link aggregation group of the LACP protocol perform real-time detection on the real-time resource usage status of the respective systems to determine the stability of the respective systems;
步骤S502:所述第一系统和第二系统通过协商,将所述第一系统和所述第二系统中稳定性最好一个系统选作参考系统;Step S502: The first system and the second system select, by negotiation, a system with the best stability in the first system and the second system as a reference system;
步骤S503:所述参考系统根据其每个端口与对应的对端系统直连端口构成的每个端口对的状态历史信息和所属单板的资源使用状态,从参考系统的所属端口中选出一个端口作为参考端口。Step S503: The reference system selects one of the ports of the reference system according to the state history information of each port pair formed by each port and the corresponding peer system direct port and the resource usage status of the board. The port acts as a reference port.
其中,所述的每个端口对的状态历史信息和所属单板的资源使用状态包括:每个端口的端口状态历史信息和端口所属单板的资源使用状态;与每个端口直连的对端系统端口的端口 状态历史信息和端口所属单板的资源使用状态。具体地说,所述资源使用状态包括单板CPU利用率和单板内存使用率;所述端口状态历史信息包括当前时间段内端口链路断开的次数。The status history information of each port pair and the resource usage status of the port are as follows: the port state history information of each port and the resource usage status of the board to which the port belongs; the peer directly connected to each port System port port Status history information and resource usage status of the board to which the port belongs. Specifically, the resource usage status includes a board CPU utilization and a board memory usage rate; and the port status history information includes the number of times the port link is disconnected in the current time period.
其中,所述第一系统根据系统的每个端口的端口所属单板的资源使用状态,构建所述第一系统每个单板的资源使用度量值;所述第二系统根据系统的每个端口的端口所属单板的资源使用状态,构建所述第二系统每个单板的资源使用度量值;其中,所述第一系统每个单板的资源使用度量值包括:所述第一系统每个端口的端口所属单板的单板CPU利用率和单板内存使用率;所述第二系统每个单板的资源使用度量值包括:所述第二系统每个端口的端口所属单板的单板CPU利用率和单板内存使用率。The first system is configured to use a resource usage metric of each board of the first system according to a resource usage status of a card to which the port of each port of the system belongs; the second system is configured according to each port of the system. The resource usage metric of each board of the second system is configured, and the resource usage metric of each board of the first system includes: the first system The CPU usage of the board to which the port of the port belongs and the memory usage of the board. The resource usage metric of each board in the second system includes: the board of the port to which the port of the second system belongs. Board CPU utilization and board memory usage.
本发明所述确定各自系统稳定性包括:在所述第一系统每个单板的资源使用度量值中选取最大的资源使用度量值作为所述第一系统的稳定性;在所述第二系统每个单板的资源使用度量值中选取最大的资源使用度量值作为所述第二系统的稳定性;其中,所述资源使用度量值越大,稳定性越差。Determining the stability of the respective systems according to the present invention includes: selecting a maximum resource usage metric value as the stability of the first system among the resource usage metric values of each board of the first system; The resource usage metric of each board selects the largest resource usage metric as the stability of the second system; wherein the greater the resource usage metric, the worse the stability.
其中,根据所述每个端口的端口所属单板的资源使用状态以及与每个端口直连的对端系统端口的端口所属单板的资源使用状态,构建所述参考系统每个端口对所属单板的资源使用度量值,包括:所述每个端口的端口所属单板的单板CPU利用率和单板内存使用率;所述每个端口直连的对端系统端口的端口所属单板的单板CPU利用率和单板内存使用率。具体地说,所述参考系统根据其每个端口与对应的对端系统直连端口构成的每个端口对的状态历史信息和所属单板的资源使用状态,从参考系统的所属端口中选出一个端口作为参考端口包括:通过对所属单板的资源使用度量值按照从小到大的顺序进行排序,并依次将所属单板的端口作为待参考端口;对所述待参考端口的当前时间段内端口链路断开的次数进行检测;当检测到所述待参考端口的当前时间段内端口链路断开的次数为0时,则将所述待参考端口作为参考系统中的参考端口。The port of each reference port of the reference system is constructed according to the resource usage status of the board to which the port of each port belongs and the resource usage status of the board to which the port of the peer system port directly connected to each port belongs. The metric of the resource usage of the board, including the CPU usage of the board to which the port of each port belongs and the memory usage of the board. The port of the peer system port directly connected to each port belongs to the board. Board CPU utilization and board memory usage. Specifically, the reference system selects the state history information of each port pair formed by each port of the port and the corresponding peer system directly connected port, and the resource usage status of the board to which the board belongs. A port as a reference port includes: sorting the resource usage metrics of the card to be used in a descending order, and sequentially using the port of the card as the port to be referenced; The number of times the port link is disconnected is detected. When the number of times the port link is disconnected in the current time period of the port to be referenced is 0, the port to be referenced is used as a reference port in the reference system.
图6显示了本发明实施例提供的一种自协商LACP协议参考系统和参考端口的装置示意图,如图6所示,包括:确定稳定性模块601、选择参考系统模块602以及选择参考端口模块603。具体地说,所述确定稳定性模块601,设置为LACP协议链路聚合组的第一系统和第二系统通过对各自系统的实时资源使用状态进行实时检测,确定各自系统稳定性;所述选择参考系统模块602,设置为所述第一系统和第二系统通过协商,将所述第一系统和所述第二系统中稳定性最好一个系统选作参考系统;所述选择参考端口模块603,设置为所述参考系统根据其每个端口与对应的对端系统直连端口构成的每个端口对的状态历史信息和所属单板的资源使用状态,从参考系统的所属端口中选出一个端口作为参考端口。FIG. 6 is a schematic diagram of a device for a self-negotiating LACP protocol reference system and a reference port according to an embodiment of the present invention. As shown in FIG. 6, the method includes: determining a stability module 601, selecting a reference system module 602, and selecting a reference port module 603. . Specifically, the determining stability module 601, the first system and the second system configured as the LACP protocol link aggregation group determine the stability of the respective systems by performing real-time detection on the real-time resource usage status of the respective systems; The reference system module 602 is configured to select, by the first system and the second system, a system with the best stability in the first system and the second system as a reference system; the selection reference port module 603 And the reference system is configured to select one of the ports of the reference system according to the state history information of each port pair formed by each port and the corresponding peer system direct port and the resource usage state of the board to which the reference system belongs. The port acts as a reference port.
本发明所述的每个端口对的状态历史信息和所属单板的资源使用状态包括:每个端口的端口状态历史信息和端口所属单板的资源使用状态;与每个端口直连的对端系统端口的端口状态历史信息和端口所属单板的资源使用状态。其中,所述资源使用状态包括单板CPU利用率和单板内存使用率;所述端口状态历史信息包括当前时间段内端口链路断开的次数。The state history information of each port pair and the resource usage status of the card to be used in the present invention include: the port state history information of each port and the resource usage status of the board to which the port belongs; the peer directly connected to each port Port state history information of the system port and the resource usage status of the card to which the port belongs. The resource usage status includes a board CPU utilization rate and a board memory usage rate; the port status history information includes the number of times the port link is disconnected in the current time period.
本发明的创新点主要为:1.系统优先级根据本端和对端系统的实时资源使用情况,自协 商调整;2.端口优先级根据本端和对端端口所在单板的实时资源使用情况、端口状态历史信息,自协商调整。这两个创新点的主要作用体现在:引入对系统、单板的资源以及端口状态历史信息的记录,结合LACPDU报文在两端系统之间的传送,自协商调整系统优先级和端口优先级,帮助提高承载业务流链路的稳定性。除以上两点外,本发明也考虑了采用本发明方案的设备与非采用本发明的设备用LACP协议对接情况下,采用本发明方案设备如何支持对端设备。The innovations of the present invention are mainly as follows: 1. The system priority is self-coordinated according to the real-time resource usage of the local and the peer system. 2. The port priority is adjusted according to the real-time resource usage and port state history information of the board where the local end and the peer port reside. The main functions of these two innovations are: the introduction of the system, the resources of the board, and the record of the port state history information, combined with the transmission of LACPDU packets between the two systems, and the auto-negotiation to adjust the system priority and port priority. To help improve the stability of the bearer service flow link. In addition to the above two points, the present invention also considers how the device of the present invention supports the peer device in the case where the device using the solution of the present invention is connected with the device not using the LACP protocol.
本发明的技术方案包括步骤如下所示:The technical solution of the present invention includes the following steps:
步骤一:系统A与系统B之间运行LACP协议,两端分别以端口进行分类,建立所属系统资源状态表和端口异常状态记录表,根据表项内容计算出各自的系统优先级和各端口优先级,并通过LACPDU报文告知对端;Step 1: The LACP protocol is run between system A and system B. The two ends are classified by ports, and the system resource status table and port abnormal status record table are established. The system priority and port priority are calculated according to the contents of the table. Level, and notify the peer through the LACPDU message;
步骤二:A与B决策出两者之间谁来做参考系统,谁的某个端口作为参考端口;Step 2: A and B decide which of the two is the reference system, and which port is used as the reference port;
步骤三:在A与B之间LACP协议启动和运行全程期间,以上步骤定时进行。Step 3: During the whole process of starting and running the LACP protocol between A and B, the above steps are performed periodically.
下面结合图7至图10对本发明作进一步的说明。The present invention will be further described below with reference to Figs. 7 to 10.
现有系统A和系统B之间运行LACP协议,从系统层面,A和B可以是单个设备(如图7),也可以是多设备聚合组(如图8);从端口分布层面,运行LACP协议的端口可以位于不同单板上(如图8中端口3和端口4),也可以位于相同单板上(如图8中端口1和端口2)。其实现的过程如下:以图8中系统A为例,系统A中各单板定时获取单板实时资源信息(包含但并不限于cpu利用率,内存使用率),建立基于端口的所属系统资源状态表,如下表1所示。The current system A and system B run the LACP protocol. From the system level, A and B can be a single device (as shown in Figure 7) or a multi-device aggregation group (Figure 8). From the port distribution level, run LACP. The ports of the protocol can be on different boards (such as port 3 and port 4 in Figure 8) or on the same board (such as port 1 and port 2 in Figure 8). The process is as follows: Take system A in Figure 8 as an example. Each board in system A obtains real-time resource information of the board (including but not limited to cpu utilization and memory usage), and establishes port-based system resources. The status table is shown in Table 1 below.
表1:基于端口的所属系统资源状态表Table 1: Port-based system resource status table
Figure PCTCN2016077579-appb-000001
Figure PCTCN2016077579-appb-000001
若A为单个设备(如图7)且由n个端口形成链路聚合,这n个端口分布在m个单板上(若m=1,如图7单板b;若m>1,如图7单板a,则这m个单板cpu各起一个定时任务(定时间隔可以人为设定),计算各自的资源实时使用情况,下面仅以cpu利用率C(m)和内存使用率M(m)为例,定义单板的资源使用度量值R(m)等于C(m)和M(m)的加权和(加权参数由用户设定);则A的系统资源状态度量值R(A)=MAX(R(1),R(2),…,R(m)),即取几个单板中最大的资源使用度量值作为系统资源状态度量值,该值越大,意味着该系统不稳定的概率较高,不适合作为LACP的高优先级系统。若LACP的系统优先级默认值为K,则系统A的系统优先级值P(A)=K*R(A)。假如在系统B上计算的P(B)大于P(A),随着LACPDU报文在A与B之间 传送(根据系统优先级填写Actor_System_Priority字段并转发,如图2所示),两端系统的LACP协议栈发现A的系统优先级高于B的系统优先级(根据LACP协议,优先级值越小的系统优先级越高),决策A作为参考系统。If A is a single device (as shown in Figure 7) and the link aggregation is formed by n ports, the n ports are distributed on m boards (if m=1, as shown in Figure 7 board b; if m>1, such as In Figure 7, the board a, the m board vpu each a timing task (the timing interval can be manually set), calculate the real-time use of their respective resources, the following only cpu utilization C (m) and memory usage M (m) As an example, the resource usage metric R(m) of the board is defined as a weighted sum of C(m) and M(m) (the weighting parameter is set by the user); then the system resource state metric R of A ( A)=MAX(R(1), R(2),...,R(m)), that is, take the largest resource usage metric in several boards as the system resource status metric. The larger the value, the larger The system has a high probability of instability and is not suitable as a high priority system for LACP. If the default system priority of LACP is K, the system priority value of system A is P(A)=K*R(A). If P(B) calculated on System B is greater than P(A), the LACPDU packet is between A and B. Transfer (fill in the Actor_System_Priority field according to the system priority and forward it, as shown in Figure 2). The system of the LACP protocol stack at both ends of the system finds that the system priority of A is higher than the system priority of B. According to the LACP protocol, the priority value is smaller. The higher the system priority, Decision A is used as the reference system.
若A为多设备聚合组(如图8),由x个设备组成,则A的系统资源状态度量值R(A)=MAX(R(1),R(2),…,R(x)),其中R(x)的计算方式同系统A为单个设备的情况(以图7为例,R(A)=70%),则系统A的系统优先级值P(A)=K*R(A)。假如在系统B上计算的P(B)大于P(A),随着LACPDU报文在A与B之间传送,两端系统的LACP协议栈发现A的系统优先级高于B的系统优先级,决策A作为参考系统。If A is a multi-device aggregation group (Figure 8) and consists of x devices, then A's system resource status metric R(A)=MAX(R(1), R(2),...,R(x) ), where R(x) is calculated in the same way as system A is a single device (in the case of Figure 7, R(A) = 70%), then system A's system priority value P(A) = K*R (A). If the P(B) calculated on System B is greater than P(A), and the LACPDU packet is transmitted between A and B, the LACP protocol stack of the system at both ends finds that the system priority of A is higher than the system priority of B. Decision A is used as a reference system.
以图8中系统A为例,系统A中各端口定时统计端口状态异常信息,建立端口与直连对端端口异常状态记录表,如下表2所示。Take system A in Figure 8 as an example. Each port in system A periodically collects port status exception information, and establishes an abnormal status record table for the port and the directly connected peer port, as shown in Table 2 below.
表2:端口与直连对端端口异常状态记录表Table 2: Port and direct peer port abnormal status record table
Figure PCTCN2016077579-appb-000002
Figure PCTCN2016077579-appb-000002
统计各端口近ΔT时间段(该时间段可用户自行设定)的link down次数,并将该值通过LACPDU报文第一个Reserved字段(字段定义参见表3),发送给系统B,同样地,系统B也将发送其相关值给系统A。通过这种方式,即使任意设备重启复位,对端设备都有其近ΔT时间段的link down次数记录。一般地,两端的link down次数应该是相同的,这里之所以如此设计,是考虑到两端端口状态显示不同步的情况。The number of link down times of each port in the near ΔT time period (which can be set by the user) is set, and the value is sent to the system B through the first Reserved field of the LACPDU packet (see Table 3 for field definition). System B will also send its associated value to System A. In this way, even if any device restarts reset, the peer device has a link down count record of its near ΔT period. Generally, the number of link downs at both ends should be the same. The reason for this design is that the status of the ports on both ends is not synchronized.
表3:Reserved字段各字节信息Table 3: Byte information of the Reserved field
Figure PCTCN2016077579-appb-000003
Figure PCTCN2016077579-appb-000003
其中,表中0-3字节为本公司设备标识位,4-7字节为cpu利用率,8-11字节为内存使用率,20-23字节为端口近ΔT时间段link down次数,12-19字节为其他预留字段,主要针对其他位资源信息。Among them, 0-3 bytes in the table are the device identification bits of the company, 4-7 bytes are cpu utilization, 8-11 bytes are memory usage, and 20-23 bytes are ports near ΔT time period. 12-19 bytes are other reserved fields, mainly for other bit resource information.
假设A已作为参考系统,A建立了各selected端口和直连对端端口的所属系统资源状态表,如下表4所示。定义selected端口和直连对端端口的所属单板的资源使用度量值r(n)等于C(n)、 M(n)、C'(n)和M'(n)的加权和(加权参数由用户设定),其中C'(n)和M'(n)分别代表了直连对端端口所属单板的cpu利用率和内存使用率。系统B通过LACPDU报文的第Reserved字段(Reserved字段所处报文位置如图2所示,第一个Reserved字段是为报文发送端设备预留的,系统B可以在此填入自身定时查询的资源信息,第二个Reserved字段的值填的是A向B发送报文的第一个Reserved字段信息,Reserved的3字节字段信息定义如图10所示,其中前4个字节定义本发明设备的特有字节信息,用以区分对端设备是否为采用本发明方案的设备)将实时资源使用信息传送至A。r(n)值反映了端口处理业务流的潜在风险,r(n)值越大,潜在风险越高。Assume that A has been used as the reference system. A establishes the system resource status table of each selected port and directly connected peer port, as shown in Table 4 below. Define the resource usage metric r(n) of the board to which the selected port and the directly connected peer port are equal to C(n), The weighted sum of M(n), C'(n) and M'(n) (the weighting parameters are set by the user), where C'(n) and M'(n) represent the direct connection of the peer port Board CPU utilization and memory usage. System B passes the Reserved field of the LACPDU packet. The location of the packet in the Reserved field is shown in Figure 2. The first Reserved field is reserved for the packet sending device. System B can fill in its own timing query here. The resource information, the value of the second Reserved field is filled with the first Reserved field information of the message sent by A to B, and the reserved 3-byte field information definition is as shown in FIG. 10, wherein the first 4 bytes define the present The unique byte information of the invented device is used to distinguish whether the peer device is a device adopting the solution of the present invention) to transmit real-time resource usage information to A. The r(n) value reflects the potential risk of the port processing traffic flow. The larger the r(n) value, the higher the potential risk.
表4:端口与直连对端端口的所述系统资源状态表Table 4: The system resource status table of the port and the directly connected peer port
Figure PCTCN2016077579-appb-000004
Figure PCTCN2016077579-appb-000004
本发明在A收到B发来的LACPDU报文的第一个Reserved字段的前4字节不是本发明方法定义的特有字节信息,则意味着系统B启用的是标准LACP协议或至少与系统A不归属同一厂家,则系统A的参考系统、参考端口的优先级不会动态调整,只会与初值保持一致,这样保证了采用本发明方案系统与其他厂家的LACP协议对接成功。The first 4 bytes of the first Reserved field of the LACPDU message sent by the A in the present invention are not the unique byte information defined by the method of the present invention, which means that the system B enables the standard LACP protocol or at least the system. If the A does not belong to the same manufacturer, the priority of the reference system and the reference port of the system A will not be dynamically adjusted, and will only be consistent with the initial value. This ensures that the system of the present invention is successfully connected to the LACP protocol of other vendors.
图9显示了本发明实施例提供的LACP协议计算参考端口的方法流程图,如图9所示,在参考端口的选择上,系统定时检测与记录r(1),r(2),…,r(n)并做从小到大的排序,最小的值所对应的端口作为参考端口第一候选,第二小的值所对应的端口作为参考端口第二候选,以此类推,并根据端口和直连对端端口异常状态记录表对应的近ΔT时间段link down总次数作最终判断:1.若r(n)是参考端口第一候选,且link down次数为N(N>0),则剔除第一候选,选择第二候选,并判断其link down次数N,若N等于0,则将其作为参考端口,若N大于0,则以此类推选择参考端口第三候选。FIG. 9 is a flowchart of a method for calculating a reference port by using the LACP protocol according to an embodiment of the present invention. As shown in FIG. 9, in the selection of a reference port, the system periodically detects and records r(1), r(2), ..., r(n) is sorted from small to large, the port corresponding to the smallest value is used as the first candidate for the reference port, the port corresponding to the second smallest value is used as the second candidate for the reference port, and so on, and according to the port and The final ΔT time period of the direct connection peer port abnormal state record table is determined by the total number of link down times: 1. If r(n) is the first candidate of the reference port, and the number of link down times is N (N>0), then The first candidate is culled, the second candidate is selected, and the number of link down times N is determined. If N is equal to 0, it is used as a reference port. If N is greater than 0, the reference port third candidate is selected by analogy.
图10显示了本发明实施例提供的LACP协议运行期间参考端口获取的方法流程图,如图 10所示,在LACP协议运行期间,考虑已选的参考端口与其他多个selected端口r值相近情况下,例如端口1为参考端口,但r(1)与r(2)值相近,且它们的端口link down次数均为0,容易出现两者轮流做参考端口的情况,这样对保持业务流的稳定性不利。本发明引入端口和直连对端端口的所属单板的资源使用度量阈值Q(由于本端和对端的cpu利用率与内存使用率之和的上限为4,Q的取值范围在0-4之间),若端口1作为参考端口,而在下次定时检测时先判断r(1)是否大于Q,若成立,则启动步骤4重新计算参考端口;若不成立,则仍然由端口1作为参考端口。FIG. 10 is a flowchart of a method for obtaining a reference port during operation of an LACP protocol according to an embodiment of the present invention, as shown in FIG. 10, during the operation of the LACP protocol, considering that the selected reference port is close to the values of other selected ports, for example, port 1 is the reference port, but r(1) and r(2) are similar, and they are The number of link down times of the port is 0, which is easy for the two to take the reference port in turn, which is unfavorable for maintaining the stability of the traffic flow. The resource usage metric threshold Q of the port and the directly connected peer port of the present invention is introduced. The upper limit of the sum of the CPU usage and the memory usage of the local end and the peer end is 4, and the value of Q ranges from 0 to 4. If the port 1 is used as the reference port, it is judged whether r(1) is greater than Q in the next timing detection. If yes, step 4 is started to recalculate the reference port; if not, port 1 is still used as the reference port. .
综上所述,本发明具有以下技术效果:In summary, the present invention has the following technical effects:
本发明根据本端和对端系统的实时资源使用情况,自协商调整系统优先级以及根据本端和对端端口所在单板的实时资源使用情况、端口状态历史信息,自协商调整端口优先级,提高了承载业务流链路的稳定性。The present invention automatically adjusts the port priority according to the real-time resource usage of the local and the peer system, and adjusts the system priority according to the real-time resource usage and port state history information of the board where the local end and the peer port are located. Improve the stability of the bearer service flow link.
尽管上文对本发明进行了详细说明,但是本发明不限于此,本技术领域技术人员可以根据本发明的原理进行各种修改。因此,凡按照本发明原理所作的修改,都应当理解为落入本发明的保护范围。Although the invention has been described in detail above, the invention is not limited thereto, and various modifications may be made by those skilled in the art in accordance with the principles of the invention. Therefore, modifications made in accordance with the principles of the invention are to be understood as falling within the scope of the invention.
工业实用性Industrial applicability
本发明实施例的技术方案,可以应用于自协商LACP协议参考系统和参考端口过程中,通过引入对系统单板的资源以及端口状态历史信息的记录,结合LACPDU报文在两端系统之间的传送,自协商调整系统优先级和端口优先级,帮助提高承载业务流链路的稳定性。 The technical solution of the embodiment of the present invention can be applied to the process of the self-negotiating LACP reference system and the reference port, and the recording of the resource and the port state history information of the system board is combined with the LACPDU packet between the two systems. Transmission, auto-negotiation adjusts system priority and port priority to help improve the stability of bearer service flow links.

Claims (10)

  1. 一种自协商LACP协议参考系统和参考端口的方法,包括以下步骤:A method for self-negotiating the LACP protocol reference system and reference port includes the following steps:
    LACP协议链路聚合组的第一系统和第二系统通过对各自系统的实时资源使用状态进行实时检测,确定各自系统稳定性;The first system and the second system of the LACP protocol link aggregation group determine the stability of the respective systems by performing real-time detection on the real-time resource usage status of the respective systems;
    所述第一系统和第二系统通过协商,将所述第一系统和所述第二系统中稳定性最好一个系统选作参考系统;The first system and the second system select, by negotiation, a system with the best stability in the first system and the second system as a reference system;
    所述参考系统根据其每个端口与对应的对端系统直连端口构成的每个端口对的状态历史信息和所属单板的资源使用状态,从参考系统的所属端口中选出一个端口作为参考端口;The reference system selects a port from the reference port of the reference system as a reference according to the state history information of each port pair formed by each port and the corresponding peer system direct port and the resource usage status of the board. port;
    其中,所述LACP协议是指链路聚合控制协议。The LACP protocol refers to a link aggregation control protocol.
  2. 根据权利要求1所述的方法,其中,所述的每个端口对的状态历史信息和所属单板的资源使用状态包括:The method according to claim 1, wherein the status history information of each port pair and the resource usage status of the associated board include:
    每个端口的端口状态历史信息和端口所属单板的资源使用状态;Port state history information of each port and the resource usage status of the card to which the port belongs.
    与每个端口直连的对端系统端口的端口状态历史信息和端口所属单板的资源使用状态。Port state history information of the peer system port directly connected to each port and the resource usage status of the board to which the port belongs.
  3. 根据权利要求2所述的方法,其中,所述资源使用状态包括单板CPU利用率和单板内存使用率;所述端口状态历史信息包括当前时间段内端口链路断开的次数。The method according to claim 2, wherein the resource usage status comprises a board CPU utilization and a board memory usage rate; and the port status history information includes a number of times the port link is disconnected in the current time period.
  4. 根据权利要求3所述的方法,其中,所述第一系统根据系统的每个端口的端口所属单板的资源使用状态,构建所述第一系统每个单板的资源使用度量值;所述第二系统根据系统的每个端口的端口所属单板的资源使用状态,构建所述第二系统每个单板的资源使用度量值;The method according to claim 3, wherein the first system constructs a resource usage metric value of each board of the first system according to a resource usage state of a board to which a port of each port of the system belongs; The second system constructs a resource usage metric value of each board of the second system according to a resource usage status of the board to which the port of each port of the system belongs;
    其中,所述第一系统每个单板的资源使用度量值包括:所述第一系统每个端口的端口所属单板的单板CPU利用率和单板内存使用率;所述第二系统每个单板的资源使用度量值包括:所述第二系统每个端口的端口所属单板的单板CPU利用率和单板内存使用率。The resource usage metric of each board in the first system includes: a board CPU utilization rate and a board memory usage rate of the board to which the port of each port of the first system belongs; the second system The resource usage metrics of the boards include: the CPU usage of the board and the memory usage of the board of the board to which the port of each port of the second system belongs.
  5. 根据权利要求4所述的方法,其中,所述确定各自系统稳定性包括:The method of claim 4 wherein said determining respective system stability comprises:
    在所述第一系统每个单板的资源使用度量值中选取最大的资源使用度量值作为所述第一系统的稳定性;Selecting a maximum resource usage metric value as the stability of the first system in a resource usage metric value of each board of the first system;
    在所述第二系统每个单板的资源使用度量值中选取最大的资源使用度量值作为所述第二系统的稳定性;Selecting a maximum resource usage metric value as the stability of the second system in a resource usage metric value of each board of the second system;
    其中,所述资源使用度量值越大,稳定性越差。The greater the resource usage metric, the worse the stability.
  6. 根据权利要求3所述的方法,其中,根据所述每个端口的端口所属单板的资源使用状态以及与每个端口直连的对端系统端口的端口所属单板的资源使用状态,构建所述参考系 统每个端口对所属单板的资源使用度量值,包括:The method of claim 3, wherein the resource usage status of the board to which the port of each port belongs and the resource usage status of the board to which the port of the peer system port directly connected to each port belongs is constructed. Reference system The resource usage metrics of each port on the card to which it belongs, including:
    所述每个端口的端口所属单板的单板CPU利用率和单板内存使用率;The CPU usage and board memory usage of the board of the card to which the port of each port belongs.
    所述每个端口直连的对端系统端口的端口所属单板的单板CPU利用率和单板内存使用率。The CPU usage and board memory usage of the board of the board to which the port of the peer system port is directly connected to each port.
  7. 根据权利要求6所述的方法,其中,所述参考系统根据其每个端口与对应的对端系统直连端口构成的每个端口对的状态历史信息和所属单板的资源使用状态,从参考系统的所属端口中选出一个端口作为参考端口包括:The method according to claim 6, wherein the reference system according to the status history information of each port pair formed by each port and the corresponding peer system direct port and the resource usage status of the belonging board are referenced from the reference. One of the ports of the system selected as the reference port includes:
    通过对所属单板的资源使用度量值按照从小到大的顺序进行排序,并依次将所属单板的端口作为待参考端口;You can sort the resource usage metrics of the card to the port to be referenced.
    对所述待参考端口的当前时间段内端口链路断开的次数进行检测;Detecting the number of times the port link is disconnected in the current time period of the port to be referenced;
    当检测到所述待参考端口的当前时间段内端口链路断开的次数为0时,则将所述待参考端口作为参考系统中的参考端口。When the number of times the port link is disconnected in the current time period of the port to be referenced is 0, the port to be referenced is used as a reference port in the reference system.
  8. 一种自协商LACP协议参考系统和参考端口的装置,包括:A self-negotiating LACP protocol reference system and reference port device, including:
    确定稳定性模块,设置为LACP协议链路聚合组的第一系统和第二系统通过对各自系统的实时资源使用状态进行实时检测,确定各自系统稳定性;Determining the stability module, the first system and the second system set to the LACP protocol link aggregation group determine the stability of the respective systems by performing real-time detection on the real-time resource usage status of the respective systems;
    选择参考系统模块,设置为所述第一系统和第二系统通过协商,将所述第一系统和所述第二系统中稳定性最好一个系统选作参考系统;Selecting a reference system module, configured to select, by the first system and the second system, a system with the best stability in the first system and the second system as a reference system;
    选择参考端口模块,设置为所述参考系统根据其每个端口与对应的对端系统直连端口构成的每个端口对的状态历史信息和所属单板的资源使用状态,从参考系统的所属端口中选出一个端口作为参考端口;Selecting a reference port module, and setting the status history information of each port pair formed by the reference system according to each port and the corresponding peer system direct port, and the resource usage status of the board to which the reference system belongs, from the port to which the reference system belongs. Select a port as the reference port;
    其中,所述LACP协议是指链路聚合控制协议。The LACP protocol refers to a link aggregation control protocol.
  9. 根据权利要求8所述的装置,其中,所述的每个端口对的状态历史信息和所属单板的资源使用状态包括:The device according to claim 8, wherein the status history information of each port pair and the resource usage status of the associated board include:
    每个端口的端口状态历史信息和端口所属单板的资源使用状态;Port state history information of each port and the resource usage status of the card to which the port belongs.
    与每个端口直连的对端系统端口的端口状态历史信息和端口所属单板的资源使用状态。Port state history information of the peer system port directly connected to each port and the resource usage status of the board to which the port belongs.
  10. 根据权利要求9所述的装置,其中,所述资源使用状态包括单板CPU利用率和单板内存使用率;所述端口状态历史信息包括当前时间段内端口链路断开的次数。 The device according to claim 9, wherein the resource usage status comprises a board CPU utilization and a board memory usage rate; and the port status history information includes a number of times the port link is disconnected in the current time period.
PCT/CN2016/077579 2015-07-27 2016-03-28 Method and device for auto-negotiating lacp reference system and reference port WO2016177190A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510445619.8 2015-07-27
CN201510445619.8A CN106411731B (en) 2015-07-27 2015-07-27 Method and device for auto-negotiation LACP protocol reference system and reference port

Publications (1)

Publication Number Publication Date
WO2016177190A1 true WO2016177190A1 (en) 2016-11-10

Family

ID=57217901

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/077579 WO2016177190A1 (en) 2015-07-27 2016-03-28 Method and device for auto-negotiating lacp reference system and reference port

Country Status (2)

Country Link
CN (1) CN106411731B (en)
WO (1) WO2016177190A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109640379B (en) * 2019-01-11 2020-09-18 Oppo广东移动通信有限公司 Link aggregation implementation method and related product
CN113141265B (en) * 2020-01-16 2023-12-08 华为技术有限公司 Cross-equipment link aggregation method and equipment
CN113839836B (en) * 2021-09-27 2023-04-25 新华三信息安全技术有限公司 Aggregation timeout protection method, frame device, cartridge device, and storage medium
CN115002023B (en) * 2022-06-08 2024-04-19 邦彦技术股份有限公司 Link aggregation method, link aggregation device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647355A (en) * 2012-04-12 2012-08-22 华为技术有限公司 LACP (Link Aggregation Control Protocol) consultation processing method, relay node and system
CN103023698A (en) * 2012-11-30 2013-04-03 中兴通讯股份有限公司 LACP (link aggregation control protocol) link aggregation optimization method and device based on Ethernet link-level OAM (operation, administration and maintenance)
WO2014101125A1 (en) * 2012-12-28 2014-07-03 华为技术有限公司 Aggregation group link negotiation method, device and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101984573B (en) * 2010-11-15 2015-07-22 中兴通讯股份有限公司 Method and system for distributed realization of LACP standard state machine
CN103634131B (en) * 2012-08-24 2018-04-27 新华三技术有限公司 One kind virtualization network equipment inter-connection links detection method and equipment
CN103152210B (en) * 2013-03-29 2015-07-29 杭州华三通信技术有限公司 Repair method and the stack equipment of Spanning-Tree Protocol forwarding state exception
CN104253764B (en) * 2013-06-28 2017-05-17 新华三技术有限公司 Link aggregation method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647355A (en) * 2012-04-12 2012-08-22 华为技术有限公司 LACP (Link Aggregation Control Protocol) consultation processing method, relay node and system
CN103023698A (en) * 2012-11-30 2013-04-03 中兴通讯股份有限公司 LACP (link aggregation control protocol) link aggregation optimization method and device based on Ethernet link-level OAM (operation, administration and maintenance)
WO2014101125A1 (en) * 2012-12-28 2014-07-03 华为技术有限公司 Aggregation group link negotiation method, device and system

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
"Configuring IEEE 802.3ad Link Bundling and Load Balancing", CISCO, 8 February 2011 (2011-02-08), pages 1 - 32, XP055328237 *
"IEEE 802.3ad Link Bundling", CISCO., 27 February 2007 (2007-02-27), XP055328239 *
"Link Aggregation Control Protocol (LACP) (802. 3ad) for Gigabit Interfaces", CISCO., 31 March 2007 (2007-03-31), pages 1 - 18, XP002735252 *
SEAMAN: "Link Aggregation Control Protocol", IEEE, 7 March 1999 (1999-03-07), XP002719206 *

Also Published As

Publication number Publication date
CN106411731B (en) 2020-06-05
CN106411731A (en) 2017-02-15

Similar Documents

Publication Publication Date Title
CN114342331B (en) Computing and using different path quality metrics for different classes of service
Zhang et al. Load balancing in data center networks: A survey
US7729361B2 (en) Method and system for power-efficient adaptive link aggregation
US10476698B2 (en) Redundent virtual link aggregation group
US10574577B1 (en) Load balancing path assignments techniques
US8995277B2 (en) Method for dynamic load balancing of network flows on LAG interfaces
US20130003549A1 (en) Resilient Hashing for Load Balancing of Traffic Flows
Habib et al. The past, present, and future of transport-layer multipath
US20160197775A1 (en) Data center bridging network configuration and management
CN107959633A (en) A kind of load balance method based on price mechanism in industry real-time network
US10785145B2 (en) System and method of flow aware resilient ECMP
CN107579923A (en) The balancing link load method and SDN controllers of a kind of SDN
WO2017025021A1 (en) Method and device for processing flow table
US20140198656A1 (en) Adaptive link aggregation and virtual link aggregation
US9397926B2 (en) Peer-influenced aggregate member selection
WO2016177190A1 (en) Method and device for auto-negotiating lacp reference system and reference port
WO2012174447A1 (en) Coordinated backoff for hybrid network path selection
CN104363181B (en) Flow transfer control method and device
CN112350949B (en) Rerouting congestion control method and system based on flow scheduling in software defined network
CN101841487A (en) Configuration method for aggregating link service flow and packet switching device
WO2015070383A1 (en) Link aggregation method, apparatus, and system
US9866469B2 (en) Shutdown response system
CN104580002B (en) The big balanced retransmission method of current load and device
CN102035741A (en) Unicast message forwarding method and device in ring topology network
US9215176B2 (en) Method of determining packet path in VLAN, and VLAN system using energy saving path

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

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

Country of ref document: EP

Kind code of ref document: A1