RTL8309SB
Datasheet
Single-chip 9-port 10/100Mbps Switch Controller
77
Track ID: JATR-1076-21 Rev. 1.4
8.3.3.
QoS Operation
The RTL8309SB can recognize the QoS priority information of incoming packets to give a different egress service priority.
The RTL8309SB identifies the packets as high priority based on several types of QoS priority information:
Port-based priority
802.1p/Q VLAN priority tag
TCP/IP's TOS/DiffServ (DS) priority field
IP Address
There are two priority queues; a high-priority queue and a low-priority queue. The queue service rate is based on the Weighted
Round Robin algorithm. The packet-based service weight ratio of the high-priority queue and low-priority queue can be set to
4:1, 8:1, 16:1 or ‘Always high priority first’ by hardware pins upon reset, or internal register via SMI after reset.
Port-Based Priority
When port-based priority is applied, packets received from the high-priority port are sent to the high-priority queue of the
destination port. High priority ports can be partially set by hardware pins, and wholly configured in internal registers.
802.1p-Based Priority
When 802.1p VLAN tag priority applies, the RTL8309SB recognizes the 802.1Q VLAN tag frames and extracts the 3-bit User
Priority information from the VLAN tag. The RTL8309SB sets the threshold of User Priority as 3. Therefore, VLAN tagged
frames with User Priority value = 4~7 will be treated as high priority frames, other User Priority values (0~3) as low priority
frames (follows 802.1p standard). The threshold value can be modified in internal registers via an SMI interface or configured
in EEPROM.
DiffServ-Based Priority
When TCP/IP’s TOS/DiffServ(DS) based priority is applied, the RTL8309SB recognizes TCP/IP Differential Services Code
Point (DSCP) priority information from the DS-field defined in RFC2474. The DS field byte for the IPv4 is a Type-of-Service
(TOS) octet. The recommended DiffServ Code Point is defined in RFC2597 to classify the traffic into different service classes.
The RTL8309SB extracts the codepoint value of DS-fields from IPv4 packets and identifies the priority of the incoming IP
packet following the definition below:
High priority: where the DS-field = (EF, Expected Forwarding:) 101110
(AF, Assured Forwarding:) 001010; 010010; 011010; 100010
(Network Control:) 110000 and 111000
Differential service code point [A] specified in internal register;
Differential service code point [B] specified in internal register;
Low priority: where the DS-field = other values.
The VLAN tagged frame and 6-bit DS-field in the IPv4 frame format is shown below: