WO2010135987A1 - 链路聚合方法及装置 - Google Patents

链路聚合方法及装置 Download PDF

Info

Publication number
WO2010135987A1
WO2010135987A1 PCT/CN2010/073235 CN2010073235W WO2010135987A1 WO 2010135987 A1 WO2010135987 A1 WO 2010135987A1 CN 2010073235 W CN2010073235 W CN 2010073235W WO 2010135987 A1 WO2010135987 A1 WO 2010135987A1
Authority
WO
WIPO (PCT)
Prior art keywords
link
network element
remote network
physical
information
Prior art date
Application number
PCT/CN2010/073235
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 BRPI1007569-0A priority Critical patent/BRPI1007569A2/pt
Publication of WO2010135987A1 publication Critical patent/WO2010135987A1/zh
Priority to ZA2011/09125A priority patent/ZA201109125B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/14Multichannel or multilink protocols
    • 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 the field of communications technologies, and in particular, to a link aggregation method and apparatus in the field of communications.
  • BACKGROUND At least one physical link for performing data communication between network elements exists between network elements in a communication system. If there are multiple physical links between the NEs, and each link runs a network protocol, for example, the Open Shortest-Path First (OSPF) protocol, data is transmitted between the NEs. A large amount of system resources will be consumed during transmission; moreover, when the state of a certain link is unstable, the database synchronization of the routing protocol will also consume a large amount of network bandwidth.
  • OSPF Open Shortest-Path First
  • the link aggregation method may be adopted, that is, multiple physical chains may be used.
  • the above operations can not only improve the reliability of the network, but also reduce the network layer routing switching burden caused by the change of the link state. It can also implement link load balancing and improve communication efficiency.
  • the Chinese patent application with the application number of 200810007784.5 mainly uses the link aggregation control protocol or improves on the basis of this to implement link aggregation.
  • the scheme is as follows: Based on the original link aggregation protocol, increase If a passive mode is configured on both ends, the status of the aggregation group is queried, and the port is in the unselected state, indicating that both ends are configured in passive mode, prompting the user to modify the mode of one end. It can be seen that the solution needs to be manually configured, which is not efficient.
  • the Chinese patent application with the application number 200610157744.X mainly uses hardware-related information or network bandwidth to implement Ethernet link aggregation.
  • the system at both ends of the link determines the VLAN to which the link belongs according to the VLAN information of the port in the peer system and the VLAN information of the local system port, and then performs the chain according to the VLAN to which the link belongs.
  • Road aggregation All three implementations are based on Ethernet technology, so the implementation cost is high.
  • the Chinese patent document with the patent application number of 200510076709.0 mainly uses the network layer information for link aggregation. The solution is as follows: Determine the n physical ports of the link aggregation port group and perform the same configuration on the network layer; Generates n equal-cost routes for a certain route of the egress. The outbound interface information is set to n physical ports.
  • the network device evenly distributes the packets forwarded by the network layer to n equal-cost routes. After the connection between the physical port and the peer of the group is interrupted, the outbound interface information of the equal-cost route corresponding to the physical port that is interrupted is changed to the physical port that works in the link aggregation port group.
  • the network layer is required to be running normally, thus increasing the dependence on the network layer.
  • a link aggregation method includes: aggregating at least one physical link corresponding to the same remote network element into one logical link.
  • the aggregating the at least one physical link corresponding to the same remote network element into a logical link includes: obtaining, for each physical link of the current network element, the remote network element information, where The end network element information is related to the identification information of the remote network element corresponding to the physical link, and the at least one physical link corresponding to the remote network element information related to the same identification information is aggregated into one logical link.
  • the obtaining the information of the remote network element includes: performing the interaction of the link layer protocol on the current network element and the at least one remote network element respectively; and acquiring the identification information by using the interaction of the link layer protocol.
  • the method further includes: searching for at least one available physical chain in the logical link. Road for data transmission.
  • the foregoing link aggregation method further includes: deleting a failed physical link when at least one physical link in the logical link fails; searching for a physical link available in the logical link, if not, Delete the logical link and set the remote NE corresponding to the logical link to the unavailable state.
  • a link aggregation apparatus is provided.
  • the link aggregation apparatus according to the present invention is configured to aggregate at least one physical link corresponding to the same remote network element into one logical link.
  • the foregoing apparatus includes: an obtaining module, configured to acquire, for each physical link between the current network element and the at least one remote network element, the remote network element information, where the remote network element information and the physical The aggregation information of the remote network element corresponding to the link is related to each other.
  • the aggregation module is configured to aggregate at least one physical link corresponding to the remote network element information related to the same identification information into one logical link.
  • the obtaining module includes: an interaction unit, configured to perform a link layer protocol interaction between the current network element and the at least one remote network element respectively; and an acquiring unit, configured to acquire, by using a link layer protocol interaction, at least Identification information of a remote network element.
  • the foregoing apparatus further includes: a searching module, configured to look up at least one available physical link in the logical link for data transmission.
  • the foregoing apparatus further includes: a maintenance module, configured to: when the at least one physical link in the logical link fails, delete the failed physical link, and if the logical link is deleted, correspond to the logical link The remote NE is set to an unavailable state.
  • the present invention provides a solution for implementing link aggregation between network elements by using a software.
  • the current network element obtains the remote network element information of each of the physical network links, wherein the remote network element information and the Corresponding to the identification information of the remote network element corresponding to the physical link; the current network element aggregates at least one physical link corresponding to the remote network element information related to the same identification information into one logical link.
  • FIG. 1 is a flowchart of a link aggregation method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a link aggregation method according to a preferred embodiment of the present invention
  • FIG. 3 is a flowchart according to a preferred embodiment of the present invention.
  • FIG. 4 is a second embodiment of the present invention
  • FIG. 6 is a third embodiment of the present invention
  • FIG. 7 is a schematic diagram of a link aggregation apparatus according to an embodiment of the present invention
  • 8 is a schematic diagram of a link aggregation apparatus in accordance with a preferred embodiment of the present invention.
  • DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention provides an improvement in consideration of the problem that the physical layer and the network layer are more dependent on the implementation of link aggregation in the related art, and the implementation cost is higher.
  • the link aggregation scheme for each physical link, the current network element obtains the remote network element information, and the remote network element information is related to the identification information of the remote network element corresponding to the physical link, where the remote end is
  • the identification information of the network element identifies the information of the remote network device, for example, a 32-byte number; the current network element aggregates at least one physical link corresponding to each remote network element information related to the same identification information into a logical link, where the logical link is a link group aggregated by at least one physical link, where each physical link has a separate communication capability, but one logical link corresponds to one Remote network element.
  • FIG. 1 is a flowchart of a link aggregation method according to an embodiment of the present invention. As shown in FIG.
  • the link aggregation method is as follows: At least one physical link corresponding to the same remote network element is aggregated into one logical link.
  • the method includes the following steps (step S101 - step S 103): Step S101: For each physical link of the current network element, obtain the remote network element information, where the remote network The meta information is related to the identification information of the remote network element corresponding to the physical link.
  • the remote network element information may be the identification information of the remote network element, for example, the IP address of the remote network element.
  • Step S103 At least one physical link corresponding to each remote NE information related to the same identification information is aggregated into one logical link.
  • each physical link that has a connection relationship with the same remote network element is aggregated into one logical link, so that one logical link will also correspond to one remote network element.
  • the current network element obtains the remote network element information by using the link layer protocol to obtain the remote network element information, specifically: (1) the current network element and the at least one remote network. The element performs the interaction of the link layer protocol separately;
  • step S103 Obtaining identification information of at least one remote network element by using the link layer protocol interaction.
  • the current network element searches for the remote network element information related to the same identification information in the obtained network element identification information related to the remote network element information, if If yes, the at least one physical link corresponding to each remote network element information related to the same identification information is aggregated into one logical link.
  • 2 is a flow chart of a link aggregation method in accordance with a preferred embodiment of the present invention.
  • the link aggregation method mainly includes the following steps (step S201 - step S207): Step S201: configuring the current network element and the identification information of the remote network element and the physical link information in the system;
  • the identification information of the network element is used to mark each network element, for example, the IP address of the network element.
  • the physical link information is the identification information of the physical link, and is used to identify each physical link, for example, Link1 and Link2. ... , IinkN.
  • Step S203 Start the link layer protocol, and implement the link layer protocol of the current network element to interact with the link layer protocol of the remote network element, and obtain the remote network element information corresponding to each physical link respectively.
  • Step S205 According to the acquisition
  • the remote network element information is used to find the physical link corresponding to the same remote network element.
  • the remote network element information corresponding to the same identification information can be searched.
  • Step S207 Each distance related to the same identification information is used. At least one physical link corresponding to the end network element information is aggregated into one logical link.
  • Link II represents physical link information of one or a group of physical links
  • Link II and Link i represents physical link information of one or a group of physical links
  • the identification information of the corresponding remote network element is the same, it means that Linkll and Link i belong to the same logical link group, and Link II and Link i are aggregated into one logical link, which is recorded as logical link A1, if it does not exist.
  • Link i becomes a logical link, which is recorded as logical link A2, and the aggregation algorithm ends.
  • the remote network element information is the identification information of the remote network element.
  • the physical link information may be defined as related to the identification information of the remote network element, that is, the physical link information is used as the remote network element information.
  • the physical link information carries the identification information of the remote network element, so that the physical link information is obtained, and the identification information of the remote network element is obtained.
  • the physical link connected to the remote network element a it can be labeled Link a-1, Link a-2..., .
  • the physical link that contains a in the physical link information is aggregated into a logical link corresponding to the remote network element a.
  • What has been described above is how to perform physical link aggregation.
  • the operations performed on the logical link obtained by the aggregation including but not limited to physical link selection, physical chain, will be described. Maintenance of roads or logical links, etc.
  • at least one available physical link may be searched in the aggregated logical link for data transmission.
  • FIG. 3 is a flow chart of link failure processing between network elements in accordance with a preferred embodiment of the present invention. As shown in FIG.
  • the inter-network element link failure processing mainly includes the following steps (step S301-step S309): Step S301: Configuring current network element and identification information of the remote network element and the system Physical link information in the process; Step S303: Start the link layer protocol, and implement the link layer protocol of the current network element to interact with the link layer protocol of the remote network element; Step S305: When the link layer protocol detects the link link If the link is invalid, check whether there is another physical link in the logical link Ai. If yes, go to step S307. Otherwise, go to step S309.
  • Step S307 deleting the link Link i from the logical link Ai; Step S309: deleting the logical link Ai corresponding to the Link i, and identifying the network layer of the logical link Ai as unavailable ⁇ ! state.
  • Example 1 Figure 4 shows Example 1 of the present invention.
  • the network includes: a network element A and a network element B.
  • a link Link1, Link 2... Link N (N>1) exists between the network element A and the network element B.
  • the system configures the identification information 188.1.1.1 (IP address of NE A) and 188.1.1.2 (IP address of NE B) to the respective NEs; NE and NE B.
  • the link layer protocol for example, the PPP protocol, is used to obtain the remote network element information. All the links corresponding to the network element A obtain the remote network element information as 188.1.1.2.
  • the network element A checks whether the link identifiers of all links have the same remote NE identifier, and finds that the remote NEs on Linkl, Link2, ... and LinkN have the same identifier, and the physical links are aggregated into a logical chain. Road Al. In the system, both the network element A and the network element B can be used as the current network element.
  • Example 2 Figure 5 shows Example 2 of the present invention.
  • the network includes: a network element A, a network element 1, a network element 2, and a network element N (N>2), wherein the network element A and the network element 1 and the network element 2, respectively. . , network element N
  • Example 3 Figure 6 is Example 3 of the present invention.
  • the network includes: a network element A and a network element B.
  • the network element A and the network element B are connected by a link Link1 and a link 2.
  • Linkl and Link2 are aggregated into a logical link A1.
  • Linkl fails for some reason, the link layer protocol is used to find the logical link to which Link1 belongs. It is found that Link1 belongs to logical link A1 and finds whether there are other physical links in logical link A1.
  • a link aggregation method which implements link aggregation between network elements by using a link layer protocol, reduces reliance on the network layer and the physical layer, reduces implementation cost, and increases link aggregation. Versatility.
  • FIG. 7 is a schematic diagram of a link aggregation apparatus according to an embodiment of the present invention.
  • 8 is a schematic diagram of a link aggregation apparatus in accordance with a preferred embodiment of the present invention.
  • a link aggregation apparatus according to an embodiment of the present invention is configured to aggregate at least one physical link corresponding to the same remote network element into one logical link.
  • the apparatus may include: an acquisition module 1, an aggregation module 2, and the above various constituent elements are further described below in conjunction with FIG.
  • the obtaining module 1 is configured to obtain, for each physical link between the current network element and the at least one remote network element, the remote network element information, where the remote network element information corresponds to the remote end of the physical link.
  • the identification information of the network element is related.
  • the obtaining module 1 may further include: an interaction unit 10, an obtaining unit 12, where the interaction unit 10 is configured to perform a link layer between the current network element and the at least one remote network element respectively.
  • the interaction unit of the protocol is configured to obtain the identification information of the at least one remote network element by using the interaction of the link layer protocol.
  • the aggregation module 2 is connected to the acquisition module 1 and configured to aggregate at least one physical link corresponding to each remote network element information related to the same identification information into one logical link.
  • the link aggregation apparatus may further include: a lookup module 3, connected to the aggregation module 2, for searching at least one available physical link in the logical link for data transmission.
  • the link aggregation apparatus may further include: a maintenance module 4, configured to delete a failed physical link when the at least one physical link in the logical link fails, and delete the logical link In the case of a road, the remote network element corresponding to the logical link is set to an unavailable state.
  • the current network element obtains the remote network element information for each physical link through the interaction of the link layer protocol, where the remote network element information and the physical information are obtained.
  • the identification information of the remote network element corresponding to the link is related to each other; the current network element aggregates at least one physical link corresponding to the remote network element information related to the same identification information into one logical link.
  • the network layer selects at least one of the physical links from the logical link for data transmission.
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device, or they may be separately fabricated into individual integrated circuit modules, or they may be Multiple modules or steps are made into a single integrated circuit module.

Landscapes

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

Abstract

本发明公开了一种链路聚合方法及装置,在上述方法中,将与相同远端网元相对应的至少一条物理链路聚合成一条逻辑链路。上述方法包括:对于当前网元的每条物理链路,分别获取其远端网元信息,其中,远端网元信息与物理链路对应的远端网元的标识信息相关; 将与同一个标识信息相关的各远端网元信息对应的至少一条物理链路,聚合成一条逻辑链路。根据本发明提供的技术方案,可以降低链路聚合的成本,并且增加链路聚合的通用性。

Description

^^聚合方法^置 技术领域 本发明涉及通信技术领域, 尤其涉及通信领域中的一种链路聚合方法及 装置。 背景技术 在通信系统中的各网元间, 存在用于进行网元间数据通信的至少一条物 理链路。 如果网元间存在多条物理链路, 且每条链路都运行网络协议, 例如, 开放式最短路径优先协议 (Open Shortest-Path First, 简称为 OSPF)协议, 则在 各网元间进行数据传输时将会消耗大量的系统资源; 而且, 当某一条链路的 状态不稳定时, 路由协议的数据库同步也将耗费大量的网络带宽。 为了降低网络协议对系统资源的消耗和网络带宽的占用, 在单条链路资 源有限的前提下, 为了提高网元间的通信质量, 可以釆用链路聚合的方法, 即, 将多条物理链路聚合 (抽象) 成一条逻辑链路。 上述操作不仅可以提高 网络的可靠性, 减少由于链路状态的变化引起的网络层路由倒换负担, 还可 以实现链路负载均衡, 提高通信效率。 在相关技术中, 申请号为 200810007784.5的中国专利申请, 主要使用链 路聚合控制协议或者在此基础上进行改进, 以实现链路聚合, 其方案如下: 在原有链路聚合协议的基础上, 增加一个新的概念, 当两端均配置被动模式 时, 查询聚合组状态, 端口将处于未选择状态, 表明两端均被配置为被动模 式, 提示用户需修改一端的模式等。 可以看出, 该方案需手动进行配置, 效 率不高。 另夕卜, 申请号为 200610157744.X 的中国专利申请, 主要使用与硬件相 关的信息或者网络带宽实现以太网链路聚合。 具体地, 在建立用于传输数据 的传输路径时, 检测待建立传输路径的宿端承载链路的可用承载带宽, 判断 其是否足以承载待传输的数据, 如果否, 则继续判断该宿端可用的可以聚合 的以太网链路能否能满足待传输数据的需要, 若能够满足, 则该宿端进行链 路聚合。 专利申请号为 200610161781.8的中国专利申请, 其釆用的方案为: 链路 两端的系统通过消息交互将本端系统的端口所属虚拟局域网 ( Virtual Local Area Network, 简称为 VLAN ) 的信息传送至对端系统; 链路两端的系统分 别根据其接收的对端系统中的端口所属 VLAN 的信息和本端系统端口所属 VLAN的信息, 确定链路所属的 VLAN, 并才艮据链路所属的 VLAN进行链路 聚合。 上述三种实现方案均基于以太网技术, 因此实现成本较高。 专利申请号为 200510076709.0的中国专利文件,主要釆用网络层信息进 行链路聚合, 其方案为: 确定链路聚合端口组的 n个物理端口, 进行网络层 相同配置; 为以链路聚合端口组为出口的某个路由生成 n条等价路由, 其出 接口信息分别设置为 n个物理端口; 网络设备将需要网络层转发的报文均匀 分配到 n个等价路由上; 当链路聚合端口组的部分物理端口与对端的连接中 断后, 将连接中断的物理端口所对应的等价路由的出接口信息修改为链路聚 合端口组中正常工作的物理端口。 釆用该方案实现链路聚合之前, 要求网络 层已运行正常, 因此增加了对网络层的依赖。 发明内容 针对相关技术中链路聚合对物理层和网络层较为依赖, 以及实现成本较 高的问题而提出本发明, 为此, 本发明的主要目的在于提供一种改进的链路 聚合方法及装置, 以解决上述问题至少之一。 根据本发明的一个方面, 提供了一种链路聚合方法。 才艮据本发明的链路聚合方法包括: 将与相同远端网元相对应的至少一条 物理链路聚合成一条逻辑链路。 优选地, 上述将与相同远端网元相对应的至少一条物理链路聚合成一条 逻辑链路包括: 对于当前网元的每条物理链路, 分别获取其远端网元信息, 其中, 远端网元信息与物理链路对应的远端网元的标识信息相关; 将与同一 个标识信息相关的各远端网元信息对应的至少一条物理链路, 聚合成一条逻 辑链路。 优选地, 上述获取其远端网元信息包括: 在当前网元和至少一个远端网 元分别进行链路层协议的交互; 通过链路层协议的交互, 获取标识信息。 优选地, 上述将与同一个标识信息相关的各远端网元信息对应的至少一 条物理链路, 聚合成一条逻辑链路之后, 方法还包括: 在逻辑链路中查找至 少一条可用的物理链路以进行数据发送。 优选地, 上述链路聚合方法还包括: 逻辑链路中的至少一条物理链路失 效时, 删除失效的物理链路; 在逻辑链路中查找是否存在可用的物理链路, 如果不存在, 则删除逻辑链路, 并将逻辑链路对应的远端网元设置为不可用 状态。 根据本发明的另一方面, 提供了一种链路聚合装置。 根据本发明的链路聚合装置用于将与相同远端网元相对应的至少一条物 理链路聚合成一条逻辑链路。 优选地, 上述装置包括: 获取模块, 用于对于当前网元与至少一个远端 网元之间的每条物理链路, 分别获取其远端网元信息, 其中, 远端网元信息 与物理链路对应的远端网元的标识信息相关; 聚合模块, 用于将与同一个标 识信息相关的各远端网元信息对应的至少一条物理链路, 聚合成一条逻辑链 路。 优选地, 上述获取模块包括: 交互单元, 用于在当前网元和至少一个远 端网元之间分别进行链路层协议的交互; 获取单元, 用于通过链路层协议的 交互, 获取至少一个远端网元的标识信息。 优选地, 上述装置还包括: 查找模块, 用于在逻辑链路中查找至少一条 可用的物理链路以进行数据发送。 优选地, 上述装置还包括: 维护模块, 用于在逻辑链路中的至少一条物 理链路失效时, 删除失效的物理链路, 以及在删除逻辑链路的情况下, 将与 逻辑链路对应的远端网元设置为不可用状态。 通过本发明, 提供了一种通过软件实现网元间链路聚合的方案, 当前网 元通过每条物理链路分别获取其远端网元信息, 其中, 所述远端网元信息与 所述物理链路对应的远端网元的标识信息相关; 上述当前网元再将与同一个 标识信息相关的各远端网元信息对应的至少一条物理链路, 聚合成一条逻辑 链路。解决了相关技术中对物理层和网络层较为依赖、 实现成本较高的问题, 进而降低了链路聚合的成本, 增加了链路聚合的通用性。 本发明的其它特征和优点将在随后的说明书中阐述, 并且, 部分地从说 明书中变得显而易见, 或者通过实施本发明而了解。 本发明的目的和其他优 点可通过在所写的说明书、 权利要求书、 以及附图中所特别指出的结构来实 现和获得。 附图说明 附图用来提供对本发明的进一步理解, 并且构成说明书的一部分, 与本 发明的实施例一起用于解释本发明, 并不构成对本发明的限制。 在附图中: 图 1为根据本发明实施例的链路聚合方法的流程图; 图 2为根据本发明优选实施例的链路聚合方法的流程图; 图 3为根据本发明优选实施例的网元间链路失效处理的流程图; 图 4为本发明实例一; 图 5为本发明实例二; 图 6为本发明实例三; 图 7为根据本发明实施例的链路聚合装置的示意图; 图 8为根据本发明优选实施例的链路聚合装置的示意图。 具体实施方式 功能相克述 考虑到相关技术中的釆用硬件手动配置方案实现链路聚合时, 对物理层 和网络层较为依赖, 以及实现成本较高的问题, 本发明实施例提供了一种改 进的链路聚合方案,对于每条物理链路, 当前网元分别获取其远端网元信息, 该远端网元信息与物理链路对应的远端网元的标识信息相关, 其中, 远端网 元的标识信息标识远端的网络设备的信息, 例如, 一个 32 字节的数字; 当 前网元将与同一个标识信息相关的各远端网元信息对应的至少一条物理链 路, 聚合成一条逻辑链路, 其中, 该逻辑链路是由至少一条物理链路聚合的 链路组, 在该链路组中, 每条物理链路都具有单独的通信能力, 但一个逻辑 链路对应一个远端网元。 在本发明实施例提供的技术方案中, 釆用软件自动 配置方案实现链路聚合,可以降低链路聚合的成本,增加链路聚合的通用性。 在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。 以下结合附图对本发明的优选实施例进行说明, 应当理解, 此处所描述 的优选实施例仅用于说明和解释本发明, 并不用于限定本发明。 方法实施例 根据本发明实施例, 首先提供了一种链路聚合方法。 图 1为根据本发明实施例的链路聚合方法的流程图。 如图 1所示, 根据 本发明实施例的链路聚合方法如下: 将与相同远端网元相对应的至少一条物 理链路聚合成一条逻辑链路。 在具体实施过程中, 主要包括以下步骤 (步骤 S 101-步骤 S 103 ): 步骤 S 101 : 对于当前网元的每条物理链路, 分别获取其远端网元信息, 其中,该远端网元信息与物理链路对应的远端网元的标识信息相关; 优选地, 该远端网元信息可以为远端网元的标识信息, 例如, 远端网元的 IP地址; 步骤 S 103:将与同一个标识信息相关的各远端网元信息对应的至少一条 物理链路, 聚合成一条逻辑链路。 也就是说, 对于当前网元而言, 将与同一 远端网元存在连接关系的各物理链路, 聚合为一条逻辑链路, 这样, 一条逻 辑链路也将对应一个远端网元。 在具体实施过程中, 上述当前网元分别获取其远端网元信息可以通过链 路层协议交互的方式获取远端网元信息, 具体地: ( 1 ) 在当前网元和至少一个远端网元分别进行链路层协议的交互;
( 2 ) 通过链路层协议的交互, 获取至少一个远端网元的标识信息。 对于步骤 S 103 , 优选地, 在具体实施过程中, 当前网元在获取的与远端 网元信息相关的网元标识信息中, 查找是否存在与同一标识信息相关的远端 网元信息, 如果存在, 则将这些与同一个标识信息相关的各远端网元信息对 应的至少一条物理链路, 聚合成一条逻辑链路。 图 2为根据本发明优选实施例的链路聚合方法的流程图。 如图 2所示, 根据本发明优选实施例的链路聚合方法主要包括以下步骤 (步骤 S201-步骤 S207 ): 步骤 S201: 配置当前网元以及远端网元的标识信息以及该系统中的物理 链路信息; 其中, 上述网元的标识信息用于标记各网元, 例如, 可以是网元的 IP地 址; 上述物理链路信息为物理链路的标识信息, 用于标识各物理链路, 例如, Linkl , Link2 , ... , IinkN。 步骤 S203 : 启动链路层协议, 实现当前网元的链路层协议与远端网元的 链路层协议交互, 分别获取每条物理链路对应的远端网元信息; 步骤 S205 : 根据获取的远端网元信息, 查找对应于同一远端网元的物理 链路; 优选地, 可以查找对应于同一标识信息的远端网元信息; 步骤 S207:将与同一个标识信息相关的各远端网元信息对应的至少一条 物理链路, 聚合成一条逻辑链路。 在具体实施过程中, 如果存在 Link II ( Link II表示一条或一组物理链路 的物理链路信息;), Link II与 Link i ( Link i表示一条或一组物理链路的物理 链路信息) 的对应的远端网元的标识信息相同, 则表示 Linkll与 Link i属于 相同的逻辑链路组, 将 Link II和 Link i聚合成一条逻辑链路, 记为逻辑链路 A1 , 如果不存在与 Link i具有相同的网元标识信息的一条或一组物理链路, 则 Link i独立成为一条逻辑链路, 记为逻辑链路 A2, 该聚合算法结束。 上述 情况可以理解为远端网元信息为远端网元的标识信息的情况。 对于远端网元信息不是远端网元的标识信息的情况, 例如, 可以将物理 链路信息定义为与远端网元的标识信息相关, 即, 将物理链路信息作为远端 网元信息, 在物理链路信息中携带远端网元的标识信息, 这样, 获取了物理 链路信息, 也就获取了远端网元的标识信息。 例如, 对于与远端网元 a连接 的物理链路, 可以标记为 Link a- 1 , Link a-2...... ,。 这样, 在进行物理链路聚 合时, 对于物理链路信息中含有 a的物理链路, 将被聚合为一条逻辑链路, 该逻辑链路对应于远端网元 a。 以上描述的是如何进行物理链路聚合的过程, 接下来将描述对该聚合得 到的逻辑链路进行的操作, 这些操作包括但不限于物理链路的选择, 物理链 路或逻辑链路的维护等。 优选地, 在进行数据发送的过程中, 可以在聚合得到的逻辑链路中查找 至少一条可用的物理链路, 以用于进行数据发送。 另一方面, 在逻辑链路中的至少一条物理链路失效时, 可以删除失效的 物理链路; 后续在需要使用逻辑链路时, 在逻辑链路中查找是否存在可用的 物理链路, 如果不存在可用的物理链路, 则删除该逻辑链路, 并将与该逻辑 链路对应的远端网元设置为不可用状态。 图 3为根据本发明优选实施例的网元间链路失效处理的流程图。 如图 3 所示, 根据本发明优选实施例的网元间链路失效处理主要包括以下步骤 (步 骤 S301-步骤 S309 ): 步骤 S301 : 配置当前网元以及远端网元的标识信息以及该系统中的物理 链路信息; 步骤 S303 : 启动链路层协议, 实现当前网元的链路层协议与远端网元的 链路层协议交互; 步骤 S305: 当链路层协议检测到链路 Link i ( Link i为逻辑链路 Ai中的 一条物理链路) 失效时, 并检查逻辑链路 Ai中是否还存在其它的物理链路, 如果存在, 执行步骤 S307,否则, 执行步骤 S309; 步骤 S307: 从逻辑链路 Ai中删除链路 Link i; 步骤 S309: 删除 Link i对应的逻辑链路 Ai, 标识逻辑链路 Ai的网络层 为不可用^! 态。 实例一 图 4示出了本发明实例一。 如图 4所示, 该网络包括: 网元 A和网元 B, 在网元 A与网元 B之间存在链路 Linkl, Link 2... Link N ( N>1 )„ 当网元 A 与网元 B启动后, 系统分别向各自的网元配置标识信息 188.1.1.1 (网元 A的 IP地址) 和 188.1.1.2 (网元 B的 IP地址;); 网元 A和网元 B上分别运行链 路层协议, 例如, PPP协议, 以获取远端网元信息。 与网元 A的对应的所有链路都获取到远端网元信息为 188.1.1.2。 之后, 网元 A 检查所有链路的链路标识是否存在相同的远端网元标识, 查找到 Linkl , Link2, ... , LinkN 上的远端网元标识相同, 将上述物理链路聚合成 逻辑链路 Al。 在该系统中, 网元 A和网元 B均可以作为当前网元, 当网元 B作为当 前网元时, 在网元 B上也获取到 Linkl , Link2... LinkN的远端标识 (即网元 A的标识信息) 为 188.1.1.1 , 网元 B将 Linkl、 Link2... LinkN聚合成 Bl。 其中, 相对于当前网元来说, 网元 A与网元 巴 Linkl、 Link2... LinkN分别 聚合为 A1和 B1 , 但 A1和 B1实质上为同一聚合链路 (逻辑链路)。 实例二 图 5示出了本发明实例二。 如图 5所示, 该网络包括: 网元 A, 网元 1、 网元 2...网元 N ( N>2 ), 其中, 网元 A分别与网元 1 , 网元 2, ... , 网元 N
( N>2 )之间分别有多条物理链路。 当全网网元启动完毕后, 分别向上述网元配置标识 188.1.1.1 , 188.1.1.2, ... , 188.1.1,m。 之后, 在所有网元上分别运行链路层协议, 例如, PPP协议, 以获取远端网元信息。 随后网元 A的所有链路都获取到远端网元 标识信息为 188.1.1.2, 188.1. l.m; 网元 A检查所有链路的链路标识是否 存在相同的远端网元标识, 把与相同网元标识对应的链路分别记录到逻辑链 路 A1 , ... , Am中。 例如, 图中所示, Linkl、 Link2、 Link3对应的远端网 元标识均为 188.1.1.2 (即网元 1的标识信息;), 则将 Linkl、 Link2、 Link3聚 合为一条逻辑链路 A1。 实例三 图 6为本发明实例三。 如图 6所示, 该网络包括: 网元 A和网元 B, 网 元 A与网元 B由链路 Linkl和 Link2相连接。 其中, Linkl和 Link2被聚合 成逻辑链路 Al。 当由于某种原因, 使得 Linkl失效, 则通过链路层协议查找 Linkl所属 的逻辑链路, 发现 Linkl属于逻辑链路 A1 , 并查找逻辑链路 A1中是否还存 在其它的物理链路, 在查找到存在可用物理链路 Link2的情况下, 从逻辑链 路 A1中删除对应的链路 Linkl。 否则, 将网元 B设置为不可用状态; 同理, 对于网元 B而言, 在查找到存在可用物理链路 Link2的情况下, 从逻辑链路 B1 (与逻辑链路 A1实质上为同一逻辑链路)中删除对应的链路 Linkl。 否则, 将网元 A设置为不可用状态。 通过上述实施例, 提供了一种链路聚合方法, 使用链路层协议实现网元 间链路聚合, 减小了对网络层和物理层的依赖, 降低了实现成本, 增加了链 路聚合的通用性。 装置实施例 根据本发明实施例, 还提供了一种链路聚合装置。 图 7为根据本发明实施例的链路聚合装置的示意图。 图 8为根据本发明 优选实施例的链路聚合装置的示意图。 如图 7所示, 根据本发明实施例的链 路聚合装置, 用于将与相同远端网元相对应的至少一条物理链路聚合成一条 逻辑链路。 优选地, 该装置可以包括: 获取模块 1、 聚合模块 2 , 以下进一 步结合附图 8来描述上述各个组成元素。 获取模块 1 , 用于对于当前网元与至少一个远端网元之间的每条物理链 路, 分别获取其远端网元信息, 其中, 远端网元信息与物理链路对应的远端 网元的标识信息相关。 优选地, 如图 8所示, 获取模块 1可以进一步包括: 交互单元 10、 获取 单元 12 , 其中, 交互单元 10 , 用于在当前网元和至少一个远端网元之间分 别进行链路层协议的交互; 获取单元 12 , 用于通过链路层协议的交互, 获取 至少一个远端网元的标识信息。 聚合模块 2 , 与获取模块 1相连接, 用于将与同一个标识信息相关的各 远端网元信息对应的至少一条物理链路, 聚合成一条逻辑链路。 优选地, 如图 8所示, 上述链路聚合装置还可以包括: 查找模块 3 , 与 聚合模块 2相连接, 用于在逻辑链路中查找至少一条可用的物理链路以进行 数据发送。 优选地, 如图 8所示, 上述链路聚合装置还可以包括: 维护模块 4 , 用 于在逻辑链路中的至少一条物理链路失效时, 删除失效的物理链路, 以及在 删除逻辑链路的情况下, 将与逻辑链路对应的远端网元设置为不可用状态。 通过上述实施例, 提供了一种链路聚合装置, 该装置不依赖于特定的链 路类型, 例如, 以太网、 高级数据链路控制以及其它类型, 降低了链路聚合 地成本, 减小了链路聚合对物理层和网络层的依赖, 增加了链路聚合的通用 性。 如上所述,借助本发明实施例提供的技术方案,通过链路层协议的交互, 当前网元对于每条物理链路分别获取其远端网元信息, 其中, 该远端网元信 息与物理链路对应的远端网元的标识信息相关; 当前网元将与同一个标识信 息相关的各远端网元信息对应的至少一条物理链路, 聚合成一条逻辑链路。 在需要发送数据时, 网络层从逻辑链路中选择其中至少一条物理链路进行数 据发送。 当某一条物理链路接收到该数据时, 直接发送至该逻辑链路对应的 远端网元。 从而可以降低链路聚合的成本, 减小链路聚合对物理层和网络层 的依赖, 并增加链路聚合的通用性。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可 以用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布 在多个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程 序代码来实现, 从而, 可以将它们存储在存储装置中由计算装置来执行, 或 者将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制 作成单个集成电路模块来实现。 这样, 本发明不限制于任何特定的硬件和软 件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的 ^"神和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护 范围之内。

Claims

权 利 要 求 书
1. 一种链路聚合方法, 应用于包括当前网元和至少一个远端网元的系统, 其中, 所述当前网元和每个所述远端网元之间具有至少一条物理链路, 其特征在于, 所述方法包括:
将与相同远端网元相对应的至少一条物理链路聚合成一条逻辑链 路。
2. 根据权利要求 1所述的方法, 其特征在于, 所述将与相同远端网元相对 应的至少一条物理链路聚合成一条逻辑链路包括:
对于所述当前网元的每条物理链路, 分别获取其远端网元信息, 其 中,所述远端网元信息与所述物理链路对应的远端网元的标识信息相关; 将与同一个标识信息相关的各远端网元信息对应的至少一条物理链 路, 聚合成一条逻辑链路。
3. 根据权利要求 2所述的方法, 其特征在于, 所述获取其远端网元信息包 括:
在所述当前网元和所述至少一个远端网元分别进行链路层协议的交 互;
通过所述链路层协议的交互, 获取所述标识信息。
4. 根据权利要求 1或 2所述的方法, 其特征在于, 所述将与相同远端网元 相对应的至少一条物理链路聚合成一条逻辑链路之后,所述方法还包括: 在所述逻辑链路中查找至少一条可用的物理链路以进行数据发送。
5. 根据权利要求 1所述的方法, 其特征在于, 所述方法还包括:
所述逻辑链路中的至少一条物理链路失效时,删除失效的物理链路; 在所述逻辑链路中查找是否存在可用的物理链路, 如果不存在, 则 删除所述逻辑链路, 并将所述逻辑链路对应的远端网元设置为不可用状 态。
6. —种链路聚合装置, 其特征在于,
所述装置用于将与相同远端网元相对应的至少一条物理链路聚合成 一条逻辑链路。
7. 根据权利要求 6所述的装置, 其特征在于, 所述装置包括:
获取模块, 用于对于当前网元与至少一个远端网元之间的每条物理 链路, 分别获取其远端网元信息, 其中, 所述远端网元信息与所述物理 链路对应的远端网元的标识信息相关;
聚合模块, 用于将与同一个标识信息相关的各远端网元信息对应的 至少一条物理链路, 聚合成一条逻辑链路。
8. 根据权利要求 7所述的装置, 其特征在于, 所述获取模块包括:
交互单元, 用于在所述当前网元和所述至少一个远端网元之间分别 进行链路层协议的交互;
获取单元, 用于通过所述链路层协议的交互, 获取所述至少一个远 端网元的标识信息。
9. 根据权利要求 6或 7所述的装置, 其特征在于, 所述装置还包括: 查找模块, 用于在所述逻辑链路中查找至少一条可用的物理链路以 进行数据发送。
10. 根据权利要求 6所述的装置, 其特征在于, 所述装置还包括:
维护模块, 用于在所述逻辑链路中的至少一条物理链路失效时, 删 除所述失效的物理链路, 以及在删除所述逻辑链路的情况下, 将与所述 逻辑链路对应的远端网元设置为不可用状态。
PCT/CN2010/073235 2009-05-25 2010-05-25 链路聚合方法及装置 WO2010135987A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
BRPI1007569-0A BRPI1007569A2 (pt) 2009-05-25 2010-05-25 Dispositivos e métodos de agregação de link
ZA2011/09125A ZA201109125B (en) 2009-05-25 2011-12-12 Link aggregation methods and apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910143056.1 2009-05-25
CNA2009101430561A CN101582902A (zh) 2009-05-25 2009-05-25 链路聚合方法及装置

Publications (1)

Publication Number Publication Date
WO2010135987A1 true WO2010135987A1 (zh) 2010-12-02

Family

ID=41364862

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/073235 WO2010135987A1 (zh) 2009-05-25 2010-05-25 链路聚合方法及装置

Country Status (4)

Country Link
CN (1) CN101582902A (zh)
BR (1) BRPI1007569A2 (zh)
WO (1) WO2010135987A1 (zh)
ZA (1) ZA201109125B (zh)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582902A (zh) * 2009-05-25 2009-11-18 中兴通讯股份有限公司 链路聚合方法及装置
CN102480377B (zh) * 2010-11-25 2015-05-20 中兴通讯股份有限公司 聚合链路的管理方法及系统
CN102487398B (zh) * 2010-12-02 2015-04-01 中兴通讯股份有限公司 Mlppp动态绑定方法和系统
CN102651708B (zh) * 2011-02-24 2015-05-27 中国移动通信集团公司 一种路由器发送数据的方法及装置
WO2013040927A1 (zh) * 2011-09-20 2013-03-28 中兴通讯股份有限公司 分布式链路聚合方法及装置
EP2974147B1 (en) 2013-03-15 2019-08-07 Hewlett-Packard Enterprise Development LP Loop-free hybrid network
CN104219111B (zh) * 2013-05-31 2018-02-23 中国电信股份有限公司 基于mlppp的链路绑定方法与通信系统
CN107888345B (zh) * 2016-09-29 2022-02-18 中兴通讯股份有限公司 一种信息传输的方法和设备
CN109120524B (zh) 2018-08-23 2020-12-08 Oppo广东移动通信有限公司 链路聚合方法及相关设备
CN109889442B (zh) * 2018-12-24 2021-07-27 广州芯德通信科技股份有限公司 一种以太网接口链路聚合方法、电子设备、存储介质
CN113872843B (zh) * 2020-06-30 2022-12-06 华为技术有限公司 一种路由生成方法、路由处理方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1523790A (zh) * 2003-02-21 2004-08-25 华为技术有限公司 智能光网络中的链路绑定方法
CN1735062A (zh) * 2004-07-22 2006-02-15 阿尔卡特公司 具有一个或多个虚拟核心设备组的局域网
US20080101387A1 (en) * 2006-10-31 2008-05-01 Wackerly Shaun C VLAN aware trunks
CN101582902A (zh) * 2009-05-25 2009-11-18 中兴通讯股份有限公司 链路聚合方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1523790A (zh) * 2003-02-21 2004-08-25 华为技术有限公司 智能光网络中的链路绑定方法
CN1735062A (zh) * 2004-07-22 2006-02-15 阿尔卡特公司 具有一个或多个虚拟核心设备组的局域网
US20080101387A1 (en) * 2006-10-31 2008-05-01 Wackerly Shaun C VLAN aware trunks
CN101582902A (zh) * 2009-05-25 2009-11-18 中兴通讯股份有限公司 链路聚合方法及装置

Also Published As

Publication number Publication date
CN101582902A (zh) 2009-11-18
BRPI1007569A2 (pt) 2020-06-23
ZA201109125B (en) 2013-02-27

Similar Documents

Publication Publication Date Title
WO2010135987A1 (zh) 链路聚合方法及装置
US9781032B1 (en) MPLS label usage in ethernet virtual private networks
US9769054B2 (en) Network topology discovery method and system
CN111740913B (zh) 在计算机网络内转发网络流量的方法、路由器及可读介质
JP4192094B2 (ja) イーサネットmac回線をサポートするための方法
US9019814B1 (en) Fast failover in multi-homed ethernet virtual private networks
JP5873597B2 (ja) 仮想ファブリックリンク障害復旧のためのシステムおよび方法
JP5106100B2 (ja) アドレス型キャリアネットワークにおける区別転送
TW202034737A (zh) 在網路運算環境中的路由最佳化
WO2009138036A1 (zh) 以太网业务传送中转发表的更新方法、设备和系统
WO2006039865A1 (fr) Procede permettant de mettre en oeuvre une decouverte automatique de structure de topologie dans le reseau boucle mpls
WO2006017982A1 (fr) Procede de reacheminement dans le reseau multiprotocole a commutateur d'etiquettes
US20070036161A1 (en) System and method of routing Ethernet MAC frames using Layer-2 MAC addresses
JPWO2002087175A1 (ja) リストレーション・プロテクション方法及び装置
WO2019076295A1 (zh) 一种处理报文的方法、设备及系统
WO2012142910A1 (zh) 弹性网络接口、互连的实现方法和系统
US7646732B2 (en) Full mesh status monitor
WO2006131055A1 (fr) Procédé et élément de réseau destiné au transfert de données
WO2012149862A1 (zh) 环网故障切换方法和装置
WO2014090083A1 (zh) 分布式弹性网络互连的业务承载方法及装置
CN111064596A (zh) 对于用于多宿主节点故障的bum流量的节点保护
CN111385138A (zh) 用于拼接多宿主evpn和l2电路的逻辑隧道的核心隔离
WO2021093463A1 (zh) 报文转发的方法、第一网络设备以及第一设备组
US20150271068A1 (en) Distributed Link Aggregation Group Service Handover Method and Device
WO2008131654A1 (fr) Système de réseau et procédé pour établir le trajet le plus court et transmettre le paquet de diffusion

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 9353/CHENP/2011

Country of ref document: IN

122 Ep: pct application non-entry in european phase

Ref document number: 10780068

Country of ref document: EP

Kind code of ref document: A1

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: PI1007569

Country of ref document: BR

ENP Entry into the national phase

Ref document number: PI1007569

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20111124