- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
08-IP Performance Commands | 71.96 KB |
Table of Contents
Chapter 1 IP Performance Configuration Commands
1.1 IP Performance Configuration Commands
1.1.2 display fib [ all ] ip-address [ longer ]
1.1.13 ip icmp-time-exceed enable
Chapter 1 IP Performance Configuration Commands
1.1 IP Performance Configuration Commands
1.1.1 display fib
Syntax
View
Any view
Parameters
all: Displays all the entries, including inactive ones, in the forwarding information base (FIB).
Description
Use the display fib command to display all the active entries in the forwarding information base.
Use the display fib all command to display all the entries, including inactive ones, in the forwarding information base.
Each FIB entry includes destination address/mask length, next hop, current flag, timestamp, outbound interface, and activation flag.
Examples
# Display active entries of the FIB.
Destination/Mask Nexthop Flag TimeStamp Interface Act
2.2.2.2/32 8.8.8.2 S t[0] Vlan-interface10 YES
8.8.8.2/32 8.8.8.2 H t[0] Vlan-interface10 YES
8.8.8.1/32 127.0.0.1 GHU t[0] InLoopBack0 YES
8.8.8.0/24 8.8.8.1 U t[0] Vlan-interface10 YES
127.0.0.0/8 127.0.0.1 U t[0] InLoopBack0 YES
# Display all the entries of the FIB.
<H3C> display fib all
Destination/Mask Nexthop Flag TimeStamp Interface Act
2.2.2.2/32 8.8.8.2 S t[0] Vlan-interface10 YES
2.2.2.2/32 8.8.8.3 GHSU t[0] Vlan-interface10 NO
8.8.8.2/32 8.8.8.2 H t[0] Vlan-interface10 YES
8.8.8.1/32 127.0.0.1 GHU t[0] InLoopBack0 YES
8.8.8.0/24 8.8.8.1 U t[0] Vlan-interface10 YES
127.0.0.0/8 127.0.0.1 U t[0] InLoopBack0 YES
Table 1-1 Description on the fields of the display fib command
Field |
Description |
Destination/Mask |
Destination address/Mask length |
Nexthop |
Next hop address |
Flag |
The flag options include: B – Blackhole route D – Dynamic route G – Gateway route H – Host route S – Static route U – Route in UP state R – Unreachable route L – Route generated by ARP or ESIS |
Timestamp |
Timestamp |
Interface |
Forwarding interface |
Act |
Activation flag: YES: Active entries NO: Inactive entries |
1.1.2 display fib [ all ] ip-address [ longer ]
Syntax
display fib [ all ] [ ip-address [ mask | mask-length ] [ longer ] ]
display fib [ all ] ip-address1 { mask1 | mask-length1 } ip-address2 { mask2 | mask-length2 }
View
Any view
Parameters
all: Displays all the entries, including inactive ones, in the forwarding information base.
ip-address: Destination IP address, in dotted decimal notation.
mask: IP address mask, in dotted decimal notation.
mask-length: Mask length expressed an integer.
longer: Specifies to display the FIB entries that exactly match the specified IP address/subnet mask pairs.
ip-address1, ip-address2: Destination IP address, in dotted decimal notation. ip-address1 and ip-address2 jointly define an address range. The FIB entries in this address range are displayed.
mask1, mask2: IP address mask, in dotted decimal notation.
mask-length1, mask-length2: Mask length for an IP address.
Description
Use the display fib [ all ] [ ip-address [ mask | mask-length ] [ longer ] ] command to view the FIB entries matching the specified destination IP address.
Use the display fib [ all ] ip-address1 { mask1 | mask-length1 } ip-address2 { mask2 | mask-length2 } command to display the FIB entries matching a specified destination IP address range. Each line outputs an FIB entry and the display contents for each entry include destination address/mask length, next hop, current flag, timestamp, outbound interface, and activation flag.
Examples
# Display the active FIB entries whose destination addresses match 169.253.0.0 in the natural mask range or which match most of 169.253.0.0.
<H3C> display fib 169.253.0.0
Destination/Mask Nexthop Flag TimeStamp Interface Act
169.253.0.0/16 2.1.1.1 U t[0] Vlan-interface1 YES
# Display the FIB entries whose destination addresses are in the range of 169.254.0.0/16 to 169.254.0.6/16.
<H3C> display fib 169.254.0.0 255.255.0.0 169.254.0.6 255.255.0.0
Destination/Mask Nexthop Flag TimeStamp Interface Act
169.254.0.1/16 2.1.1.1 U t[0] Vlan-interface1 YES
For the descriptions of the displayed fields, refer to Table 1-1.
1.1.3 display fib acl
Syntax
display fib [ all ] acl { number | name }
View
Any view
Parameters
all: Displays all the entries, including inactive ones, in the FIB.
number: ACL in number form, in the range 2000 to 2999
name: ACL in name form, a string of 1 to 32 characters.
Description
Use the display fib [ all ] acl command to display the FIB entries permitted by a specific ACL.
Examples
# Display the active FIB entries permitted by ACL 2000.
<H3C> display fib acl 2000
Route entry matched by access-list 2000:
Destination/Mask Nexthop Flag TimeStamp Interface Act
127.0.0.0/8 127.0.0.1 U t[0] InLoopBack0 YES
For the descriptions of the displayed fields, refer to Table 1-1.
1.1.4 display fib |
Syntax
display fib [ all ] | { { begin | include | exclude } text }
View
Any view
Parameters
all: Specifies to display all the entries, including inactive ones, in the FIB.
|: Regular expression.
begin: Displays the FIB entries from the first one containing the character string text.
include: Displays only those FIB entries containing the character string text.
exclude: Displays only those FIB entries excluding the character string text.
text: Character string.
Description
Use the display fib [ all ] | command to display the FIB entries in the buffer which begin with, include or exclude the specified character string
Examples
# Display the lines starting from the first one containing the string 169.254.0.0
<H3C> display fib | begin 169.254.0.0
Destination/Mask Nexthop Flag TimeStamp Interface Act
169.254.0.0/16 2.1.1.1 U t[0] Vlan-interface1 YES
2.0.0.0/16 2.1.1.1 U t[0] Vlan-interface1 YES
For the descriptions of the displayed fields, refer to Table 1-1.
1.1.5 display fib ip-prefix
Syntax
display fib [ all ] ip-prefix listname
View
Any view
Parameters
all: Specifies to display all the entries, including inactive ones, in the FIB.
listname: Prefix list name, a string of 1 to 19 characters in length.
Description
Use the display fib [ all ] ip-prefix command to display the FIB entries permitted by the specific prefix list.
Examples
# Display the FIB entries permitted by the prefix list abc0.
<H3C> display fib ip-prefix abc0
Route Entry matched by prefix-list abc0:
Destination/Mask Nexthop Flag TimeStamp Interface Act
127.0.0.0/8 127.0.0.1 U t[0] InLoopBack0 YES
127.0.0.1/32 127.0.0.1 U t[0] InLoopBack0 YES
169.0.0.0/8 2.1.1.1 SU t[0] Vlan-interface1 YES
For the descriptions of the displayed fields, refer to Table 1-1.
1.1.6 display fib statistics
Syntax
display fib [ all ] statistics
View
Any view
Parameters
all: Specifies to display all the entries, including inactive ones, in the FIB.
Description
Use the display fib [ all ] statistics command to display the total number of FIB entries.
Examples
# Display the total number of active FIB entries.
Route Entry Count : 30
# Display the total number of FIB entries.
<H3C> display fib all statistics
Route Entry Count : 32
1.1.7 display icmp statistics
Syntax
display icmp statistics
View
Any view
Parameters
None
Description
Use the display icmp statistics command to view the statistics information about ICMP packets.
Related commands: display ip interface, reset ip statistics.
Examples
# View statistics about ICMP packets.
<H3C> 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
Table 1-2 Description on the fields of the display icmp statistics command
Field |
Description |
bad formats |
Number of input packets in bad format |
bad checksum |
Number of input packets with wrong checksum |
echo |
Number of input/output echo request packets |
destination unreachable |
Number of input/output packets with unreachable destination |
source quench |
Number of input/output source quench packets |
redirects |
Number of input/output redirected packets |
echo reply |
Number of input/output echo reply packets |
parameter problem |
Number of input/output packets with parameter problems |
timestamp |
Number of input/output timestamp packets |
information request |
Number of input information request packets |
mask requests |
Number of input/output mask request packets |
mask replies |
Number of input/output mask reply packets |
information reply |
Number of output information reply packets |
time exceeded |
Number of input/output packets that exceeds the time |
1.1.8 display ip socket
Syntax
display ip socket [ socktype sock-type ] [ task-id socket-id ]
View
Any view
Parameters
sock-type: The type of a socket (tcp:1, udp: 2, raw ip: 3).
task-id: The ID of a task, with the value ranging from 1 to 100.
socket-id: The ID of a socket, with the value ranging from 0 to 3072.
Description
Use the display ip socket command to display the information about the sockets in the current system.
Examples
# Display the information about the socket of TCP type.
<H3C> display ip socket socktype 1
SOCK_STREAM:
Task = VTYD(18), 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,
socket option = SO_ACCEPTCONN SO_KEEPALIVE SO_SENDVPNID SO_SETKEEPALIVE,
socket state = SS_PRIV SS_ASYNC
Task = VTYD(18), socketid = 2, Proto = 6,
LA = 10.153.17.99:23, FA = 10.153.17.56:1161,
sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,
socket option = SO_KEEPALIVE SO_OOBINLINE SO_SENDVPNID SO_SETKEEPALIVE,
socket state = SS_ISCONNECTED SS_PRIV SS_ASYNC
Task = VTYD(18), socketid = 3, Proto = 6,
LA = 10.153.17.99:23, FA = 10.153.17.82:1121,
sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,
socket option = SO_KEEPALIVE SO_OOBINLINE SO_SENDVPNID SO_SETKEEPALIVE,
socket state = SS_ISCONNECTED SS_PRIV SS_ASYNC
Table 1-3 Description on the fields of the display ip socket command
Field |
Description |
SOCK_STREAM |
The socket type |
Task |
The ID of a task |
socketid |
The ID of a socket |
Proto |
The protocol number used by the socket |
sndbuf |
The sending buffer size of the socket |
rcvbuf |
The receiving buffer size of the socket |
sb_cc |
The current data size in the sending buffer. The value makes sense only for the socket of TCP type, because only TCP is able to cache data |
rb_cc |
The current data size in the receiving buffer |
socket option |
The option of the socket |
socket state |
The state of the socket |
1.1.9 display ip statistics
Syntax
display ip statistics
View
Any view
Parameters
None
Description
Use the display ip statistics command to view the statistics information about IP packets.
Related commands: display ip interface, reset ip statistics.
Examples
# View statistics about IP packets.
<H3C> display ip statistics
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 1-4 Description on the fields of the display ip statistics command
Field |
Description |
|
Input: |
sum |
Sum of input packets |
local |
Number of received packets whose destination is the local device |
|
bad protocol |
Number of packets with wrong protocol number |
|
bad format |
Number of packets in bad format |
|
bad checksum |
Number of packets with wrong checksum |
|
bad options |
Number of packets that have wrong options |
|
Output: |
forwarding |
Number of forwarded packets |
local |
Number of packets that are sent by the local device |
|
dropped |
Number of dropped packets during transmission |
|
no route |
Number of packets that cannot be routed |
|
compress fails |
Number of packets that cannot be compressed |
|
Fragment: |
input |
Number of input fragments |
output |
Number of output fragments |
|
dropped |
Number of dropped fragments |
|
fragmented |
Number of packets that are fragmented |
|
couldn't fragment |
Number of packets that cannot be fragmented |
|
Reassembling: |
sum |
Number of packets that are reassembled |
timeouts |
Number of packets that time out |
1.1.10 display tcp statistics
Syntax
display tcp statistics
View
Any view
Parameters
None
Description
Use the display tcp statistics command to view the statistics information about TCP packets.
Related commands: display tcp status, reset tcp statistics.
Examples
# View statistics about TCP packets.
<H3C> display tcp statistics
Received packets:
Total: 753
packets in sequence: 412 (11032 bytes)
window probe packets: 0, window update packets: 0
checksum error: 0, offset error: 0, short error: 0
duplicate packets: 4 (88 bytes), partially duplicate packets: 5 (7 bytes)
out-of-order packets: 0 (0 bytes)
packets of data after window: 0 (0 bytes)
packets received after close: 0
ACK packets: 481 (8776 bytes)
duplicate ACK packets: 7, too much ACK packets: 0
Sent packets:
Total: 665
urgent packets: 0
control packets: 5 (including 1 RST)
window probe packets: 0, window update packets: 2
data packets: 618 (8770 bytes) data packets retransmitted: 0 (0 bytes)
ACK-only packets: 40 (28 delayed)
Retransmitted timeout: 0, connections dropped in retransmitted timeout: 0
Keepalive timeout: 0, keepalive probe: 0, Keepalive timeout, so connections disconnected : 0
Initiated connections: 0, accepted connections: 0, established connections: 0
Closed connections: 0 (dropped: 0, initiated dropped: 0)
Packets dropped with MD5 authentication: 0
Packets permitted with MD5 authentication: 0
Table 1-5 Description on the fields of the display tcp statistics command
Field |
Description |
Received packets |
Information followed is about received packets |
Total:753 |
Total number of received packets: 753 |
packets in sequence: 412 (11,032 bytes) |
Up to 412 packets (total of 11,032 bytes) arrive in sequence |
window probe packets: 0, window update packets: 0 |
Number of window probe packets: 0 Number of window update packets: 0 |
checksum error: 0, offset error: 0, short error: 0 |
Number of checksum errors: 0 Number of offset errors: 0 Number of short errors: 0 |
duplicate packets: 4 (88 bytes), partially duplicate packets: 5 (7 bytes) |
Number of duplicate packets: 4 (total of 88 bytes) Number of partially duplicate packets: 5 (total of 7 bytes) |
out-of-order packets: 0 (0 bytes) |
Number of out-of-order packets: 0 (0 byte) |
packets of data after window: 0 (0 bytes) |
Number of packets out of receiving window: 0 (0 byte) |
packets received after close: 0 |
Number of packets received after the connection closed: 0 |
ACK packets: 481 (8,776 bytes) |
Number of ACK packets: 481 (total of 8,776 bytes of data acknowledged) |
duplicate ACK packets: 7, too much ACK packets: 0 |
Number of duplicate ACK packets: 7 Number of too-much ACK packets: 0 (ACK packets that acknowledge data not sent) |
Sent packets |
Information followed is about sent packets |
Total: 665 |
Total number of sent packets: 665 |
urgent packets: 0 |
Number of urgent packets: 0 |
control packets: 5 (including 1 RST) |
Number of control packets: 5 (including 1 RST packet) |
window probe packets: 0, window update packets: 2 |
Number of window probe packets: 0 Number of window update packets: 2 |
data packets: 618 (8,770 bytes) data packets retransmitted: 0 (0 bytes) |
Number of data packets: 618 (total of 8,770 bytes) Number of data packets retransmitted: 0 (0 byte) |
ACK-only packets: 40 (28 delayed) |
Number of ACK packets: 40 (28 of which delayed) |
Retransmitted timeout: 0, connections dropped in retransmitted timeout: 0 |
Number of retransmitted timeout events: 0 Number of connections dropped due to the number of retransmitted timeout events exceeding the specified value: 0 |
Keepalive timeout: 0, keepalive probe: 0, Keepalive timeout, so connections |
Number of keepalive timeout events: 0 Number of keepalive probe packets sent: 0 |
disconnected : 0 |
Number of connections disconnected when keepalive probes fail: 0 |
Initiated connections: 0, accepted connections: 0, established connections: 0 |
Number of initiated connections: 0 Number of accepted connections: 0 Number of established connection: 0 |
Closed connections: 0 (dropped: 0, initiated dropped: 0) |
Number of closed connection: 0 Number of dropped connections (after SYN messages received): 0 Number of connections initiated drooped: 0 |
Packets dropped with MD5 authentication: 0 |
Number of packets dropped with MD5 authentication: 0 |
Packets permitted with MD5 authentication: 0 |
Number of packets permitted with MD5 authentication: 0 |
1.1.11 display tcp status
Syntax
display tcp status
View
Any view
Parameters
None
Description
Use the display tcp status command to view all TCP connection states. This helps user monitor TCP connection at any time.
Examples
# Display the state of all TCP connections.
<H3C> display tcp status
TCPCB Local Add:port Foreign Add:port State
03e37dc4 0.0.0.0:4001 0.0.0.0:0 Listening
04217174 100.0.0.204:23 100.0.0.253:65508 Established
The displayed information indicates that a TCP connection is established. The local IP address of this TCP connection is 100.0.0.204, and the local port number is 23. The remote IP address is 100.0.0.253, and the remote port number is 65508. In addition, there is a local server process which listens to the port 4001.
1.1.12 display udp statistics
Syntax
display udp statistics
View
Any view
Parameters
None
Description
Use the display udp statistics command to view UDP traffic statistic information.
It displays the statistic information of all current UDP connections. The statistics information about UDP packets are divided into two major kinds which are received packets and sent packets. The packets are further divided into different types such as check packets and error packets. There are also some statistics related closely to the connections, such as the number of broadcast packets. All these displayed information are measured in packets.
Related commands: reset udp statistics.
Examples
# Display the UDP traffic statistic information.
<H3C> display udp statistics
Received packet:
Total:0
checksum error:0
shorter than header:0, data length larger than packet:0
no socket on port:0
broadcast:0
not delivered, input socket full:0
input packets missing pcb cache:0
Sent packet:
Total:0
Table 1-6 Description on the fields of the display udp statistics command
Field |
Description |
Received packet: Total: 0 |
Total received UDP packets: 0 |
checksum error: 0 |
Number of checksum errors: 0 |
shorter than header: 0, data length larger than packet: 0 |
Cases that the length of the packets is shorter than the header: 0 Cases that the data length exceeds the packet length: 0 |
no socket on port: 0 |
Cases that there is no socket on port: 0 |
broadcast: 0 |
Number of broadcast packets: 0 |
not delivered, input socket full: 0 |
Cases that the packets are not forwarded because the socket buffer is full: 0 |
input packets missing pcb cache: 0 |
Cases that the packets cannot find pcb: 0 |
Sent packet: Total: 0 |
Total sent UDP packets: 0 |
1.1.13 ip icmp-time-exceed enable
Syntax
ip icmp-time-exceed enable
undo ip icmp-time-exceed enable
View
System view
Parameters
None
Description
Use the ip icmp-time-exceed enable command to make the switch send a “time exceeded” ICMP error packet to the IP packet sender when the switch receives an IP packet whose TTL is “1”, preventing the switch from repeatedly returning a destination unreachable packet to the sender.
Use the undo icmp-time-exceed enable command to cancel the configuration. In this case, the switch returns a destination unreachable packet to the sender.
By default, the switch sends a "time exceeded” ICMP error packet to the network management system.
Examples
# Configure the switch to send a “time exceeded” ICMP error packet to the IP packet sender when the switch receives a packet whose TTL is “1”.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] ip icmp-time-exceed enable
1.1.14 reset ip statistics
Syntax
reset ip statistics
View
User view
Parameters
None
Description
Use the reset ip statistics command to clear the IP statistics information.
Related commands: display ip interface, display ip statistics.
Examples
# Clear the IP statistics information.
<H3C> reset ip statistics
1.1.15 reset tcp statistics
Syntax
reset tcp statistics
View
User view
Parameters
None
Description
Use the reset tcp statistics command to clear the TCP statistics information.
Related commands: display tcp statistics.
Examples
# Clear the TCP statistics information.
<H3C> reset tcp statistics
1.1.16 reset udp statistics
Syntax
reset udp statistics
View
User view
Parameters
None
Description
Use the reset udp statistics command to can clear the UDP statistics information.
Examples
# Clear the UDP traffic statistics information.
<H3C> reset udp statistics
1.1.17 tcp timer fin-timeout
Syntax
tcp timer fin-timeout time-value
undo tcp timer fin-timeout
View
System view
Parameters
time-value: TCP finwait timer value in second, with the value ranging from 76 to 3,600; By default, it is 675 seconds.
Description
Use the tcp timer fin-timeout command to configure the TCP finwait timer.
Use the undo tcp timer fin-timeout command to restore the default value of the TCP finwait timer.
When the TCP connection state changes from FIN_WAIT_1 to FIN_WAIT_2, the finwait timer is enabled. If the switch does not receive FIN packets before the finwait timer times out, the TCP connection is terminated.
Related commands: tcp timer syn-timeout, tcp window.
Examples
# Configure the TCP finwait timer value as 800 seconds.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] tcp timer fin-timeout 800
1.1.18 tcp timer syn-timeout
Syntax
tcp timer syn-timeout time-value
undo tcp timer syn-timeout
View
System view
Parameters
time-value: TCP synwait timer value measured in seconds, whose value ranges from 2 to 600. The default time-value is 75 seconds.
Description
Use the tcp timer syn-timeout command to configure the TCP synwait timer.
Use the undo tcp timer syn-timeout command to restore the default value of the timer.
TCP enables the synwait timer if a SYN packet is sent. The TCP connection is terminated if the response packet is not received.
Related commands: tcp timer fin-timeout, tcp window.
Examples
# Configure the TCP synwait timer value as 80 seconds.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] tcp timer syn-timeout 80
1.1.19 tcp window
Syntax
tcp window window-size
undo tcp window
View
System view
Parameters
window-size: The size of the sending and receiving buffers measured in kilobytes (KB), whose value ranges from 1 to 32. By default, the window-size is 8KB.
Description
Use the tcp window command to configure the size of the sending and receiving buffers of the connection-oriented Socket.
Use the undo tcp window command to restore the default size of the buffer.
Related commands: tcp timer fin-timeout, tcp timer syn-timeout.
Examples
# Configure the size of the sending and receiving buffers as 3KB.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] tcp window 3