Documentos de Académico
Documentos de Profesional
Documentos de Cultura
3ad) on
Huawei S5700
Link aggregation, in other words trunking, is a technique that helps to increase bandwidth by
bundling multiple physical interfaces into a logical one, named Eth-trunk. Besides
bandwidth increase, trunking lets us to implement load-balancing and ensure higher reliability.
Few restrictions must be taken into consideration when creating Eth-trunk interface:
parameters of physical interfaces (number, transmission rate, duplex mode and traffic-
control mode) on both ends of the trunk link must be consistent.
data sequence must be unchanged (frames belonging to the same data flow are
transmitted over the same physical link).
Usually used if one of the devices, connected by Eth-trunk, does not support LACP. All
active members interfaces forward data and perform load balancing. If an active link of the
link aggregation group fails, traffic is balanced among the remaining active links. LACP is
disabled.
LACP is enabled. When physical interfaces are added to an Eth-Trunk interface, devices at
both ends negotiate aggregation parameters and determine active and inactive interfaces by
sending LACPDUs to each other. Inactive interfaces are used for redundancy backup. When
an active link fails, the backup link with the highest priority replaces the failed link and
changes its status to active. The device in the link aggregation group with a higher LACP
priority is the Actor, and the device with a lower LACP priority is the Partner. In case when
they have the same LACP priority, the device with smaller MAC address becomes the Actor.
labnario_1
#
interface Vlanif100
ip address 10.0.0.1 255.255.255.0
#
interface GigabitEthernet0/0/23
port link-type access
port default vlan 100
#
interface GigabitEthernet0/0/24
port link-type access
port default vlan 100
labnario_2
#
interface Vlanif100
ip address 10.0.0.2 255.255.255.0
#
interface LoopBack0
ip address 4.4.4.4 255.255.255.255
[labnario_1]interface Eth-Trunk 1
[labnario_1-Eth-Trunk1]bpdu enable
[labnario_1-Eth-Trunk1]mode lacp-static
[labnario_1]lacp priority 10
[labnario_1]interface Eth-Trunk 1
[labnario_1-Eth-Trunk1]max active-linknumber 2
[labnario_1]dis eth-trunk 1
Eth-Trunk1's state information is:
Local:
LAG ID: 1 WorkingMode: STATIC
Preempt Delay: Disabled Hash arithmetic: According to SIP-XOR-DIP
System Priority: 10 System ID: 4c1f-cce4-15b4
Least Active-linknumber: 1 Max Active-linknumber: 2
Operate status: up Number Of Up Port In Trunk: 2
---------------------------------------------------------------------------
-----
Partner:
---------------------------------------------------------------------------
-----
[labnario_2]dis eth-trunk 1
Eth-Trunk1's state information is:
Local:
LAG ID: 1 WorkingMode: STATIC
Preempt Delay: Disabled Hash arithmetic: According to SIP-XOR-DIP
System Priority: 32768 System ID: 4c1f-ccb8-cad1
Least Active-linknumber: 1 Max Active-linknumber: 8
Operate status: up Number Of Up Port In Trunk: 2
---------------------------------------------------------------------------
-----
Partner:
---------------------------------------------------------------------------
-----
As you can see 2 ports are selected, valid and in UP state, LACP priority is 10, default port
priority is 32768, default hash arithmetic is SIP-XOR-DIP (source and destination IP, it can be
different on different switches).
Try to change GE0/0/1 and GE0/0/3 ports to be selected and make GE0/0/2 unselected, by
configuring LACP priority on the interfaces. A smaller priority value indicates a higher LACP
priority. Remember to enable LACP preemption function on Eth-trunk. The LACP
preemption function ensures that the interface with the highest LACP priority always
functions as an active interface, even if it comes back to UP state after a failure.
[labnario_1]int Eth-Trunk 1
[labnario_1-Eth-Trunk1]lacp preempt enable
[labnario_1-Eth-Trunk1]lacp preempt delay 10
[labnario_1]dis eth-trunk 1
Eth-Trunk1's state information is:
Local:
LAG ID: 1 WorkingMode: STATIC
Preempt Delay Time: 10 Hash arithmetic: According to SIP-XOR-DIP
System Priority: 10 System ID: 4c1f-cce4-15b4
Least Active-linknumber: 1 Max Active-linknumber: 2
Operate status: up Number Of Up Port In Trunk: 2
---------------------------------------------------------------------------
-----
Partner:
---------------------------------------------------------------------------
-----
Now we can check how hashing algorithm works. To do this we have to configure:
Eth-trunk port link-type as trunk and allow VLAN 100 to be passed through the trunk.
Static routing on labnario_1 to be able to ping loopback interface of labnario_2 and
default routing on labnario_2 as well.
[labnario_1]ping 4.4.4.4
PING 4.4.4.4: 56 data bytes, press CTRL_C to break
Reply from 4.4.4.4: bytes=56 Sequence=1 ttl=255 time=580 ms
Reply from 4.4.4.4: bytes=56 Sequence=2 ttl=255 time=60 ms
Reply from 4.4.4.4: bytes=56 Sequence=3 ttl=255 time=30 ms
Reply from 4.4.4.4: bytes=56 Sequence=4 ttl=255 time=30 ms
Reply from 4.4.4.4: bytes=56 Sequence=5 ttl=255 time=40 ms
Now we can ping from PC1 to 4.4.4.4 and check statistics of members of Eth-trunk interface:
PC>ping 4.4.4.4 -t
As you can see all traffic is going by interface GE0/0/1. This is per-flow behaviour. It means
that frames belonging to the same data flow are transmitted over the same physical link.
And catched packets on GE0/0/1: