7, Eth Trunk Istatc and Css
7, Eth Trunk Istatc 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.
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.
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.
Eth-Trunk iStack and CSS Page 4
Master/Backup mode
6 No backup
7 Master/Backup mode
8 Link Reliability
Eth-Trunk
9 Increasing Link Bandwidth
10
Basic Concepts of Eth-Trunk
Eth-Trunk
Eth-Trunk iStack and CSS Page 7
11 Basic Concepts of Eth-Trunk
interfaces must be the same. For trunk interfaces, the allowed VLANs
and the default VLAN of the member interfaces must be the same.
12
Defects of the Manual Mode
Manual Mode
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:
Eth-Trunk iStack and CSS Page 9
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.
System Priority
15 LACPDU
16
Interface Priority
System Priority
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.
Eth-Trunk iStack and CSS Page 11
17
Maximum Number of Active Interfaces
Interface Priority
18
Active Link Election
Maximum Number of Active Interfaces
Eth-Trunk iStack and CSS Page 12
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 13
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
Distributing
If the three flags are set to 0, the interface is an inactive interface.
Eth-Trunk iStack and CSS Page 14
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.
23
Per-flow load balancing
Per-packet load balancing
Eth-Trunk iStack and CSS Page 15
24
Load Balancing Mode
Per-flow load balancing
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 the switch and server
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.
Eth-Trunk iStack and CSS Page 20
31
Example for Configuring an Eth-Trunk in Manual Mode
SW1 configuration:
SW2 configuration:
SW1 and SW2 are connected through three Ethernet links. To provide link
redundancy and enhance transmission reliability, configure an Eth-Trunk
in LACP mode between SW1 and SW2, manually adjust the priority to
configure SW1 as the Actor, and set the maximum number of active
interfaces to 2. The other link functions as the backup link.
32
Example for Configuring an Eth-Trunk in LACP Mode
SW1 configuration:
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 24
redundancy backup
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 25
38 Application
39
Core layer
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 26
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.