Académique Documents
Professionnel Documents
Culture Documents
The member links of a trunk link can be configured with different weights to carry out load balancing,
which helps ensure connection reliability and greater bandwidth.
Users can configure trunk interfaces to support various routing protocols and services.
Figure 1 shows a simple Eth-Trunk example in which two routers are directly connected through
three interfaces. These three interfaces are bundled into an Eth-Trunk interface at both ends of the
trunk link. In this way, the bandwidth is increased, and reliability is improved.
Figure 1 Schematic diagram of a trunk
A trunk link can be considered as a point-to-point link. The devices on the end the link can be
both routers or switches, or a routeron one end and a switch on the other.
A trunk has the following advantages:
Greater bandwidth
The total bandwidth of a trunk interface equals the sum of the bandwidth of all its member
interfaces. In this manner, the interface bandwidth is multiplied.
Higher reliability
If a member interface fails, traffic on the faulty link is then switched to an available member link.
This ensures higher reliability for the entire trunk link.
Load balancing
Load balancing can be carried out on a trunk interface, which distributes traffic among its
member interfaces and then transmits the traffic through the member links to the same
destination. This prevents network congestion that occurs when all traffic is transmitted over
one link.
MAC address
Each station or server connected to an Ethernet interface of a device has its own MAC address. The
MAC address table on the device records information about the MAC addresses of connected
devices.
When a Layer 3 router is connected to a Layer 2 switch through two Eth-Trunk links for different
services, if both Eth-Trunk interfaces on the router adopt the default system MAC address, the
system MAC address is learned by the switch and alternates between the two Eth-Trunk interfaces.
In this case, a loop probably occurs between the two devices. To prevent loops, you can change the
MAC address of an Eth-Trunk interface by using the mac-address command. By configuring the
source and destination MAC addresses for two Eth-Trunk links, you can guarantee the normal
transmission of service data flows and improve the network reliability.
After the MAC address of an Eth-Trunk interface is changed, the device sends gratuitous ARP
packets to update the mapping relationship between MAC addresses and ports.
MTU
Generally, the IP layer controls the maximum length of frames that are sent each time. Any time the
IP layer receives an IP packet to be sent, it checks which local interface the packet needs to be sent
to and queries the MTU of the interface. Then, the IP layer compares the MTU with the packet length
to be sent. If the packet length is greater than the MTU, the IP layer fragments the packet to ensure
that the length of each fragment is smaller or equal to the MTU.
If forcible unfragmentation is configured, certain packets are lost during data transmission at the IP
layer. To ensure jumbo packets are not dropped during transmission, you need to configure forcible
fragmentation.
Generally, it is recommended that you adopt the default MTU value of 1500 bytes. If you need to
change the MTU of an Eth-Trunk interface, you need to change the MTU of the peer Eth-Trunk
interface to ensure that the MTUs of both interfaces are the same. Otherwise, services may be
interrupted.
Basic Concepts
Link aggregation
Link aggregation is a method of bundling several physical interfaces into a logical interface to
increase bandwidth and reliability.
Link aggregation group
A link aggregation group (LAG) or a trunk link is a logical link that aggregates several physical
links.
If all these aggregated links are Ethernet links, the LAG is called an Ethernet link aggregation
group, or an Eth-Trunk for short, and the interface at each end of the Eth-Trunk link is called an
Eth-Trunk interface.
Each interface that is added to the Eth-Trunk interface is called a member interface.
An Eth-Trunk interface can be considered as a single Ethernet interface. The only difference
lies that an Eth-Trunk interface needs to select one or more member Ethernet interfaces before
forwarding data. You can configure features on an Eth-Trunk interface the same way as on a
single Ethernet interface, except for some features that take effect only on physical Ethernet
interfaces.
NOTE:
An Eth-Trunk member interface cannot be added to another Eth-Trunk interface.
M:N backup applies to the scenario where bandwidth of M links needs to be provided and link
redundancy is required. If an active link fails, an LACP-enabled device can automatically select
the backup link with the highest priority and add it to the LAG.
If no backup link is available and the number of Up member links is less than the lower
threshold for the number of Up links, the device shuts down the trunk interface.
Similarity The LAG is created and deleted manually, and the member links are added and delete
In this mode, load balancing is carried out among all member interfaces. The NE40E supports two
types of load balancing:
Per-flow load balancing
Per-packet load balancing
2. Devices at both ends determine the Actor according to the system LACP priority and system
ID.
As shown in Figure 5, devices at both ends receive LACPDUs from each other.
When Device B receives LACPDUs from Device A, Device B checks and records information
about Device A and compares their system priorities. If the system priority of Device A is
higher than that of Device B, Device A functions as the Actor and Device B selects active
interfaces according to the interface priority of Device A. In this manner, devices on both ends
select the same active interfaces.
Figure 5 Determining the Actor in LACP mode
3. Devices at both ends determine active interfaces according to the LACP priorities and
interface IDs of the Actor.
On the network shown in Figure 6, after the devices at both ends determine the Actor, both
devices select active interfaces according to the interface priorities on the Actor.
Then active interfaces are selected, those to be included in the LAG are specified, and load
balancing is implemented among these active links.
Figure 6 Selecting active interfaces in LACP mode
If the Eth-Trunk interfaces on each end of a link can exchange LACPDUs normally and
LACP negotiation succeeds, the member interfaces in Unselected state are restored to the
Selected state and resume service traffic forwarding.
If the Eth-Trunk interfaces on each end of a link still cannot exchange LACPDUs normally,
the member interfaces remains in the Unselected state, and the member interfaces still
cannot participate in service traffic forwarding.
In Figure 8, a CE is dual-homed to UPE1 and UPE2. Eth-Trunk links in static LACP mode are
configured between the CE and the UPEs. UPE1 and UPE2 are configured as a VRRP backup
group, with UPE1 being the master and UPE2 being the backup. The VRRP backup group is
invisible to the CE.
UPE1 and UPE2 negotiate the master and backup by exchanging VRRP packets. After the
negotiation completes, one UPE functions as the master, and the other as the backup.
UPE1 functions as the master, and the Eth-Trunk connecting to UPE1 goes Up.
UPE2 functions as the backup, and the Eth-Trunk connecting to UPE2 goes Down.
If UPE1 becomes faulty and UPE2 no longer receives VRRP packets from UPE1, a timer starts.
After the timer expires, UPE2 becomes the master and notifies the LACP module of its master
status. After LACP negotiation is complete, the Eth-Trunk connecting to UPE2 goes Up. When UPE1
recovers from the fault, UPE1 switches to the master again. The master/backup status changes are
as follows:
When UPE1 becomes faulty, a master/backup switchover is performed in the VRRP backup
group, and UPE2 switches to the master. The Eth-Trunk link between the CE and UPE1 detects
the status change of the VRRP backup group and switch traffic to the Eth-Trunk link between
the CE and UPE2, which becomes the active link.
When UPE1 recovers, it becomes the master and UPE2 becomes the backup. The Eth-Trunk
link between the CE and UPE2 detects the status change of the VRRP backup group and
switches traffic back to the Eth-Trunk link between the CE and UPE1, which becomes the active
link.
If the vrrp vrid track interface command is used on the UPEs to configure VRRP tracking interface
status for fast master/backup switchover:
When a member interface of the Eth-Trunk between the CE and UPE1 becomes faulty or the
link between UPE1 and IP/MPLS core becomes faulty, the VRRP backup group detects the
fault based on the status of the monitoring interface, and UPE1 on which the interface resides
increases or decreases its priority by a specified value and performs a rapid master/backup
VRRP switchover by sending VRRP Advertisement packets.
When a member interface of the Eth-Trunk between the CE and UPE1 recovers or the link
between UPE1 and IP/MPLS core recovers, the VRRP backup group detects the recovery and
performs a rapid master/backup VRRP switchover to have UPE1 become the master again.
E-Trunk
Definition
Enhanced Trunk (E-Trunk) implements inter-device link aggregation, providing device-level
reliability.
Background
Eth-Trunk implements link reliability between single devices. However, if a device fails, Eth-Trunk
fails to take effect.
To improve network reliability, carriers introduced device redundancy with master and backup
devices. If the master device or primary link fails, the backup device can take over user services. In
this situation, another device must be dual-homed to the master and backup devices, and inter-
device link reliability must be ensured.
E-Trunk was introduced to meet the requirements. E-Trunk aggregates data links of multiple devices
to form a link aggregation group (LAG). If a link or device fails, services are automatically switched to
the other available links or devices in the E-Trunk, improving link and device-level reliability.
Basic Concepts
Figure 1 E-Trunk diagram 1
The LACP E-Trunk system priority is used for the E-Trunk to which Eth-Trunk interfaces in
static LACP mode are added.
The LACP system priority is used for Eth-Trunk interfaces in static LACP mode.
The LACP E-Trunk system priority and LACP system priority can be changed. If both
priorities are configured, after an Eth-Trunk interface working in static LACP mode is
added to an E-Trunk, only the LACP E-Trunk system priority takes effect for the Eth-Trunk
interface.
LACP system ID of a member Eth-Trunk interface in an E-Trunk
For an Eth-Trunk interface that is a member interface of an E-Trunk, the LACP system ID is
referred to as the LACP E-Trunk system ID.
If two devices on an Eth-Trunk link have the same LACP E-Trunk system priority, the LACP E-
Trunk system IDs are used to determine the devices' priorities. A smaller LACP E-Trunk system
ID indicates a higher priority.
NOTE:
The LACP E-Trunk system ID is used for the E-Trunk to which Eth-Trunk interfaces in
static LACP mode are added.
The LACP system ID is used for Eth-Trunk interfaces in static LACP mode.
To change the LACP E-Trunk system ID, run the lacp e-trunk system-id command. The
LACP system ID can only be the MAC address of an Ethernet interface on MPU and
cannot be changed.
E-Trunk priority
E-Trunk priorities determine the master/backup status of the devices in an aggregation group.
As shown in Figure 1, the smaller the E-Trunk priority value, the higher the E-Trunk priority.
PE1 has a higher E-Trunk priority than PE2, and therefore PE1 is the master device while PE2
is the backup device.
E-Trunk ID
An E-Trunk ID is an integer that uniquely identifies an E-Trunk.
Working mode
The working mode is subject to the working mode of the Eth-Trunk interface added to the E-
Trunk group. The Eth-Trunk interface works in one of the following modes: Automatic, Forcible
master and Forcible backup.
Timeout period
Normally, the master and backup devices in an E-Trunk periodically send Hello messages to
each other. If the backup device does not receive any Hello message within the timeout period,
it becomes the master device.
The timeout period is obtained through the formula: Timeout period = Sending period x
Multiplier.
If the multiplier is 3, the backup device becomes the master device if it does not receive any
Hello message within three consecutive sending periods.
Status of the Local E-Trunk Working Mode of the Local Status of the Peer Eth-Trunk Status o
Eth-Trunk Interface Interface Trunk I
E-Trunk Restrictions
To improve the reliability of CE and PE links, and to ensure that traffic can be automatically switched
between these links, the configurations on both ends of the E-Trunk link must be consistent. Use the
networking in Figure 2 as an example.
The Eth-Trunk link directly connecting PE1 to the CE and the Eth-Trunk link directly connecting
PE2 to the CE must be configured with the same working rate, and duplex mode. This ensures
that both Eth-Trunk interfaces have the same key and join the same E-Trunk group.
Peer IP addresses must be specified for the PEs to ensure Layer 3 connectivity. The address of
the local PE is the peer address of the peer PE, and the address of the peer PE is the peer
address of the local PE. Here, it is recommended that the addresses of the PEs are configured
as loopback interface addresses.
The E-Trunk group must be bound to a BFD session.
The two PEs must be configured with the same security key (if necessary).