Datasheet

KSZ8863MLL/FLL/RLL
DS00002335B-page 68 2017 Microchip Technology Inc.
4.9 Management Information Base (MIB) Counters
KSZ8863 provides 34 MIB counters per port. These counters are used to monitor the port activity for network manage-
ment. The MIB counters have two format groups: “Per Port” and “All Port Dropped Packet.”
“Per Port” MIB counters are read using indirect memory access. The base address offsets and address ranges for all
three ports are:
Port 1, base is 0x00 and range is (0x00-0x1f)
Port 2, base is 0x20 and range is (0x20-0x3f)
Port 3, base is 0x40 and range is (0x40-0x5f)
Port 1 MIB counters are read using the indirect memory offsets in Table 4-14.
TABLE 4-13: FORMAT OF “PER PORT” MIB COUNTERS
Bit Name R/W Description Default
31 Overflow RO
1 = counter overflow
0 = no counter overflow
0
30 Count Valid RO
1 = counter value is valid
0 = counter value is not valid
0
29-0 Counter Values RO Counter value 0
TABLE 4-14: PORT 1’S “PER PORT” MIB COUNTERS INDIRECT MEMORY OFFSETS
Offset Counter Name Description
0x0 RxLoPriorityByte Rx lo-priority (default) octet count including bad packets
0x1 RxHiPriorityByte Rx hi-priority octet count including bad packets
0x2 RxUndersizePkt Rx undersize packets w/ good CRC
0x3 RxFragments Rx fragment packets w/ bad CRC, symbol errors or alignment errors
0x4 RxOversize Rx oversize packets w/ good CRC (max: 1536 or 1522 bytes)
0x5 RxJabbers
Rx packets longer than 1522 bytes w/ either CRC errors, alignment
errors, or symbol errors (depends on max packet size setting)
0x6 RxSymbolError Rx packets w/ invalid data symbol and legal packet size.
0x7 RxCRCError
Rx packets within (64,1522) bytes w/ an integral number of bytes and a
bad CRC (upper limit depends on max packet size setting)
0x8 RxAlignmentError
Rx packets within (64,1522) bytes w/ a non-integral number of bytes
and a bad CRC (upper limit depends on max packet size setting)
0x9 RxControl8808Pkts
Number of MAC control frames received by a port with 88-08h in Ether-
Type field
0xA RxPausePkts
Number of PAUSE frames received by a port. PAUSE frame is qualified
with EtherType (88-08h), DA, control opcode (00-01), data length (64B
min), and a valid CRC
0xB RxBroadcast
Rx good broadcast packets (not including error broadcast packets or
valid multicast packets)
0xC RxMulticast
Rx good multicast packets (not including MAC control frames, error
multicast packets or valid broadcast packets)
0xD RxUnicast Rx good unicast packets
0xE Rx64Octets Total Rx packets (bad packets included) that were 64 octets in length
0xF Rx65to127Octets
Total Rx packets (bad packets included) that are between 65 and 127
octets in length
0x10 Rx128to255Octets
Total Rx packets (bad packets included) that are between 128 and 255
octets in length
0x11 Rx256to511Octets
Total Rx packets (bad packets included) that are between 256 and 511
octets in length