IfInDiscards and IfOutDiscards counters

snmpstatistics

Could someone tell me what do ifinDiscards (.1.3.6.1.2.1.2.2.1.13) and ifOutDiscards (.1.3.6.1.2.1.2.2.1.14) exactly mean?

Thanks.

Best Answer

As RFC2863 / IF-MIB describes:

The number of inbound/outbound packets which were chosen to be discarded even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. One possible reason for discarding such a packet could be to free up buffer space.

An interface discard is simply where the device has decided to discard a packet for some reason. The reason a device discards the packet(s) / frame(s) is typically hard to tell. It could be a corrupt packet, that the device is busy, buffer overflows, packet size issues, and several other things.

In another word, your interfaces could be overloaded or receiving too much burst data for the buffers to pass to the physical interface. These count as discards.

However, if it happened on a switch, buffer drops are a normal part of switching and you don't need to be concern about that.