
RTL8309SB
Datasheet
Single-chip 9-port 10/100Mbps Switch Controller
78
Track ID: JATR-1076-21 Rev. 1.4
Table 109. 802.1Q VLAN Tag Frame Format
6 bytes
2 bytes
SA
81-00
6 bytes
DA
3 bits
User-Priority
(0~3:Low-pri; 4~7: High-pri)
----
Table 110. IPv4 Frame Format
4 bytes
2 bytes
802.1Q Tag
(optional)
6 bytes
DA
6 bytes
SA
4 bits
4 bits
IHL
6 bits
08-00
Version IPv4=
0100
TOS[0:5]= DS-
field
----
IP-Based Priority
When IP-based based priority is applied, any incoming packets with IP priority equal to IP address [A] AND IP mask [A] or IP
address [B] AND IP mask [B] will be treated as high priority packets. IP priority [A] and IP priority [B] may be enabled or
disabled independently.
Flow Control Auto Turn Off
The RTL8309SB can be configured to turn off 802.3x flow control and backpressure flow control for 1~2 seconds whenever
the port receives VLAN-tagged or TOS/DS high priority frames. Flow control is re-enabled when no priority frame is received
for a 1~2 second duration. The purpose of this function is to avoid head-of-line blocking on priority classification.
8.3.4.
Insert/Remove VLAN Priority Tag
The RTL8309SB supports four types of insertion/removal of VLAN tags in packet, controlled by internal registers on a per-
port basis. They are classified as follows:
Type 11:
Do not change packets (Default).
Type 10:
Insert input port’s PVID for non-tagged packets. Do not change packets if they are already tagged.
Type 01:
Remove VLAN tags from tagged packets. Do not change packets if they are not tagged.
Type 00:
Remove VLAN tags from tagged packets then insert the input port’s PVID. For non-tagged packets, insert the input
port’s PVID.
In Type 10, if Null VID replacement is enabled, this function has higher priority than type 10. If both type 10 is selected and
Null VID replacement is enabled, the RTL8309SB inserts a PVID to non-tagged packets and replaces a null VID with a PVID
for tagged packets, and does nothing in tagged packets with a non-null VID.
If the tag removed frame is less than 64 bytes, it will be padded with an 0x20 pattern before the packet’s CRC field to fit the
64-byte minimum packet length of the IEEE 802.3 spec. The RTL8309SB will recalculate the FCS (Frame Check Sequence) if
the frame has been changed.