RTL8309N
RTL8309N
DATASHEET
Draft
Rev. 1.0
10 January 2012
Track ID:
DISCLAIMER
Realtek provides this document “as is”, without warranty of any kind, neither expressed nor implied,
including, but not limited to, the particular purpose. Realtek may make improvements and/or changes in
this document or in the product described in this document at any time. This document could include
technical inaccuracies or typographical errors.
TRADEMARKS
Realtek is a trademark of Realtek Semiconductor Corporation. Other names mentioned in this document
are trademarks/registered trademarks of their respective owners.
CONFIDENTIALITY
This document is confidential and should not be provided to a third-party without the permission of
Realtek Semiconductor Corporation.
REVISION HISTORY
Revision Release Date Summary
1.0 2012-1-10 First release.
Contents
1. GENERAL DESCRIPTION................................................................................................................................................0
2. FEATURES...........................................................................................................................................................................1
3. BLOCK DIAGRAM.............................................................................................................................................................3
4. PIN ASSIGNMENTS ...........................................................................................................................................................4
4.1. PIN ASSIGNMENTS DIAGRAM .......................................................................................................................................4
4.2. PACKAGE IDENTIFICATION ...........................................................................................................................................5
4.3. PIN ASSIGNMENTS TABLE ............................................................................................................................................5
4.4. PIN DESCRIPTIONS .......................................................................................................................................................1
4.4.1. Media Connection Pins......................................................................................................................................1
4.4.2. Parallel LED Pins..............................................................................................................................................1
4.4.3. Miscellaneous Interface Pins.............................................................................................................................2
4.4.4. Configuration Strapping Pins ............................................................................................................................2
4.4.5. Regulator Pins ...................................................................................................................................................3
4.4.6. Power and GND Pins ........................................................................................................................................4
5. PHYSICAL LAYER FUNCTION DESCRIPTION ..........................................................................................................4
5.1. MDI INTERFACE...........................................................................................................................................................4
5.2. 10BASE-T TRANSMIT FUNCTION..................................................................................................................................5
5.3. 10BASE-T RECEIVE FUNCTION ....................................................................................................................................5
5.4. 100BASE-TX TRANSMIT FUNCTION .............................................................................................................................5
5.5. 100BASE-TX RECEIVE FUNCTION ...............................................................................................................................5
5.6. 100BASE-FX FUNCTION ..............................................................................................................................................5
5.7. AUTO-NEGOTIATION FOR UTP FUNCTION....................................................................................................................6
5.8. CROSSOVER DETECTION AND AUTO CORRECTION FUNCTION ......................................................................................6
5.9. POLARITY CORRECTION FUNCTION..............................................................................................................................6
5.10. IEEE 802.3AZ ENERGY EFFICIENT ETHERNET FUNCTION (EEE) .................................................................................6
5.11. LINK DOWN POWER SAVING FUNCTION .......................................................................................................................7
6. SWITCH CORE FUNCTION DESCRIPTION ................................................................................................................7
6.1. HARDWARE RESET AND SOFTWARE RESET FUNCTION .................................................................................................7
6.1.1. Hardware Reset .................................................................................................................................................7
6.1.2. Software Reset....................................................................................................................................................7
6.2. LAYER 2 LEARNING AND FORWARDING FUNCTION ......................................................................................................7
6.2.1. Forwarding ........................................................................................................................................................8
6.2.2. Learning.............................................................................................................................................................8
6.2.3. Address Table Aging ..........................................................................................................................................8
6.2.4. Layer 2 Multicast...............................................................................................................................................8
6.3. MAC LIMIT FUNCTION ................................................................................................................................................8
6.4. RESERVED MULTICAST ADDRESS HANDLING FUNCTION .............................................................................................9
6.5. IEEE 802.3X FLOW CONTROL FUNCTION ....................................................................................................................9
6.6. HALF DUPLEX BACKPRESSURE FUNCTION .................................................................................................................10
6.6.1. Collision-Based Backpressure (Jam Mode).....................................................................................................10
6.6.2. Carrier-Based Backpressure (Defer Mode) ..................................................................................................... 11
6.7. VLAN FUNCTION ......................................................................................................................................................11
6.7.1. Port-Based VLAN ............................................................................................................................................12
6.7.2. IEEE 802.1Q Tagged-VID Based VLAN ..........................................................................................................12
6.7.3. Insert/Remove/Replace Tag..............................................................................................................................12
6.7.4. Ingress and Egress Rules .................................................................................................................................13
6.8. IEEE 802.1P REMARKING FUNCTION .........................................................................................................................13
6.9. BANDWIDTH CONTROL FUNCTION .............................................................................................................................14
6.9.1. Input Bandwidth Control .................................................................................................................................14
6.9.2. Output Bandwidth Control...............................................................................................................................14
6.10. QUALITY OF SERVICE (QOS) FUNCTION .....................................................................................................................14
6.10.1. Priority Arbitration..........................................................................................................................................14
6.10.2. Port-Based Priority Assignment ......................................................................................................................15
6.10.3. IEEE 802.1Q-Based Priority Assignment........................................................................................................15
8-Port 10/100Mbps Ethernet Switch Controller iii Track ID: Rev. 1.0
RTL8309N
Datasheet
6.10.4. DSCP-Based Priority Assignment ...................................................................................................................15
6.10.5. IP Address-Based Priority ...............................................................................................................................15
6.10.6. Internal Priority to Queue ID Table.................................................................................................................15
6.10.7. Weighted Round-Robin ....................................................................................................................................15
6.11. LAYER2 TRAFFIC SUPPRESSION FUNCTION (STORM CONTROL) .................................................................................16
6.12. INPUT & OUTPUT DROP FUNCTION ............................................................................................................................16
6.13. LOOP DETECTION FUNCTION .....................................................................................................................................16
6.14. REALTEK CABLE TESTER FUNCTION ..........................................................................................................................16
6.15. EEPROM CONFIGURATION FUNCTION ......................................................................................................................16
7. INTERFACE DESCRIPTIONS........................................................................................................................................17
7.1. I2C MASTER FOR EEPROM AUTO-DOWNLOAD ........................................................................................................17
7.2. SMI INTERFACE FOR EXTERNAL CPU ACCESS...........................................................................................................17
8. LDO REGULATOR...........................................................................................................................................................18
9. ELECTRICAL CHARACTERISTICS ............................................................................................................................18
9.1. ABSOLUTE MAXIMUM RATINGS .................................................................................................................................18
9.2. RECOMMENDED OPERATING RANGE ..........................................................................................................................18
10. MECHANICAL DIMENSIONS...................................................................................................................19
10.1. PLASTIC QUAD FLAT NO-LEAD PACKAGE 64 LEADS 9X9MM2 OUTLINE ....................................................................19
11. ORDERING INFORMATION .....................................................................................................................20
List of Tables
TABLE 1 PIN ASSIGNMENTS TABLE .................................................................................................................................................5
TABLE 2. MEDIA CONNECTION PINS ...............................................................................................................................................1
TABLE 3. PARALLEL LED PINS .......................................................................................................................................................1
TABLE 4. MISCELLANEOUS INTERFACE PINS...................................................................................................................................2
TABLE 5. CONFIGURATION STRAPPING PINS ...................................................................................................................................2
TABLE 6. REGULATOR PINS ............................................................................................................................................................3
TABLE 7. POWER AND GND PINS ....................................................................................................................................................4
TABLE 8. RESERVED MULTICAST ADDRESS DEFAULT ACTIONS .....................................................................................................9
TABLE 9. VLAN TABLE ................................................................................................................................................................11
TABLE 10. VLAN ENTRY .............................................................................................................................................................12
TABLE 11. SMI (MDC, MDIO) MANAGEMENT PACKET FORMAT ................................................................................................17
TABLE 12. ABSOLUTE MAXIMUM RATINGS ..................................................................................................................................18
TABLE 13. RECOMMENDED OPERATING RANGE ...........................................................................................................................18
TABLE 14. ORDERING INFORMATION ............................................................................................................................................20
List of Figures
FIGURE 1. BLOCK DIAGRAM ...........................................................................................................................................................3
FIGURE 2. PIN ASSIGNMENTS ..........................................................................................................................................................4
FIGURE 3. CONCEPTUAL EXAMPLE OF POLARITY CORRECTION ......................................................................................................6
FIGURE 4. TX PAUSE FRAME FORMAT...........................................................................................................................................10
FIGURE 5. FLOW CONTROL STATE MACHINE ................................................................................................................................10
FIGURE 6. COLLISION-BASED BACKPRESSURE SIGNAL TIMING ....................................................................................................11
FIGURE 7. 1KB~16KB EEPROM READ/WRITE TIMING ................................................................................................................17
1. General Description
The RTL8309N is an 8-port Fast Ethernet switch controller that integrates eight MACs, and eight
physical layer transceivers for 10Base-T and 100Base-TX operation into a single chip.
The RTL8309N contains a 2K-entry address lookup table. Two 4-way associative hash algorithms avoid
hash collisions and maintain forwarding performance.
Maximum packet length can be 2K bytes. Three types of independent storm filters are provided to filter
packet storms, and an intelligent switch engine prevents Head-of-Line blocking problems.
The RTL8309N supports 16 VLAN groups. These can be configured as port-based VLANs and/or
802.1Q tag-based VLANs. The RTL8309N also supports four Independent VLAN Learnings (IVLs).
The RTL8309N supports several advanced QoS functions with four-level priority queues to improve
multimedia or real-time networking applications, including:
• Multi-priority assignment
• Differential queue weight with WRR and SP packet scheduling
• Port-based and queue-based rate limitation
Energy-Efficient Ethernet (EEE) supports Low Power Idle Mode. When Low Power Idle Mode is enabled,
systems on both sides of the link can disable portions of the functionality and save power during periods
of low link utilization.
The RTL8309N provides per-port one flexible LED functions for diagnostics, with five combination
modes.
A loop-detection function provides notification of network loops, the loop status can be notified by
buzzer, LED or both.
To simplify the peripheral power circuit, the RTL8309N integrated one LDO regulator to generate 1.0V
from a 3.3V input power which needs only one external Diode.
2. Features
Basic Switching Functions
Supports advanced storm filtering
8-port switch controller with transceiver for
10Base-T and 100Base-TX with: Optional EEPROM interface for
configuration
8-port 10/100M UTP
VLAN Functions
Non-blocking wire-speed reception and Supports up to 16 VLAN groups
transmission and non-head-of-line-blocking
forwarding Flexible 802.1Q port/tag-based VLAN
Complies with IEEE 802.3/802.3u Supports four IVLs
auto-negotiation
Leaky VLAN for
Built-in high efficiency SRAM for packet unicast/multicast/broadcast/ARP packets
buffer, with 2K-entry lookup table and two
4-way associative hash algorithms Power Saving Functions
Queue based bandwidth control LEDs blink upon reset for LED
diagnostics
1Q-based, Port-based, DSCP-based, IP
Other Features
address-based, and other types of priority
assignments Optional MDI/MDIX auto crossover for
plug-and-play
Supports IEEE 802.1p Traffic Re-marking
Security and Management Physical layer port Polarity Detection and
Correction function
Supports reserved control frame filtering
3. Block Diagram
10 Base - T or
RX + -[ 0] 100 Base -TX or Switch
TX + - [0 ] 100 Base - FX
MAC 0 Engine 0 Lookup
PHYceiver Table
10 Base - T or
RX + - [1 ] 100 Base -TX or Switch
MAC 1
TX + -[ 1] 100 Base - FX Engine 1
PHYceiver
Packet
10 Base - T or
Buffer
RX + - [2 ] 100 Base -TX or Switch
MAC 2
TX + -[ 2] 100 Base - FX Engine 2
PHYceiver
10 Base - T or
100 Base -TX or Switch X1
RX + - [5 ]
100 Base - FX
MAC 5
Engine 5
Global
TX + -[ 5] X2
PHYceiver Function
10 Base - T or
RX + -[ 6] 100 Base -TX or Switch
MAC 6
TX + -[ 6 ] Engine 6
100 Base - FX
PHYceiver
10 Base - T or
LED LED _ BLNK _ TIME
100 Base -TX or
RX +- [ 7]
TX + - [7 ] 100 Base - FX
MAC 7
Switch
Engine 7
Control
PHYceiver LED _ ACT
Waveform
IBREF Shaping
LDO 3.3V
Regulator 1.0V
4. Pin Assignments
4.1. Pin Assignments Diagram
P4LED/UNKOWN_MULTI
P5LED/DIS_RST_BLNK
P2LED/LED_MODE[2]
P1LED/LED_MODE[1]
P3LED/RMAMODE
P0LED/DIS_EEE
LDIND/DIS_LD
SDA/MDIO
SCL/MDC
RESETB
V10OUT
DVDDH
DVDDL
DVDDL
P7LED
P6LED
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
V33IN 49 32 AVDDL
AVDDHPLL 50 31 RXIP7
XO 51 30 RXIN7
XI 52 29 TXON7
AVDDLPLL 53 28 TXOP7
IBREF 54 27 AVDDH
AVDDL 55 RTL8309N 26 TXOP6
25 TXON6
RXIP0
RXIN0
56
57
LLLLLLL 24 RXIN6
TXON0 58 TXXXX TAIWAN 23
22
RXIP6
AVDDL
TXOP0 59
AVDDH 60 21 RXIP5
TXOP1 61 20 RXIN5
TXON1 62 19 TXON5
RXIN1 63 18 TXOP5
RXIP1 64 17 AVDDH
10
11
12
13
14
15
16
1
2
3
4
5
6
7
8
9
DVDDL
AVDDL
AVDDL
RXIP2
RXIP3
RXIP4
RXIN2
TXON2
TXOP2
TXOP3
AVDDH
TXON3
RXIN3
RXIN4
TXON4
TXOP4
Drive
Pin Name Pin No. Type Description
(mA)
RXIP7/RXIN7 31,30 AI/O - Differential Receive Data Input:
RXIP6/RXIN6 23,24 Port0-7 support 10Base-T, 100Base-TX
RXIP5/RXIN5 21,20 and 100Base-FX
RXIP4/RXIN4 13,14
RXIP3/RXIN3 10,9
RXIP2/RXIN2 2,3
RXIP1/RXIN1 64,63
RXIP0/RXIN0 56,57
TXOP7/TXON7 28,29 AI/O - Differential Transmit Data Output:
TXOP6/TXON6 26,25 Port0-7 support 10Base-T, 100Base-TX
TXOP5/TXON5 18,19 and 100Base-FX
TXOP4/TXON4 16,15
TXOP3/TXON3 7,8
TXOP2/TXON2 5,4
TXOP1/TXON1 61,62
TXOP0/TXON0 59,58
Drive
Pin Name Pin No. Type Description
(mA)
P0LED 38 I/OPD 10 LED for Port0 status indication
P1LED 39 I/OPD 10 LED for Port1 status indication
P2 LED 40 I/OPD 10 LED for Port2 status indication
P3 LED 42 I/OPD 10 LED for Port3 status indication
P4 LED 43 I/OPD 10 LED for Port4 status indication
P5 LED 44 I/OPD 10 LED for Port5 status indication
Drive
Pin Name Pin No. Type Description
(mA)
P6 LED 45 I/OPD 10 LED for Port6 status indication
P7 LED 46 I/OPD 10 LED for Port7 status indication
Drive
Pin Name Pin No. Type Description
(mA)
Loop indication used by LED and buzzer, when loop
LDIND 37 I/OPU 10
topology is happened.
SCL/MDC 34 I/OPU 4 I2C Interface Clock for EEPROM auto load when
power on, and after power on, this pin is MDC/MDIO
Interface Clock for access registers
Drive
Pin Name Pin No. Type Description
(mA)
Drive
Pin Name Pin No. Type Description
(mA)
V10OUT 48 AO - Switch Regulator 1.0V output.
V33IN 49 AP - Switch Regulator 3.3V input
+ +
RX _ TX
Link Partner
RTL8309N
_
+ +
TX _ _ RX
+
6.2.1. Forwarding
When the VLAN egress filtering option is enabled, a received unicast frame will be forwarded to its
destination port only if the destination port is in the same VLAN as the source port. If the destination
port belongs to a different VLAN, the frame will be discarded.
By default the received broadcast/multicast frame will flood to VLAN member ports only, except for
the source port.
IP Multicast data packets involve multicast address table lookup and forwarding operations. If the table
lookup returns a hit, the data packet is forwarded to member ports according to forwarding table setting.
If the IP multicast address is not stored in the address table (i.e., lookup miss), according to a 1-bit
action configuration the packet is dropped or flooded.
6.2.2. Learning
The RTL8309N features a Layer2 table (2K entries). It uses a 4-way hash structure to store L2 entries.
Each entry can learn in the format of L2 Unicast, and the L2 Unicast hash key is {MAC, FID}.
The RTL8309N is implemented three type flow control mechanism: output flow control, input flow
control and input bandwidth control base flow control.
When RTL8309N flow control is enabled, the initial state is ‘Non_Congest’. The state is monitored
continuously. If a pause-on trigger condition occurs, it enters the ‘Congest’ state. When in the ‘congest’
state, it is also continuously monitored. When a pause-off trigger condition occurs it re-enters the
‘Non_Congest’ state. Figure 5 shows the flow control state machine.
• When the link partner receives the Jam signal, it will feedback a 4-byte signal (pattern is CRC^0x01),
then it will drive RXDV to low.
• The link partner waits for a random back-off time then re-sends the packet. The timing is shown in
Figure 6.
VLAN Entry 1 VLAN ID B [11:0] VLAN ID B membership [8:0] VLAN ID B UNTAG_MSK [8:0] FID[1:0]
…… …… …… …… ……
VLAN Entry 15 VLAN ID P [11:0] VLAN ID P membership [8:0] VLAN ID P UNTAG_MSK [8:0] FID[1:0]
The RTL8309N also can optionally discard a frame associated with a VLAN of which the ingress port is
not in the member set.
For the egress filter, the RTL8309N drops the frame if this frame belongs to a VLAN but its egress port is
not one of the VLAN’s member ports. However, there are 5 leaky options to provide exceptions for
special applications.
• ‘Unicast leaky VLAN’ enables inter-VLAN unicast packet forwarding. That is, if the layer 2 lookup
table search has a hit, then the unicast packet will be forwarded to the egress port, ignoring the egress
rule.
• ‘Broadcast leaky VLAN’ enables inter-VLAN broadcast packet forwarding. Packets may be flooded
to all other ports, ignoring the VLAN member set domain limitation.
• ‘ARP leaky VLAN’ enables broadcasting of ARP packets to all other ports, ignoring the egress rule,
when ‘Broadcast leaky VLAN’ is disabled.
• ‘Multicast leaky VLAN’ enables inter-VLAN multicast packet forwarding. Packets may be flooded to
all the multicast address group member sets, ignoring the VLAN member set domain limitation.
• ‘Inter-VLAN mirror function’ enables the inter-VLAN mirror function, ignoring the VLAN member
set domain limitation. The default value is ‘Enable the inter-VLAN mirror’.
• IEEE 802.1Q-based
• DSCP-based
• IP priority-based
7. Interface Descriptions
After a reset, the I2C module starts to access the external EEPROM as a master. The EEPROM
auto-loading time varies with the size of the EEPROM. After the EEPROM auto-download, the I2C
module will change to MDC/MDIO slave mode for external CPU access.
8. LDO Regulator
RTL8309N embedded a LDO regulator from 3.3V to 1.0V that requires a well-designed PCB layout in
order to achieve good power efficiency and lower the output voltage ripple and input overshoot. The LDO
regulator 1.0V output pin must be connected only to DVDDL/AVDDL/AVDDLPLL (do not provide this
power source to other devices).
Note: Refer to the separate RTL8309N layout guide for details.
9. Electrical Characteristics
Notes:
1. CONTROLLING DIMENSION:MILLIMETER(mm).
2. REFERENCE DOCUMENTL:JEDEC MO-220.