![](http://datasheet.mmic.net.cn/Micrel-Inc/KS8993ML_datasheet_97840/KS8993ML_35.png)
Micrel, Inc.
KS8993M/ML/MI
April 2005
35
M9999-041205
IGMP Support
For IGMP support in layer 2, the KS8993M provides two components:
“IGMP” Snooping
The KS8993M will trap IGMP packets and forward them only to the processor (port 3). The IGMP packets are
identified as IP packets (either Ethernet IP packets, or IEEE 802.3 SNAP IP packets) with IP version = 0x4 and
protocol version number = 0x2.
“Multicast Address Insertion” in the Static MAC Table
Once the multicast address is programmed in the Static MAC Table, the multicast session will be trimmed to the
subscribed ports, instead of broadcasting to all ports.
To enable IGMP support, set register 5 bit 6 to “1”. Also, “Special Tagging Mode” needs to be enabled, so that the
processor knows which port the IGMP packet was received on. This is achieved by setting both register 11 bit 0
and register 48 bit 2 to “1.”
Port Mirroring Support
KS8993M supports “Port Mirroring” comprehensively as:
1. “receive only” mirror on a port All the packets received on the port will be mirrored on the sniffer port. For
example, port 1 is programmed to be “receive sniff” and port 3 is programmed to be the “sniffer port”. A packet
received on port 1 is destined to port 2 after the internal lookup. The KS8993M will forward the packet to both port
2 and port 3. The KS8993M can optionally forward even “bad” received packets to the “sniffer port”.
2. “transmit only” mirror on a port All the packets transmitted on the port will be mirrored on the sniffer port.
For example, port 1 is programmed to be “transmit sniff” and port 3 is programmed to be the “sniffer port”. A
packet received on port 2 is destined to port 1 after the internal lookup. The KS8993M will forward the packet to
both port 1 and port 3.
3. “receive and transmit” mirror on two ports All the packets received on port A and transmitted on port B will
be mirrored on the sniffer port. To turn on the “AND” feature, set register 5 bit 0 to “1”. For example, port 1 is
programmed to be “receive sniff”, port 2 is programmed to be “transmit sniff” and port 3 is programmed to be the
“sniffer port”. A packet received on port 1 is destined to port 2 after the internal lookup. The KS8993M will forward
the packet to both port 2 and port 3.
Multiple ports can be selected to be “receive sniff” or “transmit sniff”. And any port can be selected to be the
“sniffer port”. All these per port features can be selected through registers 17, 33 and 49 for ports 1, 2 and 3,
respectively.
IEEE 802.1Q VLAN Support
The KS8993M supports 16 active VLANs out of the 4096 possible VLANs specified in the IEEE 802.1Q
specification. KS8993M provides a 16-entries VLAN Table, which converts the 12-bits VLAN ID (VID) to the 4-bits
Filter ID (FID) for address lookup. If a non-tagged or null-VID-tagged packet is received, the ingress port default
VID is used for lookup. In VLAN mode, the lookup process starts with VLAN Table lookup to determine whether
the VID is valid. If the VID is not valid, the packet will be dropped and its address will not be learned. If the VID is
valid, the FID is retrieved for further lookup. The FID + Destination Address (FID+DA) are used to determine the
destination port. The FID + Source Address (FID+SA) are used for address learning.