01-19 WAN Optimization Commands
01-19 WAN Optimization Commands
Series Description
19.1.2 anti-loss
Function
The anti-loss command creates and displays the anti-packet loss view.
The undo anti-loss command deletes the created anti-packet loss view.
Format
anti-loss
undo anti-loss
Parameters
None
Views
WAN optimization profile view
Default Level
2: Configuration level
Usage Guidelines
After creating and entering the anti-packet loss view, you can configure the anti-
packet loss type and parameters.
Example
# Create and display the anti-packet loss view.
<Huawei> system-view
[Huawei] wan-optimization profile fec
[Huawei-wanop-profile-fec] anti-loss
[Huawei-wanop-profile-fec-anti-loss]
19.1.3 anti-loss-type
Function
The anti-loss-type command configures the anti-packet loss type.
The undo anti-loss-type command deletes the configured anti-packet loss type.
By default, no anti-packet loss type is configured.
Format
anti-loss-type { determined-fec | adaptive-fec }
undo anti-loss-type
Parameters
Parameter Description Value
Views
Anti-packet loss view
Default Level
2: Configuration level
Usage Guidelines
If you want to configure fixed or adaptive FEC, run the anti-loss-type command.
● When the packet loss rate changes greatly, you are advised to use fixed FEC
for better packet loss recovery.
● When the packet loss rate is stable, you are advised to use adaptive FEC.
When the packet loss rate is low, fewer redundant packets will save
bandwidth. When the packet loss rate increases, the proportion of redundant
packets will be automatically increased.
Example
# Configure the anti-packet loss type to fixed FEC.
<Huawei> system-view
[Huawei] wan-optimization profile fec
[Huawei-wanop-profile-fec] anti-loss
[Huawei-wanop-profile-fec-anti-loss] anti-loss-type determined-fec
19.1.4 block-size
Function
The block-size command sets the size of an encoding block, that is, the maximum
number of original packets in each encoding block for calculating redundant
packets.
Format
block-size block-size-value
undo block-size
Parameters
Parameter Description Value
Views
Anti-packet loss view
Default Level
2: Configuration level
Usage Guidelines
After the number of original packets in each encoding block reaches the value
specified by block-size, redundant packets will be calculated.
You need to set this parameter based on the rate of network packets. Whether
redundant packets will be generated on the encoding side depends on two values:
the configured size of an encoding block and encoding timeout period. Redundant
packets will be generated and sent when either of the two values is reached.
Example
# Set the size of an encoding block to 10.
<Huawei> system-view
[Huawei] wan-optimization profile fec
[Huawei-wanop-profile-fec] anti-loss
[Huawei-wanop-profile-fec-anti-loss] block-size 10
19.1.5 burst-packet-loss
Function
The burst-packet-loss command configures the number of burst lost packets.
Format
burst-packet-loss burst-packet-lossvalue
undo burst-packet-loss
Parameters
Parameter Description Value
Views
Anti-packet loss view
Default Level
2: Configuration level
Usage Guidelines
Packet loss may be caused by traffic bursts, and multiple packets may be lost in a
burst. The number of redundant packets generated in an encoding block is often
greater than or equal to the number of burst lost packets.
You need to set this parameter based on the actual packet loss rate on the
network. The configured number of burst lost packets must be greater than the
actual number of burst lost packets within a short period.
The number of redundant packets needs to be calculated based on the packet loss
rate and the number of burst lost packets. If the number of redundant packets
calculated based on the packet loss rate is less than the number of burst lost
packets, the actual number of redundant packets will be the number of burst lost
packets.
AFEC detects the number of burst lost packets in real time. To prevent excessive
redundant packets, AFEC requires that the number of burst lost packets based on
which the number of redundant packets is calculated should not exceed the
configured number of burst lost packets.
Example
# Set the number of burst lost packets to 10.
<Huawei> system-view
[Huawei] wan-optimization profile fec
[Huawei-wanop-profile-fec] anti-loss
[Huawei-wanop-profile-fec-anti-loss] burst-packet-loss 10
Function
The display wan-optimization fec brief command displays brief information
about FEC encoding blocks.
Format
Versions earlier than V300R021C10:
Parameters
Parameter Description Value
Views
All views
Default Level
1: Monitoring level
Usage Guidelines
You can run this command to check brief information about FEC encoding blocks.
Example
# Display brief information about FEC encoding blocks.
Versions earlier than V300R021C10:
No Number.
Format
Versions earlier than V300R021C10:
Parameters
Parameter Description Value
Views
All views
Default Level
1: Monitoring level
Usage Guidelines
You can run this command to check detailed information about FEC encoding
blocks.
Example
# Display detailed information about FEC encoding blocks.
Item Description
Item Description
Function
The display wan-optimization fec probe-table command displays FEC probe
table information.
Format
Versions earlier than V300R021C10:
Parameters
Parameter Description Value
Views
All views
Default Level
1: Monitoring level
Usage Guidelines
Prior to performing FEC encoding, the transmit end checks whether the receive
end has the decoding capability. It performs FEC encoding only when it confirms
that the receive end has the decoding capability. To check whether the receive end
has the decoding capability, check FEC probe table information.
When there is traffic requiring FEC and no encoding entry is found for the traffic, a
probe table will be created. If the probe fails, the probe period is 200 ms. After a
probe table is created, the aging time of probe entries is 10 minutes.
Example
# Display FEC probe table information.
Item Description
No Number.
Item Description
Format
display wan-optimization profile [ profile-name ]
Parameters
Parameter Description Value
Views
All views
Default Level
1: Monitoring level
Usage Guidelines
To check information about a WAN optimization profile, run the display wan-
optimization profile command. If profile-name is not specified, information
about all WAN optimization profiles is displayed. If profile-name is specified,
information about the specified WAN optimization profile is displayed.
Example
# Display information about the WAN optimization profile fec.
<Huawei> display wan-optimization profile fec
----------------------------
Profile Name : fec
Profile ID :0
Reference Count : 1
Anti-Loss Type : A-FEC
Packet Loss Ratio : 20
Burst Packet Loss : 3
Block Size : 12
Timeout (ms) : 35
MTU : 716
Item Description
Item Description
19.1.10 mtu
Function
The mtu command configures the maximum transmission unit (MTU).
Format
mtu mtu-value
undo mtu
Parameters
Parameter Description Value
Views
Anti-packet loss view
Default Level
2: Configuration level
Usage Guidelines
FEC encoding increases the packet length. Therefore, the FEC decoding side
performs fragment reassembly prior to FEC decoding. If an FEC-encoded packet is
fragmented again because it exceeds the MTU of its outbound interface, the FEC
anti-packet loss effect will be lost. To address this issue, you need to limit the
packet size prior to FEC encoding. If network MTU is too small, you are advised to
set the FEC MTU to a half of the network MTU and ensure that the difference
between the network MTU and FEC MTU is greater than the maximum FEC
header length of 84 bytes.
Example
# Set the MTU to 1200 bytes.
<Huawei> system-view
[Huawei] wan-optimization profile fec
[Huawei-wanop-profile-fec] anti-loss
[Huawei-wanop-profile-fec-anti-loss] mtu 1200
19.1.11 packet-loss-ratio
Function
The packet-loss-ratio command configures the anti-packet loss rate.
The undo packet-loss-ratio command restores the default anti-packet loss rate.
By default, the average anti-packet loss rate is 20%.
Format
packet-loss-ratio packet-loss-ratio-value
undo packet-loss-ratio
Parameters
Parameter Description Value
Views
Anti-packet loss view
Default Level
2: Configuration level
Usage Guidelines
Usage Scenario
You need to set this parameter based on the actual packet loss rate on the
network. The configured anti-packet loss rate must be greater than the actual
packet loss rate.
● For DFEC, redundant packets are sent at a fixed redundancy rate to achieve
the specified packet loss rate.
● For AFEC, the configured anti-packet loss rate is the maximum value. AFEC
dynamically adjusts the actual redundancy rate. The maximum anti-packet
loss capability cannot exceed the maximum value.
Precautions
When the actual packet loss rate is greater than the value specified by packet-
loss-ratio or is greater than the supported maximum value in AFEC mode, the FEC
function will become ineffective and all lost packets cannot be recovered.
Example
# Set the anti-packet loss rate to 10%.
<Huawei> system-view
[Huawei] wan-optimization profile fec
[Huawei-wanop-profile-fec] anti-loss
[Huawei-wanop-profile-fec-anti-loss] packet-loss-ratio 10
NOTE
Format
replication path-group group-name
Parameters
Parameter Description Value
View
System view
Default Level
2: Configuration level
Usage Guidelines
Usage Scenario
For services (such as payment and emergency calls) that require high reliability
and light traffic, you can configure a link group and specify backup links by
priority to replicate packets to these links for transmission. In this way, if a link is
disconnected, packets replicated to backup links in the link group can still be sent
to the remote end, preventing service interruptions.
Precautions
Packet replication can only be used to forward the following packet types: IPinIP,
TCP, UDP, GRE, ESP, and AH packets. In the scenario where LAN-side packets are
Ethernet Layer 2 packets, Ethernet over GRE can be configured on loopback
interfaces and multi-fed and selective receiving can be configured to implement
the multi-fed and selective receiving of Layer 2 packets.
Example
# Create a multi-fed and selective receiving link group named g1 and enter the
view of the group.
<Huawei> system view
[Huawei] replication path-group g1
[Huawei-replication-path-group-g1]
Function
The replication path-group command configures a multi-fed and selective
receiving link group on a tunnel interface.
The undo replication path-group command cancels the multi-fed and selective
receiving link group configured on a tunnel interface.
NOTE
Format
replication path-group group-name
undo replication
Parameters
Parameter Description Value
View
Tunnel interface view
Default Level
2: Configuration level
Usage Guidelines
Usage Scenario
Prerequisites
A multi-fed and selective receiving link group has been created using the
replication path-group command in the system view.
Precautions
● Each tunnel interface can have only one multi-fed and selective receiving link
group or redirect multi-fed and selective receiving link group configured. If the
link group is configured for multiple times, the latest configuration prevails.
● Only the tunnel interfaces of a GRE tunnel support this command.
● Packet replication can only be used to forward the following packet types:
IPinIP, TCP, UDP, GRE, ESP, and AH packets. In the scenario where LAN-side
packets are Ethernet Layer 2 packets, Ethernet over GRE can be configured on
loopback interfaces and multi-fed and selective receiving can be configured to
implement the multi-fed and selective receiving of Layer 2 packets.
Example
# Configure a multi-fed and selective receiving link group named g1 on
Tunnel0/0/1.
<Huawei> system view
[Huawei] replication path-group g1
[Huawei-replication-path-group-g1] quit
[Huawei] interface Tunnel 0/0/1
[Huawei-Tunnel0/0/1] tunnel-protocol gre
[Huawei-Tunnel0/0/1] replication path-group g1
NOTE
Format
redirect-replication path-group group-name
undo redirect-replication
Parameters
Parameter Description Value
View
Tunnel interface view
Default Level
2: Configuration level
Usage Guidelines
Usage Scenario
For services that have special requirements for packet loss, such as financial and
security services, if the multi-fed and selective receiving function cannot meet the
requirements, configure the redirect multi-fed and selective receiving function for
the inner GRE tunnel of the loopback interface to forward packets without
depending on routes. The command is used together with the replication if-
down-delay command to prevent packet loss during route switching and
maximize service continuity.
Prerequisites
A replication link group has been created using the replication path-group
(system view) command.
Precautions
● Each tunnel interface can have only one multi-fed and selective receiving link
group or redirect multi-fed and selective receiving link group configured. If the
link group is configured for multiple times, the latest configuration prevails.
● Only the tunnel interfaces of a GRE tunnel support this command.
● The redirect multi-fed and selective receiving function supports only the
forwarding of IPinIP, TCP, UDP, GRE, ESP, and AH packets. In the scenario
where LAN-side packets are Ethernet Layer 2 packets, Ethernet over GRE can
be configured on loopback interfaces and multi-fed and selective receiving
can be configured to implement the multi-fed and selective receiving of Layer
2 packets.
Example
# Configure a redirect replication link group named g1 on Tunnel0/0/1.
<Huawei> system view
[Huawei] replication path-group g1
[Huawei-replication-path-group-g1] quit
[Huawei] interface Tunnel 0/0/1
[Huawei-Tunnel0/0/1] tunnel-protocol gre
[Huawei-Tunnel0/0/1] redirect-replication path-group g1
Function
The replication if-down-delay command configures the delay after which link
selection information of a multi-fed and selective receiving link group is updated.
The undo replication if-down-delay command deletes the configured delay after
which link selection information of a multi-fed and selective receiving link group is
updated.
By default, the delay after which link selection information of a multi-fed and
selective receiving link group is updated is 0 s.
NOTE
Format
replication if-down-delay { time-value | 65535 }
Parameters
Parameter Description Value
View
Tunnel interface view
Default Level
2: Configuration level
Usage Guidelines
After a multi-fed and selective receiving link group is configured, if the replication
link frequently flaps due to poor network conditions, the system frequently
updates the link selection information of the link group. In this case, packet loss
will occur if routes are not updated in a timely manner. To prevent this problem,
run the replication if-down-delay command to configure the delay after which
link selection information of a multi-fed and selective receiving link group is
updated. If this parameter is set to 65535, the link group does not update route
selection information based on the link status but forwards packets through the
first selected link.
Example
# Set the delay after which link selection information of a multi-fed and selective
receiving link group is updated to 5 seconds.
<Huawei> system view
[Huawei] replication if-down-delay 5
Function
The path priority command configures member information for a multi-fed and
selective receiving link group.
The undo path command deletes the member information of a multi-fed and
selective receiving link group.
By default, no member information is configured for a multi-fed and selective
receiving link group.
NOTE
Format
path interface-type interface-number priority priority-value [ track { nqa nqa-
administer-name nqa-test-name | bfd-session bfd-session-name } ]
undo path interface-type interface-number
Parameters
Parameter Description Value
View
Packet replication link group view
Default Level
2: Configuration level
Usage Guidelines
Usage Scenario
For services (such as payment and emergency calls) that require high reliability
and light traffic, you can configure a link group and specify backup links by
priority to replicate packets to these links for transmission. In this way, if a link is
disconnected, packets replicated to backup links in the link group can still be sent
to the remote end, preventing service interruptions. When configuring a link
member in a link group, you can specify the priority for the link and associate the
link with an NQA test instance or a BFD session. If the link succeeds in link
detection, it participates in the link selection for multi-fed and selective receiving.
Otherwise, it is unavailable. The device selects the available link with the highest
priority and sends the replicated packets through this link.
Precautions
Packet replication can only be used to forward the following packet types: IPinIP,
TCP, UDP, GRE, ESP, and AH packets. In the scenario where LAN-side packets are
Ethernet Layer 2 packets, Ethernet over GRE can be configured on loopback
Example
# Set the priority 5 for the link of Tunnel0/0/1 in the multi-fed and selective
receiving link group g1 and associate the link with the NQA test instance named
test of which the administrator name is admin.
<Huawei> system view
[Huawei] replication path-group g1
[Huawei-replication-path-group-g1] path Tunnel 0/0/1 priority 5 track nqa admin test
NOTE
Format
packet reorder-wait time-value [ last-sent-jitter jitter-value ]
undo packet reorder-wait
Parameters
Parameter Description Value
View
Tunnel interface view
Default Level
2: Configuration level
Usage Guidelines
Usage Scenario
Precautions
Example
# Set the packet reassembly waiting time to 200 ms and the jitter time to 100 ms..
<Huawei> system view
[Huawei] interface Tunnel 0/0/1
[Huawei-Tunnel0/0/1] tunnel-protocol gre
[Huawei-Tunnel0/0/1] packet reorder-wait 200 last-sent-jitter 100
NOTE
Format
load-balance per-packet unequal-cost-weight weight-value
undo load-balance per-packet unequal-cost-weight
Parameters
Parameter Description Value
View
Tunnel interface view
Default Level
2: Configuration level
Usage Guidelines
Usage Scenario
In heavy-traffic scenarios, if the device evenly balances traffic over multiple equal-
cost links regardless of the bandwidth difference between these links, traffic
congestion may occur on low-speed links and bandwidth of high-speed links
cannot be used efficiently. To resolve this problem, run the load-balance per-
packet unequal-cost-weight command on an interface to enable per-packet load
balancing and set the weight for each link. This ensures that traffic can be load
balanced among links based on the link bandwidth, reducing link congestion and
improving link efficiency.
Precautions
● After configuring the weight of each link on an interface, run the shutdown
and undo shutdown commands on the interface or run the restart command
on the interface to restart the interface for the configuration to take effect.
● To improve link efficiency, you are advised to set the weight of each load-
balancing link based on the link bandwidth. For example, the weight of a low-
speed link ranges from 1 to 10 and that of a high-speed link ranges from 10
to 100.
● Only the tunnel interfaces of a GRE tunnel support this command.
● Packet load balancing can only be used to forward the following packet types:
IPinIP, TCP, UDP, GRE, ESP, and AH packets. In the scenario where LAN-side
packets are Ethernet Layer 2 packets, Ethernet over GRE can be configured on
loopback interfaces and packet load balancing can be configured to
implement the packet load balancing of Layer 2 packets.
Example
# Set the weight of a load balancing link to 16.
<Huawei> system view
[Huawei] interface Tunnel 0/0/1
[Huawei-Tunnel0/0/1] tunnel-protocol gre
[Huawei-Tunnel0/0/1] load-balance per-packet unequal-cost-weight 16
Warning: The configuration succeeded. Please shutdown/undo shutdown the interface to make changes
take effect.
[Huawei-Tunnel0/0/1] shutdown
[Huawei-Tunnel0/0/1] undo shutdown
Function
The ip-load-balance per-packet retransmit enable command enables the per-
packet retransmission function.
NOTE
Format
ip-load-balance per-packet retransmit enable
Parameters
None
View
System view
Default Level
3: Management level
Usage Guidelines
● After per-packet load balancing is configured, if the link quality is poor, packet
loss or error packets may occur. To prevent packet loss and improve system
reliability, enable the per-packet retransmission function to increase the
frequency at which the transmit end sends packets.
● Frequent packet retransmission occupies CPU resources and affects system
performance. If high forwarding performance is required, disable the per-
packet retransmission function.
Example
# Enable the per-packet retransmission function.
<Huawei> system view
[Huawei] ip-load-balance per-packet retransmit enable
Function
The display replication path-group command displays information about a
multi-fed and selective receiving link group.
NOTE
Format
display replication path-group [ group-name ]
Parameters
Parameter Description Value
View
All views
Default Level
1: Monitoring level
Usage Guidelines
To check the route selection results of all multi-fed and selective receiving link
groups, run the display replication path-group command. To prevent interfaces
in a multi-fed and selective receiving link group from being configured with multi-
fed and selective receiving, route selection results of two available links are
displayed for each link group. If a link group name is specified in this command,
the status of all links in the link group is displayed in descending order of link
priority.
Example
# Display the status of all links in the multi-fed and selective receiving link group
group1.
<Huawei> display replication path-group group1
---------------------------------------------------------------------
path-member priority track info path-state
TUNNEL0/0/100 1 BFD DOWN
TUNNEL0/0/101 2 BFD DOWN
TUNNEL0/0/102 3 NQA DOWN
TUNNEL0/0/103 4 BFD UP
TUNNEL0/0/104 5 NQA UP
TUNNEL0/0/105 6 BFD DOWN
TUNNEL0/0/106 7 - DOWN
TUNNEL0/0/107 8 BFD UP
---------------------------------------------------------------------
# Display the route selection results of all multi-fed and selective receiving link
groups.
<Huawei> display replication path-group
---------------------------------------------------------------------
group-name Replication link1 Replicationlink2
group1 TUNNEL0/0/100 TUNNEL0/0/101
Item Description
Function
The display replication interface command displays the route selection results of
multi-fed and selective receiving on interfaces.
NOTE
Format
display replication interface
Parameters
None
View
All views
Default Level
1: Monitoring level
Usage Guidelines
To check the route selection results of multi-fed and selective receiving on
interfaces, run the display replication interface command. The results help
determine the actual transmission link of packets.
Example
# Display the route selection results of multi-fed and selective receiving on
interfaces.
<Huawei> display replication interface
--------------------------------------------------------------------------------
Interface Path group Replication interface
Tunnel0/0/10 a
Tunnel0/0/100 g2 Tunnel0/0/2
Tunnel0/0/101 g2 Tunnel0/0/2
Tunnel0/0/0 g1 Tunnel0/0/1
Tunnel0/0/1 g2 Tunnel0/0/2
--------------------------------------------------------------------------------
Item Description
Function
The reset wan-optimization fec session all command resets the FEC encoding
table.
Format
reset wan-optimization fec session all
Parameters
None
Views
All views
Default Level
2: Configuration level
Usage Guidelines
Usage Scenario
The session table used for forwarding is triggered by packets. The configuration
table is read when the session table is being created. When there is always traffic,
the configuration table will not be read repeatedly. Therefore, if there is always
traffic, the configuration cannot be updated in time. You can use the updated
configuration immediately by resetting the FEC encoding table.
Precautions
The FEC encoding table will be reset 2 seconds after the reset wan-optimization
fec session all command is executed. If there are packets requiring FEC, the FEC
encoding table will be re-established.
Example
# Reset the FEC encoding table.
<Huawei> reset wan-optimization fec session all
Info: The current all wan-optimization sessions will be deleted.
Format
reset wan-optimization fec probe-table all
Parameters
None
Views
All views
Default Level
2: Configuration level
Usage Guidelines
Usage Scenario
When a probe is successful, entries in the probe table will not be aged out for a
period of time. In this period, no probe will be performed again. To immediately
trigger a probe again, reset the FEC probe table to immediately detect the FEC
capability of the remote site.
Precautions
The FEC probe table will be reset 2 seconds after the reset wan-optimization fec
probe-table all command is executed. If no encoding session table is available,
the FEC probe table will be re-established when there are packets requiring FEC.
Example
# Reset the FEC probe table.
<Huawei> reset wan-optimization fec probe-table all
Info: The current all wan-optimization probe tables will be deleted.
19.1.24 timeout
Function
The timeout command sets the timeout period for generating redundant packets.
The undo timeout command restores the default setting.
By default, the timeout period for generating redundant packets is 35 ms.
Format
timeout timeout-value
undo timeout
Parameters
Parameter Description Value
Views
Anti-packet loss view
Default Level
2: Configuration level
Usage Guidelines
After the first packet is received for an encoding block, the timer triggers the
calculation of redundant packets if the total number of original packets received
within the time specified by timeout is less than the value specified by block-size.
You need to set this parameter based on the rate of network packets. Whether
redundant packets will be generated on the encoding side depends on two values:
the configured size of an encoding block and encoding timeout period. Redundant
packets will be generated and sent when either of the two values is reached.
Example
# Set the timeout period for generating redundant packets to 10 ms.
<Huawei> system-view
[Huawei] wan-optimization profile fec
[Huawei-wanop-profile-fec] anti-loss
[Huawei-wanop-profile-fec-anti-loss] timeout 10
Format
wan-optimization profile profile-name
undo wan-optimization profile profile-name
Parameters
Parameter Description Value
Views
System view
Default Level
2: Configuration level
Usage Guidelines
After creating a WAN optimization profile, you can enter the WAN optimization
view to configure the WAN optimization type and parameters.
Example
# Create a WAN optimization profile named fec and display its view.
<Huawei> system-view
[Huawei] wan-optimization profile fec
[Huawei-wanop-profile-fec]
19.1.26 wan-optimization-profile
Function
The wan-optimization-profile command binds a WAN optimization profile to a
traffic behavior.
The undo wan-optimization-profile command unbinds a WAN optimization
profile from a traffic behavior.
By default, no WAN optimization profile is bound to a traffic behavior.
Format
wan-optimization-profile profile-name
undo wan-optimization-profile profile-name
Parameters
Parameter Description Value
Views
Traffic behavior view
Default Level
2: Configuration level
Usage Guidelines
To bind a WAN optimization profile to a traffic behavior, run the wan-
optimization-profile command. In this way, you can reference a traffic behavior
in a traffic policy and enable the traffic policy in the outbound direction of a
tunnel interface.
Example
# Bind the WAN optimization profile fec to a traffic behavior.
<Huawei> system-view
[Huawei] traffic behavior b1
[Huawei-behavior-b1] wan-optimization-profile fec