【太阁课堂】对链路聚合Eth-Trunk最佳总结!

资讯 2024-06-20 阅读:82 评论:0
以太网链路聚合Eth-Trunk简称链路聚合,它通过将多条以太网物理链路捆绑在一起成为一条逻辑链路,从而实现增加链路带宽的目的。同时,这些捆绑在一起的链路通过相互间的动态备份,可以有效地提高链路的可靠性。The confluence of...
美化布局示例

欧易(OKX)最新版本

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

APP下载   全球官网 大陆官网

币安(Binance)最新版本

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

APP下载   官网地址

火币HTX最新版本

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

APP下载   官网地址

以太网链路聚合Eth-Trunk简称链路聚合,它通过将多条以太网物理链路捆绑在一起成为一条逻辑链路,从而实现增加链路带宽的目的。同时,这些捆绑在一起的链路通过相互间的动态备份,可以有效地提高链路的可靠性。

The confluence of the Eth-Trunk short-term links in the tatanet is a logical link by binding several of the th-Trunk physical links together, thus achieving the purpose of increasing the bandwidth of the links. At the same time, these bound links can effectively increase their reliability through dynamic back-up with each other.

随着网络规模不断扩大,用户对骨干链路的带宽和可靠性提出越来越高的要求。在传统技术中,常用更换高速率的接口板或更换支持高速率接口板的设备的方式来增加带宽,但这种方案需要付出高额的费用,而且不够灵活。

As the network continues to grow in size, users place increasing demands on the bandwidth and reliability of the backbone links. In traditional technologies, it is common to increase bandwidth by replacing high-speed interface boards or replacing equipment supporting high-speed interface boards, but such programmes are costly and inflexible.

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

The use of connection polymerization technology can be effective in increasing the reliability of the link between equipment by tying multiple physical interfaces to one logical interface. In parallel to the purpose of increasing bandwidth, the use of back-up links in connection polymers can be effective.

  • 增加带宽

    Increase bandwidth

    链路聚合接口的最大带宽可以达到各成员接口带宽之和。

    The maximum bandwidth of the link-aggregation interfaces can reach the sum of the bandwidth of the interfaces of the members.

  • 提高可靠性

    Increased reliability

    当某条活动链路出现故障时,流量可以切换到其他可用的成员链路上,从而提高链路聚合接口的可靠性。

    In the event of a malfunction in one of the active links, the flow can be switched to other available member links, thereby increasing the reliability of the link polymer interface.

  • 负载分担

    Load Sharing

    在一个链路聚合组内,可以实现在各成员活动链路上的负载分担。

    Within a network of polymers, load-sharing can be achieved on the path of each member's activity chain.

如在两个设备之间通过三条以太网物理链路相连,将这三条链路捆绑在一起,就成为了一条逻辑链路。这条逻辑链路的最大带宽等于原先三条以太网物理链路的带宽总和,从而达到了增加链路带宽的目的;同时,这三条以太网物理链路相互备份,有效地提高了链路的可靠性。

It is a logical link that binds the three links together by three physical links between the two devices. The maximum bandwidth of this logical link is equal to the sum of the bandwidths of the original three physical links to the grid, thereby achieving the purpose of increasing the bandwidth of the links; at the same time, the three physical links are backed up by each other, which effectively improves the reliability of the links.

  • 链路聚合组和链路聚合接口

    Link-to-link polymer group and link-to-consolidation interface

    链路聚合组LAG(Link Aggregation Group)是指将若干条以太链路捆绑在一起所形成的逻辑链路。

    Link Aggregation Group (LAG) refers to the logical link that binds a number of links together in the same chain.

    每个聚合组唯一对应着一个逻辑接口,这个逻辑接口称之为链路聚合接口或Eth-Trunk接口。链路聚合接口可以作为普通的以太网接口来使用,与普通以太网接口的差别在于:转发的时候链路聚合组需要从成员接口中选择一个或多个接口来进行数据转发。

    Each group corresponds only to a logical interface, which is called the link polymer interface or the Eth-Trunk interface. The link polymer interface can be used as a normal Ethernet interface, and the difference with the normal Ethernet interface is that the link polymer group needs to select one or more interfaces from the member interface for data forwarding.

  • 成员接口和成员链路

    Member interfaces and member links

    组成Eth-Trunk接口的各个物理接口称为成员接口。成员接口对应的链路称为成员链路。

    The physical interfaces that make up the Eth-Trunk interface are called member interfaces.

  • 活动接口和非活动接口、活动链路和非活动链路

    Activity and non-activity interfaces, activity links and non-activity links

    链路聚合组的成员接口存在活动接口和非活动接口两种。转发数据的接口称为活动接口,不转发数据的接口称为非活动接口。

    The link group members interface has both active and non-active interfaces. The data relay interface is called the activity interface and the non-transmitting interface is called the non-active interface.

    活动接口对应的链路称为活动链路,非活动接口对应的链路称为非活动链路。

    The links to the activity interface are referred to as the activity link and those to the non-activity interface are referred to as the non-activity link.

  • 活动接口数上限阈值

    Maximum threshold for active interfaces

    设置活动接口数上限阈值的目的是在保证带宽的情况下提高网络的可靠性。当前活动链路数目达到上限阈值时,再向Eth-Trunk中添加成员接口,不会增加Eth-Trunk活动接口的数目,超过上限阈值的链路状态将被置为Down,作为备份链路。

    The purpose of setting the maximum activity interface threshold is to improve the reliability of the network while guaranteeing bandwidth. When the current number of active links reaches the upper limit, add a member interface to the Eth-Trunk, which will not increase the number of Eth-Trunk activity interfaces, and the chain status above the upper limit will be set at Down as a backup link.

    例如,有8条无故障链路在一个Eth-Trunk内,每条链路都能提供1G的带宽,现在最多需要5G的带宽,那么上限阈值就可以设为5或者更大的值。其他的链路就自动进入备份状态以提高网络的可靠性。

    For example, in Eth-Trunk, there are eight fault-free links that provide a bandwidth of 1G per link and now require a bandwidth of up to 5G, so that the upper limit is set at 5 or more. The other links automatically enter back-up status to improve network reliability.

    注:手工负载分担模式链路聚合不支持活动接口数上限阈值的配置。

    Note : Artisanal load-sharing mode chain aggregation does not support the configuration of the ceiling threshold for the number of active interfaces.

  • 活动接口数下限阈值

    Threshold threshold for active interfaces

    设置活动接口数下限阈值是为了保证最小带宽,当前活动链路数目小于下限阈值时,Eth-Trunk接口的状态转为Down。

    The bottom threshold of the active interface is set to ensure minimum bandwidth, and the Eth-Trunk interface is converted to Down when the current number of active links is less than the lower threshold.

    例如,每条物理链路能提供1G的带宽,现在最小需要2G的带宽,那么活动接口数下限阈值必须要大于等于2。

    For example, each physical link provides a bandwidth of 1G, which is now required at a minimum of 2G, so that the lower threshold for the number of active interfaces must be greater than or equal to 2.

  • 链路聚合模式

    Link Aggregation Mode

    链路聚合模式分为手工模式和LACP模式两种

    Link polymerization patterns are broken down into manual and LACP models.

维度手工模式LACP模式定义Eth-Trunk的建立、成员接口的加入由手工配置,没有链路聚合控制协议的参与。Eth-Trunk的建立是基于LACP协议的,LACP为交换数据的设备提供一种标准的协商方式,以供系统根据自身配置自动形成聚合链路并启动聚合链路收发数据。聚合链路形成以后,负责维护链路状态。在聚合条件发生变化时,自动调整或解散链路聚合。设备是否需要支持LACP协议不需要需要数据转发一般情况下,所有链路都是活动链路。所有活动链路均参与数据转发。如果某条活动链路故障,链路聚合组自动在剩余的活动链路中分担流量。一般情况下,部分链路是活动链路。所有活动链路均参与数据转发。如果某条活动链路故障,链路聚合组自动在非活动链路中选择一条链路作为活动链路,参与数据转发的链路数目不变。是否支持跨设备的链路聚合不支持支持检测故障只能检测到同一聚合组内的成员链路有断路等有限故障,但是无法检测到链路故障、链路错连等故障。不仅能够检测到同一聚合组内的成员链路有断路等有限故障,还可以检测到链路故障、链路错连等故障。

In the event of a change in the conditions of aggregation, the network is automatically adjusted or dissolved. The equipment needs to support the LACCP protocol without the need for data transmission generally, all links are active. All active links are involved in data forwarding. If an active link breaks, the network automatically shares the traffic in the remaining activity links. In general, some of the active links are active links. All active links are involved in data forwarding. If an activity link breaks, the chain is automatically connected to a non-active link, and the link is not broken to the same link.

  • 同一设备:是指链路聚合时,同一聚合组的成员接口分布在同一设备。

    Same equipment: When the link is condensed, the member interfaces of the same group of polymers are distributed in the same device.

  • 堆叠设备:是指在堆叠场景下,成员接口分部在堆叠的各个成员设备上。

    Stacking equipment: refers to the member interface branch on each member's equipment that is stacked under the stacking scene.

  • 跨设备:是指E-Trunk基于LACP(单台设备链路聚合的标准)进行了扩展,能够实现多台设备间的链路聚合。

    Trans-equipment: E-Trunk has expanded on the basis of LACP (the standard for single-equipment chain polymerization) to achieve multi-equipment inter-link polymerization.

根据是否启用链路聚合控制协议LACP,链路聚合分为手工模式和LACP模式。

Link polymerization is divided into manual and LACP models, depending on whether the chain polymer control protocol is activated or not.

手工模式下,Eth-Trunk的建立、成员接口的加入由手工配置,没有链路聚合控制协议LACP的参与。当需要在两个直连设备之间提供一个较大的链路带宽而设备又不支持LACP协议时,可以使用手工模式。手工模式可以实现增加带宽、提高可靠性和负载分担的目的。

In manual mode, the creation of Eth-Trunk and the addition of the membership interfaces are manually configured, without the involvement of the chain polymer control protocol LACP. When a larger link bandwidth is required between two straight-link devices and the equipment does not support the LACP protocol, manual mode can be used. manual models can achieve the purpose of increasing bandwidth, increasing reliability and burden sharing.

作为链路聚合技术,手工负载分担模式Eth-Trunk可以完成多个物理接口聚合成一个Eth-Trunk口来提高带宽,同时能够检测到同一聚合组内的成员链路有断路等有限故障,但是无法检测到链路层故障、链路错连等故障。

The manual load-sharing mode Eth-Trunk, as a connection-polyming technique, allows the integration of multiple physical interfaces into an Eth-Trunk port to enhance bandwidth, while detecting limited faults, such as broken circuits, in the member links within the same polymer group, but also failures, such as faults in the chain layer, fault links, etc., cannot be detected.

为了提高Eth-Trunk的容错性,并且能提供备份功能,保证成员链路的高可靠性,出现了链路聚合控制协议LACP(Link Aggregation Control Protocol),LACP模式就是采用LACP的一种链路聚合模式。

In order to improve the tolerance of Eth-Trunk and to provide back-up functions to ensure the high reliability of the member's links, the Link Aggregation Control Protocol (LACP) has emerged, and the LACP model is a linkage aggregation model using LACP.

LACP为交换数据的设备提供一种标准的协商方式,以供设备根据自身配置自动形成聚合链路并启动聚合链路收发数据。聚合链路形成以后,LACP负责维护链路状态,在聚合条件发生变化时,自动调整或解散链路聚合。

LACP provides a standard method of consultation for the equipment to exchange data, allowing the equipment to automatically form the polymer link according to its own configuration and to activate the data received and sent by the polymer link. When the polymer link is formed, LACP is responsible for maintaining the chain state and automatically adjusts or dissolves the connection aggregation in the event of a change in the terms of the polymer.

  • 系统LACP优先级

    System LACP Priority

    系统LACP优先级是为了区分两端设备优先级的高低而配置的参数。LACP模式下,两端设备所选择的活动接口必须保持一致,否则链路聚合组就无法建立。此时可以使其中一端具有更高的优先级,另一端根据高优先级的一端来选择活动接口即可。系统LACP优先级值越小优先级越高。

    The system LACP priority is a parameter that is configured to distinguish between the two ends of the equipment priority. Under the LACP model, the activity interfaces selected by the two ends of the device must be consistent, otherwise the chain polymers cannot be created. This allows one end to have a higher priority, and the other to select the activity interface based on the other end of the high priority. The system LACP priority values are higher than the lower priority.

  • 接口LACP优先级

    Interface LACP Priority

    接口LACP优先级是为了区别同一个Eth-Trunk中的不同接口被选为活动接口的优先程度,优先级高的接口将优先被选为活动接口。接口LACP优先级值越小,优先级越高。

    The interface LACP priority is intended to distinguish the priority of the different interfaces in the same Eth-Trunk from the priority of the activity interface, and the high-priority interface will be prioritized as the activity interface. The smaller the priority value of the interface , the higher the priority.

  • 成员接口间M:N备份

    Member interface M:N backup

    LACP模式链路聚合由LACP确定聚合组中的活动和非活动链路,又称为M:N模式,即M条活动链路与N条备份链路的模式。这种模式提供了更高的链路可靠性,并且可以在M条链路中实现不同方式的负载均衡。

    The LACP mode-link aggregation is defined by LACP as an active and inactive link in the polymer group, also known as M:N mode, i.e. a model of M-activity and N-back links. This model provides for higher chain reliability and allows for a load balance in different modes in the M-links.

基于IEEE802.3ad标准的LACP是一种实现链路动态聚合与解聚合的协议。LACP通过链路聚合控制协议数据单元LACPDU(Link Aggregation Control Protocol Data Unit)与对端交互信息。

The LACP, based on the IEEE802.3ad standard, is an agreement to achieve dynamic and deconsolidated links. LACP interacts with the end-to-end information through the Link Aggregation Control Data Unit.

在LACP模式的Eth-Trunk中加入成员接口后,这些接口将通过发送LACPDU向对端通告自己的系统优先级、MAC地址、接口优先级、接口号和操作Key等信息。对端接收到这些信息后,将这些信息与自身接口所保存的信息比较,用以选择能够聚合的接口,双方对哪些接口能够成为活动接口达成一致,确定活动链路。

After adding a member interface to the LACP model Eth-Trunk, these interfaces will communicate to the counterpart information about their system priorities, MAC addresses, interface priorities, interface numbers, and key operations. When the end receives this information, the information is compared to the information stored in the interface to select the interfaces that can be congregated and the parties agree on which interfaces can be the activity interface and determine the activity links.

报文字段说明:

newspaper text:

字段长度说明Destination Address6字节目的MAC地址,是一个组播地址(01-80-C2-00-00-02)Source Address6字节源MAC地址,发送端口的MAC地址Length/Type2字节协议类型:0x8809Subtype1字节报文子类型:0x01,说明是LACP报文Version Number1字节协议版本号:0x01TLV_type1字节0x00代表Terminator字段0x01代表Actor字段0x02代表Partner字段0x03代表Collector字段Actor_Information_Length1字节actor信息字段长度,为20字节Actor_Port2字节端口号,根据算法生成,由接口所在的槽位号、子卡号和端口号决定Actor_State1字节本端状态信息:LACP_Activity:代表链路所在的聚合组参与LACP协商的方式。主动的LACP被编码为1,主动方式下会主动发送LACPDU报文给对方,被动方式不会主动发送协商报文,除非收到协商报文才会参与。LACP_Timeout:代表链路接收LACPDU报文的周期,有两种,快周期1s和慢周期30s,超时时间为周期的3倍。短超时被编码为1,长超时被编码为0。Aggregation:标识该链路能否被聚合组聚合。如果编码为0,该链路被认为是独立的,不能被聚合,即,这个链路只能作为一个个体链路运行。Synchronization:代表该链路是否已被分配到一个正确的链路聚合组,如果该链路已经关联了一个兼容的聚合器,那么该链路聚合组的识别与系统ID和被发送的运行Key信息是一致的。编码为0,代表链路当前不在正确的聚合里。Collecting:帧的收集使能位,假如编码为1,表示在这个链路上进来的帧的收集是明确使能的;即收集当前被使能,并且不期望在没有管理变化或接收协议信息变化的情况下被禁止。其它情况下这个值编码为0。Distributing:帧的分配使能位,假如编码为0,意味着在这个链路上的外出帧的分配被明确禁止,并且不期望在没有管理变化或接收协议信息变化的情况下被使能。其它情况下这个值编码为1。Default:诊断调试时使用,编码为1,代表接收到的对端的信息是管理配置的。假如编码为0,正在使用的运行伙伴信息在接收到的LACPDU里。该值不被正常LACP协议使用,仅用于诊断协议问题。Expired:诊断调试时使用,编码为1,代表本端的接收机是处于EXPIRED超时状态;假如编码为0,本端接收状态机处于正常状态。该值不被正常LACP协议使用,仅用于诊断协议问题。Actor_System_Priority2字节本端系统优先级,可以设置,默认情况下为32768Actor_System6字节系统ID,本端系统的MAC地址Actor_key2字节端口KEY值,系统根据端口的配置生成,是端口能否成为聚合组中的一员的关 键因素,影响Key值得因素有trunk ID、接口的速率和双工模式Actor_Port_Priority2字节接口优先级,可以配置,默认为0x8000Reserved3字节保留字段,可用于功能调试以及扩展Partner_Information_Length1字节Partner信息字段长度。Partner字段代表了链路接口接收到对端的系统信息、接口信息和状态信息,与actor字段含义一致。在协商最开始未收到对端信息时,partner字段填充0,接收到对端信息后会把收到的对端信息补充到partner字段当中。Partner_Port2字节对端端口号Partner_State2字节对端状态信息Partner_System_Priority2字节对端系统优先级Partner_System6字节对端系统ID,对端系统的MAC地址Partner_key2字节对端端口KEY值Partner_Port_Priority2字节对端接口优先级Reserved2字节保留字段Collector_Information_Length1字节Collector信息字段长度:0x10CollectorMaxDelay2字节最大延时:默认情况下为0xffffReserved12字节保留字段Terminator_Length1字节Terminator信息字段长度:0x00Reserved50字节保留字段,全置0FCS4字节用于帧内后续字节差错的循环冗余检验(也称为FCS或帧检验序列)。

The length of the field indicates the MAC address of the Lacínation Address 6 note, a clustering address (01-80-C2-00-02) the MAC address of the Source Address 6 byte, the MAC address of the port: Length/Type2 byte type: 0x8809Subtype1 byte type: 0x01, the active Vésion Number 1 byte number: 0x01TLV_type1 by type 0x00 by type 0x0 by type 0 by type 0 by type 0 by type 0 by line 0 by route 0; the active Acor 0x03 by type 0xer by type 0x by type 0x by type by line 0; the active Acrect by type: Acor_Information_Length1 by type of active code; the active Actrón 1 by type of line 3 by type; the active Acor_Dort1 by type of line 3 by type; the active Acort1 by type of line by type is not available; the active CP by type of the active CP by type.

抓包示例:

Example:

如下图所示,在DeviceA和DeviceB上创建Eth-Trunk并配置为LACP模式,然后向Eth-Trunk中手工加入成员接口。此时成员接口上便启用了LACP协议,两端互发LACPDU报文。

As shown in the figure below, create Eth-Trunk on DeviceA and DeviceB and configure it as the LACP mode, and then manually add a member interface to Eth-Trunk. The LACP protocol is then activated on the member interface, with the LACPDU message circulated on both ends.

图片

如下图所示,两端设备均会收到对端发来的LACPDU报文。以DeviceB为例,当DeviceB收到DeviceA发送的报文时,DeviceB会查看并记录对端信息,然后比较系统优先级字段,如果DeviceA的系统优先级高于本端的系统优先级,则确定DeviceA为LACP主动端。如果DeviceA和DeviceB的系统优先级相同,比较两端设备的MAC地址,确定MAC地址小的一端为LACP主动端。

As shown in the figure below, each end of the device will receive a LACPDU message from the end. In the case of DeviceB, when DeviceB receives a message from DeviceA, DeviceB will view and record the end message and then compare the system priority field with the system priority field. If DeviceA has a system priority higher than the system priority at the end, it is determined that DeviceA is the LACP active. If DeviceA and DeviceB have a system priority level, the MAC address at both ends of the device is determined to be the LACP active.

选出主动端后,两端都会以主动端的接口优先级来选择活动接口,两端设备选择了一致的活动接口,活动链路组便可以建立起来,从这些活动链路中以负载分担的方式转发数据。

Following the selection of the active end, both ends select the active interface using the active end interface priority, and the two ends of the device select the same activity interface, so that the active link group can be created to forward the data from the active link in a load-sharing manner.

图片

使能LACP抢占功能后,聚合组会始终保持高优先级的接口作为活动接口的状态。

After enabling LACP to take over, the group will always maintain a high-priority interface as an active interface.

图片
图:抢占功能演示
  1. Port1接口出现故障而后又恢复了正常。当接口Port1出现故障时被Port3所取代,如果在Eth-Trunk接口下未使能LACP抢占功能,则故障恢复时Port1将处于备份状态;如果使能了LACP抢占功能,当Port1故障恢复时,由于接口优先级比Port3高,将重新成为活动接口,Port3再次成为备份接口。

    The Port1 interface has failed and is restored to normal. When the Port1 interface fails, it is replaced by Port3, and if the Eth-Trunk interface does not enable LACP to take over, Port1 will be back-up when the failure resumes; if the LACP is available, Port1 will be back-up when it resumes, because the interface priority is higher than Port3, and Port3 will be back-up interface again.

  2. 如果希望Port3接口替换Port1、Port2中的一个接口成为活动接口,可以使能了LACP抢占功能,并配置Port3的接口LACP优先级较高。如果没有使能LACP抢占功能,即使将备份接口的优先级调整为高于当前活动接口的优先级,系统也不会进行重新选择活动接口的过程,不切换活动接口。

    If the Port3 interface is expected to replace one of the Port1 and Port2 interfaces as an active interface, it will enable LACP to take over functions and configure the Port3 interface with a higher LACP priority. If LACP to take over functions, the system will not re-select the activity interface without switching the activity interface if the backup interface is not prioritized above the current activity interface.

抢占延时是LACP抢占发生时,处于备用状态的链路将会等待一段时间后再切换到转发状态。配置抢占延时是为了避免由于某些链路状态频繁变化而导致Eth-Trunk数据传输不稳定的情况。

The delay is when the LACP takes place, and the standby link will wait some time to switch to a forwarding state. The delay in the configuration is to avoid an unstable transmission of Eth-Trunk data due to frequent changes in the state of some of the links.

LACP模式链路聚合组两端设备中任何一端检测到以下事件,都会触发聚合组的链路切换:

Any of the following incidents detected at either end of the LACP-mixed polymer group equipment triggers a chain switch in the group:

  • 链路Down事件。

    Link Down incident.

  • 以太网OAM检测到链路失效。

    The Ethernet OAM detected a connection failure.

  • LACP协议发现链路故障。

    The LACP protocol found a link malfunction.

  • 接口不可用。

    Interface is not available.

  • 在使能了LACP抢占功能的前提下,更改备份接口的优先级高于当前活动接口的优先级。

    The priority of changing the back-up interface is higher than that of the current activity interface, provided that LACP is enabled to take over functions.

当满足上述切换条件其中之一时,按照如下步骤进行切换:

When one of the above-mentioned switching conditions is met, the switch is effected in accordance with the following steps:

  1. 关闭故障链路。

    Close the fail-link.

  2. 从N条备份链路中选择优先级最高的链路接替活动链路中的故障链路。

    Select the top priority link from the N backup link to replace the fault link in the activity link.

  3. 优先级最高的备份链路转为活动状态并转发数据,完成切换。

    The highest priority backup links are converted to active status and data are forwarded, and the switch is completed.

数据流是指一组具有某个或某些相同属性的数据包。这些属性有源MAC地址、目的MAC地址、源IP地址、目的IP地址、TCP/UDP的源端口号、TCP/UDP的目的端口号等。

Data streams are a set of data packages with one or more of the same properties. These properties are source MAC addresses, destination MAC addresses, source IP addresses, destination IP addresses, TCP/UDP source port numbers, TCP/UDP destination port numbers, etc.

对于负载分担,可以分为逐包的负载分担逐流的负载分担

For load-sharing, load-to-load-to-load-to-load-to-load-to-load-to-load-to-load-to-load-to-load-to-load-to-load-to-load-to-load-to-load-to-load-to-load-to-load-to-load-to-load-to-load-to-load-to-load-to-load-to-load-load-to-load-to-load-to-load-load-to-load-to-load-to-load-load-to-load-to-load-load-to-load-to-load-load-to-load-load-to-load-load-to-load-to-load-load-to-load-load-to-load-load-to-load-to-strong-to-load-to-load-load-to-load-to-load-load-to-load-load-to-load-load-to-load-to-load-load-load-to-load-load-to-load-to-to-load-to-load-to-load-to-load-to-to-load-to-load-to-to-load-of-to-load-to-of-of-of-of-of-load-of-of-of-of-of-of-of-of-of-of-of-of-of-of-of-of-of-of-of-of-of-of-of-of-of-of-of-of-of-of-of-of-of-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it-it

  • 逐包的负载分担

    Load-by-Back

    在使用Eth-Trunk转发数据时,由于聚合组两端设备之间有多条物理链路,就会产生同一数据流的第一个数据帧在一条物理链路上传输,而第二个数据帧在另外一条物理链路上传输的情况。这样一来同一数据流的第二个数据帧就有可能比第一个数据帧先到达对端设备,从而产生接收数据包乱序的情况。

    When using Eth-Trunk to transmit data, because of the multiple physical links between the devices at both ends of the polymer group, the first data frame of the same data stream is transmitted along a physical chain, while the second data frame is transmitted along another physical chain. The second data frame of the same data stream is likely to arrive at the peer before the first data frame, thus creating a situation in which the data package is dissipated.

  • 逐流的负载分担

    The loads of currents are shared.

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

    This mechanism produces HASH-KEY values through HASHH algorithms and then, based on this value, searches for the corresponding interfaces in the Eth-Trunk forwarding table, with different HASH-KEY values from the different MAC or IP address HASH, which ensures the same flow of frames to the same physical link and the burden-sharing of traffic along the physical links within the polymer group. The order of the load-sharing guarantee packages is different, but does not guarantee bandwidth utilization.

注:目前AR系列路由器仅支持逐流的负载分担。

Note: Currently AR series routers support only load-to-load sharing.

Eth-Trunk位于MAC与LLC子层之间,属于数据链路层。

Eth-Trunk is located between the MAC and the LLC sublayers and belongs to the data chain layer.

Eth-Trunk模块内部维护一张转发表,这张表由以下两项组成。

The Eth-Trunk module is maintained internally and is republished in a form consisting of the following two.

  • HASH-KEY值

    HaSH-KEY value

HASH-KEY值是根据数据包的MAC地址或IP地址等,经HASH算法计算得出。

The HASH-KEY values were calculated by the HASH algorithm based on, inter alia, the MAC address or IP address of the data pack.

  • 接口号

    Interface Number

Eth-Trunk转发表表项分布和设备每个Eth-Trunk支持加入的成员接口数量相关,不同的HASH-KEY值对应不同的出接口。

Eth-Trunk reproduces table item distribution and the number of member interfaces associated with each Eth-Trunk that supports addition, with different HASH-KEY values corresponding to different out-of-side interfaces.

Eth-Trunk模块根据转发表转发数据帧的过程如下:

The Eth-Trunk module is based on the process of transmitting the relay data frames as follows:

  1. Eth-Trunk模块从MAC子层接收到一个数据帧后,根据负载分担方式提取数据帧的源MAC地址/IP地址或目的MAC地址/IP地址。

    After the Eth-Trunk module has received a data frame from the MAC sublayer, the source MAC address/IP address or the destination MAC address/IP address is extracted according to the load-sharing method.

  2. 根据HASH算法进行计算,得到HASH-KEY值。

    The calculation was based on the HASH algorithm and the HASH-KEY value was obtained.

  3. Eth-Trunk模块根据HASH-KEY值在转发表中查找对应的接口,把数据帧从该接口发送出去。

    The Eth-Trunk module finds the corresponding interface in the forwarding table based on the HASH-KEY value and sends the data frames out of the interface.

为了避免数据包乱序情况的发生,Eth-Trunk采用逐流负载分担的机制,其中如何转发数据则由于选择不同的负载分担方式而有所差别。

In order to avoid the disruption of the data package, Eth-Trunk uses a flow load-sharing mechanism in which the transmission of data varies depending on the choice of different load-sharing methods.

负载分担的方式主要包括以下几种,用户可以根据具体应用选择不同的负载分担方式。

The burden-sharing approach consists mainly of the following, and users can choose different load-sharing methods depending on the specific application.

  • 根据报文的源MAC地址进行负载分担

    Loading share according to source MAC address of the message

  • 根据报文的目的MAC地址进行负载分担

    Loading share based on the MAC address for the purpose of the report

  • 根据报文的源IP地址进行负载分担

    Loading share according to source IP address of the message

  • 根据报文的目的IP地址进行负载分担

    Loading share according to the IP address for the purpose of the message

  • 根据报文的源MAC地址和目的MAC地址进行负载分担

    Loading share based on source MAC address and destination MAC address

  • 根据报文的源IP地址和目的IP地址进行负载分担

    Loading share based on source IP address and destination IP address of the submission

配置负载分担方式时,请注意:

When configuring load-sharing, note that:

  • 负载分担方式只在流量的出接口上生效,如果发现各入接口的流量不均衡,请修改上行出接口的负载分担方式。

    The load-sharing method is effective only on the flow-out interface, and if it is found that the traffic between the interfaces is uneven, change the load-sharing method for the up-and-out interface.

  • 尽量将数据流通过负载分担在所有活动链路上传输,避免数据流仅在一条链路上传输,造成流量拥堵,影响业务正常运行。

    As far as possible, the flow of data is transmitted through load-sharing along all the active chain routes, avoiding the transmission of data streams only along one chain, causing traffic congestion and hampering the normal functioning of operations.

例如,数据报文的目的MAC和IP地址只有一个,则应选择根据报文的源MAC和IP地址进行负载分担,如果选择根据报文的目的MAC和IP地址进行负载分担则会造成流量只在一条链路上传输,造成流量拥堵。

For example, where the purpose of the data message is to have only one MAC and IP address, a load-sharing based on the source MAC and IP addresses of the submission should be chosen, and if a load-sharing based on the purpose MAC and IP addresses of the message is chosen, the flow will be transmitted only along a chain of routes, resulting in traffic congestion.

  • 成员接口不能配置某些业务,例如成员接口不能修改接口类型、不能配置静态MAC地址。

    The member interface cannot configure certain operations, such as the member interface cannot modify the interface type and the static MAC address cannot be configured.

  • Eth-Trunk接口不能嵌套,即Eth-Trunk接口的成员接口不能是Eth-Trunk接口。

    The Eth-Trunk interface cannot be embedded, i.e. the Eth-Trunk interface cannot be the Eth-Trunk interface.

  • 一个Eth-Trunk接口中的成员接口必须是以太网类型和速率相同的接口。

    A member interface in the Eth-Trunk interface must be identical in the type and rate of the Tainet.

以太网类型和速率不同的接口不能加入同一个Eth-Trunk接口,如GE接口和FE接口不能加入同一个Eth-Trunk接口,GE电接口和GE光接口不能加入同一个Eth-Trunk接口。

The same Eth-Trunk interface cannot be added to interfaces with different types and speeds of the Tai Network, e.g. the GE interface and the FE interface cannot be added to the same Eth-Trunk interface, and the GE electrical interface and the GE light interface cannot be added to the same Eth-Trunk interface.

  • 如果本端设备接口加入了Eth-Trunk,与该接口直连的对端接口也必须加入Eth-Trunk,两端才能正常通信。

    If Eth-Trunk is added to this end device interface, Eth-Trunk must also be added to the face-to-face interface to enable normal communication at both ends.

  • 两台设备对接时需要保证两端设备上链路聚合的模式一致。

    The docking of the two devices will need to ensure consistency in the pattern of condensation of the equipment at both ends of the chain.

  • 一个以太网接口只能加入到一个Eth-Trunk接口,如果需要加入其它Eth-Trunk接口,必须先退出原来的Eth-Trunk接口。

    One Eth-Trunk interface can only be added to one Eth-Trunk interface, and if other Eth-Trunk interfaces are required, the original Eth-Trunk interface must be withdrawn.

  • 当成员接口加入Eth-Trunk后,学习MAC地址或ARP地址时是按照Eth-Trunk来学习的,而不是按照成员接口来学习。

    When Eth-Trunk is added to the membership interface, the MAC or ARP address is studied by Eth-Trunk rather than by the membership interface.

  • 删除聚合组时需要先删除聚合组中的成员接口。

    When deleting the group, the member interface in the group needs to be deleted first.

参数缺省值链路聚合模式手工负载分担模式活动接口数上限阈值8活动接口数下限阈值1系统LACP优先级32768接口LACP优先级32768LACP抢占去使能LACP抢占等待时间30s接收LACP报文超时时间90s

Threshold of the threshold of the maximum number of activity interfaces for the default value chain polymer mode manual load-sharing mode activity number 8 activity interfaces 1 system LACP priority 32768 interface LACP priority 32768 LACP takes over so that LACP takes up the waiting time of 30s to receive LACP submissions 90s

如下图,交换机1和2都有VLAN10,20.通过在两个交换机之间配置链路聚合提高链路带宽,以及增加一定的可靠性。

VLAN10,20. The switch 1 and 2 contain VLAN10,20. Increases the bandwidth of the links by contemplation of the links between the two switches and increases some reliability, as shown below.

两个交换机配置相同

The two switch configurations are identical.

执行:display eth-trunk 1,查看配置结果:

Implementation: displayeth-trunk1, viewing configuration results:

图片
图:手工负载模式配置情况

如下图,在两台设备上配置LACP模式链路聚合组,提高两设备之间的带宽与可靠性,具体要求如下:

As follows, the configuration of the LACP model chain polymer group on two devices will increase bandwidth and reliability between the two devices, as follows:

  • 两条活动链路具有负载分担的能力。

    The two activity links have load-sharing capabilities.

  • 两设备间的链路具有一条冗余备份链路,当活动链路出现故障链路时,备份链路替代故障链路,保持数据传输的可靠性。

    The link between the two devices has a redundant back-up link, which replaces the fault link when there is a fault link in the activity link and maintains the reliability of data transmission.

图片
图:LACP模式

配置结果:

Configuration result:

图片
图::LACP配置结果



美化布局示例

欧易(OKX)最新版本

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

APP下载   全球官网 大陆官网

币安(Binance)最新版本

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

APP下载   官网地址

火币HTX最新版本

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

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

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

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

分享:

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

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

欧易(OKX)

  全球官网 大陆官网

币安(Binance)

  官网

火币(HTX)

  官网

Gate.io

  官网

Bitget

  官网

deepcoin

  官网
热门文章
  • 区块链社区有哪些?区块链社区是什么?

    区块链社区有哪些?区块链社区是什么?
    展开全文...
  • 0.00006694个比特币等于多少人民币/美金

    0.00006694个比特币等于多少人民币/美金
    0.00006694比特币等于多少人民币?根据比特币对人民币的最新汇率,0.00006694比特币等于4.53424784美元/32.5436 16人民币。比特币(BTC)美元(USDT)人民币(CNY)0.000066944.53424784【比特币密码】32.82795436 16比特币对人民币的最新汇率为:490408.64 CNY(1比特币=490408.64人民币)(1美元=7.24人民币)(0.00006694USDT=0.0004846456 CNY)汇率更新时...
  • 0.00003374个比特币等于多少人民币/美金

    0.00003374个比特币等于多少人民币/美金
    0.00003374比特币等于多少人民币?根据比特币对人民币的最新汇率,0.00003374比特币等于2.2826 1222美元/16.5261124728人民币。比特币(BTC)美元(USDT)人民币(CNY)0.00003374克洛克-0/22216.5261124728比特币对人民币的最新汇率为:489807.72 CNY(1比特币=489807.72人民币)(1美元=7.24人民币)(0.00003374USDT=0.0002442776 CNY)。汇率更新于2024...
  • 0.00015693个比特币等于多少人民币/美金

    0.00015693个比特币等于多少人民币/美金
    0.000 15693比特币等于多少人民币?根据比特币对人民币的最新汇率,0.000 15693比特币等于10.6 1678529美元/76.86554996人民币。比特币(BTC)【比特币价格翻倍】美元(USDT)人民币(CNY)0.000/克洛克-0/5693【数字货币矿机】10.6 167852976.8655254996比特币对人民币的最新汇率为:489,807.72 CNY(1比特币= 489,807.72人民币)(1美元=7.24人民币)(0.00015693 U...
  • 2018-5-31币圈简报

    2018-5-31币圈简报
    一、要闻资讯类I. KEY INFORMATION CATEGORY1、央视:数字货币在京揭牌成立!中国或为此突变!1. View: Digital currency is established in Kyoto! China or mutated for it!中国数字货币来了˂a href="https://mp.weixin.qq.com/s/69fxKCf8GKSCscS4lT8WCA" Target="_blank"rel="noformlow"" Chinese...
标签列表