There are two kinds of hubs : 12 ports
need (1+ 12 + 1 + 1 + 1 + 1 +1 +1 +1) 20 bytes
and 24 ports
need (1+ 24 + 1 + 1 + 1 + 1 +1 +1 +1) 32 bytes
The maximun size :
256 bytes (total for 8 hubs)=8 hub * (1+ 24 + 1 + 1 + 1 +1 +1 +1 +1) bytes
|
byte256 byte255......................byte2 byte1
|
bit7 bit6 ... bit1 bit0
Use the first byte of each hub to indicate whether 20 or 32 bytes is used.
BYTE 1: total number of ports on a hub
00001100 : 12 ports
| |
bit7... bit0
00011000 : 24 ports
| |
bit7... bit0
For 12-port hub
BYTE 2 - 13 : port status for port 1 - 12
*BYTE 2 : port status for port 1
bit 0-4 : LED status
bit 0 : link status
0 - no link; 1 - link
bit 1 : partition status
0 - no part.; 1 - part.
bit 2 : port operation status
0 - disabled; 1 - enabled
bit 3-4 : port type status
00 - not present
01 - tenMb
10 - onehundredMb
11 - reserved
bit 5-7 : reserved
BYTE 14-25 :reserved
BYTE 26 : Expansion Port (EP) status1
bit 0-2: EP Type
000 - not present
100 - 100BASE-TX(ST) FEM
010 - 100BASE-TX(SC) FEM
1001 to 1111 - reserved
bit 3-4 : FEM forwarding mode status
Applicable only to FEM module
00 - adaptive cut through
01 - reserved
10 - reserved
11 - store and forward
bit 5: FEM back pressure status
0 - disabled; 1 - enabled
bit 6-7 : reserved
BYTE 27 : Expansion Port (EP) status2
bit 0-1 : LED status
bit 0 : FEM link status
0 - no link; 1 - link
bit 1 : FEM half/full duplex status
0 - full duplex; 1 - half duplex
bit 2 : EP collision led status
0 - off; 1 - on
bit 3-4 :
bit 3 : tx LED status
0 - off; 1 - tx on
bit 4 : rx LED status
0 - off; 1 - rx on
bit 5-7 : reserved
BYTE 28 : tenMb segment traffic/collision
bit 0-1 : tenMb traffic LED status
00 - no traffic
01 - low traffic
10 - middle traffic
11 - high traffic
bit 2-5 : tenMb collision LED status
0000 - none
0001 - 1 %
0010 - 3 %
0011 - 5 %
0100 - 10 %
0101 - >= 15 %
bit 6-7 : reserved
BYTE 29 : onehundredMb segment traffic/collision /Power/Switch LED status
bit 0-1 : onehundredMb traffic LED status
00 - no traffic
01 - low traffic
10 - middle traffic
11 - high traffic
bit 2-5 : onehundredMb collision LED status
0000 - none
0001 - 1 %
0010 - 3 %
0011 - 5 %
0100 - 10 %
0101 - >= 15 %
bit 6 : Power LED
0 - OFF; 1 - ON
bit 7 : Switch LED
0 - OFF; 1 - ON
BYTE 30 :SNMP agent & switch status
bit 0: internal switch bit
0 - not exist; 1 - exist
bit 1: internal switch status
0 - inactive; 1 - active
bit 2: expension switch bit
0 - bad; 1 - good
bit 3: expension switch status
0 - inactive; 1 - active
bit 4: agent bit
0 - not exist; 1 - exist
bit 5 : master status
0 - Slave; 1 - Master
bit 6 - 7 : reserved
BYTE 31 : Rmon status
bit 0 : rmon bit
0 - not exist; 1 - exist
bit 1 - 2 :rmon segment
00 - all stack
01 - segment tenMb
10 - segment onehundredMb
11 - reserved
bit 3 - 5 : RMON group Status
000 - not-present
001 - disabled
010 - Rmon-4Group
011 - Rmon-7Group
100 - Rmon-all
101 to 111 - reserved
bit 6 -7 : reserved
BYTE 32 : Hub Position(Hub ID)/Bus Termination
bit 0 - 3 : hub position
0000 - invalid
0001 - 1
0010 - 2
0011 - 3
0100 - 4
0101 - 5
0110 - 6
0111 - 7
1000 - 8
1001 to 1111 - reserved
bit 4 : termination status
0 - not end hub
1 - end hub in the stack
bit 5 - 7 : reserved
For 24-port hub
BYTE 2 - 25 : port status for port 1 - 24
*BYTE 2 : port status for port 1
bit 0-4 : LED status
bit 0 : link status
0 - no link; 1 - link
bit 1 : partition status
0 - no part.; 1 - part.
bit 2 : port operation status
0 - disabled; 1 - enabled
bit 3-4 : port type status
00 - not present
01 - tenMb
10 - onehundredMb
11 - reserved
bit 5-7 : reserved
BYTE 26 : Expansion Port (EP) status1
bit 0-2: EP Type
000 - not present
100 - 100BASE-TX(ST) FEM
010 - 100BASE-TX(SC) FEM
1001 to 1111 - reserved
bit 3-4 : FEM forwarding mode status
Applicable only to FEM module
00 - adaptive cut through
01 - reserved
10 - reserved
11 - store and forward
bit 5: FEM back pressure status
0 - disabled; 1 - enabled
bit 6-7 : reserved
BYTE 27 : Expansion Port (EP) status2
bit 0-1 : LED status
bit 0 : FEM link status
0 - no link; 1 - link
bit 1 : FEM half/full duplex status
0 - full duplex; 1 - half duplex
bit 2 : EP collision led status
0 - off; 1 - on
bit 3-4 :
bit 3 : tx LED status
0 - off; 1 - tx on
bit 4 : rx LED status
0 - off; 1 - rx on
bit 5-7 : reserved
BYTE 28 : tenMb segment traffic/collision
bit 0-1 : tenMb traffic LED status
00 - no traffic
01 - low traffic
10 - middle traffic
11 - high traffic
bit 2-5 : tenMb collision LED status
0000 - none
0001 - 1 %
0010 - 3 %
0011 - 5 %
0100 - 10 %
0101 - >= 15 %
bit 6-7 : reserved
BYTE 29 : onehundredMb segment traffic/collision /Power/Switch LED status
bit 0-1 : onehundredMb traffic LED status
00 - no traffic
01 - low traffic
10 - middle traffic
11 - high traffic
bit 2-5 : onehundredMb collision LED status
0000 - none
0001 - 1 %
0010 - 3 %
0011 - 5 %
0100 - 10 %
0101 - >= 15 %
bit 6 : Power LED
0 - OFF; 1 - ON
bit 7 : Switch LED
0 - OFF; 1 - ON
BYTE 30 :SNMP agent & switch status
bit 0: internal switch bit
0 - not exist; 1 - exist
bit 1: internal switch status
0 - inactive; 1 - active
bit 2: expension switch bit
0 - bad; 1 - good
bit 3: expension switch status
0 - inactive; 1 - active
bit 4: agent bit
0 - not exist; 1 - exist
bit 5 : master status
0 - Slave; 1 - Master
bit 6 - 7 : reserved
BYTE 31 : Rmon status
bit 0 : rmon bit
0 - not exist; 1 - exist
bit 1 - 2 :rmon segment
00 - all stack
01 - segment tenMb
10 - segment onehundredMb
11 - reserved
bit 3 - 5 : RMON group Status
000 - not-present
001 - disabled
010 - Rmon-4Group
011 - Rmon-7Group
100 - Rmon-all
101 to 111 - reserved
bit 6 -7 : reserved
BYTE 32 : Hub Position(Hub ID)/Bus Termination
bit 0 - 3 : hub position
0000 - invalid
0001 - 1
0010 - 2
0011 - 3
0100 - 4
0101 - 5
0110 - 6
0111 - 7
1000 - 8
1001 to 1111 - reserved
bit 4 : termination status
0 - not end hub
1 - end hub in the stack
bit 5 - 7 : reserved