以太网链路聚合工作原理总结

资讯 2024-07-11 阅读:77 评论:0
链路聚合的基本概念The basic concept of ˂strong's association 产生背景˂span style="color:# FF;" to create background 随着网络规模的扩大,用户对骨干链...
美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

以太网链路聚合工作原理总结_负载均衡


以太网链路聚合工作原理总结_数据_02

产生背景


随着网络规模的扩大,用户对骨干链路的带宽和可靠性提出了越来越高的要求。

As the network has grown in size, users have placed increasing demands on the bandwidth and reliability of the backbone links.


在传统技术中,常用更换高速率的接口板或者更换高速率接口板的设备的方式来增加带宽,但这种方案需要付出高额的费用,而且不够灵活。

In traditional technologies, bandwidth is often increased by replacing high-speed interface boards or replacement of high-speed interface panels, but such schemes are costly and inflexible.


采用链路聚合技术可以在不进行硬件升级的条件下,通过将多个物理接口捆绑为一个逻辑接口,来达到增加链路带宽的目的。在实现增大带宽的同时,链路聚合采用备份链路的机制,可以有效的提高设备之间链路的可靠性。

The use of connection polymerization techniques can achieve the purpose of increasing the bandwidth of the links by tying multiple physical interfaces to one logical interface without hardware upgrades. While increasing bandwidth, the use of back-up-link mechanisms can effectively increase the reliability of the links between the devices.


应用场景


在企业网络中,所有设备的流量再转发到其他网络前都会汇聚到核心层,再由核心区设备转发到其他网络,或者转发到外网。

In an enterprise network, the flow of all equipment will be transferred to the core level before it is retransmitted to the other network, then to the other network, or to the outer network.


所以,在核心层设备负责数据的高速交换时,容易发生拥塞。在核心层部署链路聚合,可以提升整个网络的数据吞吐量,解决拥塞问题。

so, when the core layer is responsible for the high-speed exchange of data, there is a risk of congestion.


如下:两台交换机SWA和SWB之间通过两条成员链路相互连接,通过部署链路聚合,可以确保SWA和SWB之间的链路不会产生拥塞。

as follows: The two switchboards SWA and SWB are connected by two member links, and the deployment of the links aggregates to ensure that the links between SWA and SWB do not create congestion.

以太网链路聚合工作原理总结_ip地址_03

链路聚合

以太网链路聚合工作原理总结_链路_04

?解释


1.链路聚合就是把两台设备之间的多条物理链路聚合在一起,当作一条逻辑链路来使用。

这两台设备可以是一对路由器、一对交换机、或者是一台路由器和一台交换机。一条聚合链路可以包含多条成员链路,(注:在ARG3系列路由器和X7系列交换机上默认最多为8条)

the two devices can be a pair of routers, a pair of switchers, a router, and a switch. A polymer link can contain multiple member links. (Note: up to 8 by default on ARG3 and X7 switches)


2.链路聚合能够提高链路带宽。理论上,通过聚合几条链路,一个聚合口的带宽可以扩展为所有成员口带宽的总和,这样就有效地增加了逻辑链路的带宽。

2. Linkal polymerization can increase the bandwidth of the links. In theory, by combining several links, the bandwidth of a polymer can be extended to the sum of all members' oral bandwidths, thus effectively increasing the bandwidth of the logical links.


3.链路聚合为网络提供了该可靠性。配置了链路聚合后,如果一个成员接口发生故障时,该成员接口的物理链路会把流量切换到另一条成员链路上。

3. Link polymerization provides this reliability for the network. When a member interface is configured, the member interface's physical link will switch the flow to another member's chain.


4.链路聚合还可以在一个聚合口上实现负载均衡,一个聚合口可以把流量分散的多个不同的成员口上,通过成员链路把流量发送到一个目的地,将网络产生的拥塞的可能性降到最低。

4. Linkal polymerization can also achieve a load balance on one of the polymers, which can send traffic to a destination via a member's link and minimize the potential for congestion generated by the network.




以太网链路聚合工作原理总结_数据_02

链路聚合模式

以太网链路聚合工作原理总结_ip地址_06

链路聚合模式包含两种模式:手工负载均衡模式和静态LACP(Link Aggreation Control Protocol)模式

LinkAggregation Control Protocol mode includes two modes: manual load equilibrium mode and static LACP mode


?手工负载分担模式


Eth-Trunk的建立、成员接口的加入由手工配置,没有链路聚合控制协议的参与。该模式下所有活动链路都参与数据的转发,平均分担流量,因此称为负载分担模式。如果某条活动链路故障,链路聚合组自动在剩余的活动链路中平均分担流量。

Eth-Trunk's creation, member interfaces are configured manually, and there is no involvement in the connection control protocol.


当需要在两个直连设备之间提供一个较大的链路带宽而设备不支持LACP协议时,可以采用手工负载分担模式。

A manual load-sharing mode can be used when there is a need to provide a larger chain bandwidth between two straight-link devices and the equipment does not support the LACP agreement.


ARG3系列路由器和X7系列交换机可以基于目的MAC地址,源MAC地址,或者基于源MAC地址和目的MAC地址,源IP地址,目的IP地址,或者基于源IP地址和目的IP地址进行负载均衡。

ARG3 routers and X7 exchanges can be based on a destination MAC address, source MAC address, source IP address, destination IP address, or load balance based on source IP address and destination IP address.


?在静态LACP模式


链路两端的设备相互发送LACP报文,协商聚合参数。协商完成后,两台设备确定活动接口和非活动接口。在静态LACP模式中,需要手动创建一个Eth-Trunk口,并添加成员口。

links at both ends of the chain send LACP messages to negotiate convergence parameters. After the consultations are completed, two devices determine the active interface and the non-active interface. In the static LACP mode, a manual Eth-Trunk mouth needs to be created and members added.


LACP协商选举活动接口和非活动接口。静态模式也叫M:N模式。M代表活动成员链路,用于在负载均衡中转发数据。N代表非活动链路,用于冗余备份。

LACP Consultative electoral event interface and inactivity interface. The static mode is also called M:N mode. M represents the activity member's link, which is used to transmit data in load balance. N represents the inactive link, which is used for redundant backup.


如果一条活动链路发生故障,该链路传输的数据被切换到一条优先级高的备份链路上,这条备份链路转变为活动状态。

If an active link fails, the data transmitted by that link is switched to a high priority backup link, which is converted to active state.


两种链路聚合模式的主要区别是:在静态LACP模式中,一些链路充当备份链路;在手工负载均衡模式中,所以成员都处于转发状态。

The main differences between the two modes of chain convergence are: 数据流控制

data flow control

以太网链路聚合工作原理总结_mac地址_07

?1.在一个聚合口中,聚合链路两端的物理接口(即成员口)的所有参数必须一致,包括物理口的数量,传输速率,双工模式和流量控制模式。所有成员可以是二层接口或三层接口。

1. In a polymer port, all parameters of a physical interface (i.e. a member's mouth) at both ends of the polymer chain must be consistent, including the number of physical vents, transmission speed, double-entry mode and flow control mode. All members can be two- or three-storey interfaces.


2.数据流在聚合链路上传输,数据顺序必须保持不变。一个数据六块可以看作是一组MAC地址和IP地址相同的帧。

2. Data flow must be transmitted along the polymer chain and the data sequence must remain the same. A data set of six can be seen as a set of frames with the same MAC address and IP address.


eg:两台设备的SSH或SFTP连接可以看作一个一个数据流。如果未配置链路聚合,只是用一条物理链路来传输数据,那么一个数据流中的帧总能按正确的顺序到达目的地。

eg: The SSH or SFTP connection of two devices can be considered as a data stream. If no connection is configured, only a physical link is used to transmit the data, then the frame in a data stream always reaches the destination in the correct order.


配置了链路聚合后,多条物理链路被绑成一条聚合链路,一个数据中的帧通过不同的物理链路传输。

, when the links are condensed, multiple physical links are tied to a polymeric link, and the frame in one data is transmitted through different physical links.


如果第一个帧通过一条物理链路传输,第二个帧通过另一条五路链路传输,这样一来,同一数据流的第二个数据帧就可能比第一个数据帧先到达对端设备,从而产生接收数据包乱序的情况。

If the first frame is transmitted through a physical link, the second through another five-way link, then the second frame of the same data stream may reach the peer before the first data frame, thus creating a situation where the receiving data package is disorganized.


3.为了避免这种情况发生,Etn-Trunk采用逐流负载分担的机制,这种该机制把数据帧的地址通过HASH算法生成HASH-KEY值。

3. In order to avoid this, Etn-Trunk uses a flow-to-load burden-sharing mechanism that generates HASH-KEY values through the HASH algorithm.


然后,根据这个数值在Etn-Trunk转发表中寻找对的出接口,不同的MAC或IP地址,HASH得到的HASH-KEY值不同,从而出接口也就不同,这样既保证了同一数据流的帧在一条物理链路转发,又实现了流量在聚合组内各物理链路上的负载分担。逐流负载分担能保证报的顺序,但不能保证带宽利用率。

and then, based on this value, look for the right interface from the Etn-Trunk forwarding table, with different MAC or IP addresses, and with different HASH-KEY values, the interfaces are different. This ensures both the transmission of the same data flow frames in a physical link and the burden-sharing of the flow on the path of the physical links within the polymer group. 注:负载分担的类型主要包括以下几种,用户可以根据具体应用选择不同的负载分担类型


以太网链路聚合工作原理总结_mac地址_08

以太网链路聚合工作原理总结_数据_02

二层配置:

Second floor configuration:

以太网链路聚合工作原理总结_负载均衡_10

以太网链路聚合工作原理总结_mac地址_11

注意:

本例中,通过执行interface Eth-trunk 命令配置链路聚合。这条命令创建了-个Eth-Trunk口, 并且进入该Eth-Trunk口视图。trunk_ia用来唯- 标识一个Eth-Trunk, 该参数的取值可以是0到63之间的任何-一个整数。

In this case, the interface Eth-trunk command was configured to configure the connection. This command created an Eth-Trunk mouth and entered the Eth-Trunk mouth view. Trunk_ia is used to identify only one Eth-Trunk, and the parameter can be taken at any -integer value between 0 and 63.


如果指定的Eth- Trunk口已经存在,执行interface eth-trunk命令 会直接进入该Eth-Trunk口视图。

If the designated Eth-Trunk port already exists, executing the interface Eth-Trunk command will enter directly into the Eth-Trunk mouth view.


配置Eth-Trunk口和成员口,需要注意以下规则:

configure the Eth-Trunk and members, bearing in mind the following rules:


?1. 只能删除不包含任何成员口的Eth-Trunk口。

1. Only Eth-Trunk, which does not contain any member's mouth, can be deleted.


?2. 把接口加入Eth-Trunk口时,二层Eth-Trunk口的成员 口必须是二层接口,三层Eth-Trunk口的成员口必须是三层接口。

2. When adding the interface to the Eth-Trunk mouth, the members of the Eth-Trunk mouth on the second floor must have a second level and the members of the Eth-Trunk mouth on the third level must have a third level.


?3. 一个Eth-Trunk口最多可以加入8个成员口。

3. A Eth-Trunk may be added to a maximum of eight members.


?4.加入Eth-Trunk口的接口必须是hybrid接口 (默认的接口类型)。

4. Joining the Eth-Trunk interface must be hybrid interface (default interface type).


?5.一个Eth-Trunk口不能充当其他Eth-Trunk口的成员口。

? 5. One Eth-Trunk mouth cannot be a member of another Eth-Trunk mouth.


?6.一个以太接口只能加入一个Eth-Trunk口。如果把一个以太接口加入另一个Eth- Trunk口,必须先把该以太接口从当前所属的Eth- Trunk口中删除。

? 6. An Eth-Trunk interface can only be added to one Eth-Trunk. If you add an Eth-Trunk interface to another Eth-Trunk, the Eth-Trunk interface must first be removed from the Eth-Trunk mouth to which it belongs.


?7.一个Eth-TrunkO的成员口类型必须相同。例如,一个快速以太口(FEO) 和一个千兆以太口(GEO)不能加入同一个Eth-Trunk。

7. A member type of Eth-Trunko must be the same. For example, a fast-to-too and a gigabyte-to-trunk cannot be added to the same Eth-Trunk.


?8.位于不同接口板(LPU)上的以太口可以加入同一个Eh-Tunk口。如果一个对端接口直接和本端Eth-Trunk口的一个成员口相连,该对端接口也必须加入一个Eth-Trunk口。否则两端无法通信。

8. The Ether on the different interface boards (LPUs) can be joined to the same Eh-Tunk port. If a peer interface is connected directly to a member of the Eth-Trunk port at this end, the interface must also be joined to an Eth-Trunk port. Otherwise, the two ends cannot communicate.


?9.如果成员口的速率不同,速率较低的接口可能会拥塞,报文可能会被丢弃。

9. If the speed of a member's mouth is different, the lower speed interface may congest and the message may be discarded.


?10.接口加入Eth-Trunk口后, Eth-Trunk口学习MAC地址,成员口不再学习。

?10. After the interface is added to Eth-Trunk, Eth-Trunk learns the MAC address and members stop learning.


查看链路聚合信息:

see connection polymer information:

以太网链路聚合工作原理总结_负载均衡_12

synthesis

执行(display interface eth-trunk)<trunk-id命令,可以确认两台设备间是否已经成功实现链路聚合。也可以使用这条命令收集流量统计数据,定位端口故障。


如果Etn-trunk口处于UP状态,表明接口处于Down状态,表明所有成员接口物理层发生故障。如果管理员手动关闭端口,接口处于Administratively Down状态。

if the Etn-trunk port is in UP state, indicating that the interface is in Down state, indicating a malfunction in the physical layer of all member interfaces. If the administrator closes the port manually, the interface is in Administative Down state.


可以通过接口状态的改变发现接口故障,所有接口正常情况下都应处于UP状态。

A change in the interface state can detect an interface malfunction and all interfaces should normally be in UP state.


三层连理聚合配置:

3-storey connection polymer configuration:


以太网链路聚合工作原理总结_ip地址_13

以太网链路聚合工作原理总结_链路_14

注:

如果要在路由器上配置三层链路聚合,需要首先创建Eth-Trunk接口,然后在Etn-Trunk逻辑口上执行undo portswitch命令,把聚合链路从二层转化为三层链路,执行undo portswitch命令后,可以为Eth-trunk逻辑口分配一个IP地址

If you want to configure three-storey links in a router, you need to create the Eth-Trunk interface first, then execute the Undo portswitch command on the Etn-Trunk logic, convert the polymer link from the second to the third, and when you execute the undo portswitch command, assign an IP address to the Eth-trunk logic portal


查看链路聚合信息:

see connection polymer information:

以太网链路聚合工作原理总结_链路_15

?执行(display interface eth-trunk)<trunk-id命令,可以确认两台设备间是否已经成功实现链路聚合。也可以使用这条命令收集流量统计数据,定位端口故障。

? Execute (display interface et-trunk)< trunk-id command to confirm whether links have been successfully congregated between two devices. This command can also be used to collect flow statistics and locate port failures.


如果Etn-trunk口处于UP状态,表明接口处于Down状态,表明所有成员接口物理层发生故障。如果管理员手动关闭端口,接口处于Administratively Down状态。可以通过接口状态的改变发现接口故障,所有接口正常情况下都应处于UP状态。

If the Etn-trunk port is in UP state, indicating that the interface is in Down state, indicating that the physical layer of all member interfaces is malfunctioning. If the administrator closes the port manually, the interface is in Administative Down state. Interface failures can be detected through a change in the interface state, and all interfaces should normally be in UP state.


链路聚合协议


1.链路聚合协议用于建立和维持链路聚合的协商

2.协议只用于动态链路聚合,静态链路聚合不需要协议(Pagp是思科私有的链路聚合协议)

2. The protocol is only for dynamic chain polymers, and static chain polymers do not require protocols


3.LACP是IEEE 802.3ad标准链路聚合协议

LACP适用场景

LACP , 基于IEEE802.3ad标准的LACP(Link Aggregation Control Protocol,链路汇聚控制协议)是一种实现连理聚合动态汇聚的协议。

LACP, a link convergence control protocol based on the IEE802.3ad standard. is an agreement to bring together the dynamics of convergences.


1,在带宽比肩紧张的情况下,可以使用逻辑聚合可以扩展带宽到原链路的n倍

1, where bandwidth is tight relative to shoulder, logical aggregation can be used to extend bandwidth to the original link n times


2.在需要对链路进行动态备份的情况下,可以通过配置链路聚合实现同一聚合组各个成员端口之间彼此动态备份

LACP,协议通过LACPDU((Link Aggregation Control Protocol Data Unit,链路汇聚控制协议数据单元)与对端交互信息

LACP, agreeing to interact with end-to-end information via LACPDU (Link Association Control Data Data Unit)


LACP协商模式:

1.动态汇聚端口在启动LACP协议后,其管理KEY缺省为零。

2.静态汇聚端口在启用LACP后,端口的管理key与汇聚组ID相同。

2. When the static assembly port is activated, the port's managementkey is the same as the cluster ID.


查看链路聚合配置:

view of connection polymer configuration:

以太网链路聚合工作原理总结_数据_17

以太网链路聚合工作原理总结_ip地址_18

syndication

美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址
文字格式和图片示例

注册有任何问题请添加 微信:MVIP619 拉你进入群

弹窗与图片大小一致 文章转载注明

分享:

扫一扫在手机阅读、分享本文

发表评论
平台列表
美化布局示例

欧易(OKX)

  全球官网 大陆官网

币安(Binance)

  官网

火币(HTX)

  官网

Gate.io

  官网

Bitget

  官网

deepcoin

  官网
热门文章
  • 2017年比特币行情走势

    2017年比特币行情走势
    当年比特币行情分析。【小蚂蚁和以太坊】20 17年,比特币持续走强,价格上涨,创下新的历史新高。今年,比特币作为全球范围内的投资对象受到关注和讨论。【比特币信息网络】20 17上半年,比特币价格突破1000美元关口,随后持续上涨,引起了投资者的关注。投资者对比特币的未来充满期待,并希望获得巨大的利益。ZajXXGV0【虚拟货币下跌】随着比特币价格的不断上涨,市场上出现了一场争论。一些人认为比特币泡沫即将破裂,警告投资者谨慎参与。另一方面,其他人确信比特币的价格可能会上涨。oS...
  • 正在阅读:MetaMask-以太坊钱包(浏览器插件)使用教程MetaMask-以太坊钱包(浏览器插件)使用教程

    正在阅读:MetaMask-以太坊钱包(浏览器插件)使用教程MetaMask-以太坊钱包(浏览器插件)使用教程
    简介:MetaMask 是一款浏览器插件钱包,不需下载安装客户端,只需添加至浏览器扩展程序即可使用,非常方便。它是很多支持 ETH 参投的 ICO 项目推荐使用的钱包之一。Introduction: MetaMask is a wallet of ˂a href=http://dl.pconline.com.cn/sort/104.html" target="_blank"crass="cmsLink" browser, not to download and i...
  • Coinbase:财富100强企业过去一年的Web3采用率增长39%

    Coinbase:财富100强企业过去一年的Web3采用率增长39%
    随着比特币、以太坊等主流加密货币在web2世界的认可度变得越来越高,许多web2传统公司也积极拥抱web3,加速采用和开发区块链产品的速度和应用层面。With ˂a style= "max-width": 90%" href=https://m.php.cn/zt/21172.html" target="_blank" bitcoin, ˂a style="color:#f60; text-decoration: unde...
  • 美国可以使用什么加密货币交易所_前10名比特币交易平台名单

    美国可以使用什么加密货币交易所_前10名比特币交易平台名单
    美国可以使用什么加密货币交易所?What is an encrypted currency exchange that the United States can use?随着加密货币的普及,加密货币交易所也越来越多。对于美国的加密货币交易者而言,选择一个可靠、安全且易于使用的交易所是十分重要的事情。那么,美国可以使用哪些加密货币交易所呢?以下是前10名比特币交易平台名单:The choice of a reliable, secure, and easy-to-use...
  • 2015年宝马3系二手车价格多少钱

    2015年宝马3系二手车价格多少钱
    爱你一生不变心6558 2022-04-28 13:20:03 二手车能不能买主要看车况,如果车况好就可以考虑,车况不好价格再低也别考虑,像2015款宝马3系目前行情价是在18.32万这样,如果低...
标签列表