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

S9300, S9300E, and S9300X V200R012C00 Configuration Guide - Ethernet Switching

This document describes the configuration of Ethernet services, including configuring MAC address table, link aggregation, VLANs, VLAN aggregation, MUX VLAN, VLAN termination, Voice VLAN, VLAN mapping, QinQ, GVRP, STP/RSTP/MSTP, VBST, SEP, RRPP, ERPS, LBDT, HVRP, and Layer 2 protocol transparent transmission.
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 frames.

Figure 2-2  MAC address entry learning

In Figure 2-2, HostA sends a data frame to SwitchA. When receiving the data frame, SwitchA obtains the source MAC address (HostA's MAC address) and VLAN ID of the frame.

  • If the MAC address entry is not present 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 is present 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 an Eth-Trunk, the outbound interface in the MAC address entry is the Eth-Trunk.
  • All interfaces of a switch 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 switch 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 switch receives data frames. When the switch is equipped with multiple LPUs, MAC address entries learned by each LPU are synchronized to other LPUs to prevent unnecessary broadcast packets and improve the packet forwarding efficiency.

MAC Address Entry Aging

Dynamic MAC address entries may become invalid if the network topology changes. Therefore, to ensure its MAC address table remains current, a switch uses a mechanism called aging. 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 2-3  MAC address entry aging

As shown in Figure 2-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 0e0-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 remains as 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.

NOTE:
  • By default, the switch does not age the MAC address entries that match destination MAC addresses of packets. Use the mac-address destination hit aging enable command to configure the switch to age MAC address entries regardless of whether the entries match destination MAC addresses of packets.

  • If the interface frequently alternates between Up and Down, MAC address entries may be not aged within twice the aging time. In this case, you are advised to check the link quality or run the port link-flap protection enable command to configure link flapping protection.
Translation
Download
Updated: 2019-01-18

Document ID: EDOC1100038290

Views: 111225

Downloads: 24

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