No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

CLI-based Configuration Guide - Ethernet Switching

AR650, AR1600, and AR6100 V300R003

This document describes how to configure the components for LAN services, including link aggregation groups, VLANs, voice VLANs, MAC address tables, transparent bridging, as well as GVRP, STP/RSTP, and MSTP protocols.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
MAC Address Entry Learning and Aging

MAC Address Entry Learning and Aging

MAC Address Entry Learning

Generally, MAC address entries are learned from source MAC addresses of data frame.

Figure 1-2  MAC address entry learning

As shown in Figure 1-2, HostA sends a data frame to RouterA. When receiving the data frame, RouterA obtains the source MAC address (HostA's MAC address) and VLAN ID of the frame.

  • If the MAC address entry does not exist in the MAC address table, SwitchA adds an entry with the new MAC address, PortA, and VLAN ID to the MAC address table.
  • If the MAC address entry exists in the MAC address table, SwitchA resets the aging timer of the MAC address entry and updates the entry.
NOTE:
  • If PortA is a member interface of Eth-TrunkA, the outbound interface in the MAC address entry is Eth-TrunkA.
  • All interfaces of a router belong to VLAN 1 by default. If the default VLAN is not changed, the VLAN ID of all MAC address entries is VLAN 1.
  • The router does not learn the BPDU MAC address similar to 0180-c200-xxxx.

MAC address entry learning and update are triggered on a device only when the device receives data frames.

MAC Address Entry Aging

A device needs to update its MAC address table continuously to adapt to changing network topologies. Dynamic MAC address entries are not always valid. Each entry has a life cycle (aging time) and will be deleted when the aging time expires. If an entry is updated within the aging time, the aging timer of the entry is reset.

Figure 1-3  MAC address entry aging

As shown in Figure 1-3, the aging time of MAC address entries is set to T. At t1, packets with source MAC address 00e0-fc00-0001 and VLAN ID 1 arrive at an interface, which has joined VLAN 1. If no entry with MAC address 00e0-fc00-0001 and VLAN 1 exists in the MAC address table, the MAC address is learned as a dynamic MAC address entry in the MAC address table, and the hit flag of the entry is set to 1.

The device checks all dynamic MAC address entries at an interval of T.

  1. At t2, if the device finds that the hit flag of the matching dynamic MAC address entry with MAC address 00e0-fc00-0001 and VLAN 1 is 1, the device sets the hit flag to 0 but does not delete the MAC address entry.
  2. If no packet with source MAC address 00e0-fc00-0001 and VLAN 1 enters the device between t2 and t3, the hit flag of the matching MAC address entry is always 0.
  3. At t3, the device finds that the hit flag of the matching MAC address entry is 0. The device considers that the aging time of the MAC address entry has expired and deletes the MAC address entry.

The minimum holdtime of a dynamic MAC address entry ranges from T to 2T on the device.

You can set the aging time of MAC address entries to control the life cycle of dynamic MAC address entries in a MAC address table.

Download
Updated: 2019-04-12

Document ID: EDOC1100041791

Views: 56463

Downloads: 38

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next