WO2013152589A1 - Lacp协商处理方法、中继节点及系统 - Google Patents

Lacp协商处理方法、中继节点及系统 Download PDF

Info

Publication number
WO2013152589A1
WO2013152589A1 PCT/CN2012/084270 CN2012084270W WO2013152589A1 WO 2013152589 A1 WO2013152589 A1 WO 2013152589A1 CN 2012084270 W CN2012084270 W CN 2012084270W WO 2013152589 A1 WO2013152589 A1 WO 2013152589A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
link information
relay node
relay
lacp
Prior art date
Application number
PCT/CN2012/084270
Other languages
English (en)
French (fr)
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 EP12874189.9A priority Critical patent/EP2816772B1/en
Publication of WO2013152589A1 publication Critical patent/WO2013152589A1/zh
Priority to US14/489,754 priority patent/US9461928B2/en

Links

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/41Flow control; Congestion control by acting on aggregated flows or links
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • H04L41/083Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability for increasing network speed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • H04L41/0836Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability to enhance reliability, e.g. reduce downtime
    • 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
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Definitions

  • the present invention relates to communication technologies, and in particular, to an LACP negotiation processing method, a relay node, and a system. Background technique
  • the Link Aggregation Control Protocol provides a port negotiation mode for exchanging data between devices running the protocol. After the two devices establish a Link Aggregation Group based on LACP, they can provide higher bandwidth and reliability for communication between the two devices.
  • the link aggregation group is established and maintained according to the LACP negotiation.
  • the Link Aggregation Control Protocol Data Unit (LACPDU), that is, the LACP packet, is implemented. Specifically, after LACP is enabled on a port of a device, the device sends LACP packets to the peer device to notify the local system priority, system access control (Media Access Control, MAC address), port priority, The port number and the operation key information. After receiving the LACP packet, the peer device selects the port that can be aggregated according to the information in the LACP packet. After both devices perform the above operations, the two devices can each If a port is selected or not, the link aggregation group can be added to the link aggregation group.
  • LACPDU Link Aggregation Control Protocol Data Unit
  • An embodiment of the present invention provides an LACP negotiation processing method, a relay node, and a system, which are used to provide an effective negotiation method for an LACP protocol between indirectly connected nodes.
  • an LACP negotiation processing method including:
  • the relay node receives the link aggregation control protocol LACP packet
  • the relay node establishes a correspondence between the first link information and the second link information
  • the LACP message is forwarded to the first node.
  • An embodiment of the present invention provides a relay node, including:
  • a transceiver module configured to receive a link aggregation control protocol LACP message, and configured to: according to the first link information between the first node and the relay node, and between the second node and the relay node Corresponding relationship of the second link information, the LACP packet sent by the first node by using the link corresponding to the first link information is forwarded to the second node, and the second node is passed by the first node according to the correspondence relationship The LACP packet sent by the link corresponding to the two-link information is forwarded to the first node;
  • An acquiring module configured to acquire, according to the LACP packet sent by the first node, the first link information between the relay node and the first node, and obtain the LACP packet sent by the second node Second link information between the relay node and the second node;
  • An embodiment of the present invention further provides an LACP negotiation processing system, including a first node, a second node, and the foregoing relay node.
  • the embodiment of the present invention obtains link information according to the received LACP packet sent by the first node and the second node, and establishes a first link between the first node and the relay node.
  • Corresponding relationship between the information and the second link information between the second node and the relay node, and the corresponding relationship can be used to establish a one-to-one LACP packet transmission and reception relationship between the ports of the indirectly connected node, LACP valid negotiation when a link aggregation group is established between nodes.
  • FIG. 1 is a flowchart of an embodiment of an LACP negotiation processing method according to the present invention
  • 2 is a schematic diagram of a connection structure between nodes in FIG. 1;
  • FIG. 3 is a flowchart of another embodiment of a LACP negotiation processing method according to the present invention.
  • FIG. 4 is a detailed flowchart of a relay node forwarding a LACP packet according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of an embodiment of a relay node according to the present invention.
  • FIG. 6 is a schematic structural diagram of another embodiment of a relay node according to the present invention. detailed description
  • FIG. 1 is a flowchart of an embodiment of a LACP negotiation processing method according to the present invention.
  • FIG. 2 is a schematic diagram of a connection structure between nodes in FIG. 1. As shown in FIG. 1 and FIG. 2, the method in this embodiment includes:
  • Step 101 The relay node receives the link aggregation control protocol LACP packet.
  • relay nodes are often used to forward data.
  • Establishing a link aggregation group between indirectly connected nodes can increase the bandwidth of links between non-directly connected nodes and improve the link. reliability.
  • the numbers 1-8 in the figure respectively indicate the port numbers of the physical ports of the corresponding nodes, and the four circles represent the finally formed link aggregation group, between the first node A and the second node C that are not directly connected.
  • a port on the first node A sends LACP packets after LACP is enabled to notify the second node C of the system priority, system MAC address, port priority, port number, and Operation Key, this information is generally carried in the basic field of the LACPDU.
  • the LACP packet sent by the first node A is forwarded to the second node C by the relay node B.
  • the second node C After receiving the LACP packet, the second node C transmits the information carried in the LACP packet and the local end saved by the second node C.
  • the port information is compared to select the ports that can be aggregated from these ports.
  • the local port saved by the second node is the port of the second node C that receives the LACP packet sent by the first node A, and the information of the local port is the system priority, system MAC address, and port of the second node. Information such as priority, port number, and operation key.
  • the second node C compares the port information of the first node with the port information of the local port to determine whether the port can join the local node and which port can join the link aggregation group.
  • a port on the second node C also sends an LACP packet to advertise the information of the local end to the first node A, and the relay node B forwards the LACP packet sent by the second node C to the first node A.
  • the node A After receiving the LACP packet, the node A performs the same processing, that is, the first node A is in the packet according to the packet.
  • the carried information selects a port that can be aggregated in the port of the first node A, so that the first node A and the second node C can agree to join or exit a dynamic link aggregation group, that is, the two parties send and receive through each other.
  • LACP packets are negotiated by LACP to form a link aggregation group between indirectly connected devices. Similarly, when the aggregation conditions change, the link aggregation group can be automatically adjusted or dissipated through LACP negotiation. During the establishment or disassembly of the link aggregation group, for the first node A and the second node C, the operation performed is still a negotiation process based on the LACP standard protocol.
  • the relay node may divide the obtained link information into two groups according to the source MAC address carried in the LACP packet, and one group is the link information between the first node and the relay node, and is stored in the first In the link information table, the other group is the link information between the second node and the relay node, and is stored in the second link information table.
  • the physical receiving port of the relay node reports the received LACP packet to the CPU, and the CPU obtains the corresponding receiving port number and parses the LACP packet to obtain the source MAC address and the sending on the sending device.
  • the LACP message The port number of the port.
  • the acquired link information may be stored in a link information table in the form of a triplet.
  • the relay node determines that the triplet ⁇ 3, MAC2, 4 ⁇ in the second link information table has a correspondence with the triplet ⁇ 6, MACK 5 ⁇ in the first link information table. Then, the relay node continues to determine the triplet ⁇ 7, MAC2, 8 ⁇ , and if the triplet ⁇ 7, MAC2, 8 ⁇ does not have any correspondence with any triplet in the first link information table, then three The tuple is used as the second triple. Afterwards, the relay node may associate the acquired second triplet with the first triplet, and may also store the corresponding relationship, so that the next relay node receives the first node or the second node. When the LACP packet is sent, the packet is directly forwarded to the peer node.
  • Step 103 The relay node establishes a correspondence between the first link information and the second link information.
  • the relay node After the third node in the first link information table and the second link information table, the relay node establishes the corresponding relationship, the triplet that has established the corresponding relationship may be deleted from the corresponding link information table. Therefore, there is no correspondence between any triplet in the first link information table and any triplet in the second link information table, and subsequent establishment of other triples in the link information table When the relationship is corresponding, any one of them can be selected directly, thereby reducing the process of finding the corresponding triplet when the corresponding relationship is established, and improving the efficiency of the negotiation process.
  • the triplet in the first link information table is used to record the communication link between one port of the first node and one port of the relay node
  • the second link information table The triplet in the middle is used to record a communication link between a port of the second node and a port of the relay node, and the relay node passes a certain triplet and the second chain in the first link information table.
  • a corresponding triplet in the road information table establishes a correspondence between a port of the first node and a port of the second node.
  • Step 104 The relay node forwards the LACP packet sent by the first node to the second node according to the correspondence, and passes the second node to the second chain according to the correspondence. Chain corresponding to road information The LACP packet sent by the route is sent to the first node.
  • the relay node After the corresponding relationship of the link information is established in the foregoing step 103, the relay node acquires the second link information according to the corresponding relationship, and forwards the LACP packet sent by the first node that is received by the link corresponding to the second link information. To the second node, the relay node passes the LACP packet sent by the second node that the relay node receives according to the established correspondence, that is, the LACP packet sent by the second node through the link corresponding to the second link information. The link corresponding to the first link information is forwarded to the first node, so that the second node and the first node receive the LACP packet of the peer end, and determine the port that the local end can aggregate, so that the two parties can join the link to the respective port. The aggregation group agrees, and finally a link aggregation group is established between the first node and the second node.
  • the relay node B can receive and forward the LACP packet exchanged between the indirectly connected first node A and the second node C, so that the non-directly connected nodes establish a link aggregation group through negotiation.
  • the first node, the second node, and the relay node may be switch devices in the communication network.
  • a plurality of relay devices may be disposed between two devices communicating with each other, and each of the relay devices is processed according to the method of the foregoing embodiment, and two of the long-distance communication can be ensured.
  • a link aggregation group is set up between the end devices to implement long-distance transmission of data packets.
  • the relay node can ensure that the LACP packets between the indirectly connected nodes are sent and received between the one-to-one ports according to the first link information and the second link information that is associated with the first link information, thereby ensuring indirect connection.
  • the port corresponding to the sending port number 8 in the second node C receives the LACP message.
  • the port corresponding to the port number 8 is sent to the first node A
  • the LACP packet is received by the port corresponding to the port number 1 according to the corresponding relationship. Therefore, the indirectly connected node can be ensured by the above method. Inter-LACP packets are sent and received between one-to-one ports, ensuring efficient LACP negotiation between indirectly connected nodes.
  • the relay node obtains the link information according to the received LACP packet sent by the first node and the second node, and establishes the first link information and the second node between the first node and the relay node.
  • the correspondence between the second link information of the nodes is used to establish a one-to-one LACP packet transmission and reception relationship between the ports of the indirectly connected nodes to ensure link aggregation between the indirectly connected nodes.
  • the group's LACP is effectively negotiated.
  • FIG. 3 is a flowchart of another embodiment of the LACP negotiation processing method according to the present invention. As shown in FIG. 3, in this embodiment, the relay node performs data packet forwarding by using the link aggregation group established by the method shown in FIG. The method of this embodiment includes:
  • Step 201 A part of the port of the relay node is configured as a first Ethernet port aggregation group that communicates with the first node, and the remaining ports of the relay node are configured as a second Ethernet port aggregation group that communicates with the second node.
  • Ethernet port aggregation group (Eth-trunk) port.
  • the relay node configures some of its ports as Eth-trunkl, and the remaining ports are configured as Eth_trunk2.
  • Eth_trunk two physical ports with port numbers 2 and 6 are configured as Eth-trunkl.
  • the port number is two physical ports 3 and 7 are arranged Eth-t rU nk2, the two ports are connected to the two ports of the node.
  • the relay node can perform load balancing on the Eth-trunk ports.
  • Step 202 The relay node forwards the LACP packet exchanged between the first node and the second node, so that the first node and the second node perform negotiation processing to establish a link aggregation group.
  • the relay node can be based on a packet attribute, such as a content feature of a specific field of the packet, such as a destination MAC address being a multicast address 0x01-80-c2-00-00-02, and a Layer 2 protocol type field being 0x8809 or The protocol subtype is 0x01, and it is determined whether the received packet is an LACP packet or a user data packet.
  • a packet attribute such as a content feature of a specific field of the packet, such as a destination MAC address being a multicast address 0x01-80-c2-00-00-02, and a Layer 2 protocol type field being 0x8809 or The protocol subtype is 0x01, and it is determined whether the received packet is an LACP packet or a user data packet.
  • the data sent and received by the first node A will be connected to the end of the first Ethernet port aggregation group Eth-trunkl. Between the port transfer, the data transfer node C between the transceiver port nk2 will rU second Ethernet port polymerizable Eth-t. Therefore, when two devices that are not directly connected need to travel longer distances, the two devices that are not directly connected can establish a link aggregation group by using the above negotiation method by multiple relay switch devices, which is equivalent to serial.
  • the connected link aggregation group can complete the transmission of user data between long-distance devices.
  • Step 503 Obtain a triplet ⁇ receive port number, source MAC address, and send port number ⁇ according to the received LACP message.
  • Step 505 Determine whether the triplet in the first link information table has a corresponding triplet in the second link information table. If yes, go to step 509. Otherwise, go to step 506.
  • Step 506 Determine whether a third triplet in the second link information table has a corresponding triplet in the first link information table. If not, go to step 508. Otherwise, go to step 507.
  • Step 508 Establish a correspondence between the certain triplet in the second link information table and the triplet in the first link information table, and save the corresponding relationship.
  • the transceiver module 11 in the relay node receives the LACP packet sent by the non-directly connected node, and then uploads the LACP packet to the obtaining module 12, and the obtaining module 12 obtains the end node according to the LACP packet.
  • the first link information corresponding to the link between the relay nodes, and one link information is selected as the second link information from the link information between the other end node and the relay node; the processing module 13 will obtain The second link information is associated with the first link information, and the transceiver module 11 forwards the LACP message to the opposite node according to the corresponding relationship.
  • the link corresponding to the link information is unique, and the two-link information is in a one-to-one correspondence. Therefore, the two-node nodes that are indirectly connected can perform effective LACP packets to complete the LACP negotiation process. Aggregate groups, so that subsequent user data services can be transmitted in the established link aggregation group.
  • the relay node in this embodiment may be used to perform the method in the embodiment shown in FIG. 1 , and the working principle and the technical effect achieved are similar to the method embodiment, and details are not described herein again.
  • the embodiment of the present invention may further include a configuration module 15 configured to configure a partial port of the relay node as a first Ethernet port aggregation group that communicates with the first node, and the relay node The remaining ports are configured as a second Ethernet port aggregation group in communication with the second node.
  • the embodiment of the present invention further provides an LACP negotiation processing system, including: a first node, a second node, and a relay node as shown in FIG. 5 or FIG. 6, wherein the relay node is configured to relay the first node. Between the second node LACP packets and data packets transmitted.

Landscapes

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

Abstract

本发明实施例公开了一种LACP协商处理方法、中继节点及系统。中继节点接收LACP报文;中继节点根据LACP报文确定中继节点与第一节点之间的第一链路信息以及中继节点与第二节点之间的第二链路信息;中继节点建立第一链路信息和第二链路信息之间的对应关系;中继节点根据所述对应关系中继转发第一节点和第二节点发送的LACP报文以使第二节点与第一节点进行协商以建立链路聚合组。本发明实施例能够在非直连节点间有效协商建立LACP链路聚合组,并基于建立的链路聚合组实现数据报文在链路聚合组中的负载分担。

Description

LACP协商处理方法、 中继节点及系统
本申请要求于 2012年 4月 12日提交中国专利局、 申请号为 201210106745. 7、发明 名称为 " LACP协商处理方法、 中继节点及系统"的中国专利申请的优先权, 其全部内容 通过引用结合在本申请中。 技术领域
本发明涉及通信技术, 尤其涉及一种 LACP协商处理方法、 中继节点及系统。 背景技术
链路汇聚控制协议 (Link Aggregation Control Protocol , 以下简称: LACP ) 为 运行该协议的设备间交换数据提供一种端口协商方式。 两设备间基于 LACP建立链路聚 合组(Link Aggregation Group )后, 能够为两设备间的通信提供更高的带宽和可靠性。
现有技术中, 两设备间根据 LACP协商建立和维护链路聚合组是通过交互链路汇聚 控制协议数据单元 ( Link Aggregation Control Protocol Data Unit , 简称: LACPDU) , 即 LACP报文实现的。具体来说,一端设备的某个端口启用 LACP后,向对端设备发送 LACP 报文, 通告本端系统优先级、 系统媒体访问控制 (Media Access Control , 以下简称: MAC) 地址、 端口优先级、 端口号和操作 Key等信息, 对端设备接收到该 LACP报文后, 根据该 LACP报文中的上述信息选择出能够汇聚的端口, 两端设备都进行上述的操作后 双方可以对各自的某个端口的选中与否达成一致, 从而确定某条链路是否可以加入链路 聚合组。
但在实际应用中, 为了满足长距离设备间的互联, 时常需要采用中继设备进行数据 转发, 即非直连的场景, 因此, 如何在非直连设备间实现 LACP协商成为亟待解决的问 题。 发明内容
本发明实施例提供一种 LACP协商处理方法、 中继节点及系统, 用以提供一种能够 在非直连节点间 LACP协议有效协商方法。
为实现上述目的, 本发明提供一种 LACP协商处理方法, 包括:
中继节点接收链路汇聚控制协议 LACP报文;
所述中继节点根据第一节点发送的 LACP报文获取所述中继节点与所述第一节点之 间的第一链路信息, 以及根据第二节点发送的 LACP报文获取所述中继节点与所述第二 节点之间的链路信息;
所述中继节点建立所述第一链路信息和第二链路信息之间的对应关系;
所述中继节点根据所述对应关系将所述第一节点发送的 LACP报文转发给所述第二 节点, 以及根据所述对应关系将所述第二节点通过所述第二链路信息对应的链路发送的
LACP报文转发给所述第一节点。
本发明实施例提供一种中继节点, 包括:
收发模块, 用于接收链路汇聚控制协议 LACP报文; 以及用于根据第一节点与所述 中继节点之间的第一链路信息和第二节点与所述中继节点之间的第二链路信息的对应 关系将所述第一节点通过第一链路信息对应的链路发送的 LACP报文转发给第二节点, 以及根据所述对应关系将所述第二节点通过所述第二链路信息对应的链路发送的 LACP 报文转发给所述第一节点;
获取模块, 用于根据所述第一节点发送的 LACP报文获取所述中继节点与所述第一 节点之间的第一链路信息, 以及根据所述第二节点发送的 LACP报文获取所述中继节点 与所述第二节点之间的第二链路信息;
处理模块, 用于建立所述第一链路信息和所述第二链路信息之间的对应关系。 本发明实施例还提供一种 LACP协商处理系统, 包括第一节点、 第二节点以及上述 的中继节点。
由上述技术方案可知,本发明实施例通过中继节点根据接收的第一节点和第二节点 发送的 LACP报文获取链路信息, 并建立第一节点与中继节点之间的第一链路信息与第二 节点与中继节点之间的第二链路信息的对应关系,应用该对应关系可实现在非直连节点 的端口间建立一对一的 LACP报文收发关系, 保证在非直连节点间建立链路聚合组时的 LACP有效协商。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施例或现有 技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下面描述中的附图是本发 明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可 以根据这些附图获得其他的附图。
图 1为本发明 LACP协商处理方法一个实施例的流程图; 图 2为图 1中各节点间的连接结构示意图;
图 3为本发明 LACP协商处理方法另一个实施例的流程图;
图 4为本发明实施例中中继节点转发 LACP报文的详细流程图;
图 5为本发明中继节点的一个实施例的结构示意图;
图 6为本发明中继节点的另一个实施例的结构示意图。 具体实施方式
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发明实施例中 的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例 是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技 术人员在没有作出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范 围。
图 1为本发明 LACP协商处理方法一个实施例的流程图, 图 2为图 1中各节点间的 连接结构示意图, 如图 1和图 2所示, 本实施例的方法包括:
步骤 101、 中继节点接收链路汇聚控制协议 LACP报文。
网络通信中, 为了满足长距离节点间的互联, 常常采用中继节点对数据进行转发, 在非直连节点间建立链路聚合组可以增加非直连节点间链路的带宽和提高链路的可靠 性。 如图 2所示, 图中数字 1-8分别表示对应节点的物理端口的端口号, 四个圈表示最终 形成的链路聚合组, 非直连的第一节点 A和第二节点 C之间建立链路聚合组时, 首先第一 节点 A上的某个端口在启用 LACP后发送 LACP报文, 以向第二节点 C通告本端的系统优先 级、 系统 MAC地址、 端口优先级、 端口号和操作 Key, 这些信息一般携带在 LACPDU的基本 字段中。 第一节点 A发出的 LACP报文通过中继节点 B转发给第二节点 C, 第二节点 C接收到 LACP报文后, 将 LACP报文中携带的信息与第二节点 C所保存的本端端口的信息进行比较 以从这些端口中选择能够汇聚的端口。 第二节点所保存的本端端口为第二节点 C上接收 到第一节点 A发送的 LACP报文的端口, 其本端端口的信息为第二节点所在端的系统优先 级、 系统 MAC地址、 端口优先级、 端口号和操作 Key等信息。 第二节点 C接收到 LACP报文 后,将第一节点的端口信息与本端端口的端口信息进行比较以确定本端有无端口可以加 入以及哪一个端口能够加入链路聚合组。 同样, 第二节点 C上的某个端口也发送 LACP报 文以向第一节点 A通告本端的信息, 中继节点 B将第二节点 C发送的 LACP报文转发给第一 节点 A后, 第一节点 A接收到 LACP报文后, 也进行同样的处理, 即第一节点 A根据报文中 携带的信息选择出第一节点 A的端口中能够汇聚的端口, 从而第一节点 A和第二节点 C可 以对各自的端口加入或退出某个动态链路聚合组达成一致, 即双方通过相互收发 LACP报 文进行 LACP协商形成非直连设备间的链路聚合组。 同样, 当聚合条件变化时, 还可以通 过 LACP协商自动调整或解散链路聚合组。 在链路聚合组的建立或解散过程中, 对于第一 节点 A和第二节点 C来说, 执行的操作仍然是基于 LACP标准协议的协商流程。
实际应用中, 中继节点可以对其接收到的各种报文进行监听, 本步骤中中继节点 B 通过对 LACP报文进行监听并进行相应的处理以使非直连的节点间能够有效地协商建立 链路聚合组。 具体来说, 当一端节点发送的 LACP报文到达时, 中继节点获取该 LACP报 文并根据该 LACP报文中携带的端口信息进行相应的处理后转发给另一端节点。 例如, 中继节点 B上的某一个端口接收到 LACP报文后,可以将该 LACP报文上报给中继节点上 的中央处理单元 (Central Processing Unit , 以下简称: CPU) , 由 CPU进行对报文进 行解析, 并根据解析结果进行后续处理。
步骤 102、所述中继节点根据第一节点发送的 LACP报文获取所述中继节点与所述第 一节点之间的第一链路信息, 以及根据第二节点发送的 LACP报文获取所述中继节点与 所述第二节点之间的第二链路信息。
链路信息为第一节点与中继节点间或第二节点与中继节点间链路对应的信息,可以 包括发送报文的端口的发送端口号、接收报文的端口的接收端口号以及发送报文的源节 点的源 MAC地址等。
本实施例中的链路信息包括发送 LACP报文的端口的发送端口号、接收 LACP报文的 端口的接收端口号以及发送报文的节点的源 MAC地址。本步骤中,中继节点 B接收到 LACP 报文后, 获取接收该 LACP报文的物理端口, 确定其对应的端口号, 同时获取该 LACP报 文中携带的第一节点 A的源 MAC地址和发送端口号, 即获取第一节点与中继节点间的第 一链路信息。 同样, 中继节点接收到第二节点 C发送的 LACP报文后也做同样的处理, 即获取第二节点与中继节点间的链路信息, 以下以 MAC1表示第一节点 A的 MAC地址, 以 MAC2表示第二节点 C的 MAC地址。
具体来说, 中继节点可以根据 LACP报文中携带的源 MAC地址的不同将其获取的链 路信息分成两组,一组为第一节点与中继节点间的链路信息,存储于第一链路信息表中; 另一组为第二节点与中继节点间的链路信息, 存储于第二链路信息表中。 实际应用中, 中继节点的物理接收端口将其接收的 LACP报文上报给 CPU, CPU获取对应的接收端口号, 同时解析 LACP报文, 获取其中携带的源 MAC地址和发送端设备上的发送该 LACP报文的 端口的发送端口号。 为方便存储链路信息, 可以将获取的链路信息以三元组的形式存储 在链路信息表中。 中继节点接收到某个 LACP报文后, 获取传输该 LACP报文的链路对应 的链路信息, 并将其存储为三元组 {接收端口号、 源 MAC地址、 发送端口号 }, 其中, 三 元组中的源 MAC地址用于标识发送 LACP报文的源端设备, 同时还可用于确定该三元组 所属的链路信息表, 以便于后续在分别位于两个链路信息表的三元组间建立对应关系。 如将根据第一节点发送的 LACP报文获取的三元组存储于与 MAC1对应的第一链路信息表 中,将根据第二节点发送的 LACP报文获取的三元组存储于与 MAC2对应的第二链路信息 表中,之后中继节点在第一链路信息表中的一个三元组和第二链路信息表中的一个三元 组之间建立三元组的对应关系。 具体来说, 中继节点获取第二链路信息的过程, 可以是 中继节点获取第一链路信息后, 从存储第二节点与中继节点之间链路信息的第二链路信 息表中获取一条链路的链路信息作为第二链路信息, 也可以是中继节点获取第一链路信 息后, 等待获取第二节点与中继节点之间的一条链路信息, 在获取第二节点与中继节点 之间的一条链路信息后, 直接将该链路信息作为第二链路信息。
其中, 中继节点获取第一链路信息的过程, 可以是一段时间内中继节点获取所有的 链路信息, 并存储于对应的第一链路信息表与第二链路信息表中后, 从第一链路信息表 中依次选择一条链路信息作为第一链路信息, 之后再根据上述的方法获取第二链路信 息。例如中继节点将其获取的第一节点与中继节点之间的链路信息对应的三元组存储到 第一链路信息表中,将第二节点与中继节点之间的链路信息对应的三元组存储待第二链 路信息表中,之后,中继节点从第一链路信息表中选择一条链路信息作为第一链路信息, 从第二链路信息表中选择一条链路信息或等待获取一条链路信息作为第二链路信息以 与第一链路信息建立对应关系。
具体应用中, 若中继节点将链路信息以上述的三元组形式存储时, 则中继节点接收 到第一节点发送的 LACP报文后,根据接收报文的接收物理端口及 LACP报文获取第一三 元组 { 2、 MACK 1}, 并根据 MAC1确定该第一三元组属于第一链路信息表后, 从第二链 路信息表中获取一个三元组作为第二三元组。如第二三元组可以为 { 3、 MAC2、 4}或者 { 7、 MAC2、 8}。 中继节点获取第二三元组的过程具体可以为: 中继节点在第二链路信息表中 根据接收端口号的大小或者发送端口号的大小依次判断每个三元组是否与第一链路信 息表中的某个三元组已存在对应关系,若查找到第二链路信息表中的某个三元组没有对 应的三元组, 则将该三元组作为第二三元组。 如中继节点经判断获知第二链路信息表中 的三元组{ 3、 MAC2、 4}已与第一链路信息表中的三元组 { 6、 MACK 5}存在对应关系, 则中继节点继续判断三元组 { 7、 MAC2、 8}, 若三元组{ 7、 MAC2、 8}与第一链路信息表 中的任一三元组没有建立对应关系, 则将三元组作为第二三元组。 之后, 中继节点就可 以将获取的第二三元组与第一三元组建立对应关系, 还可以将该对应关系进行存储, 以 便于下次中继节点接收到第一节点或第二节点发送的 LACP报文时直接利用该对应关系 将报文转发给对端节点。
步骤 103、 所述中继节点建立所述第一链路信息和所述第二链路信息之间的对应关 系。
如上所述, 中继节点获取第一链路信息和第二链路信息后, 建立二者的对应关系, 以便于中继节点后续根据对应关系转发第一节点通过第一链路信息对应的链路发送的 LACP报文给第二节点,以及根据该对应关系转发第二节点通过第二链路信息对应的链路 发送的 LACP报文给第一节点。 上述建立链路信息的对应关系后, 中继节点可以将该对 应关系进行存储, 以便于后续中继节点直接利用该对应关系转发 LACP报文。 中继节点 对对应关系的存储, 具体可以为: 中继节点分别在第一链路信息表和第二链路信息表中 的三元组设置相互对应关系的标识, 也可以将已建立对应关系的三元组另存到其他的存 储单元中, 后续中继节点可以直接从另存的存储单元中查找对应关系获取链路信息。
在上述的第一链路信息表和第二链路信息表中的三元组, 中继节点建立起对应关系 后, 可以将已建立对应关系的三元组从对应的链路信息表中删除, 从而使得第一链路信 息表中的任一三元组与第二链路信息表中的任一三元组之间都没有对应关系, 当后续建 立链路信息表中其他三元组的对应关系时, 可直接从中选出任意一个即可, 从而可减少 后续建立对应关系时的查找未建立对应关系三元组的过程, 提高协商处理过程的效率。
根据上述对三元组的描述可知,第一链路信息表中的三元组用于记录第一节点的一 个端口与中继节点的一个端口之间的通信链路,第二链路信息表中的三元组用于记录第 二节点的一个端口与中继节点的一个端口之间的通信链路, 中继节点通过将第一链路信 息表中的某个三元组与第二链路信息表中的某个三元组建立起对应关系实现了第一节 点的一个端口与第二节点的一个端口的对应, 当第一节点的某个端口发起 LACP协商请 求时, 其发送的 LACP报文都能够被第二节点上的同一个端口接收, 同样, 第二节点上 的该端口向第一节点发送的 LACP报文也会被第一节点的同一个端口接收, 从而保证了 非直连设备间有效进行 LACP协商处理。
步骤 104、所述中继节点根据所述对应关系将所述第一节点发送的 LACP报文转发给 所述第二节点, 以及根据所述对应关系将所述第二节点通过所述第二链路信息对应的链 路发送的 LACP报文发送给第一节点。
在上述步骤 103建立起链路信息的对应关系后, 中继节点根据对应关系获取第二链 路信息, 将其接收的第一节点发送的 LACP报文通过第二链路信息对应的链路转发给第 二节点, 同样, 中继节点将其接收的第二节点发送的 LACP报文根据已建立的对应关系, 即将第二节点通过第二链路信息对应的链路发送的 LACP报文, 通过第一链路信息对应 的链路转发给第一节点, 以使第二节点及第一节点接收到对端的 LACP报文后确定本端 能够汇聚的端口, 从而双方对各自端口能否加入链路聚合组达成一致, 最终在所述第一 节点与第二节点之间建立链路聚合组。
本实施例中, 中继节点 B可以接收并转发非直连的第一节点 A和第二节点 C之间交 互的 LACP报文以使非直连的节点间通过协商建立链路聚合组, 其中, 第一节点、 第二 节点和中继节点可以为通信网中的交换机设备。 在实际的长距离的通信网中, 可以在相 互通信的两端设备之间布设多个中继设备, 每个中继设备按照上述本实施例的方法进行 处理, 可以保证在长距离通信的两端设备间建立链路聚合组, 从而实现数据报文的长距 离传输。
本实施例中中继节点根据第一链路信息及与其建立对应关系的第二链路信息,可以 保证非直连节点间的 LACP报文在一对一的端口间收发, 从而保证非直连节点间建立链 路聚合组时的有效协商。 例如, 中继节点接收到第一节点 A的发送端口号 1对应的端口 发送的 LACP报文时, 建立了第一三元组 { 2、 MACK 1}与第二三元组 { 7、 MAC2、 8}之 间的对应关系, 并将 LACP报文通过接收端口号 7对应的端口转发给第二节点 C,根据第 二三元组, 第二节点 C中发送端口号 8对应的端口接收到该 LACP报文。 同样, 当发送 端口号 8对应的端口向第一节点 A发送 LACP报文时, 根据对应关系, LACP报文会被发 送端口号 1对应的端口接收到, 因此通过上述方法可以保证非直连节点间 LACP报文在 一对一的端口间收发, 从而保证了非直连节点间 LACP协商的有效进行。
本实施例通过中继节点根据接收的第一节点和第二节点发送的 LACP报文获取链路 信息, 并建立第一节点与中继节点之间的第一链路信息与第二节点与中继节点之间的第 二链路信息的对应关系, 应用该对应关系可实现在非直连节点的端口间建立一对一的 LACP报文收发关系, 保证在非直连节点间建立链路聚合组的 LACP有效协商。
在实际应用中, 非直连的节点间可以通过上述已建立的链路聚合组进行传输数据报 文, 而且通过配置中继节点上的端口为以太网端口聚合组可以实现数据报文转发时的负 载分担。 图 3为本发明 LACP协商处理方法另一个实施例的流程图, 如图 3所示, 本实施例 中, 中继节点利用图 1所示的方法建立的链路聚合组后进行数据报文转发, 本实施例的 方法包括:
步骤 201、 中继节点的部分端口配置为与第一节点通信的第一以太网端口聚合组, 所述中继节点的其余端口配置为与第二节点通信的第二以太网端口聚合组。
交换机设备当需要出、 入流量在多个以太网端口间进行负载分担时, 可以配置以太 网端口聚合组 (Eth-trunk ) 端口。 本实施例中, 中继节点将其部分端口配置为 Eth-trunkl , 其余的端口配置为 Eth_trunk2, 如图 2所示, 将端口号为 2和 6的两个物 理端口配置为 Eth-trunkl , 该两端口分别与第一节点的两个端口连接, 将端口号为 3 和 7的两个物理端口配置为 Eth-trUnk2,该两端口分别与第二节点的两个端口连接。当 配置好 Eth-trunk后, 中继节点就可对其转发的数据报文在 Eth-trunk端口间进行负载 分担。
步骤 202、所述中继节点转发第一节点和第二节点间交互的 LACP报文以使所述第一 节点和第二节点进行协商处理建立链路聚合组。
中继节点通过上述图 1 所示的协商处理方法转发第一节点和第二节点交互的 LACP 报文, 以使非直连的第一节点和第二节点之间建立传输用户数据报文的链路聚合组, 根 据已建立的链路聚合组和配置的以太网端口聚合组, 中继节点就可以对其转发的数据报 文进行有效地负载分担。
步骤 203、 中继节点根据所述第二以太网端口聚合组进行负载分担后将所述第一节 点发送的数据报文转发给所述第二节点; 所述中继节点根据所述第一以太网端口聚合组 进行负载分担后将所述第二节点发送的数据报文转发给所述第一节点。
具体来说, 中继节点能够根据报文属性, 例如报文的特定字段的内容特征, 如目的 MAC为组播地址 0x01-80-c2-00-00-02, 二层协议类型字段为 0x8809或者协议子类型为 0x01 , 判断出其接收的报文是 LACP报文还是用户数据报文。
当中继节点收发的报文是协议交互层面的 LACPDU时, 中继节点能够建立第一节点 与第二节点间收发 LACPDU的一对一的端口关系,保证非直连节点间交互的 LACPDU是在 一对一的端口间收发, 从而保证非直连节点间 LACP有效地协商建立链路聚合组; 当中 继节点收发的报文是用户业务数据报文时, 在配置的 Eth-trunk作用下, 用户业务数据 报文的转发也能够在已建立的链路聚合组中有效地进行负载分担。
如图 2所示, 第一节点 A收发的数据将与第一以太网端口聚合组 Eth-trunkl的端 口之间传送, 第二节点 C收发的数据将与第二以太网端口聚合组 Eth-trUnk2的端口之 间传送。 因此当非直连的两个设备传输数据需经过更长距离时, 非直连的两个设备可以 通过其间的多个中继交换机设备采用上述的协商方法建立链路聚合组,相当于串行连接 的链路聚合组, 从而可以完成用户数据在长距离设备间的传输。
本实施例在上述实施例进行的 LACP协商处理建立链路聚合组的基础上, 进一步, 中继节点通过将其端口配置为两个以太网端口聚合组, 当转发数据报文时根据以太网端 口聚合组可以在已建立的链路聚合组中实现负载分担。 因此, 本实施例的方法从协议层 面来说, 能够保证非直连节点间的 LACP报文一对一的有效协商, 从数据转发层面来说, 能够保证数据报文在链路中的有效负载分担。 通过在每个中继节点上配置两个 Eth-trunk分别与其两端的节点连接, 根据本实施例方法还可建立更长距离的链路聚合 组, 从而实现长距离的数据传输。
图 4为本发明实施例中中继节点转发 LACP报文的详细流程图, 以下结合图 4对上 述图 1所示实施例进行详细的说明, 本发明实施例中, 中继节点运行过程中进行的操作 包括:
步骤 501、 是否监听到 LACP报文, 若监听到, 则执行步骤 502, 否则继续监听。 步骤 502、 将 LACP报文上报给 CPU进行报文解析。
步骤 503、 根据接收的 LACP报文获取三元组{接收端口号、 源 MAC地址、 发送端口 号}。
步骤 504、 将三元组{接收端口号、 源 MAC地址、 发送端口号 }存储到对应于该 LACP 报文的源 MAC地址的链路信息表中, 即将步骤 503获取的三元组对应存储于第一链路信 息表或第二链路信息表中。
步骤 505、 判断第一链路信息表中的三元组在第二链路信息表中是否存在对应的三 元组, 若存在, 则执行步骤 509, 否则执行步骤 506。
步骤 506、 判断第二链路信息表中某个三元组在第一链路信息表中是否存在对应的 三元组, 若不存在, 则执行步骤 508, 否则, 执行步骤 507。
步骤 507、 参考第二链路信息表中三元组的发送端口号大小获取第二链路信息表中 的下一个三元组, 并继续执行步骤 506。
步骤 508、 将第二链路信息表中的该某个三元组与第一链路信息表中的该三元组建 立对应关系并保存该对应关系。
步骤 509、 以第二链路信息表中与第一链路信息表中该三元组相对应的三元组的接 收端口号对应的端口为转发端口将接收到的 LACP报文进行中继转发。
在非直连设备上建立基于 LACP的链路聚合组的组网场景中, 通过中继设备执行上 述操作可以为启用 LACP协议的两侧设备上的端口建立一对一的对应关系, 并依照该对 应关系可以进行 LACP报文的有效中继转发, 从而实现在非直连设备间建立基于 LACP的 链路聚合组以传输用户数据业务。
图 5为本发明中继节点的一个实施例的结构示意图, 如图 5所示, 本实施例的中继 节点包括: 收发模块 11、 获取模块 12和处理模块 13, 其中, 收发模块 11, 用于接收第 一节点和第二节点发送的链路汇聚控制协议 LACP报文; 以及用于根据所述第一节点与 所述中继节点之间的第一链路信息和所述第二节点与所述中继节点之间的第二链路信 息的对应关系将所述第一节点通过第一链路信息对应的链路发送的 LACP报文转发给第 二节点, 以及根据所述对应关系将所述第二节点通过所述第二链路信息对应的链路发送 的 LACP报文发送给第一节点, 以使所述第二节点与所述第一节点进行协商以在所述第 一节点与第二节点之间建立链路聚合组; 获取模块 12, 用于根据所述第一节点发送的 LACP报文,获取所述中继节点与所述第一节点之间的第一链路信息, 以及根据所述第二 节点发送的 LACP报文获取所述中继节点与所述第二节点之间的第二链路信息; 处理模 块 13, 用于建立所述第一链路信息和所述第二链路信息之间的对应关系。
本实施例中, 中继节点中的收发模块 11接收到非直连的一端节点发送的 LACP报文 后, 将其上传给获取模块 12, 获取模块 12根据该 LACP报文, 获取该端节点与中继节点 之间的链路对应的第一链路信息, 并从另一端节点与中继节点之间的链路信息中选出一 条链路信息作为第二链路信息; 处理模块 13将获取的第二链路信息与第一链路信息建 立对应关系, 收发模块 11根据该对应关系将 LACP报文中继转发给对端节点。 由于链路 信息对应的端口是唯一的, 且两链路信息是一对一的对应关系, 使得非直连的两端节点 之间可以进行有效的交互 LACP报文以完成 LACP协商处理建立链路聚合组, 从而后续用 户数据业务能够在已建立的链路聚合组中传输。
本实施例中的中继节点可用于执行上述图 1所示实施例的方法,其工作原理与达到 的技术效果与方法实施例类似, 具体细节不再赘述。
图 6为本发明中继节点的另一个实施例的结构示意图, 如图 6所示, 本实施例在上 述图 5所示实施例的基础上, 进一步包括: 存储器 14, 用于存储第一节点与中继节点之 间的链路信息以及第二节点与中继节点之间的链路信息。 所述获取模块 12在获取第二 链路信息时, 可以从所述存储器 14 已存储的所述中继节点与所述第二节点之间的链路 信息中获取一条未建立对应关系的链路信息作为与所述第一链路信息建立对应关系的 第二链路信息。 其获取第二链路信息的过程, 可以为根据链路信息的接收端口号或者发 送端口号的大小从所述第二节点与所述中继节点之间的多条链路信息中选择一条未建 立对应关系的链路信息作为第二链路信息。
具体来说, 当收发模块 11接收到一端节点的 LACP报文时, 获取模块 12获取传送 该 LACP报文的链路的链路信息, 存储器 14根据发送该 LACP报文的源 MAC地址将该链 路信息存储于对应的链路信息表中, 之后获取模块 12分别从两个链路信息表中获取待 建立对应关系的第一链路信息和第二链路信息, 处理模块 13将该第一链路信息与第二 链路信息建立一对一的对应关系。 存储器 14还可以将已建立的一对一的对应关系进行 保存。 从而收发模块 11后续接收到一端节点的相应端口发送的 LACP报文时, 可以根据 该对应关系将其转发给对端节点的对应端口, 从而两端节点可以根据接收到的对端节点 的 LACP报文及本端端口信息确定哪些端口可以加入链路聚合组
建立起链路聚合组后,两端节点就可以利用已建立的链路聚合组在聚合组的端口间 进行负载分担传输用户数据报文。本发明实施例中, 还可以进一步包括配置模块 15, 用 于将所述中继节点的部分端口配置为与所述第一节点通信的第一以太网端口聚合组, 以 及将所述中继节点的其余端口配置为与所述第二节点通信的第二以太网端口聚合组。非 直连节点间传输用户数据报文时, 中继节点的收发模块 11 根据配置模块 15 已配置的 Eth-trunk端口配合建立的链路聚合组实现数据报文在链路聚合组中进行负载分担。
实际应用中, 如上述方法实施例所述, 链路信息可以存储为三元组的形式, 存储器 将根据从第一节点发送的 LACP报文获取的三元组存储于第一链路信息表中, 将根据从 第二节点发送的 LACP报文获取的三元组存储于第二链路信息表中, 获取模块获取待建 立一对一对应关系的第一三元组和第二三元组, 处理模块根据获取模块获取的第一三元 组和第二三元组逐个建立第一链路信息表中的三元组与第二链路信息表中三元组的对 应关系以实现第一节点和第二节点发送 LACP报文是在一对一的端口间收发的, 从而实 现非直连的第一节点和第二节点的交互协商建立链路聚合组。 根据配置的 Eth-tr皿 k, 收发模块可以将其接收的一端节点发送的数据报文进行负载分担后转发给对端节点。
本实施例可用于执行上述图 3所示实施例的方法,其工作原理与达到的技术效果与 方法实施例类似, 不再赘述。
本发明实施例还提供一种 LACP协商处理系统, 包括: 第一节点、 第二节点和如上 述图 5或图 6中的中继节点,其中中继节点用于中继转发所述第一节点与第二节点之间 传送的 LACP报文和数据报文。
本实施例所述 LACP协商处理系统可用于完成上述任一实施例的方法, 其工作原理 与达到的技术效果类似, 不再赘述。
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤可以通过程 序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读取存储介质中, 该程序 在执行时, 执行包括上述方法实施例的步骤; 而前述的存储介质包括: R0M、 RAM, 磁碟 或者光盘等各种可以存储程序代码的介质。
最后应说明的是: 以上实施例仅用以说明本发明的技术方案而非对其进行限制, 尽 管参照较佳实施例对本发明进行了详细的说明, 本领域的普通技术人员应当理解: 其依 然可以对本发明的技术方案进行修改或者等同替换, 而这些修改或者等同替换亦不能使 修改后的技术方案脱离本发明技术方案的精神和范围。

Claims

权利要求
1、 一种 LACP协商处理方法, 其特征在于, 包括:
中继节点接收链路汇聚控制协议 LACP报文;
所述中继节点根据第一节点发送的 LACP报文获取所述中继节点与所述第一节点之 间的第一链路信息, 以及根据第二节点发送的 LACP报文获取所述中继节点与所述第二 节点之间的第二链路信息;
所述中继节点建立所述第一链路信息和第二链路信息之间的对应关系;
所述中继节点根据所述对应关系将所述第一节点发送的 LACP报文转发给所述第二 节点, 以及根据所述对应关系将所述第二节点通过所述第二链路信息对应的链路发送的 LACP报文转发给所述第一节点。
2、 根据权利要求 1所述的方法, 其特征在于,
所述中继节点根据第二节点发送的 LACP报文获取所述中继节点与所述第二节点之 间的第二链路信息, 具体为:
所述中继节点根据第二节点的不同端口发送的 LACP报文获取所述中继节点与所述 第二节点之间的多条链路信息;
所述中继节点存储所述中继节点与所述第二节点之间的多条链路信息;
所述中继节点从已存储的所述中继节点与所述第二节点之间的多条链路信息中获 取一条未建立对应关系的链路信息作为与所述第一链路信息建立对应关系的第二链路 信息。
3、根据权利要求 2所述的方法, 其特征在于, 所述链路信息包括: LACP报文的发 送端口号、 接收端口号以及源 MAC地址;
所述中继节点根据第一节点发送的 LACP报文获取所述中继节点与所述第一节点之 间的第一链路信息, 包括:
所述中继节点获取第一节点发送的 LACP报文中包含的第一节点的源 MAC地址和所 述第一节点的发送端口号, 并确定接收所述第一节点发送的 LACP报文的端口的接收端 口号;
所述中继节点根据所述第二节点的不同端口发送的 LACP报文获取所述中继节点与 所述第二节点之间的多条链路信息, 包括:
所述中继节点获取所述第二节点发送的 LACP报文中包含的第二节点的源 MAC地址 和所述第二节点中发送 LACP报文的端口的发送端口号, 并确定接收所述第二节点发送 的 LACP报文的端口的接收端口号。
4、 根据权利要求 3所述的方法, 其特征在于, 所述中继节点从已存储的所述中继 节点与所述第二节点之间的多条链路信息中获取一条未建立对应关系的链路信息作为 与所述第一链路信息建立对应关系的第二链路信息, 具体为:
所述中继节点根据链路信息的接收端口号或发送端口号的大小, 从已存储的所述第 二节点与所述中继节点之间的多条链路信息中选择一条未建立对应关系的链路信息作 为与所述第一链路信息建立对应关系的第二链路信息。
5、 根据权利要求广 4中任一项所述的方法, 其特征在于, 所述中继节点的部分端 口配置为与所述第一节点通信的第一以太网端口聚合组,所述中继节点的其余端口配置 为与所述第二节点通信的第二以太网端口聚合组;
所述方法, 还包括:
所述中继节点根据所述第二以太网端口聚合组进行负载分担后将所述第一节点发 送的数据报文转发给所述第二节点;
所述中继节点根据所述第一以太网端口聚合组进行负载分担后将所述第二节点发 送的数据报文转发给所述第一节点。
6、 一种中继节点, 其特征在于, 包括:
收发模块, 用于接收链路汇聚控制协议 LACP报文; 以及用于根据第一节点与所述 中继节点之间的第一链路信息和第二节点与所述中继节点之间的第二链路信息的对应 关系将所述第一节点通过第一链路信息对应的链路发送的 LACP报文转发给第二节点, 以及根据所述对应关系将所述第二节点通过所述第二链路信息对应的链路发送的 LACP 报文转发给所述第一节点;
获取模块, 用于根据所述第一节点发送的 LACP报文, 获取所述中继节点与所述第 一节点之间的第一链路信息, 以及根据所述第二节点发送的 LACP报文获取所述中继节 点与所述第二节点之间的第二链路信息;
处理模块, 用于建立所述第一链路信息和所述第二链路信息之间的对应关系。
7、 根据权利要求 6所述的中继节点, 其特征在于, 还包括: 存储器, 用于存储第 一节点与中继节点之间的链路信息以及第二节点与中继节点之间的链路信息;
所述获取模块, 具体用于根据所述第一节点发送的 LACP报文获取所述中继节点与 所述第一节点之间的第一链路信息后, 从所述存储器已存储的所述中继节点与所述第二 节点之间的多条链路信息中获取一条未建立对应关系的链路信息作为与第一链路信息 建立对应关系的第二链路信息。
8、根据权利要求 7所述的中继节点, 其特征在于, 链路信息包括: LACP报文的发 送端口号、 接收端口号以及源 MAC地址;
所述获取模块, 具体用于获取所述第一节点发送的 LACP报文中包含的第一节点的 源 MAC地址和所述第一节点的发送端口号, 并确定接收所述第一节点发送的 LACP报文 的端口的接收端口号; 以及用于获取所述第二节点发送的 LACP报文中包含的第二节点 的源 MAC地址和所述第二节点的发送端口号, 并确定接收所述第二节点发送的 LACP报 文的端口的接收端口号。
9、 根据权利要求 8所述的中继节点, 其特征在于,
所述获取模块, 具体用于根据所述第一节点发送的 LACP报文获取所述中继节点与 所述第一节点之间的第一链路信息后,根据链路信息的接收端口号或者发送端口号的大 小从所述第二节点与所述中继节点之间的多条链路信息中选择一条未建立对应关系的 链路信息作为与所述第一链路信息建立对应关系的第二链路信息。
10、根据权利要求 6 中任一项所述的中继节点, 其特征在于, 还包括: 配置模块, 用于将所述中继节点的部分端口配置为与所述第一节点通信的第一以太网端口聚合组, 以及将所述中继节点的其余端口配置为与所述第二节点通信的第二以太网端口聚合组; 所述收发模块,还用于根据所述第一以太网端口聚合组进行负载分担后将所述第二 节点发送的数据报文转发给所述第一节点; 以及根据所述第二以太网端口聚合组进行负 载分担后将所述第一节点发送的数据报文转发给所述第二节点。
11、 一种 LACP协商处理系统, 包括第一节点和第二节点, 其特征在于, 所述系统 还包括如权利要求 6〜10中任一项所述的中继节点。
PCT/CN2012/084270 2012-04-12 2012-11-08 Lacp协商处理方法、中继节点及系统 WO2013152589A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP12874189.9A EP2816772B1 (en) 2012-04-12 2012-11-08 Lacp negotiation processing method, relay node and system
US14/489,754 US9461928B2 (en) 2012-04-12 2014-09-18 LACP negotiation processing method, relay node, and system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210106745.7A CN102647355B (zh) 2012-04-12 2012-04-12 Lacp协商处理方法、中继节点及系统
CN201210106745.7 2012-04-12

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/489,754 Continuation US9461928B2 (en) 2012-04-12 2014-09-18 LACP negotiation processing method, relay node, and system

Publications (1)

Publication Number Publication Date
WO2013152589A1 true WO2013152589A1 (zh) 2013-10-17

Family

ID=46659939

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/084270 WO2013152589A1 (zh) 2012-04-12 2012-11-08 Lacp协商处理方法、中继节点及系统

Country Status (4)

Country Link
US (1) US9461928B2 (zh)
EP (1) EP2816772B1 (zh)
CN (1) CN102647355B (zh)
WO (1) WO2013152589A1 (zh)

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647355B (zh) * 2012-04-12 2014-11-05 华为技术有限公司 Lacp协商处理方法、中继节点及系统
CN103780510B (zh) * 2012-10-19 2020-03-17 中兴通讯股份有限公司 链路聚合组中流量路径的协商方法及装置
CN103874059B (zh) * 2012-12-10 2018-06-05 华为终端(东莞)有限公司 报文处理方法及装置、系统
CN103905313B (zh) * 2012-12-26 2018-04-27 腾讯科技(深圳)有限公司 集群扩展方法、集群通信系统和通信系统、方法
US9553798B2 (en) * 2013-04-23 2017-01-24 Telefonaktiebolaget L M Ericsson (Publ) Method and system of updating conversation allocation in link aggregation
US9654337B2 (en) 2013-04-23 2017-05-16 Telefonaktiebolaget L M Ericsson (Publ) Method and system for supporting distributed relay control protocol (DRCP) operations upon communication failure
US9497132B2 (en) 2013-04-23 2016-11-15 Telefonaktiebolaget Lm Ericsson (Publ) Method and system of implementing conversation-sensitive collection for a link aggregation group
CN104092604B (zh) * 2014-07-02 2018-02-09 新华三技术有限公司 报文传输控制方法及装置
CN104243267B (zh) * 2014-09-18 2019-02-22 百度在线网络技术(北京)有限公司 数据传输方法及装置
CN104320333B (zh) * 2014-10-31 2018-04-10 新华三技术有限公司 一种检测不对称静态聚合的方法及设备
US9858284B2 (en) * 2015-04-21 2018-01-02 International Business Machines Corporation Crowd sourced data sampling at the crowd
CN106411731B (zh) * 2015-07-27 2020-06-05 中兴通讯股份有限公司 一种自协商lacp协议参考系统和参考端口的方法及装置
TWI599201B (zh) * 2016-02-05 2017-09-11 物聯智慧科技(深圳)有限公司 網路系統及建立資料連線的方法
US10868729B2 (en) 2016-03-15 2020-12-15 Knight Point Systems, Llc System and method for automatically determining the optimal topology for multiple networked devices
JPWO2018003106A1 (ja) * 2016-06-30 2018-12-20 株式会社日立製作所 スイッチ間通信管理装置、スイッチ間通信管理方法及びコンピュータ読取可能記録媒体
US10476815B2 (en) * 2017-12-11 2019-11-12 Ciena Corporation Adaptive communication network with cross-point switches
CN108337163B (zh) * 2018-02-07 2020-11-06 北京百度网讯科技有限公司 用于汇聚链路的方法和装置
CN109327386B (zh) * 2018-10-24 2021-12-07 深圳市共进电子股份有限公司 一种链路聚合方法、装置、设备及可读存储介质
CN110071868B (zh) * 2019-04-18 2021-04-09 新华三技术有限公司 一种链路聚合方法、装置及网络设备
CN110838986B (zh) * 2019-07-29 2022-02-22 迈普通信技术股份有限公司 一种lacp负载均衡的方法、设备及系统
CN110971519A (zh) * 2019-12-12 2020-04-07 迈普通信技术股份有限公司 一种端口互联的管理方法及装置
CN112533299B (zh) * 2020-11-13 2023-03-24 锐捷网络股份有限公司 一种建立lora远距离传输链路的方法和服务器
IL315985A (en) * 2022-04-12 2024-11-01 High Sec Labs Ltd Method and system for remote console to a secure KVM switch

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1553628A (zh) * 2003-06-04 2004-12-08 深圳市中兴通讯股份有限公司南京分公 基于策略路由实现链路聚合功能的方法
CN102098211A (zh) * 2009-12-11 2011-06-15 华为技术有限公司 客户端和服务器动态协助的业务聚合方法、服务器和客户端
CN102647355A (zh) * 2012-04-12 2012-08-22 华为技术有限公司 Lacp协商处理方法、中继节点及系统

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6631141B1 (en) * 1999-05-27 2003-10-07 Ibm Corporation Methods, systems and computer program products for selecting an aggregator interface
GB2371706B (en) * 2001-01-30 2003-04-23 3Com Corp Link aggregation control for network devices
US6956824B2 (en) * 2001-06-14 2005-10-18 Tropic Networks Inc. Extension of link aggregation protocols over the network
US6910149B2 (en) * 2001-09-24 2005-06-21 Intel Corporation Multi-device link aggregation
US7881230B2 (en) * 2007-10-29 2011-02-01 Alcatel Lucent Facilitating self configuring link aggregation using link aggregation control protocol
US9078270B2 (en) * 2008-07-03 2015-07-07 Qualcomm Incorporated Opportunistic relay scheduling in wireless communications
US8059638B2 (en) * 2009-06-30 2011-11-15 Alcatel Lucent Inter-node link aggregation system and method
EP2503738A4 (en) * 2009-11-18 2015-09-30 Nec Corp RELAY DEVICE, RELAY METHOD, AND PROGRAM
US8122127B2 (en) * 2009-12-31 2012-02-21 Juniper Networks, Inc. Automatic aggregation of inter-device ports/links in a virtual device
JP5513342B2 (ja) * 2010-02-26 2014-06-04 アラクサラネットワークス株式会社 パケット中継装置
CN101815006B (zh) * 2010-03-02 2015-01-28 中兴通讯股份有限公司 一种穿越运营商网络的链路汇聚控制方法和系统
JP2011249979A (ja) * 2010-05-25 2011-12-08 Nec Corp 通信システム
JP2012009996A (ja) * 2010-06-23 2012-01-12 National Institute Of Information & Communication Technology 情報処理システム、中継装置、および情報処理方法
WO2011113395A2 (zh) * 2011-04-27 2011-09-22 华为技术有限公司 一种负载分担方法和装置
CN102388581B (zh) * 2011-06-29 2013-12-04 华为技术有限公司 参考链路协商的方法、装置和系统
CN102404143B (zh) * 2011-11-17 2014-04-02 华为技术有限公司 基于lacp的端口故障处理方法和lacp终端

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1553628A (zh) * 2003-06-04 2004-12-08 深圳市中兴通讯股份有限公司南京分公 基于策略路由实现链路聚合功能的方法
CN102098211A (zh) * 2009-12-11 2011-06-15 华为技术有限公司 客户端和服务器动态协助的业务聚合方法、服务器和客户端
CN102647355A (zh) * 2012-04-12 2012-08-22 华为技术有限公司 Lacp协商处理方法、中继节点及系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2816772A4 *

Also Published As

Publication number Publication date
CN102647355B (zh) 2014-11-05
US9461928B2 (en) 2016-10-04
EP2816772A4 (en) 2015-06-03
US20150003464A1 (en) 2015-01-01
CN102647355A (zh) 2012-08-22
EP2816772B1 (en) 2016-08-31
EP2816772A1 (en) 2014-12-24

Similar Documents

Publication Publication Date Title
WO2013152589A1 (zh) Lacp协商处理方法、中继节点及系统
US10003552B2 (en) Distributed bidirectional forwarding detection protocol (D-BFD) for cluster of interconnected switches
US8446914B2 (en) Method and system for link aggregation across multiple switches
US8879549B2 (en) Clearing forwarding entries dynamically and ensuring consistency of tables across ethernet fabric switch
US20120281700A1 (en) Layer-3 support in trill networks
WO2012142910A1 (zh) 弹性网络接口、互连的实现方法和系统
WO2019129236A1 (zh) 基于隧道传输数据的方法及装置
WO2013026384A1 (zh) 业务数据传输的方法、网络节点及系统
CN106656793B (zh) 一种sdn网络与ip网络的数据交互方法
CN103391296A (zh) 一种控制器、转发器及通道建立方法和系统
WO2014059867A1 (zh) 链路聚合组中流量路径的协商方法及装置
WO2007003088A1 (en) A method and system for updating a route
CN103036653A (zh) 一种对OpenFlow网络进行网络编码的方法
WO2009082905A1 (fr) Procédé système et dispositif commutateur permettant l'établissement dynamique de réseau local virtuel de multidiffusion
WO2018014767A1 (zh) 一种信息确定方法、装置及存储介质
WO2014082414A1 (zh) 业务转发的方法及设备
WO2014101708A1 (zh) 二层网络数据传送方法及网络节点
CN108390821A (zh) 一种openflow交换机实现双活的方法及系统
WO2022253087A1 (zh) 一种数据传输方法、节点、网络管理器及系统
CN105763443A (zh) 混合无线网状协议hwmp双路由协作方法
WO2022160665A1 (zh) 一种报文转发的方法、报文处理方法及设备
CN104639437A (zh) 堆叠系统中广播报文的转发方法及装置
CN101272309B (zh) 一种提供负载平衡与流量控管的动态无线网络拓扑系统
WO2012119372A1 (zh) 一种报文处理方法、设备和系统
WO2023035836A1 (zh) 一种报文处理方法及相关装置

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

Country of ref document: EP

Kind code of ref document: A1

REEP Request for entry into the european phase

Ref document number: 2012874189

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2012874189

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE