Tuesday, April 10, 2012

#ECMP in #Comware


Configuring load sharing
A routing protocol can be configured with multiple equal-cost routes to the same destination. These routes
have the same preference and will all be used to accomplish load balancing if no route with a higher
preference is available.
Load sharing is implemented in the following ways:
• Bandwidth-based load sharing—Packets are forwarded based on the configurable bandwidths of
the interfaces. The greater bandwidth an interface has, the more packets it forwards.
• User-based load sharing—Load sharing based on the user information (source IP address) of
packets.

Configuring bandwidth-based load sharing

NOTE:
Before configuring this feature, disable fast forwarding. For more information about fast forwarding, see
the Layer 3—IP Services Configuration Guide.
If multiple outbound interfaces/next hops to a destination are found during packet forwarding:
• When bandwidth-based load sharing is enabled, the device calculates the packet forwarding
proportion for each interface based on the bandwidths of all the interfaces, and then determines
through which interfaces to forward subsequent packets based on both the interfaces’ packet
forwarding proportions and the number of packets each interface has forwarded.

• When bandwidth-based load sharing is disabled, all the interfaces are used for packet forwarding
in turn.

Follow these steps to configure bandwidth-based load sharing:
To do… Use the command… Remarks
Enter system view system-view —
Configure bandwidth-based load
sharing bandwidth-based-sharing
Optional
Disabled by default

Enter interface view
interface interface-type
interface-number —
Specify the load sharing
bandwidth of the interface load-bandwidth bandwidth
Optional
The default is the physical
bandwidth of the interface.
If you specify a value of 0 for the
bandwidth argument, routing is
disabled on the interface and the
interface will not be used for load
sharing. Other states of the
physical interface will not be
affected.

Return to user view return —
Display statistics about
bandwidth-based load sharing
display load-sharing ip address
ip-address { mask | mask-length }
[ | { begin | exclude | include }
regular-expression ]
Optional
Available in any view
Clear statistics about
bandwidth-based load sharing
reset load-sharing statistics ip
address ip-address { mask |
mask-length }
reset load-sharing statistics all
Optional


Configuring user-based load sharing
NOTE:
If both user-based load sharing and bandwidth-based load sharing are configured, user-based load
sharing applies.

Follow these steps to configure user-based load sharing:

To do… Use the command… Remarks
Enter system view system-view —
Enable user-based load sharing ip user-based-sharing enable Required
Enter interface view
interface interface-type
interface-number —
Enable user-based load sharing on ip user-based-sharing enable Required
6
To do… Use the command… Remarks
the interface
Specify the load sharing
bandwidth of the interface load-bandwidth bandwidth
Optional
The default is the physical
bandwidth of the interface.
If you specify a value of 0 for the
bandwidth argument, routing is
disabled on the interface and the
interface will not be used for load
sharing. Other states of the
physical interface will not be
affected.

No comments:

Post a Comment