RTL8309SB
Datasheet
Single-chip 9-port 10/100Mbps Switch Controller
79
Track ID: JATR-1076-21 Rev. 1.4
8.3.5.
Port VID (PVID)
In a router application, the router may want to know which input port this packet came from. The RTL8309SB supports Port
VID (PVID) for each port to insert a PVID in the VLAN tag on an egress packet. The VID information carried in the VLAN
tag will be changed to a PVID. The RTL8309SB also provides an option to admit VLAN-tagged packets with a specific PVID
only. When this function is enabled, packets with an incorrect PVID and non-tagged packets will be dropped.
The RTL8309SB uses an internal register, ‘Port n VLAN index [3:0]’ to index to a VLAN membership. The VLAN ID
associated with this indexed VLAN membership is the PVID for this port. Users may select VLAN insert/remove type 10 or 00
to insert a PVID on egress packets.
On 802.1Q tag-based VLANs do not use a port-based VLAN in PVID applications, as the VID information carried in the
VLAN tag will be replaced with a PVID.
8.3.6.
Port Trunking
The RTL8309SB can combine two UTP ports into one trunking port (with a balancing mechanism). The default configuration
is to combine port 0 and 1 as one trunk, even if they are operating with different duplex or speed settings. If port 0 and/or port
1 are assigned as a high priority port, this trunk will also be considered as a high priority trunk when the trunking function is
enabled. The RTL8309SB also provides the option to set port 6 and port 7 as a trunk by configuring the ‘trunking port
assignment’ bit in the internal register.
8.3.7.
ISP MAC Address Translation
Some Internet Service Providers only provide service to a single pre-registered MAC address. To share the Internet Service
with more than one station, the RTL8309SB translates the MAC address of multiple NICs to the ISP registered MAC address.
Figure 7, page 80, illustrates an outbound process. When station G tries to send a packet to the WAN, it broadcasts or unicasts
this packet to the CPU port with a NIC MAC address. After the CPU receives this packet, it translates this MAC address to the
ISP registered MAC address and stores this information in its mapping table. It then forwards this packet to the WAN port
through the CPU port. The RTL8309SB will not learn this packet into it’s forwarding table. This is a special learning
mechanism, which states that any frame coming from the CPU port with a source MAC address equal to internal register ‘ISP
MAC [47:0]’ will not be learned. This function must be correctly configured in the VLAN configuration, otherwise the
RTL8309SB will drop such packets.