07 Eth-Trunk Istack and CSS
07 Eth-Trunk Istack and CSS
and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd.
All other trademarks and trade names mentioned in this document are the property of their respective holders.
Notice
The purchased products, services and features are stipulated by the contract made between Huawei and the
customer. All or part of the products, services and features described in this document may not be within the
purchase scope or the usage scope. Unless otherwise specified in the contract, all statements, information, and
recommendations in this document are provided "AS IS" without warranties, guarantees or representations of any
kind, either express or implied.
The information in this document is subject to change without notice. Every effort has been made in the preparation
of this document to ensure accuracy of the contents, but all statements, information, and recommendations in this
document do not constitute a warranty of any kind, express or implied.
Website: https://e.huawei.com/
Huawei Certification System
Huawei Certification follows the "platform + ecosystem" development strategy, which is a new
collaborative architecture of ICT infrastructure based on "Cloud-Pipe-Terminal". Huawei has set up
a complete certification system consisting of three categories: ICT infrastructure certification,
platform and service certification, and ICT vertical certification. It is the only certification system
that covers all ICT technical fields in the industry. Huawei offers three levels of certification:
Huawei Certified ICT Associate (HCIA), Huawei Certified ICT Professional (HCIP), and Huawei
Certified ICT Expert (HCIE). Huawei Certification covers all ICT fields and adapts to the industry
trend of ICT convergence. With its leading talent development system and certification standards, it
is committed to fostering new ICT talent in the digital era, and building a sound ICT talent
ecosystem.
Huawei Certified ICT Associate-Datacom (HCIA-Datacom) is designed for Huawei's frontline
engineers and anyone who want to understand Huawei's datacom products and technologies. The
HCIA-Datacom certification covers routing and switching principles, basic WLAN principles,
network security basics, network management and O&M basics, SDN and programmability and
automation basics.
The Huawei certification system introduces the industry, fosters innovation, and imparts cutting-
edge datacom knowledge.
Contents
1.1 Foreword
As services develop and the campus network scale expands, users have increasingly demanding
requirements on network bandwidth and reliability. Traditional solutions improve network bandwidth
by upgrading devices and implement high reliability by deploying redundant links and using the
Spanning Tree Protocol (STP), leading to low flexibility, time-consuming troubleshooting, and
complex configuration.
This chapter describes how to use Eth-Trunk, intelligent stack (iStack), and cluster switch system
(CSS) technologies to improve network bandwidth and reliability.
1.2 Objectives
On completion of this course, you will be able to:
Understand the functions of link aggregation.
Understand the link aggregation types.
Understand the link aggregation negotiation process in Link Aggregation Control Protocol
(LACP) mode.
Understand the advantages and principles of iStack and CSS.
Understand the common applications and networking of link aggregation and stacking
technologies.
Network reliability refers to the capability of ensuring nonstop network services when a single point
or multiple points of failure occur on a device or link.
Network reliability can be implemented at the card, device, and link levels.
3 Network Reliability
As networks rapidly develop and applications become more and more diversified, various value-
added services (VASs) are widely deployed. Network interruption may cause many service exceptions
and huge economic losses. Therefore, the reliability of networks has become a focus.
A modular switch consists of a chassis, power modules, fan modules, main processing units (MPUs),
switch fabric units (SFUs), and line processing units (LPUs).
Chassis: provides slots for various cards and modules to implement inter-card communication.
Power module: power supply system of the device
Fan module: heat dissipation system
MPU: responsible for the control plane and management plane of the entire system.
SFU: responsible for the data plane of the entire system. The data plane provides high-speed non-
blocking data channels for data switching between service modules.
LPU: provides data forwarding functions on a physical device and provides optical and electrical
interfaces of different rates.
For example, the S12700E-8 provides eight LPU slots, four SFU slots, two MPU slots, six power
module slots, and four fan module slots.
A modular switch can be configured with multiple MPUs and SFUs to ensure device reliability. If an
SFU or MPU in a single slot is faulty, the switch can still run properly.
After an LPU of a modular switch is damaged, interfaces on the LPU cannot forward data.
On a network without the device redundancy design, a downstream switch uses a single uplink.
If the upstream switch or its interfaces fail, all downstream networks are interrupted.
Master/Backup mode
6 No backup
On a network with the device redundancy design, a downstream switch is dual-homed to two
upstream switches. The links work in active/backup mode. If the active link or upstream switch
fails, traffic is switched to the backup link and forwarded through the backup device.
7 Master/Backup mode
8 Link Reliability
Eth-Trunk
9 Increasing Link Bandwidth
Ethernet link aggregation, also called Eth-Trunk, bundles multiple physical links into a logical
link to increase link bandwidth, without having to upgrade hardware.
Eth-Trunk iStack and CSS Page 6
11 Basic Concepts of Eth-Trunk
A link aggregation group (LAG) is a logical link formed by bundling several links. Each LAG
has one logical interface, known as an LAG interface or Eth-Trunk interface.
Member interface and member link: Physical interfaces that constitute an Eth-Trunk interface are
called member interfaces, and the link corresponding to a member interface is known as a
member link.
Active interface and active link: An active interface is also called a selected interface and is a
member interface that participates in data forwarding. The link corresponding to an active
interface is called an active link.
Eth-Trunk iStack and CSS Page 7
Inactive interface and inactive link: An inactive interface is also called an unselected interface
and is a member interface that does not participate in data forwarding. A link corresponding to an
inactive interface is referred to as an inactive link.
Link aggregation mode: Based on whether the Link Aggregation Control Protocol (LACP) is
enabled, link aggregation can be classified into manual mode and LACP mode.
Other concepts: upper and lower thresholds for the number of active interfaces
An Eth-Trunk can be treated as a physical Ethernet interface. The only difference between the
Eth-Trunk and physical Ethernet interface is that the Eth-Trunk needs to select one or more
member interfaces to forward traffic.
The following parameters must be the same for member interfaces in an Eth-Trunk:
Interface rate
Duplex mode
VLAN configurations: The interface type must be the same (access, trunk, or hybrid). For
access interfaces, the default VLAN of the member interfaces must be the same. For trunk
interfaces, the allowed VLANs and the default VLAN of the member interfaces must be the
same.
13 Defects of the Manual Mode (1)
To ensure that the Eth-Trunk works properly, ensure that the peer interfaces of all member
interfaces in the Eth-Trunk meet the following requirements:
The peer interfaces reside on the same device.
The peer interfaces are added to the same Eth-Trunk.
In manual mode, devices do not exchange packets. Therefore, the configuration needs to be
manually confirmed.
As shown in the preceding figure, four interfaces of SW1 are added to an Eth-Trunk, but the peer
end of one interface is SW3 instead of SW2. In this case, some traffic is load balanced to SW3,
causing communication exceptions.
14 Defects of the Manual Mode (2)
In manual mode, the device can determine whether the peer interface is working properly based
only on the physical layer status.
LACP mode: A link aggregation mode that uses the LACP protocol. Devices exchange Link
Aggregation Control Protocol Data Units (LACPDUs) to ensure that the peer interfaces are
member interfaces that belong to the same Eth-Trunk and are on the same device.
An LACPDU contains the device priority, MAC address, interface priority, and interface
number.
System Priority
15 LACPDU
In LACP mode, the number of active interfaces selected by devices at both ends must be
consistent; otherwise, the Eth-Trunk cannot be set up. In this case, configure one end as the
Actor. Then the other end selects active interfaces according to the Actor.
The Actor is determined based on the LACP system priority. A smaller value indicates a higher
priority.
Interface Priority
16 System Priority
Eth-Trunk iStack and CSS Page 10
After the Actor is selected, both devices select active interfaces based on the interface priorities
of the Actor. A smaller LACP interface priority value indicates a higher priority.
17
Maximum Number of Active Interfaces
Interface Priority
In LACP mode, the maximum number of active interfaces can be configured. When the number
of member interfaces exceeds the maximum number of active interfaces, the interfaces with
higher priorities and smaller interface numbers are selected as active interfaces, and the other
interfaces function as backup interfaces (inactive interfaces). In addition, the links corresponding
to active interfaces become active links, and the links corresponding to inactive interfaces
become inactive links. The switch sends and receives packets only through active interfaces.
If an active link fails, an inactive link with the highest priority (based on the interface priority
and interface number) is selected to replace the faulty link. This ensures that the overall
bandwidth does not change and services are not interrupted.
Eth-Trunk iStack and CSS Page 11
18
Active Link Election
Maximum Number of Active Interfaces
19 Active Link Election (1)
An Eth-Trunk in LACP mode is set up between SW1 and SW2. The maximum number of active
interfaces is set to 2 on SW1 and SW2.
SW1 with a higher priority is elected as the Actor through LACPDUs.
Configure an Eth-Trunk in LACP mode between SW1 and SW2 and add four interfaces to an
Eth-Trunk. The four interfaces are numbered 1, 2, 3, and 4. On SW1 and SW2, set the maximum
number of active interfaces in the Eth-Trunk to 2 and retain the default settings for the other
parameters (system priority and interface priority).
SW1 and SW2 send LACPDUs through member interfaces 1, 2, 3, and 4.
When receiving LACPDUs from the peer end, SW1 and SW2 compare the system priorities,
which use the default value 32768 and are the same. Then they compare MAC addresses. The
MAC address of SW1 is 4c1f-cc58-6d64, and the MAC address of SW2 is 4c1f-cc58-6d65. SW1
has a smaller MAC address and is preferentially elected as the Actor.
Eth-Trunk iStack and CSS Page 12
20 Active Link Election (2)
SW1 compares the interface priorities and interface numbers to select active interfaces. Under
the same interface priority, interfaces 1 and 2 have smaller interface numbers and are elected as
active interfaces.
21 Active Link Election (3)
SW1 notifies the peer end of the elected active interfaces through LACPDUs.
LACP uses the following flags in an LACPDU to identify the interface status. If the three flags
are set to 1, the interface is an active interface.
Synchronization
Collecting
Eth-Trunk iStack and CSS Page 13
Distributing
If the three flags are set to 0, the interface is an inactive interface.
22 Active Link Election (4)
SW2 determines the local active interfaces based on the election result of SW1 and the
corresponding links become active links.
In this way, the election of active links is complete.
Load Balancing
Per-packet load balancing
When an Eth-Trunk is used to forward data, there are multiple physical links between
devices at both ends of the Eth-Trunk. If data frames are forwarded on different links, data
frames may arrive at the peer end in a different order in which they were transmitted,
resulting in out-of-order packets.
Eth-Trunk iStack and CSS Page 14
23
Per-flow load balancing
Per-packet load balancing
Load balancing based on flows is recommended for an Eth-Trunk. In this mode, a flow is
load balanced to the same link. This ensures that frames of the same flow are transmitted
over the same physical link and implements load balancing among physical links in an Eth-
Trunk.
An Eth-Trunk can load balance traffic based on IP addresses or MAC addresses of packets. You
can configure different load balancing modes (valid locally only for outgoing packets) to
distribute data flows to different member interfaces.
Traffic can be load balanced based on: source IP address, source MAC address, destination IP
address, destination MAC address, source and destination IP addresses, and source and
destination MAC addresses.
For actual services, you need to configure a proper load balancing mode based on traffic
characteristics. If a service traffic parameter changes frequently, it is easier to load balance traffic
if you use the load balancing mode based on this frequently-changing parameter.
If the IP addresses of packets change frequently, load balancing based on the source IP address,
destination IP address, or source and destination IP addresses is more suitable for load balancing
among physical links.
If MAC addresses of packets change frequently and IP addresses are fixed, load balancing based
on the source MAC address, destination MAC address, or source and destination MAC addresses
is more suitable for load balancing among physical links.
If the selected load balancing mode is unsuitable for the actual service characteristics, traffic may
be unevenly load balanced. Some member links have high load, but other member links are idle.
For example, if the source and destination IP addresses of packets change frequently but the
Eth-Trunk iStack and CSS Page 15
source and destination MAC addresses are fixed and traffic is load balanced based on the source
and destination MAC addresses, all traffic is transmitted over one member link.
27
Between the switch and server
Between switches
To improve the access bandwidth and reliability of the server, bind two or more physical
NICs into a NIC group and establish an Eth-Trunk with the switch.
28
Between a switch and stack
Between the switch and server
An iStack is a logical device consisting of two switches. A switch can be connected to the
iStack through an Eth-Trunk to form a highly reliable loop-free network.
Eth-Trunk iStack and CSS Page 17
29 Between a switch and stack
To enable the LACP mode, run mode lacp. To enable the manual mode, run mode manual load-
balance.
Note: The link aggregation modes at both ends must be the same.
In the Eth-Trunk view, the interface is added to the Eth-Trunk. You can use either of the preceding
commands to add an interface to an Eth-Trunk.
Step 5 Enable interfaces at different rates to join the same Eth-Trunk interface.
By default, interfaces at different rates are not allowed to join the same Eth-Trunk, and only interfaces
at the same rate can be added to the same Eth-Trunk.
A smaller priority value indicates a higher LACP system priority. By default, the LACP priority is
32768.
The LACP interface priority is set in the interface view. By default, the LACP interface priority is
32768. A smaller priority value indicates a higher LACP interface priority.
You can run this command only after an interface is added to the Eth-Trunk.
Ensure that the maximum number of active interfaces on the local end is the same as that on the peer
end. The maximum number of active interfaces can be configured only in LACP mode.
The minimum number of active interfaces can be different on the local end and peer end and can be
configured in both manual and LACP modes.
The minimum number of active interfaces is configured to ensure the minimum bandwidth. When the
number of active links is smaller than the lower threshold, the Eth-Trunk interface goes down.
Eth-Trunk iStack and CSS Page 19
The maximum number of active interfaces varies according to switch models. For example, the
maximum number of active interfaces in an Eth-Trunk is 32 on the S6720HI, S6730H, S6730S,
and S6730S-S, and is 16 on the S6720LI, S6720S-LI, S6720SI, and S6720S-SI. For details, see
the product manual.
The minimum number of active interfaces is configured to ensure the minimum bandwidth. If the
bandwidth is too small, services that require high link bandwidth may be abnormal. In this case,
you can disconnect the Eth-Trunk interface to switch services to other paths through the high
reliability mechanism of the network, ensuring normal service running.
Example for Configuring an Eth-Trunk in Manual Mode
Requirement description:
SW1 and SW2 are connected to the networks of VLAN 10 and VLAN 20.
SW1 and SW2 are connected through two Ethernet links. To provide link redundancy and
enhance transmission reliability, configure an Eth-Trunk in manual mode between SW1 and
SW2.
31
SW1 configuration:
Example for Configuring an Eth-Trunk in Manual Mode
SW2 configuration:
32SW1 configuration:
Example for Configuring an Eth-Trunk in LACP Mode
SW1 configuration:
33 iStack
34 CSS
35.1.1 Application
When the port density of a switch cannot meet the access requirements, add new switches to set up an
iStack to increase the number of ports.
To increase the uplink bandwidth, add new switches to set up an iStack and add multiple physical
links of the member switches to an Eth-Trunk. This increases the uplink bandwidth, implements inter-
device backup and inter-device link redundancy, and improves reliability.
Eth-Trunk iStack and CSS Page 23
Two devices form a CSS and are virtualized into a single logical device. This simplified network does
not require Multiple Spanning Tree Protocol (MSTP) or Virtual Router Redundancy Protocol
(VRRP), so network configuration is much simpler. Additionally, inter-device link aggregation speeds
up network convergence and improves network reliability.
Eth-Trunk iStack and CSS Page 24
38 Application
Core layer
39 Recommended Architecture
Core switches set up a CSS and use Eth-Trunks to connect to uplink and downlink devices,
building a highly reliable and loop-free network.
Aggregation layer
Aggregation switches set up an iStack and use Eth-Trunks to connect to uplink and downlink
devices, building a highly reliable loop-free network.
Access layer
Access devices that are geographically close to each other (such as access switches in a building)
are virtualized into one logical device using iStack. This adds interfaces and simplifies
management.
An Eth-Trunk is used to connect to the aggregation layer. The logical network architecture is
simple, and STP and VRRP are not required. This networking offers high reliability, high uplink
bandwidth, and fast convergence.
Eth-Trunk iStack and CSS Page 25
39.1 Quiz
1. (Single) When two switches are interconnected using link aggregation, which of the following
conditions does not need to be met on each member port? ( )
A. The number of physical interfaces connected at both ends is the same.
B. The rates of the physical interfaces connected to the two ends are the same.
C. The duplex modes of the physical interfaces connected to the two ends are the same.
D. The physical numbers of the physical interfaces connected to the two ends are the same.
2. (Multiple)Which of the following statements about link aggregation are correct? ( )
A. Link aggregation can prevent routing loops.
B. Link aggregation increases the interconnection bandwidth of devices.
C. Link aggregation improves the reliability of device interconnection.
D. Link aggregation is implemented only at the physical layer and is irrelevant to the data link
layer.
3. (Multiple)Which of the following types of Ethernet link aggregation are commonly used? ( )
A. Manual aggregation
B. Dynamic LACP aggregation
C. Static LACP aggregation
D. Manual LACP aggregation
4. (True or False)All Huawei S series switches support the iStack function. ( )
A. True
B. False
5. (True or False)A maximum of eight physical ports can be bundled into one logical port.( )
A. True
B. False
6. What are the differences between per-packet load balancing and per-flow load balancing?
7. How does an Actor be elected in LACP mode?
8. What are the advantages of CSS and iStack?
39.2 Summary
Link aggregation can be used to improve link reliability, utilization, and bandwidth. Link aggregation
can be classified into static and LACP aggregation based on the aggregation mode.
LACP uses packet negotiation to implement backup for active links. When a link fails, the backup
link is elected as the active link to forward packets.
To ensure the sequence in which packets arrive, link aggregation uses per-flow load balancing.
iStack and CSS simplify network management and network structure, and improve network
reliability.