English
Language : 

KSZ8864CNX Datasheet, PDF (28/96 Pages) Microchip Technology – Integrated 4-Port 10/100 Managed Switch with Two MACs MII or RMII Interfaces
KSZ8864CNX/RMNUB
FIGURE 3-6:
802.1P PRIORITY FIELD FORMAT
802.1p-based priority is enabled by bit [5] of the Registers Port Control 0 for Ports 1 and 2, respectively.
The KSZ8864CNX/RMNUB provides the option to insert or remove the priority tagged frame's header at each individual
egress port. This header, consisting of the 2 bytes VLAN Protocol ID (VPID) and the 2-byte Tag Control Information field
(TCI), is also referred to as the IEEE 802.1Q VLAN tag.
Tag Insertion is enabled by bit [2] of the Register Port Control 0 and the Register Port Control 8 to select which source
port (ingress port) PVID can be inserted on the egress port for Ports 1, 2, 3 and 4, respectively. At the egress port,
untagged packets are tagged with the ingress port’s default tag. The default tags are programmed in the Registers Port
Control 3 and Control 4 for ports 1, 2, 3 and 4, respectively. The KSZ8864CNX/RMNUB will not add tags to already
tagged packets.
Tag Removal is enabled by bit [1] of the Registers Port Control 0 for Ports 1, 2, 3 and 4, respectively. At the egress port,
tagged packets will have their 802.1Q VLAN Tags removed. The KSZ8864CNX/RMNUB will not modify untagged pack-
ets.
The CRC is recalculated for both tag insertion and tag removal.
802.1p Priority Field Re-Mapping is a QoS feature that allows the KSZ8864CNX/RMNUB to set the “User Priority Ceil-
ing” at any ingress port by the Register Port Control 2 bit 7. If the ingress packet’s priority field has a higher priority value
than the default tag’s priority field of the ingress port, the packet’s priority field is replaced with the default tag’s priority
field.
3.4.1.3 DiffServ-Based Priority
DiffServ-based priority uses the ToS registers (Registers 144 to 159) in the Advanced Control Registers section. The
ToS priority control registers implement a fully decoded, 128-bit Differentiated Services Code Point (DSCP) register to
determine packet priority from the 6-bit ToS field in the IP header. When the most significant 6 bits of the ToS field are
fully decoded, the resultant of the 64 possibilities of DSCP decoded is compared with the corresponding bits in the
DSCP register to determine priority.
3.4.2 SPANNING TREE SUPPORT
Port 4 is the designated port for spanning tree support.
The other ports (Port 1 – Port 3) can be configured in one of the five spanning tree states via “transmit enable,” “receive
enable,” and “learning disable” register settings in Registers 34, 50 for Ports 1, 2 and 3, respectively. The following
description shows the port setting and software actions taken for each of the five spanning tree states.
Disable state: the port should not forward or receive any packets. Learning is disabled.
Port setting: "transmit enable = 0, receive enable = 0, learning disable = 1."
Software action: the processor should not send any packets to the port. The switch may still send specific packets to
the processor (packets that match some entries in the static table with “overriding bit” set) and the processor should
discard those packets. Note: processor is connected to Port 4 through MAC4 SW4-MII/RMII interface. Address learning
is disabled on the port in this state.
DS00002229A-page 28
 2016 Microchip Technology Inc.