display ip statistics

Function

The display ip statistics command displays IP packet statistics.

Format

display ip statistics

display ip statistics interface { interface-name | interface-type interface-number }

Parameters

Parameter Description Value
interface interface-name

Displays statistics about IP packets on a specified interface name.

-

interface interface-type interface-number

Displays statistics about IP packets on a specified interface type and number.

-

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
ip-stack read

Usage Guidelines

Usage Scenario

To check statistics about IP packets, including sent, received, fragmented, and reassembled packets, run the display ip statistics command. The received packets displayed also include the packets carrying the Source Route options that are received and then discarded.

Precautions

If the bad protocol and no route field values displayed are large, the local device receives a large number of packets of unknown protocols and without routes, check whether the device is being attacked.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display IP packet statistics.
<HUAWEI> display ip statistics
Input:        sum                4219578    local           0         
              bad protocol       1327031    bad format      0         
              bad checksum       0          bad options     0         
              discard srr        0          discard rr      0         
              discard ra         0          discard ts      0         
              TTL exceeded       0         
Output:       forwarding         0          local           1754592   
              dropped            0          no route        0         
Fragment:     input              0          output          0         
              dropped            0          fragmented      0         
              couldn't fragment  0         
Reassembling: sum                0          timeouts        0
Table 1 Description of the display ip statistics command output
Item Description
TTL exceeded

Number of packets discarded due to TTL timeouts.

Fragment

Fragmented packet statistics.

Reassembling

Reassembled packet statistics.

sum

Total number of received packets.

local

Number of packets sent to the upper-layer protocol.

bad protocol

Number of packets of unknown protocols.

The protocol fields in these packets cannot be recognized by the upper-layer protocol.

bad format

Number of packets with incorrect formats.

bad checksum

Number of packets with incorrect checksums.

bad options

Number of packets with incorrect options.

discard srr

Number of packets discarded carrying Source Route options.

discard rr

Number of packets discarded carrying the Record Route option.

discard ra

Number of packets discarded carrying the Router Alert option.

discard ts

Number of packets discarded carrying the timestamp option.

forwarding

Number of forwarded packets.

dropped

Number of discarded packets.

no route

Number of packets for which no correct route can be found, including the packets sent and forwarded by the local device.

input

Number of received fragmented packets.

output

Number of created fragmented packets.

fragmented

Number of successfully fragmented packets.

couldn't fragment

Number of packets incapable of fragmentation.

timeouts

Number of fragmented packets that fail to be reassembled due to timeouts.

Input

Received packet statistics.

Output

Sent packet statistics.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >