Interworking and Replacement Guide of Link Aggregation

Created Mar 23, 2017 15:08:52Latest reply Mar 21, 2019 15:51:44 5197 3 0 0

1 Interworking and Replacement Guide of Link Aggregation on Huawei S Series Switches and Cisco Switches

About This Chapter

Introduction to Ethernet Link Aggregation

Implementation Comparison

Interworking and Replacement Roadmap

Interworking and Replacement Solution

1.1 Introduction to Ethernet Link Aggregation

Definition

Ethernet link aggregation, also called Eth-Trunk, bundles multiple physical links to form a logical link to increase link bandwidth. The bundled links back up each other, increasing reliability.

Purpose

As the network scale expands increasingly, users propose increasingly high requirements on Ethernet backbone network bandwidth and reliability. Originally, to increase the bandwidth, users use high-speed cards or devices supporting high-speed interface cards to replace old interface cards or devices. This solution, however, is costly and inflexible.

Link aggregation helps increase bandwidth by bundling a group of physical interfaces into a single logical interface, without upgrading the hardware. In addition, link aggregation provides link backup, greatly improving link reliability.

Link aggregation has the following advantages:

l   Increased bandwidth

The bandwidth of the link aggregation interface is the sum of bandwidth of member interfaces.

l   Improved reliability

When an active link fails, traffic on this active link is switched to another active link, improving reliability of the link aggregation interface.

l   Load balancing

In a link aggregation group (LAG), traffic is load balanced among active links of member interfaces.

Classification of Link Aggregation

Link aggregation can work in manual load balancing mode or LACP mode depending on whether the Link Aggregation Control Protocol (LACP) is used.

l   Manual load balancing mode: You must manually create an Eth-Trunk and add member interfaces to the Eth-Trunk. In this mode, LACP is not required. This mode applies to the scenario where a high link bandwidth between two directly connected devices is required but the remote device does not support the LACP protocol.

l   LACP mode: In LACP mode, you also need to manually create an Eth-Trunk and add member interfaces to the Eth-Trunk. Active member interfaces are selected by sending LACP Data Units (LACPDUs) in LACP mode, which is different from the implementation in manual loading balancing mode. When a group of interfaces are added to an Eth-Trunk, they are classified into active and inactive ones by using LACPDUs. The LACP mode is also called the M:N mode, which implements both load balancing and link backup. M active links in the link aggregation group are responsible for forwarding and load balancing data, while the other N inactive links are backup ones and do not forward data. If an active link becomes faulty, the system selects the link with the highest priority from N inactive links. The inactive link becomes active and starts to forward data.

The implementation mechanisms of link aggregation in manual load balancing mode and LACP mode provided by different vendors are similar, and only commands and default settings are different.

1.2 Implementation Comparison

Overview

The implementation mechanism of link aggregation in manual load balancing mode and LACP mode on Huawei S series switches is similar to that on Cisco switches, but commands and default settings are different.

Comparison Between Default Settings

Table 1-1 compares default settings of link aggregation on Huawei S series switches and Cisco switches.

Table 1-1 Comparison between default settings

Parameter

Huawei S Series Switches

Cisco Switch

LACP system priority

32768

32768

LACP interface priority

32768

32768

Load balancing mode

Src-dst-ip

-

NOTE

The default load balancing modes on Cisco switches are different depending on models. For details, see Cisco product documentation.

Timeout interval of LACPDUs

90s

90s

 

Command Comparison

Table 1-2 compares link aggregation commands on Huawei S series switches and Cisco switches.

Table 1-2 Command comparison

Function

Command on Huawei S Series Switches

Command on Cisco Switches

Create an Eth-Trunk.

interface Eth-Trunk trunk-id

interface port-channel group_number

Configure a link aggregation mode.

mode { lacp | manual load-balance }

channel-group group_number mode { active | auto |desirable | on | passive }

NOTE

Cisco switches provide five link aggregation modes. The active and passive modes of link aggregation on Cisco switches correspond to those on Huawei S series switches. The on mode on Cisco switches corresponds to the manual load balancing mode on Huawei S series switches. The auto and desirable modes of link aggregation are based on the Port Aggregation Protocol (PAgP), which is a Cisco proprietary protocol. Huawei S series switches do not provide the corresponding link aggregation mode.

Add member interfaces to an Eth-Trunk.

eth-trunk trunk-id [ mode { active | passive } ]

channel-group group_number mode { active | auto |desirable | on }

Configure the LACP system priority.

lacp priority priority (system view)

lacp system-priority priority_value (system view)

Configure the LACP interface priority.

lacp priority priority (interface view)

lacp system-priority priority_value (interface view)

Configure a load balancing mode.

load-balance { dst-ip | dst-mac | src-ip | src-mac | src-dst-ip | src-dst-mac }

port-channel load-balance { src-mac | dst-mac | src-dst-mac | src-ip | dst-ip | src-dst-ip | src-port | dst-port | src-dst-port } [ module slot]

 

Configure the threshold for the number of active interfaces.

max active-linknumber link-number

lacp max-bundle number

Check the link aggregation configuration.

display eth-trunk [ trunk-id [ interface interface-type interface-number | verbose ] ]

show interfaces interface-type interface-number etherchannel

show etherchannel load-balance

 

1.3 Interworking and Replacement Roadmap

Overview of the Interworking and Replacement Solution

The link aggregation mode determines two interworking and replacement solutions.

l   A Huawei S series switch interworks with and replaces a Cisco switch using link aggregation in manual mode.

l   A Huawei S series switch interworks with and replaces a Cisco switch using link aggregation in static LACP mode.

Applicable Models and Versions

This example applies to all switch models of all versions.

Interworking Analysis

The implementation mechanism of link aggregation in manual mode and LACP mode on Huawei S series switches is similar to that on Cisco switches, so a Huawei S series switch can simply interwork with and replace a Cisco switch.

1.4 Interworking and Replacement Solution

1.4.1 Solution 1: A Huawei S Series Switch Interworks with and Replaces a Cisco Switch Using Link Aggregation in Manual Mode

Overview

A Huawei S series switch and a Cisco switch are configured with link aggregation in manual mode for interworking.

Networking Requirements

In Figure 1-1, The Cisco switch and Huawei S series switch are configured with the LAG in manual mode to improve bandwidth and reliability between them.

Figure 1-1 Networking of interworking and replacement using link aggregation in manual mode

20170323150251305004.png

 

Configuration Roadmap

l   The configuration roadmap for the Cisco switch is as follows:

a.         Create a port channel and add member interfaces, and configure a link aggregation mode.

b.         Configure a load balancing mode.

l   The configuration roadmap for the Huawei S series switch is as follows:

a.         Create an Eth-Trunk and add interfaces to the Eth-Trunk.

b.         Configure a load balancing mode.

Procedure

                               Step 1     Configure link aggregation in manual mode on the Cisco switch.

# Create a port channel and add member interfaces, and configure a link aggregation mode on the Cisco switch.

Switch# configure terminal
Switch(config)# hostname Cisco
Cisco(config)# interface range GigabitEthernet 0/1 -2
Cisco(config-if-range)# channel-group 2 mode on
isco(config-if-range)# end

# Configure a load balancing mode of the port channel.

Cisco# configure terminal
Cisco(config)# port-channel load-balance src-dst-mac
Cisco(config)# end

                               Step 2     Configure link aggregation in manual mode on the Huawei S series switch.

# Create an Eth-Trunk on the Huawei S series switch and add member interfaces to the Eth-Trunk. By default, Huawei S series switches are connected using link aggregation in manual mode. Therefore, you do not need to configure the link aggregation mode.

<HUAWEI> system-view
[HUAWEI] sysname Huawei
[Huawei] interface eth-trunk 1
[Huawei-Eth-Trunk1] trunkport gigabitethernet 0/0/1 to 0/0/3
[Huawei-Eth-Trunk1] quit

# Configure the load balancing mode of Eth-Trunk 1.

[Huawei] interface eth-trunk 1
[Huawei-Eth-Trunk1] load-balance src-dst-mac
[Huawei-Eth-Trunk1] quit

                               Step 3     Verify the configuration.

l   Run the display eth-trunk [ trunk-id [ interface interface-type interface-number | verbose ] ] command to check the link aggregation configuration on the Huawei S series switch.

l   Run the show interfaces interface-type interface-number etherchannel command to check link aggregation parameters and status information of corresponding interfaces on the Cisco switch.

l   Run the show etherchannel load-balance command to check the load balancing mode of link aggregation on the Cisco switch.

----End

1.4.2 Solution 2: A Huawei S Series Switch Interworks with and Replaces a Cisco Switch Using Link Aggregation in LACP Mode

Overview

A Huawei S series switch and a Cisco switch are configured with link aggregation in LACP mode for interworking.

Networking Requirements

In Figure 1-2, SwitchA (Cisco switch) and SwitchB (Huawei S series switch) are configured with the LAG in LACP mode to improve bandwidth and reliability between them. The LAG is composed of three links, two of which are active links and load balance data. The third link is a backup link. When an active link fails, the backup link replaces the faulty link to ensure the reliability of data transmission. SwitchB is the Actor.

Figure 1-2 Networking of interworking and replacement using link aggregation in LACP mode

20170323150252695005.png

 

Configuration Roadmap

l   The configuration roadmap for the Cisco switch is as follows:

a.         Create a port channel and add member interfaces, and configure a link aggregation mode.

b.         Configure a load balancing mode.

l   The configuration roadmap for the Huawei S series switch is as follows:

a.         Create an Eth-Trunk and add member interfaces, and configure the Eth-Trunk to work in LACP mode.

b.         Configure a load balancing mode.

c.         Set the LACP system priority to determine the Actor. Set the upper threshold for the number of active interfaces based on interfaces of the Actor to improve network reliability with bandwidth guarantee.

d.         Set interface priorities and determine active interfaces so that interfaces with higher priorities are selected as active interfaces.

Procedure

                               Step 1     Configure link aggregation in LACP mode on the Cisco switch.

# Create a port channel and add member interfaces, and configure a link aggregation mode on SwitchA.

Switch# configure terminal
Switch(config)# hostname SwitchA
SwitchA(config)# interface range GigabitEthernet 0/1 -2
SwitchA(config-if-range)# channel-group 2 mode passive
isco(config-if-range)# end

# Configure a load balancing mode of the port channel.

SwitchA# configure terminal
SwitchA(config)# port-channel load-balance src-dst-mac
SwitchA(config)# end

                               Step 2     Configure link aggregation in LACP mode on the Huawei S series switch.

# Create an Eth-Trunk on the Huawei S series switch, configure the Eth-Trunk to work in LACP mode, and add member interfaces to the Eth-Trunk.

<HUAWEI> system-view
[HUAWEI] sysname SwitchB
[SwitchB] interface eth-trunk 1
[SwitchB-Eth-Trunk1] mode lacp
[SwitchB-Eth-Trunk1] trunkport gigabitethernet 0/0/1 to 0/0/3

# Configure a load balancing mode on Eth-Trunk 1 of the Huawei S series switch.

[SwitchB-Eth-Trunk1] load-balance src-dst-mac
[SwitchB-Eth-Trunk1] quit

# Set the system priority of Huawei S series switch to 100 so that it can become the LACP Actor. (The LACP system priority of the Cisco switch uses the default value 32768, so the Huawei S series switch with LACP system priority 100 becomes the Actor.) Then set the upper threshold for the number of active interfaces.

[SwitchB] lacp priority 100
[SwitchB] interface eth-trunk 1
[SwitchB-Eth-Trunk1] max active-linknumber 2
[SwitchB-Eth-Trunk1] quit

# Set the interface priority to determine active links.

[SwitchB] interface gigabitethernet 0/0/1
[SwitchB-GigabitEthernet0/0/1] lacp priority 100
[SwitchB-GigabitEthernet0/0/1] quit
[SwitchB] interface gigabitethernet 0/0/2
[SwitchB-GigabitEthernet0/0/2] lacp priority 100
[SwitchB-GigabitEthernet0/0/2] quit

                               Step 3     Verify the configuration.

l   Run the display eth-trunk [ trunk-id [ interface interface-type interface-number | verbose ] ] command to check the link aggregation configuration on the Huawei S series switch.

l   Run the show interfaces interface-type interface-number etherchannel command to check link aggregation parameters and status information of corresponding interfaces on the Cisco switch.

l   Run the show etherchannel load-balance command to check the load balancing mode of link aggregation on the Cisco switch.

----End


2 Interworking Guide of a Huawei S Series Switch and a Server with Multiple Network Adapters

About This Chapter

Interworking Analysis

Interworking Solution

2.1 Interworking Analysis

Background

In Figure 2-1, to improve the server bandwidth and reliability, two or more network adapters of the server are aggregated to form a network adapter group to implement load balancing or redundancy.

Figure 2-1 Networking for connecting a Huawei series switch to a server with two network adapters

20170323150253568006.png

 

Interoperability Analysis

The interworking mode used by a Huawei S series switch to connect to a server depends on the binding mode of network adapters of the server. For details, see Table 2-1 and Table 2-2.

Table 2-1 Interworking mode of a Huawei S series switch and a Linux server

Network Adapter Binding Mode

Switch Interworking Mode

Description

round-robin

Configure link aggregation in manual mode.

The MAC addresses of network adapters of the server are changed to be the same so that switches interwork with the server using link aggregation in manual mode.

active-backup

Add connected interfaces to the same VLAN.

The server uses two network adapters that function as active and standby ones. All data is transmitted by the active interface. When a fault occurs on the link of the active interface, the link of the standby interface replace the faulty link to transmit data. It is recommended that two interfaces of the switch be added to the same VLAN.

load balancing

Configure link aggregation in manual mode.

Network adapters of a server transmit data based on a specified hash policy, so the switch needs to interwork with the server using link aggregation in manual mode.

broadcast

Two switches are connected and join different VLANs.

Network adapters of a server provide two copies of a packet, and send them through two interfaces. You are advised to use two switches and add them to different VLANs.

lacp

Configure link aggregation in LACP mode.

Network adapters of a server are bound in LACP mode, and the switch connects to the server using link aggregation in LACP mode.

transmit load balancing

Connect two switches.

Network adapters of a server use adaptive transmission load balancing, so no configuration is required on the switch.

adaptive load balancing

Configure link aggregation in manual mode.

Network adapters of a server use adaptability load balancing (ALB), and the switch needs to use link aggregation in manual mode.

 

Table 2-2 Interworking mode of a Huawei S series switch and a Windows server

Network Adapter Binding Mode

Switch Interworking Mode

Description

Adapter fault tolerance (AFT)

Add connected interfaces of the switch to the same VLAN.

Network adapters of a server use AFT, so you are advised to add connected interfaces of the switch to the same VLAN.

ALB

Add connected interfaces of the switch to the same VLAN.

Network adapters of a server use ALB, so you are advised to add connected interfaces of the switch to the same VLAN.

Static link aggregation (SLA)

Configure link aggregation in manual mode.

Network adapters of a server use SLA, so the switch needs to use link aggregation in manual mode.

Dynamic LACP

Configure link aggregation in LACP mode.

Network adapters of a server use link aggregation in LACP mode, so the switch needs to use link aggregation in LACP mode.

Switch fault tolerance (SFT)

Connect two switches.

Network adapters of a server use SFT, so two switches are used.

 

2.2 Interworking Solution

Overview

The interworking mode used by a Huawei S series switch to connect to a server with multiple network adapters depends on the binding mode of network adapters. For details, see 2.1 Interworking Analysis. The following solution uses the Windows server where network adapters are bundled in SLA mode as an example.

Networking Requirements

In Figure 2-2, the Windows server uses static link aggregation to bind multiple network adapters. A Huawei S series switch connects to the server using link aggregation in manual mode to increase link bandwidth and implement redundancy, ensuring data transmission and link reliability.

Figure 2-2 Networking for connecting a Huawei S series switch to a server using link aggregation

20170323150254478007.png

 

Configuration Roadmap

The configuration roadmap is as follows:

1.         Create an Eth-Trunk on the Huawei S series switch and add member interfaces to the Eth-Trunk to implement link aggregation in manual mode.

2.         Implement static link aggregation on the Windows server to bind multiple network adapters.

Procedure

1.         Configure link aggregation in manual mode on the Huawei S series switch.

<HUAWEI> system-view
[HUAWEI] sysname Switch
[Switch] interface eth-trunk 1
[Switch-Eth-Trunk1] trunkport gigabitethernet 0/0/1 to 0/0/2
[Switch-Eth-Trunk1] quit

2.         Configure static link aggregation on the Windows server to bind multiple network adapters. For details, see corresponding software description.

3.         Verify the configuration.

Run the display eth-trunk [ trunk-id [ interface interface-type interface-number | verbose ] ] command to check the link aggregation configuration on the Huawei S series switch.

  • x
  • convention:

user_2790689  Expert   Created Mar 23, 2017 15:59:11 Helpful(0) Helpful(0)

thank you
  • x
  • convention:

Jamalb     Created Nov 23, 2017 16:42:15 Helpful(0) Helpful(0)

Good ...
  • x
  • convention:

Jbattikh
khalifa_hanout     Created 2 days 15:51 Helpful(0) Helpful(0)

thank's
  • x
  • convention:

Responses

Reply
You need to log in to reply to the post Login | Register

Notice:To ensure the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but not limited to politically sensitive content, content concerning pornography, gambling, drug abuse and trafficking, content that may disclose or infringe upon others' intellectual properties, including commercial secrets, trade marks, copyrights, and patents, and personal privacy. Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see“ Privacy Policy.”
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Fast reply Scroll to top