Don’t worry anymore! Teach you how to quickly locate Eth-Trunk faults and easily solve network problems!

Don’t worry anymore! Teach you how to quickly locate Eth-Trunk faults and easily solve network problems!

1. How to locate the problem that an Eth-Trunk in manual load balancing mode cannot go up?

When encountering this kind of problem, the editor summarizes the following positioning ideas for everyone, which have been tried and tested:

  • Check whether the physical status of the manual Eth-Trunk member interface is Up.
  • Check whether the lower threshold of the number of active interfaces is configured on the Eth-Trunk interface.

For the specific positioning steps, please look down:

Step 1: Check whether the physical status of the member port is UP

The physical status of the member interfaces must be Up, which is a prerequisite for the normal operation of the Eth-Trunk.

Use the display eth-trunk command to check the member interface information of the Eth-Trunk interface. If the member interface is in the Down state under the Eth-Trunk interface, please refer to this article "Ethernet Interface Physical Down Fault Special Topic".

Step 2: Check the configuration of the Eth-Trunk interface

Run the display eth-trunk command to check whether the lower limit of the number of active interfaces is configured on the Eth-Trunk interface. If the number of Up member interfaces on the Eth-Trunk interface is less than the configured lower limit of the number of active interfaces, the Eth-Trunk status changes to Down.

In the following command output, Least Active-linknumber indicates that the lower threshold of the member links in the Up state is 3. The number of Up member interfaces on the Eth-Trunk interface is 1. The number of Up member interfaces is less than the lower threshold of the number of active interfaces. Therefore, the Operate status of the Eth-Trunk interface is Down.

In addition, please note that by default, the lower limit of the number of active Eth-Trunk interfaces is 1. You can run the least active-linknumber link-number command to configure the lower limit of the number of active interfaces in a link aggregation group.

2. How to locate the failure of Eth-Trunk negotiation in LACP mode?

Similarly, the editor also summarizes the positioning ideas of this type of fault:

  • Check whether the physical status of the Eth-Trunk member interface is Up;
  • Check whether the upper threshold of the link aggregation bandwidth interface number is configured on the Eth-Trunk interface.
  • Check whether the Eth-Trunk member interfaces can send and receive LACP packets normally.

Step 1: Check whether the physical status of the member port is UP

The physical status of the member interface is Up, which is the prerequisite for being selected by Eth-Trunk. Use the display eth-trunk command to view the member interface information under the Eth-Trunk interface. If the member interface is Down under Eth-Trunk, it is the same as above. Please first eliminate the cause of the interface failure.

Step 2: Check the configuration of the Eth-Trunk interface

Check whether the configurations on both ends of the Eth-Trunk are equal. Because it involves the negotiation of device LACP packets, both ends need to be configured in LACP mode. Use the display eth-trunk command line to check whether the upper and lower thresholds of the number of active interfaces are configured under the Eth-Trunk. If the number of member interfaces in UP under the Eth-Trunk interface is less than the configured lower threshold of the number of active interfaces, the Eth-Trunk status will change to Down.

By default, the lower threshold of the number of active Eth-Trunk interfaces is 1, which can be set using the least active-linknumber _link-number_ command. The upper threshold of the number of active Eth-Trunk interfaces is 8, which can be set using the max active-linknumber _link-number_ command.

If the least active-linknumber command has been configured before this command, ensure that the upper threshold configured in this command is greater than or equal to the lower threshold configured in the least active-linknumber command.

Step 3: Check whether the LACP packets sent and received by the Eth-Trunk member ports are normal

Run the display lacp statistics eth-trunk command line to check whether LACP negotiation packets are sent and received normally on Eth-Trunk member interfaces.

The number of packets that increase is related to the packet timeout period configured on the Eth-Trunk interface:

The number of packets that increase is related to the packet timeout configured on the Eth-Trunk interface. You can run the lacp timeout { fast | slow } command in the Eth-Trunk interface view to configure the timeout for the Eth-Trunk interface to receive LACP protocol packets in LACP mode.

  • After the fast timeout is configured, the peer sends LACP packets at a period of 1 second, which has good response performance but occupies more system resources than the slow parameter.
  • After configuring the slow timeout, the peer sends LACP packets every 30 seconds, which is less responsive than fast, but occupies fewer system resources. The timeouts configured on both ends can be different, but for ease of maintenance, it is recommended that users configure consistent LACP protocol packet timeouts.
  • If the count of received LACP protocol packets increases incorrectly, check whether the peer device did not send them or discarded them after receiving them. If the count of received LACP protocol packets on the local end is incorrect, check why the local port does not receive LACP protocol packets normally.

3. How to locate uneven traffic load balancing on an Eth-Trunk interface?

Similarly, the editor also summarizes the positioning ideas of this type of fault:

  • Check whether the packet characteristics match the load sharing mode;
  • Check whether the number of selected member interfaces is an exponential multiple of 2;
  • Check whether there is an inter-chassis Eth-Trunk in a stack or cluster.

Step 1: Check whether the packet characteristics match the load balancing method

Check whether the characteristics of the packets forwarded by the Eth-Trunk interface match the configured load balancing mode. If they do not match, for example, the MAC address of the forwarded packet changes, and the load balancing mode is set to src-ip, load balancing cannot be performed.

You can check and modify it by following the steps below:

(1) Confirm message characteristics

  • Determine the message forwarding mode: The forwarding process of known unicast and unknown unicast is different, and the default load balancing algorithm is also different. Therefore, you need to first confirm whether the forwarded message is known unicast or unknown unicast.
  • Determine the change factor of the message: Determine whether the message changes in the MAC address, IP address, or Label of the message
  • Determine the type of the message: Determine whether the message is an IP message, MPLS message, or Layer 2 message.

Note: If the destination MAC address of the message does not exist in the MAC table, the message is an unknown unicast message.

(2) Check the load balancing mode of the Eth-Trunk interface.

Check the load balancing mode of the Eth-Trunk interface based on the packet forwarding mode (known unicast or unknown unicast) confirmed in the previous step.

Check the load balancing mode of known unicast traffic:

Run the display eth-trunk command to check the Hash arithmetic field to confirm the configured load balancing mode. You can also run the display this command in the Eth-Trunk interface view to check the configured load balancing mode.

Load sharing mode parameter description:

  • SIP indicates the source IP address, DIP indicates the destination IP address, SA indicates the source MAC address, and DA indicates the destination MAC address.
  • SIP-XOR-DIP indicates that the outbound interface is selected based on the XOR operation between the source IP address and the destination IP address.
  • SA-XOR-DA indicates that the outbound interface is selected based on the XOR operation of the source MAC address and the destination MAC address. ENHANCED indicates that the enhanced load balancing profile is applied and the outbound interface is selected based on the load balancing mode specified for each type of packet in the enhanced profile.
  • If the load balancing mode is ENHANCED, you need to further check the load balancing mode of the enhanced template.

The enhanced load balancing mode has only one template globally, which is effective for both known unicast and unknown unicast packets. Different fields are selected for hash calculation based on different packet types.

You can run the display load-balance-profile command to view the load balancing mode for each type of characteristic packets. HashField indicates the configured load balancing mode.

For unknown unicast, run the display current-configuration | include unknown-unicast load-balance command to view the load balancing mode for unknown unicast. By default, the device load balances unknown unicast based on the source MAC address and destination MAC address of the packet.

(3) Check whether the characteristics of the forwarded packets match the load balancing mode

If the message characteristics do not match the current load sharing mode, you can modify the load sharing mode according to the existing network traffic model. The more frequently this parameter changes in the traffic, the more balanced the traffic will be when this load sharing mode is selected. For example: when only a single PC is tested, since the source IP address and source MAC address remain unchanged, only the destination IP address and destination MAC address change, the load sharing mode selected at this time is based on the source IP address or source MAC address, then the traffic cannot be load shared and needs to be modified to a load sharing mode based on the destination IP address or destination MAC address. If the message is a known unicast, the modification command is as follows:

 <HUAWEI> system-view [HUAWEI] interface Eth-Trunk 1 [HUAWEI-Eth-Trunk1] load-balance dst-mac [HUAWEI-Eth-Trunk1] quit

If the message is an unknown unicast, modify the command as follows:

 <HUAWEI> system-view [HUAWEI] unknown-unicast load-balance dmac

If the load balancing mode used is enhanced, you need to modify the load balancing mode of the corresponding packet type in the enhanced template according to the packet type (such as IPv4, IPv6, MPLS, L2). For example, modify the load balancing mode of IPv4 packets in the enhanced template "test" to dip.

 <HUAWEI> system-view [HUAWEI] load-balance-profile test [HUAWEI-load-balance-profile-test] ipv4 field dip [HUAWEI-load-balance-profile-test] quit

Step 2: Check whether the number of selected member interfaces is an exponential multiple of 2

When the number of member ports selected under an Eth-Trunk interface is an exponential multiple of 2, traffic load sharing is more balanced. Run the display eth-trunk command to view the selected member ports. The method to identify the selected member ports under an Eth-Trunk interface is as follows:

  • Interfaces in LACP mode (WorkingMode is STATIC in V100R006C03/V100R006C05/V200R001, and LACP in V200R002 and later versions) with Status set to Selected.
  • In manual mode (WorkingMode is NORMAL), the interface Status is Up.

Step 3: Check whether there is a stack/cluster inter-chassis Eth-Trunk

If it is an unknown unicast message, this step does not need to be performed.

The local priority forwarding function is enabled on the Eth-Trunk interface by default. That is, in a stacking/clustering scenario, if the outbound port of a packet entering from a stacking/clustering member device is an Eth-Trunk, and there is a member port of the Eth-Trunk on the local chassis and the member port is normal, the packet will only be forwarded from the Eth-Trunk member port on the chassis, and will not be forwarded from the Eth-Trunk member ports of other stacking/clustering members.

In this case, you can use the following command to disable the local priority forwarding function.

 <HUAWEI> system-view [HUAWEI] interface Eth-Trunk 1 [HUAWEI-Eth-Trunk1] undo local-preference enable [HUAWEI-Eth-Trunk1] quit

The local traffic priority forwarding function is only effective for known unicast packets and is ineffective for broadcast, multicast, and unknown unicast packets.

This issue has shared all the troubleshooting tips with you. I believe that you can easily deal with Eth-Trunk faults when you encounter them again. I will share more troubleshooting cases with you in the future. Bye. ~~~

<<:  Automotive Ethernet: Solving complex wiring harnesses and supporting more data

>>:  A “Cat” Walking Alone on a Narrow Road: Cat.1 and Narrowband Communications (Part 2)

Recommend

RackNerd adds new Seattle data center, 1GB memory package costs $11.95 per year

In the middle of last month, we shared the news t...

DNSPOD Thursday Carnival, .COM 20 yuan/first year

DNSPOD launched a Thursday Carnival Special Offer...

A "versatile" network tool - Access Control List (ACL)

Peripheral routers, firewalls, and internal route...

Top 10 Wi-Fi Predictions for 2023

Christmas is around the corner, the goose is gett...

The emergence of 6G technology: growth opportunities for modern industry

The potential of 6G technology will become appare...

As we enter 2021, is the speed of 5G mobile phones faster or slower?

In China, 5G has blossomed in the past year. Not ...

Can Chrome DevTools' Network be used like this?

If you were to pick the most used feature in Chro...