- Table of Contents
-
- 04-Layer 3 Command Reference
- 00-Preface
- 01-ARP Commands
- 02-IP Addressing Commands
- 03-DHCP Commands
- 04-DHCPv6 Commands
- 05-DNS Commands
- 06-IPv6 DNS Commands
- 07-NAT Commands
- 08-Adjacency Table Commands
- 09-Flow Classification Commands
- 10-IPv6 Basics Commands
- 11-IP Performance Optimization Commands
- 12-Basic IP Routing Commands
- 13-Static Routing Commands
- 14-IPv6 Static Routing Commands
- 15-GRE Commands
- 16-RIP Commands
- 17-RIPng Commands
- 18-Policy-Based Routing Commands
Title | Size | Download |
---|---|---|
11-IP Performance Optimization Commands | 94.08 KB |
IP performance optimization commands
display fib
Use display fib to display FIB entries.
Syntax
display fib [ acl acl-number | ip-prefix ip-prefix-name ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
acl acl-number: Displays FIB entries matching a specific ACL. The acl-number argument is in the range of 2000 to 2999. If the specified ACL does not exist, this command displays all FIB entries.
ip-prefix ip-prefix-name: Displays FIB entries matching a specific IP prefix list, a string of 1 to 19 characters. If the specified IP prefix list does not exist, this command displays all FIB entries.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If you do not specify any parameter, this command displays all FIB entries.
Examples
# Display all FIB entries.
<Sysname> display fib
Destination count: 4 FIB entry count: 4
Flag:
U:Useable G:Gateway H:Host B:Blackhole D:Dynamic S:Static
R:Relay
Destination/Mask Nexthop Flag OutInterface InnerLabel Token
10.2.0.0/16 10.2.1.1 U Vlan1 Null Invalid
10.2.1.1/32 127.0.0.1 UH InLoop0 Null Invalid
127.0.0.0/8 127.0.0.1 U InLoop0 Null Invalid
127.0.0.1/32 127.0.0.1 UH InLoop0 Null Invalid
# Display FIB entries matching ACL 2000.
<Sysname> system-view
[Sysname] acl number 2000
[Sysname-acl-basic-2000] rule permit source 10.2.0.0 0.0.255.255
[Sysname-acl-basic-2000] display fib acl 2000
Destination count: 2 FIB entry count: 2
Flag:
U:Useable G:Gateway H:Host B:Blackhole D:Dynamic S:Static
R:Relay
Destination/Mask Nexthop Flag OutInterface InnerLabel Token
10.2.0.0/16 10.2.1.1 U Vlan1 Null Invalid
10.2.1.1/32 127.0.0.1 UH InLoop0 Null Invalid
# Display the first FIB entry that contains 127 and all subsequent entries.
<Sysname> display fib | begin 127
Flag:
U:Useable G:Gateway H:Host B:Blackhole D:Dynamic S:Static
R:Relay
Destination/Mask Nexthop Flag OutInterface InnerLabel Token
10.2.1.1/32 127.0.0.1 UH InLoop0 Null Invalid
127.0.0.0/8 127.0.0.1 U InLoop0 Null Invalid
127.0.0.1/32 127.0.0.1 UH InLoop0 Null Invalid
# Display FIB information matching the IP prefix list abc0.
<Sysname> system-view
[Sysname] ip ip-prefix abc0 permit 10.2.0.0 16
[Sysname] display fib ip-prefix abc0
Destination count: 1 FIB entry count: 1
Flag:
U:Useable G:Gateway H:Host B:Blackhole D:Dynamic S:Static
R:Relay
Destination/Mask Nexthop Flag OutInterface InnerLabel Token
10.2.0.0/16 10.2.1.1 U Vlan1 Null Invalid
Field |
Description |
Destination count |
Total number of destination addresses. |
FIB entry count |
Total number of FIB entries. |
Destination/Mask |
Destination address/mask length. |
Nexthop |
Next hop address. |
Flag |
Flags of routes: · U—Usable route. · G—Gateway route. · H—Host route. · B—Blackhole route. · D—Dynamic route. · S—Static route. · R—Recursive route. |
OutInterface |
Outbound interface. |
InnerLabel |
Inner label. |
Token |
Label switched path index number. |
display fib ip-address
Use display fib ip-address to display FIB entries that match the specified destination IP address.
Syntax
display fib ip-address [ mask | mask-length ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
ip-address: Specifies a destination IP address in dotted decimal notation.
mask: Specifies the mask for the IP address.
mask-length: Specifies the mask length for the IP address, the number of consecutive ones in the mask.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all subsequent lines.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If you specify an IP address without a mask or mask length, this command displays the longest matching FIB entry.
If you specify an IP address with a mask or mask length, this command displays the exactly matching FIB entry.
Examples
# Display the longest matching FIB entry for the destination IP address of 10.2.1.1.
<Sysname> display fib 10.2.1.1
Destination count: 1 FIB entry count: 1
Flag:
U:Useable G:Gateway H:Host B:Blackhole D:Dynamic S:Static
R:Relay
Destination/Mask Nexthop Flag OutInterface InnerLabel Token
10.2.1.1/32 127.0.0.1 UH InLoop0 Null Invalid
For more information about the command output, see Table 1.
display icmp statistics
Use display icmp statistics to display ICMP statistics.
Syntax
display icmp statistics [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display ICMP statistics.
<Sysname> display icmp statistics
Input: bad formats 0 bad checksum 0
echo 5 destination unreachable 0
source quench 0 redirects 0
echo reply 10 parameter problem 0
timestamp 0 information request 0
mask requests 0 mask replies 0
time exceeded 0
Output:echo 10 destination unreachable 0
source quench 0 redirects 0
echo reply 5 parameter problem 0
timestamp 0 information reply 0
mask requests 0 mask replies 0
time exceeded 0
· display ip interface
· reset ip statistics
display ip socket
Use display ip socket to display socket information.
Syntax
display ip socket [ socktype sock-type ] [ task-id socket-id ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
socktype sock-type: Displays socket information for the type specified by the sock-type argument. The sock type is in the range of 1 to 3, corresponding to TCP, UDP, and raw IP respectively.
task-id: Displays socket information for the task specified by the task-id argument. The value range for task ID is 1 to 200.
socket-id: Displays information about the socket. Socket ID is in the range of 0 to 3072.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display TCP socket information.
<Sysname> display ip socket
SOCK_STREAM:
Task = VTYD(38), socketid = 1, Proto = 6,
LA = 0.0.0.0:23, FA = 0.0.0.0:0,
sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,
sb_maxcc = 0, rb_maxcc = 0,
socket option = SO_ACCEPTCONN SO_KEEPALIVE SO_REUSEPORT SO_SENDVPNID(3073) SO_SETKEEPALIVE,
socket state = SS_PRIV SS_ASYNC
Task = HTTP(36), socketid = 1, Proto = 6,
LA = 0.0.0.0:80, FA = 0.0.0.0:0,
sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,
sb_maxcc = 0, rb_maxcc = 0,
socket option = SO_ACCEPTCONN SO_REUSEPORT,
socket state = SS_PRIV SS_NBIO
Task = ROUT(69), socketid = 10, Proto = 6,
LA = 0.0.0.0:179, FA = 192.168.1.45:0,
sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,
sb_maxcc = 0, rb_maxcc = 0,
socket option = SO_ACCEPTCONN SO_REUSEADDR SO_REUSEPORT SO_SENDVPNID(0),
socket state = SS_PRIV SS_ASYNC
Task = VTYD(38), socketid = 4, Proto = 6,
LA = 192.168.1.40:23, FA = 192.168.1.52:1917,
sndbuf = 8192, rcvbuf = 8192, sb_cc = 237, rb_cc = 0,
sb_maxcc = 0, rb_maxcc = 0,
socket option = SO_KEEPALIVE SO_OOBINLINE SO_REUSEPORT SO_SENDVPNID(0) SO_SETKEEPALIVE,
socket state = SS_ISCONNECTED SS_PRIV SS_ASYNC
Task = VTYD(38), socketid = 3, Proto = 6,
LA = 192.168.1.40:23, FA = 192.168.1.84:1503,
sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,
sb_maxcc = 0, rb_maxcc = 0,
socket option = SO_KEEPALIVE SO_OOBINLINE SO_REUSEPORT SO_SENDVPNID(0) SO_SETKEEPALIVE,
socket state = SS_ISCONNECTED SS_PRIV SS_ASYNC
Task = ROUT(69), socketid = 11, Proto = 6,
LA = 192.168.1.40:1025, FA = 192.168.1.45:179,
sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,
sb_maxcc = 0, rb_maxcc = 0,
socket option = SO_REUSEADDR SO_LINGER SO_SENDVPNID(0),
socket state = SS_ISCONNECTED SS_PRIV SS_ASYNC
SOCK_DGRAM:
Task = NTPT(37), socketid = 1, Proto = 17,
LA = 0.0.0.0:123, FA = 0.0.0.0:0,
sndbuf = 9216, rcvbuf = 41600, sb_cc = 0, rb_cc = 0,
sb_maxcc = 0, rb_maxcc = 0,
socket option = SO_UDPCHECKSUM SO_SENDVPNID(3073),
socket state = SS_PRIV
Task = AGNT(51), socketid = 1, Proto = 17,
LA = 0.0.0.0:161, FA = 0.0.0.0:0,
sndbuf = 9216, rcvbuf = 41600, sb_cc = 0, rb_cc = 0,
sb_maxcc = 0, rb_maxcc = 0,
socket option = SO_UDPCHECKSUM SO_SENDVPNID(3073),
socket state = SS_PRIV SS_NBIO SS_ASYNC
Task = RDSO(56), socketid = 1, Proto = 17,
LA = 0.0.0.0:1024, FA = 0.0.0.0:0,
sndbuf = 9216, rcvbuf = 41600, sb_cc = 0, rb_cc = 0,
sb_maxcc = 0, rb_maxcc = 0,
socket option = SO_UDPCHECKSUM,
socket state = SS_PRIV
Task = TRAP(52), socketid = 1, Proto = 17,
LA = 0.0.0.0:1025, FA = 0.0.0.0:0,
sndbuf = 9216, rcvbuf = 0, sb_cc = 0, rb_cc = 0,
sb_maxcc = 0, rb_maxcc = 0,
socket option = SO_UDPCHECKSUM,
socket state = SS_PRIV
Task = RDSO(56), socketid = 2, Proto = 17,
LA = 0.0.0.0:1812, FA = 0.0.0.0:0,
sndbuf = 9216, rcvbuf = 41600, sb_cc = 0, rb_cc = 0,
sb_maxcc = 0, rb_maxcc = 0,
socket option = SO_UDPCHECKSUM,
socket state = SS_PRIV
SOCK_RAW:
Task = ROUT(69), socketid = 8, Proto = 89,
LA = 0.0.0.0, FA = 0.0.0.0,
sndbuf = 262144, rcvbuf = 262144, sb_cc = 0, rb_cc = 0,
sb_maxcc = 0, rb_maxcc = 0,
socket option = SO_SENDVPNID(0) SO_RCVVPNID(0),
socket state = SS_PRIV SS_ASYNC
Task = ROUT(69), socketid = 3, Proto = 2,
LA = 0.0.0.0, FA = 0.0.0.0,
sndbuf = 32767, rcvbuf = 256000, sb_cc = 0, rb_cc = 0,
sb_maxcc = 0, rb_maxcc = 0,
socket option = SO_SENDVPNID(0) SO_RCVVPNID(0),
socket state = SS_PRIV SS_NBIO SS_ASYNC
Task = ROUT(69), socketid = 2, Proto = 103,
LA = 0.0.0.0, FA = 0.0.0.0,
sndbuf = 65536, rcvbuf = 256000, sb_cc = 0, rb_cc = 0,
sb_maxcc = 0, rb_maxcc = 0,
socket option = SO_SENDVPNID(0) SO_RCVVPNID(0),
socket state = SS_PRIV SS_NBIO SS_ASYNC
Task = ROUT(69), socketid = 1, Proto = 65,
LA = 0.0.0.0, FA = 0.0.0.0,
sndbuf = 32767, rcvbuf = 256000, sb_cc = 0, rb_cc = 0,
sb_maxcc = 0, rb_maxcc = 0,
socket option = 0,
socket state = SS_PRIV SS_NBIO SS_ASYNC
Task = RSVP(73), socketid = 1, Proto = 46,
LA = 0.0.0.0, FA = 0.0.0.0,
sndbuf = 4194304, rcvbuf = 4194304, sb_cc = 0, rb_cc = 0,
sb_maxcc = 0, rb_maxcc = 0,
socket option = 0,
socket state = SS_PRIV SS_NBIO SS_ASYNC
Table 2 Command output
Field |
Description |
SOCK_STREAM |
TCP socket. |
SOCK_DGRAM |
UDP socket. |
SOCK_RAW |
Raw IP socket. |
Task |
Task number. |
socketid |
Socket ID. |
Proto |
Protocol number of the socket, indicating the protocol type that IP carries. |
LA |
Local address and local port number. |
FA |
Remote address and remote port number. |
sndbuf |
Sending buffer size of the socket, in bytes. |
rcvbuf |
Receiving buffer size of the socket, in bytes. |
sb_cc |
Current data size in the sending buffer (available only for TCP that can buffer data). |
rb_cc |
Current data size in the receiving buffer. |
sb_maxcc |
History maximum data size in the sending buffer. |
rb_maxcc |
History maximum data size in the receiving buffer. |
socket option |
Socket option. |
socket state |
Socket state. |
display ip statistics
Use display ip statistics to display statistics of IP packets.
Syntax
display ip statistics [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display statistics of IP packets.
<Sysname> display ip statistics
Input: sum 7120 local 112
bad protocol 0 bad format 0
bad checksum 0 bad options 0
Output: forwarding 0 local 27
dropped 0 no route 2
compress fails 0
Fragment:input 0 output 0
dropped 0
fragmented 0 couldn't fragment 0
Reassembling:sum 0 timeouts 0
Table 3 Command output
Field |
Description |
|
Input |
sum |
Total number of packets received. |
local |
Total number of packets with destination being local. |
|
bad protocol |
Total number of unknown protocol packets. |
|
bad format |
Total number of packets with incorrect format. |
|
bad checksum |
Total number of packets with incorrect checksum. |
|
bad options |
Total number of packets with incorrect option. |
|
Output |
forwarding |
Total number of packets forwarded. |
local |
Total number of packets sent from the local. |
|
dropped |
Total number of packets discarded. |
|
no route |
Total number of packets for which no route is available. |
|
compress fails |
Total number of packets failed to be compressed. |
|
Fragment |
input |
Total number of fragments received. |
output |
Total number of fragments sent. |
|
dropped |
Total number of fragments dropped. |
|
fragmented |
Total number of packets successfully fragmented. |
|
couldn't fragment |
Total number of packets that failed to be fragmented. |
|
Reassembling |
sum |
Total number of packets reassembled. |
timeouts |
Total number of reassembly timeout fragments. |
· display ip interface
· reset ip statistics
display ip virtual-reassembly
Use display ip virtual-reassembly to display the IP virtual fragment reassembly information for an interface.
Syntax
display ip virtual-reassembly [ interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
interface interface-type interface-number: Displays the IP virtual fragment reassembly information for the interface specified by interface-type interface-number.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If no interface is specified, the command displays IP virtual fragment reassembly information for all interfaces. The information includes:
· Interface type and number.
· Maximum number of concurrent reassemblies.
· Maximum fragments per reassembly.
· Current numbers of concurrent reassemblies and fragments.
· Reassembly timeout interval.
Examples
# Display the IP virtual fragment reassembly information for VLAN-interface 1.
<Sysname> display ip virtual-reassembly interface vlan-interface 1
Vlan-interface1:
Virtual Fragment Reassembly is enabled.
Concurrent reassemblies(max-reassemblies): 64
Fragments per reassembly(max-fragments): 16
Reassembly timeout(timeout): 3 second(s)
Drop fragments: OFF
Current reassembly count: 0
Current fragment count: 0
Total reassembly count: 0
Total reassembly failures: 0
Table 4 Command output
Field |
Description |
Concurrent reassemblies (max-reassemblies) |
Maximum number of concurrent reassemblies. |
Fragments per reassembly(max-fragments) |
Maximum number of fragments per reassembly. |
Reassembly timeout(timeout) |
Timeout interval of each reassembly. |
Drop fragments |
OFF/ON means dropping all fragments is disabled/enabled. |
Current reassembly count |
Number of current reassemblies. |
Current fragment count |
Number of current fragments. |
Total reassembly count |
Total concurrent reassemblies, including the failed. |
Total reassembly failures |
Total number of failed reassemblies. |
display tcp statistics
Use display tcp statistics to display statistics of TCP traffic.
Syntax
display tcp statistics [ | { begin | exclude | include } regular-expression ]
Any view
Default command level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display statistics of TCP traffic.
<Sysname> display tcp statistics
Received packets:
Total: 8457
packets in sequence: 3660 (5272 bytes)
window probe packets: 0, window update packets: 0
checksum error: 0, offset error: 0, short error: 0
duplicate packets: 1 (8 bytes), partially duplicate packets: 0 (0 bytes)
out-of-order packets: 17 (0 bytes)
packets of data after window: 0 (0 bytes)
packets received after close: 0
ACK packets: 4625 (141989 bytes)
duplicate ACK packets: 1702, too much ACK packets: 0
Sent packets:
Total: 6726
urgent packets: 0
control packets: 21 (including 0 RST)
window probe packets: 0, window update packets: 0
data packets: 6484 (141984 bytes) data packets retransmitted: 0 (0 bytes)
ACK-only packets: 221 (177 delayed)
Retransmitted timeout: 0, connections dropped in retransmitted timeout: 0
Keepalive timeout: 1682, keepalive probe: 1682, Keepalive timeout, so connections disconnected : 0
Initiated connections: 0, accepted connections: 22, established connections: 22
Closed connections: 49 (dropped: 0, initiated dropped: 0)
Packets dropped with MD5 authentication: 0
Packets permitted with MD5 authentication: 0
Table 5 Command output
Field |
Description |
|
Received packets |
Total |
Total number of packets received. |
packets in sequence |
Number of packets arriving in sequence. |
|
window probe packets |
Number of window probe packets received. |
|
window update packets |
Number of window update packets received. |
|
checksum error |
Number of checksum error packets received. |
|
offset error |
Number of offset error packets received. |
|
short error |
Number of received packets with length being too small. |
|
duplicate packets |
Number of completely duplicate packets received. |
|
partially duplicate packets |
Number of partially duplicate packets received. |
|
out-of-order packets |
Number of out-of-order packets received. |
|
packets of data after window |
Number of packets outside the receiving window. |
|
packets received after close |
Number of packets that arrived after connection is closed. |
|
ACK packets |
Number of ACK packets received. |
|
duplicate ACK packets |
Number of duplicate ACK packets received. |
|
too much ACK packets |
Number of ACK packets for data unsent. |
|
Sent packets |
Total |
Total number of packets sent. |
urgent packets |
Number of urgent packets sent. |
|
control packets |
Number of control packets sent. |
|
window probe packets |
Number of window probe packets sent. In the brackets are resent packets. |
|
window update packets |
Number of window update packets sent. |
|
data packets |
Number of data packets sent. |
|
data packets retransmitted |
Number of data packets retransmitted. |
|
ACK-only packets |
Number of ACK packets sent. Delayed ACK packets are in brackets. |
|
Retransmitted timeout |
Number of retransmission timer timeouts. |
|
connections dropped in retransmitted timeout |
Number of connections broken due to retransmission timeouts. |
|
Keepalive timeout |
Number of keepalive timer timeouts. |
|
keepalive probe |
Number of keepalive probe packets sent. |
|
Keepalive timeout, so connections disconnected |
Number of connections broken due to timeout of the keepalive timer. |
|
Initiated connections |
Number of connections initiated. |
|
accepted connections |
Number of connections accepted. |
|
established connections |
Number of connections established. |
|
Closed connections |
Number of connections closed. In brackets are connections closed accidentally (before receiving SYN from the peer) and connections closed initiatively (after receiving SYN from the peer). |
|
Packets dropped with MD5 authentication |
Number of packets dropped by MD5 authentication. |
|
Packets permitted with MD5 authentication |
Number of packets permitted by MD5 authentication. |
· display tcp status
· reset tcp statistics
display udp statistics
Use display udp statistics to display statistics of UDP packets.
Syntax
display udp statistics [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display statistics of UDP packets.
<Sysname> display udp statistics
Received packets:
Total: 0
checksum error: 0
shorter than header: 0, data length larger than packet: 0
unicast(no socket on port): 0
broadcast/multicast(no socket on port): 0
not delivered, input socket full: 0
input packets missing pcb cache: 0
Sent packets:
Total: 0
Table 6 Command output
Field |
Description |
|
Received packets |
Total |
Total number of UDP packets received. |
checksum error |
Total number of packets with incorrect checksum. |
|
shorter than header |
Number of packets with data length shorter than head. |
|
data length larger than packet |
Number of packets with data length longer than packet. |
|
unicast(no socket on port) |
Number of unicast packets with no socket on port. |
|
broadcast/multicast(no socket on port) |
Number of broadcast/multicast packets without socket on port. |
|
not delivered, input socket full |
Number of packets not delivered to an upper layer due to a full socket cache. |
|
input packets missing pcb cache |
Number of packets without matching protocol control block cache. |
|
Sent packets |
Total |
Total number of UDP packets sent. |
reset udp statistics
ip redirects enable
Use ip redirects enable to enable sending ICMP redirection messages.
Use undo ip redirects to disable sending ICMP redirection messages.
Syntax
ip redirects enable
undo ip redirects
Default
Sending ICMP redirection messages is disabled.
Views
System view
Default command level
2: System level
Examples
# Enable sending ICMP redirect messages.
<Sysname> system-view
[Sysname] ip redirects enable
ip ttl-expires enable
Use ip ttl-expires enable to enable sending ICMP TTL Expired messages.
Use undo ip ttl-expires to disable sending ICMP TTL Expired messages.
Syntax
ip ttl-expires enable
undo ip ttl-expires
Default
Sending ICMP TTL Expired messages is disabled.
Views
System view
Default command level
2: System level
Usage guidelines
If the feature is disabled, a device does not send ICMP TTL Expired messages but can still send ICMP Fragment Reassembly Timeout messages.
Examples
# Enable sending ICMP TTL Expired messages.
<Sysname> system-view
[Sysname] ip ttl-expires enable
ip unreachables enable
Use ip unreachables enable to enable sending ICMP destination unreachable messages.
Use undo ip unreachables to disable sending ICMP destination unreachable messages.
Syntax
ip unreachables enable
undo ip unreachables
Default
Sending ICMP destination unreachable messages is disabled.
Views
System view
Default command level
2: System level
Examples
# Enable sending ICMP destination unreachable messages.
<Sysname> system-view
[Sysname] ip unreachables enable
ip virtual-reassembly
Use ip virtual-reassembly to enable the IP virtual fragment reassembly feature.
Use undo ip virtual-reassembly to disable IP virtual fragment reassembly.
Syntax
ip virtual-reassembly [ drop-fragments | max-fragments number | max-reassemblies number | timeout seconds ] *
undo ip virtual-reassembly
Default
The IP virtual fragment reassembly feature is disabled.
Views
Interface view
Default command level
2: System level
Parameters
drop-fragments: Specifies the interface to drop all fragments.
max-fragments number: Specifies the maximum number of fragments per reassembly. The value range is 1 to 255, and the default is 16.
max-reassemblies number: Specifies the maximum number of concurrent reassemblies. The value range is 1 to 1024, and the default is 64.
timeout seconds: Specifies the timeout interval of a reassembly in seconds (1 to 64). The value range is 1 to 64, and the default value is 3 seconds.
Usage guidelines
You can use this command to set the maximum number of fragments per reassembly, the maximum number of concurrent reassemblies, and the timeout interval of a reassembly.
When the maximum number of concurrent reassemblies is reached, the device discards all subsequent fragments (not including fragments that belong to assemblies established before the number is reached) and sends a syslog message. When the maximum number of fragments per reassembly is reached, the device discards all fragments of the reassembly and sends a syslog. When the fragments of a datagram (in a reassembly) are not reassembled within the timeout interval, all the fragments of the reassembly are discarded.
If the drop-fragments keyword is specified along with any combination of the keywords max-fragments, max-reassemblies, and timeout, the drop-fragment keyword overrides the others and the device drops all incoming fragments on the interface.
Examples
# Enable the IP virtual fragment reassembly feature on VLAN-interface 1.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] ip virtual-reassembly
reset ip statistics
Use reset ip statistics to clear statistics of IP packets.
Syntax
reset ip statistics
Views
User view
Default command level
1: Monitor level
Examples
# Clear statistics of IP packets.
<Sysname> reset ip statistics
· display ip statistics
· display ip interface
reset tcp statistics
Use reset tcp statistics to clear statistics of TCP traffic.
Syntax
reset tcp statistics
Views
User view
Default command level
1: Monitor level
Examples
# Clear statistics of TCP traffic.
<Sysname> reset tcp statistics
display tcp statistics
reset udp statistics
Use reset udp statistics to clear statistics of UDP traffic.
Syntax
reset udp statistics
Views
User view
Default command level
1: Monitor level
Examples
# Clear statistics of UDP traffic.
<Sysname> reset udp statistics
tcp mss
Use tcp mss to configure the TCP MSS.
Use undo tcp mss to restore the default.
Syntax
tcp mss value
undo tcp mss
Default
The TCP MSS is 1460 bytes.
Views
Interface view
Default command level
2: System level
Parameters
value: Specifies the TCP MSS in bytes, in the range of 128 to 2048.
Usage guidelines
TCP MSS = path MTU – IP header length – TCP header length
Examples
# Set the TCP MSS to 300 bytes on VLAN-interface 100.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] tcp mss 300
tcp path-mtu-discovery
Use tcp path-mtu-discovery to enable TCP path MTU discovery.
Use undo tcp path-mtu-discovery to disable TCP path MTU discovery, and disable all running path MTU timers. New TCP connections do not perform TCP path MTU discovery, but existing TCP connections can still use TCP path MTU discovery.
Syntax
tcp path-mtu-discovery [ aging minutes | no-aging ]
undo tcp path-mtu-discovery
Default
TCP path MTU discovery is disabled.
Views
System view
Default command level
2: System level
Parameters
aging minutes: Sets the aging time of the path MTU, in the range of 10 to 30 minutes. The default aging time is 10 minutes.
no-aging: Does not age out the path MTU.
Examples
# Enable TCP path MTU discovery and set the path MTU aging time to 20 minutes.
<Sysname> system-view
[Sysname] tcp path-mtu-discovery aging 20
tcp timer fin-timeout
Use tcp timer fin-timeout to configure the TCP finwait timer.
Use undo tcp timer fin-timeout to restore the default.
Syntax
tcp timer fin-timeout time-value
undo tcp timer fin-timeout
Default
The TCP finwait timer is 675 seconds.
Views
System view
Default command level
2: System level
Parameters
time-value: Specifies the TCP finwait timer in seconds, in the range of 76 to 3600.
Usage guidelines
The actual finwait timer is determined by the following formula:
Actual finwait timer = (Configured finwait timer – 75) + configured synwait timer
Examples
# Set the TCP finwait timer to 800 seconds.
<Sysname> system-view
[Sysname] tcp timer fin-timeout 800
· tcp timer syn-timeout
· tcp window
tcp timer syn-timeout
Use tcp timer syn-timeout to configure the TCP synwait timer.
Use undo tcp timer syn-timeout to restore the default.
Syntax
tcp timer syn-timeout time-value
undo tcp timer syn-timeout
Default
The TCP synwait timer is 75 seconds.
Views
System view
Default command level
2: System level
Parameters
time-value: Specifies the TCP synwait timer in seconds, in the range of 2 to 600.
Examples
# Set the TCP synwait timer to 80 seconds.
<Sysname> system-view
[Sysname] tcp timer syn-timeout 80
· tcp timer fin-timeout
· tcp window
tcp window
Use tcp window to configure the size of the TCP send/receive buffer.
Use undo tcp window to restore the default.
Syntax
tcp window window-size
undo tcp window
Default
The size of the TCP send/receive buffer is 8 KB.
Views
System view
Default command level
2: System level
Parameters
window-size: Specifies the size of the send/receive buffer in KB, in the range of 1 to 32.
Examples
# Configure the size of the TCP send/receive buffer as 3 KB.
<Sysname> system-view
[Sysname] tcp window 3
Related commands
· tcp timer fin-timeout
· tcp timer syn-timeout