Configuring the proximity feature

The proximity feature performs link detection to select the optimal link to a destination. If no proximity information for a destination is available, the load balancing module selects a link based on the scheduling algorithm. It then performs proximity detection to generate proximity entries for forwarding subsequent traffic.

To configure the proximity feature, first configure proximity parameters in proximity view, and then enable the proximity feature in link group view.

To configure proximity parameters:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter proximity view.

loadbalance proximity [ vpn-instance vpn-instance-name ]

N/A

3. Set the mask length for IPv4 proximity entries.

ip mask { mask-length | mask }

By default, the mask length for IPv4 proximity entries is 24.

4. Set the prefix length for IPv6 proximity entries.

ipv6 prefix prefix-length

By default, the prefix length for IPv6 proximity entries is 96.

5. Set the network delay weight for proximity calculation.

rtt weight rtt-weight

By default, the network delay weight for proximity calculation is 100.

6. Set the TTL weight for proximity calculation.

ttl weight ttl-weight

By default, the TTL weight for proximity calculation is 100.

7. Set the bandwidth weight for proximity calculation.

bandwidth { inbound | outbound } weight bandwidth-weight

By default, the inbound or outbound bandwidth weight for proximity calculation is 100.

8. Set the cost weight for proximity calculation.

cost weight cost-weight

By default, the cost weight for proximity calculation is 100.

9. Specify the proximity probe method for packets.

match [ match-id ] { tcp } probe template-name

By default, no proximity probe method is specified.

10. Specify the default proximity probe method.

match default probe template-name

By default, the default proximity probe method is not specified.

11. Set the aging timer for proximity entries.

timeout timeout-value

By default, the aging timer for proximity entries is 60 seconds.

12. Set the maximum number of proximity entries.

max-number number

By default, the maximum number of proximity entries is not set.

To enable the proximity feature:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter link group view.

loadbalance link-group link-group-name

N/A

3. Enable the proximity feature.

proximity enable

By default, the proximity feature is disabled for a link group.