![](http://datasheet.mmic.net.cn/230000/9860_datasheet_15574067/9860_95.png)
Advanced 10/100 Repeater with Integrated Management
—
LXT9860/9880
Datasheet
Document #: 248987
Revision#: 003
Rev Date: 08/07/01
95
6.2
Counter Registers
All counters power up to zero.
When reading a 64-bit counter, read the lower address (lower 32 bits of counter) first, followed by
the upper address. The first read causes all 64 bits to be simultaneously latched into an internal
holding register. The second read is directed to this holding register. The statistics bit must be set
off to write to the counters. A write operation of the counters is non-atomic for the 64 bit counters.
For further definitions refer to RFC 1757 and clause 30 of IEEE 802.3.
The ReadableFrame counter max size threshold can either be 1518 or 1522. All counters expecting
a Maximum Transmission Unit (MTU) size of 1518 can be changed to a new value of 1522 by
setting the Extended Frame bit (13) in the Repeater Configuration Register.
6.2.1
Port Counter Registers
The Port Counter descriptions in
Table 46
are intended to be illustrative. For the exact definition of
these counters, refer to the Repeater MIB, RFC 1516. All counters count packets, octets or events
that were received at each port. In the descriptions, the length of a packet never includes preamble
or framing bits (start of frame, end of frame, dribble bits, etc.), but an
“
event
”
does include these
items. All Port Counters are Read-Only.
Table 46. Port Counter Registers
Name
Offset
Addr
1,2
Description
rptrMonitorPortReadableFrames
0X0
Counts valid-length (64 to 1518 bytes), valid-CRC,
collision-free packets. Depending on the state of the
UnicastFrameCount bit (6) in the Repeater
Configuration Register, this counter counts either all
packets (UnicastFrameCount = 0) or only Unicast
Packets (UnicastFrameCount = 1). See Note 3.
rptrMonitorPortReadableOctets
(Lower/Upper)
0X1, 0X2
Counts the number of octets in all valid-length (64 to
1518 bytes), valid-CRC, collision-free packets, not
including preamble and framing bits. This register is not
affected by the UnicastFrameCount bit. See Note 3.
rptrMonitorPortFrameCheckSequence
0X3
Counts valid length, collision-free packets that had FCS
errors, but were correctly framed (had an integral
number of octets). If a framing error occurs, this
counter does not increment.
rptrMonitorPortAlignmentErrors
0X4
Counts valid length, collision-free packets that had FCS
errors and were incorrectly framed (had a non-integral
number of octets).
1. All offset addresses are expressed in hex.
2. Replace
“
X
”
in address with specific port to be addressed (offsets 0 through 9 correspond to Ports 1
through 10).
3. The ReadableFrame counter max size threshold can either be 1518 or 1522. All counters expecting a MTU
size of 1518 can be changed to a new value of 1522 by setting the Extended Frame bit (13) in the
Repeater Configuration Register.
4. For 100 Mbps: the
“
Short Events
”
register counts events < 88 bit times; the
“
Port Runts
”
register counts
events > 92. A 4-bit-time differential exists because 100 Mbps operates with nibble boundaries, so data
packets < 4 bits are counted as 4.
5. A0 - A7 corresponds to Port 1 - Port 8.
6. AA - B1 corresponds to Port 1 - Port 8.