11 Eth-Trunki Stackand CSS
11 Eth-Trunki Stackand CSS
Contents
Page 3 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Network Reliability
• 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.
iStack
Link Link
Network A aggregation Network B
aggregation
Page 4 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Card Reliability (1)
MPU • A modular switch consists of a chassis, power modules, fan
modules, main processing units (MPUs), switch fabric units
LPU (SFUs), and line processing units (LPUs).
• Chassis
SFU • Power module
• Fan module
LPU
• MPU,Main Processing Unit
Page 5 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Card Reliability (2)
The failure of a single
MPU does not affect the
normal operation of the
control platform.
MPU
If some SFUs are faulty,
the data plane can still • For example, the S12700E-8 provides eight LPU
LPU
forward data properly.
slots, four SFU slots, two MPU slots, six power
module slots, and four fan module slots.
SFU
• A modular switch can be configured with multiple
MPUs and SFUs to ensure device reliability. If an
LPU SFU or MPU in a single slot is faulty, the switch
can still run properly.
If the LPU is faulty,
the interfaces on the • After an LPU of a modular switch is damaged,
LPU are affected.
interfaces on the LPU cannot forward data.
Page 6 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Device Reliability
No backup Master/Backup mode
R Root Port
Network Network
A Alternative Port
Page 7 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Link Reliability
STP STP
Aggregation Aggregation
switch switch To improve link reliability, a
new link will be added. This
link is blocked by STP and
functions as a backup link.
Page 8 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Contents
Page 9 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Increasing Link Bandwidth
• When multiple links exist between devices, traffic is forwarded on only one link due to STP. In this
case, the inter-device link bandwidth remains unchanged.
SW1 SW2
F F
STP F B
root
bridge F B
F B
Page 10 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Eth-Trunk
• Ethernet link aggregation, also called Eth-Trunk, bundles multiple physical links into a logical link to
increase link bandwidth, without having to upgrade hardware.
SW1 SW2
F F
F F
F F
F F
Eth-Trunk
Page 11 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Basic Concepts of Eth-Trunk
Eth-Trunk
SW1 interface • Link Aggregation Group,LAG
S S U U
• Member interface and member link
Member
• Active interface and active link
link
Member • Inactive interface and inactive link
interface LAG
• Link aggregation mode:manual mode and LACP mode
Page 12 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Contents
Page 13 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Manual Mode
路由器
SW1 SW2
S S
S S
S S
S S
Eth-Trunk
• Manual mode: An Eth-Trunk is manually created, and its member interfaces are manually configured. LACP is not
used for negotiation between the two systems.
• In most cases, all links are active links. In this mode, all active links forward data and evenly share traffic. If an
active link is faulty, the LAG automatically evenly shares traffic among the remaining active links.
• If one of the devices at both ends of an LAG does not support LACP, you can use the manual mode.
Page 14 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Defects of the Manual Mode (1)
SW1 SW2
S S
Eth-Trunk
Eth-Trunk
S S
interface
interface
S S
S
Eth-Trunk in
manual mode
S Active interface
SW3
• 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.
Page 15 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Defects of the Manual Mode (2)
SW1 SW2
S S
S S
S S
S F
Eth-Trunk
Interface in Up state but
failing to forward packets
S Active interface
F Faulty interface
In manual mode, the device can determine whether the peer interface is working properly based
only on the physical layer status.
Page 16 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Contents
Page 17 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
LACPDU
SW1 SW2
Eth-Trunk interface
S S
Eth-Trunk in LACP mode
Eth-Trunk
interface
S S
S S
S S
LACPDU
Device priority LACPDU
MAC address
Interface priority
Interface number
...
• 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.
Page 18 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
System Priority
• 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.
SW1 Eth-Trunk in LACP mode SW2
S S
Eth-Trunk
interface
Eth-Trunk
S S
interface
S S
S S
Page 19 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Interface 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
interface
interface
S S
S S
S S
Page 20 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Maximum Number of Active Interfaces (1)
• 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.
Eth-Trunk
Eth-Trunk
interface
interface
2 2
3 3
4 4
Page 21 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Maximum Number of Active Interfaces (2)
• 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
interface
2 2
3 3
4 4
Active link
Active interface
Inactive link
Inactive interface
Faulty link
Page 22 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Active Link Election (1)
LACPDU
Page 23 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Active Link Election (2)
Active interface
Inactive interface
Page 24 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Active Link Election (3)
Inactive interface
Page 25 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Active Link Election (4)
Page 26 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Load Balancing
Page 27 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Load Balancing Mode
• 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.
S S S S
S S S S
Same source and destination S S Same source and destination S S
MAC addresses but different MAC addresses but different
source and destination IP Eth-Trunk source and destination IP Eth-Trunk
addresses addresses
Source and destination IP address Source and destination MAC address
mode mode
Page 28 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Contents
Page 29 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Typical Application Scenario (1)
Core switch
Network
Eth-Trunk
Page 30 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Typical Application Scenario (2)
Between a switch and stack Heartbeat link of firewalls in hot standby mode
Stacking cable
Aggregation
switch
Eth-Trunk
Eth-Trunk
Access switch
Hot
standby
Page 31 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Contents
Page 32 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Configuration Commands (1)
1. Create an Eth-Trunk.
Page 33 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Configuration Commands (2)
Page 34 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Configuration Commands (3)
7. Configure the LACP interface priority.
Page 35 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Example for Configuring an Eth-Trunk in Manual Mode
SW1 configuration:
Eth-Trunk [SW1] interface eth-trunk 1
GE0/0/1 GE0/0/1 [SW1-Eth-Trunk1] trunkport gigabitethernet 0/0/1 to 0/0/2
GE0/0/2 GE0/0/2
[SW1-Eth-Trunk1] port link-type trunk
SW1 SW2 [SW1-Eth-Trunk1] port trunk allow-pass vlan 10 20
• Requirement description:
▫ SW1 and SW2 are connected to the networks of VLAN 10 SW2 configuration:
and VLAN 20.
[SW2] interface eth-trunk 1
▫ SW1 and SW2 are connected through two Ethernet links. To
[SW2-Eth-Trunk1] trunkport gigabitethernet 0/0/1 to 0/0/2
provide link redundancy and enhance transmission reliability,
[SW2-Eth-Trunk1] port link-type trunk
configure an Eth-Trunk in manual mode between SW1 and
SW2. [SW2-Eth-Trunk1] port trunk allow-pass vlan 10 20
Page 36 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Example for Configuring an Eth-Trunk in LACP Mode (1)
Page 37 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Example for Configuring an Eth-Trunk in LACP Mode (2)
▫ SW1 and SW2 are connected to the networks of VLAN 10 [SW2-Eth-Trunk1] port link-type trunk
and VLAN 20. [SW2-Eth-Trunk1] port trunk allow-pass vlan 10 20
▫ SW1 and SW2 are connected through three Ethernet links. [SW2-Eth-Trunk1] quit
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.
Page 38 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Contents
Page 39 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Introduction to iStack and CSS
iStack CSS
Equivalent to Link
Link Equivalent to aggregation
aggregation
• iStack: Multiple iStack-capable switches are connected using stacking cables to form a logical switch that
participates in data forwarding.
• Cluster switch system (CSS): Two CSS-capable switches are bundled into one logical switch.
• A CSS consists of only two switches. Generally, modular switches support CSS, and fixed switches support iStack.
Page 40 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Advantages of iStack and CSS
Equivalent to
• Inter-device link aggregation
is implemented on a loop-
free physical network, so
STP does not need to be
iStack deployed.
• All links in the Eth-Trunk are
Physical forms of CSS and iStack Logical forms of CSS and iStack used, and the link usage is
100%.
Page 41 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Application (1)
Extending the bandwidth and implementing
Extending the port quantity redundancy backup
Aggregation
layer
Access
layer iStack
Access
layer
iStack
Page 42 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Application (2)
CSS Link Eth-Trunk
MSTP+VRRP
CSS
Aggregation
layer
Access layer
• 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.
Page 43 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Recommended Architecture
Network
Aggregation layer
• Aggregation switches set up an iStack and use Eth-Trunks to connect
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.
iStack iStack • 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.
Page 44 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Summary
• 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.
Page 46 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.