A characteristic of the Ethernet is that a port sends unicast packets with unknown destination MAC addresses, broadcast packets, and multicast packets to all other ports on the Ethernet. As an Ethernet-based technology, VPLS emulates an Ethernet bridge for user networks. To forward packets on a VPLS network, PEs must establish MAC address tables and forward packets based on MAC addresses or MAC addresses and VLAN tags.
MAC address learning
Table 1 describes MAC address learning modes.
MAC Address Learning Mode |
Description |
Characteristic |
---|---|---|
Qualified |
A PE learns the MAC addresses and VLAN tags of received Ethernet frames. In this mode, each user VLAN is an independent broadcast domain and has an independent MAC address space. |
The broadcast domain is confined to each user VLAN. Qualified learning can result in large forwarding information base (FIB) table sizes, because the logical MAC address is now a VLAN tag + MAC address. |
Unqualified |
A PE learns only the MAC addresses of Ethernet frames. In this mode, all user VLANs share the same broadcast domain and MAC address space. The MAC address of each user VLAN must be unique. |
If an AC interface is associated with multiple user VLANs, this AC interface must be a physical interface bound to a unique VSI. |
MAC address aging
An aging mechanism removes MAC entries that a PE no longer needs. If a MAC entry is not updated within a specified period of time, this entry will be aged.
PEs establish MAC address tables based on dynamic MAC address learning and associates destination MAC addresses with PWs. Table 2 describes the MAC address learning process.
MAC Address Learning Process |
Description |
---|---|
Learning MAC addresses from user-side packets |
After receiving packets from a CE, a PE maps their source MAC addresses to AC interfaces. Figure 1 shows a mapping example with Port1. |
Learning MAC addresses from PW-side packets |
A PW consists of a pair of MPLS VCs transmitting in opposite directions. A PW will go Up only after the two MPLS VCs are established. After a PE receives a packet with an unknown source MAC address from a PW, the PE maps the source MAC address to the PW receiving the packet. |
Unqualified MAC address learning is similar to qualified MAC address learning. The major difference is that unqualified MAC address learning is based on the key set of VSI IDs and MAC addresses whereas qualified MAC address learning is based on the key set of VSI IDs, MAC addresses, and VLAN IDs.
Figure 1 shows the process of MAC address learning and flooding on a PE. PC1 and PC2 both belong to VLAN10. When PC1 pings IP address 1.1.1.2, PC1 does not know the MAC address corresponding to this IP address and advertises an ARP Request packet. The following uses the unqualified mode as an example to describe the specific MAC address learning process.
Traffic Restriction
Processing of Unknown Packets
After receiving a packet, if a VSI cannot find a MAC entry that matches the destination address of the packet in its MAC address table, the packet is considered an unknown packet.
Unknown packets can be unknown unicast or multicast packets. Unknown packets are dropped, locally processed, or broadcast based on network security requirements. Similar to Ethernet, a VPLS network broadcasts unknown packets by default.
In broadcast mode, a VPLS network processes unknown packets in the following ways:
PEs can be configured to learn the MAC addresses of unknown unicast packets when dropping these packets. This function prevents the access of unauthorized users and enables PEs to identify the sources of unknown unicast packets.
Limit on the Number of Learned MAC Addresses
After the number of MAC entries or MAC address learning time reaches the set threshold, a device forwards or drops newly received packets and decides whether to report an alarm to the network management system (NMS).
This function applies to networks with relatively fixed users but insufficient security, such as residential access networks and enterprise intranets without security management.