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

Reminder

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

upgrade

Configuration Guide - Ethernet Switching

CloudEngine 8800, 7800, 6800, and 5800 V200R003C00

This document describes the configuration of Ethernet services, including configuring MAC address table, link aggregation, VLANs, MUX VLAN, Voice VLAN, VLAN mapping, QinQ, GVRP, VCMP, STP/RSTP/MSTP, VBST, SEP, RRPP, ERPS, LBDT, and Layer 2 protocol transparent transmission.
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).
(Optional) Configuring a Load Balancing Mode (CE Switches Excluding the CE6870EI and CE6875EI)

(Optional) Configuring a Load Balancing Mode (CE Switches Excluding the CE6870EI and CE6875EI)

Context

An Eth-Trunk supports per-packet load balancing and per-flow load balancing.
  • Per-packet load balancing can improve Eth-Trunk bandwidth efficiency to ensure even load balancing among equal-cost routes, but cannot prevent packet mis-sequencing. To ensure packet sequencing, confirm that the device or terminal receiving traffic supports packet reassembly in case of packet mis-sequencing. Switches support the following per-packet load balancing modes:
    • Random mode: The outbound interface of packets is generated randomly and calculated based on the time when the packets reach the Eth-Trunk. When the IP address and MAC address of known unicast packets remain unchanged, configure random per-packet load balancing.
    • Round-robin mode: Eth-Trunk member interfaces forward traffic in turn. When known unicast packets have a similar length, configure round-robin per-packet load balancing.
  • Per-flow load balancing ensures that packets of the same data flow are forwarded on the same physical link and those of different data flows are forwarded on different physical links. Table 3-6 lists the load balancing modes for different types of packets.
    Table 3-6 Load balancing modes for different types of packets

    Packet (Inbound Interface)

    Default Load Balancing Mode

    Configurable Load Balancing Mode

    Remarks

    IPv4 packets

    src-ip, dst-ip, l4-src-port and l4-dst-port src-ip, dst-ip, l4-src-port, l4-dst-port, and protocol

    The load balancing mode is relevant to the packet type and irrelevant to the packet forwarding process.

    For example, even if the system provides only Layer 2 forwarding for IPv4 packets, the IPv4 packets are load balanced according to the load balancing mode for IPv4 packets. When the system cannot identify IPv4, IPv6, or MPLS packets, the system load balances packets based on src-mac, dst-mac, src-interface, and eth-type for Layer 2 packets.

    IPv6 packets

    src-ip, dst-ip, l4-src-port, and l4-dst-port src-ip, dst-ip, protocol, l4-src-port, and l4-dst-port

    MPLS packets

    top-label and 2nd-label top-label, 2nd-label, dst-ip, and src-ip

    Layer 2 packets except IPv4, IPv6, and MPLS packets

    src-mac and dst-mac src-mac, dst-mac, src-interface, and eth-type

    TRILL packets

    Ingress node: inner src-mac and dst-mac for Layer 2 packets; src-ip, dst-ip, l4-src-port, and l4-dst-port for Layer 3 packets

    src-mac, dst-mac, src-ip, dst-ip, src-interface, l4-src-port, l4-dst-port

    TRILL packets can be load balanced on the transit node only when the load-balance enhanced [ resilient ] profile profile-name command is used.

    Transit/Egress node: inner src-mac and dst-mac for Layer 2 packets; src-ip, dst-ip, l4-src-port, and l4-dst-port for Layer 3 packets

    src-mac, dst-mac, src-ip, dst-ip, l4-src-port and l4-dst-port

    FCoE packets

    dst-fcid and src-fcid dst-fcid and src-fcid -
NOTE:

Load balancing is valid only for outgoing traffic; therefore, the load balancing modes for the interfaces at both ends of the link can be different and do not affect each other.

Procedure

  1. Run system-view

    The system view is displayed.

  2. (Optional) Run load-balance profile profile-name

    A load balancing profile is configured and its view is displayed. profile-name specifies the name of the load balancing profile.

    By default, there is a load balancing profile named default.

    Run the following commands as required. You can configure a load balancing mode for Layer 2 packets, IPv4 packets, IPv6 packets, FCoE, and MPLS packets respectively.

    NOTE:
    • On the CE6880EI, no load balancing mode can be specified for MPLS, FCoE, and TRILL packets in the load balancing profile.

    • On the CE6880EI, no load balancing mode can be specified of a stack port or fabric port in the load balancing profile.

    • Run l2 [ src-mac | dst-mac | src-interface | eth-type ] *

      A load balancing mode is configured for Layer 2 packets (non-IP packets).

      By default, the switch load balances Layer 2 packets (non-IP packets) based on the source MAC address (src-mac) and destination MAC address (dst-mac).

    • Run ip [ src-ip | dst-ip | l4-src-port | l4-dst-port | protocol ] *

      A load balancing mode is configured for IPv4 packets.

      By default, the switch load balances IPv4 packets based on the source IP address (src-ip), destination IP address (dst-ip), transport-layer source port numbers (l4-src-port), and transport-layer destination port numbers (l4-dst-port).

    • Run ipv6 [ src-ip | dst-ip | protocol | l4-src-port | l4-dst-port ] *

      A load balancing mode is configured for IPv6 packets.

      By default, the switch load balances IPv6 packets based on the source IP address (src-ip), destination IP address (dst-ip), transport-layer source port numbers (l4-src-port), and transport-layer destination port numbers (l4-dst-port).

    • Run mpls [ top-label | dst-ip | src-ip | 2nd-label ] *

      A load balancing mode is configured for MPLS packets.

      By default, the switch load balances MPLS packets based on the two outer labels (top-label and 2nd-label).

    • Run fcoe { dst-fcid | src-fcid } *

      A load balancing mode is configured for FCoE packets.

      By default, the switch load balances FCoE packets based on the source FC_ID (src-fcid) and destination FC_ID (dst-fcid).

    • Run eth-trunk { hash-mode hash-mode-id | universal-id universal-id } *

      A load balancing mode is configured for the Eth-Trunk.

      By default, an Eth-Trunk load balances packets based on hash-mode (1) and universal-id (1).

      On the CE6880EI, hash-mode has a fixed value of 1.

    • Run stack { hash-mode hash-mode-id | universal-id universal-id } *

      A load balancing mode is configured for a stack port or fabric port in the specified load balancing profile.

      By default, a stack port or fabric port load balances packets based on hash-mode (1) and universal-id (1) in a load balancing profile.

  3. (Optional) Run quit

    Return to the system view.

  4. Run the following commands as required.

    • Configure a load balancing mode for known unicast traffic.

      1. Run interface eth-trunk trunk-id

        The Eth-Trunk interface view is displayed.

      2. Run load-balance { dst-ip | dst-mac | random | round-robin | src-ip | src-mac | src-dst-ip | src-dst-mac | enhanced [ resilient ] profile profile-name }

        A load balancing mode is configured for the Eth-Trunk.

        By default, the load balancing mode of the Eth-Trunk is enhanced profile.
        NOTE:

        The parameters that are supported vary according to device model. To view the parameters that are supported, run load-balance in the Eth-Trunk interface view and enter the question mark (?).

        • dst-ip: based on destination IP addresses

        • dst-mac: based on destination MAC addresses

        • random: The outbound interface of packets is generated randomly and calculated based on the time when the packets reach the Eth-Trunk. When the IP address and MAC address of known unicast packets do not change, use this mode to perform packet-based load balancing so that traffic is load balanced. The random mode causes the mis-sequencing problem. Ensure that the receive device or terminal supports assembly of mis-sequenced packets.
        • round-robin: Each Eth-Trunk member interface forwards traffic in turn. For known unicast traffic, if packets have approximate lengths, configure this load balancing mode to achieve even load balancing. This mode may cause the mis-sequencing problem. Ensure that the receive device or terminal supports assembly of mis-sequenced packets.
        • src-ip: based on source IP addresses

        • src-mac: based on source MAC addresses

        • src-dst-ip: based on the Exclusive-Or result of source and destination IP addresses

        • src-dst-mac: based on the Exclusive-Or result of source and destination MAC addresses

        • enhanced [ resilient ] profile: based on the fields in the global load balancing profile. resilient indicates that traffic on links is switched less as much as possible when links are increased or reduced and only some traffic is switched between links. For example, an LAG has three member links, data is forwarded based on the hash key, and one link is faulty. When resilient is not specified, traffic is reallocated on the other two links. When resilient is specified, traffic that has been allocated on the other two links remain unchanged, and traffic on the faulty link is evenly allocated on the two links. Therefore, there is less impact on services. When the faulty link recovers, some traffic on the other two links is switched to it. Traffic allocation on links is different from that before the fault occurrence.

          NOTE:
          The CE5810-48T4S-EI uses dual chips that are connected through two interfaces. Traffic between chips is load balanced between the two interfaces. The load balancing mode is the same as enhanced profile on an Eth-Trunk. When the global load balancing mode is changed, the load balancing mode on two interfaces between chips is also affected.
      3. Run commit

        The configuration is committed.

    • Configure a load balancing mode for unknown unicast traffic.

      1. Run load-balance unknown-unicast { mac | enhanced }

        A load balancing mode is configured.

        By default, the load balancing mode is enhanced.

      2. Run commit

        The configuration is committed.

Follow-up Procedure

  • Configure simulated calculation of an Eth-Trunk outbound interface.

    Configure simulated calculation of an Eth-Trunk outbound interface after specifying the 5-tuple information, source MAC address, and destination address.

    display load-balance forwarding-path unicast interface eth-trunk trunk-id src-interface interface-type interface-number { ethtype ethtype-number | vlan vlan-id | src-ip src-ip-data | dst-ip dst-ip-data | src-mac src-mac-data | dst-mac dst-mac-data | protocol { protocol-number | icmp | igmp | ip | ospf | tcp [ l4-src-port src-port-data | l4-dst-port dst-port-data ] * | udp [ l4-src-port src-port-data | l4-dst-port dst-port-data ] * } } * slot slot-id
  • Verifying the Configuration

    Verify the outbound interface of packets that contain specified 5-tuple information, source MAC address, and destination MAC address.

    display port forwarding-path { src-ip src-ip-data | dst-ip dst-ip-data | src-mac src-mac-data | dst-mac dst-mac-data | protocol { protocol-number | gre | icmp | igmp | ip | ipinip | ospf | tcp [ l4-src-port src-port-data | l4-dst-port dst-port-data ] * | udp [ l4-src-port src-port-data | l4-dst-port dst-port-data ] * } } *
Translation
Download
Updated: 2019-05-08

Document ID: EDOC1100004351

Views: 128983

Downloads: 297

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next