No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


Feature Description - IP Services 01

NE05E and NE08E V300R003C10SPC500

This is NE05E and NE08E V300R003C10SPC500 Feature Description - IP Services

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Algorithm Overview

Algorithm Overview

In per-packet load balancing, a counter is set to count the number of packets. The value of the counter are used for selecting an outbound interface.

Per-flow load balancing uses the hash algorithm. This document focus on the hash algorithm since the per-flow mode is more widely used.

Hash Algorithm

The hash algorithm uses a hash function to map a binary value of any length to a smaller binary value of a fixed length. The smaller binary value is the hash value. The device then uses an algorithm to map the hash value to an outbound interface and sends packets out from this outbound interface.

Hash Factor

Traffic is hashed based on traffic characteristics, which are called hash factors.

Traffic characteristics that can be used as hash factors include but are not limited to the following:

  • Ethernet frame header: source and destination MAC addresses
  • IP header: source IP address, destination IP address, and protocol number
  • TCP/UDP header: source and destination port numbers
  • MPLS header: MPLS label and some bits in the MPLS payload

Hash Factors and Load Balancing Effects

If hash factors are more hashable, traffic will be more evenly load-balanced. If network traffic is of varied types, only using hash factors may not achieve the best load balancing results.

To implement load balancing better, you are allowed to configure hash factors based on traffic types. If the most suitable hash factor is used but the load balancing effect still unsatisfactory, you can add the scrambling value to allow the hash factor to be more hashable, and therefore to achieve better load balancing effect.


For the default hash factors of hash algorithm in typical load balance scenarios, see the chapter Appendix: Default Hash Factors.

Updated: 2019-01-14

Document ID: EDOC1100058931

Views: 13029

Downloads: 20

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next