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.
The actual command output varies according to the device. The command output here is only an example.
<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
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. |