METHOD FOR MANAGING MAC TABLE, NETWORK DEVICE, STORAGE MEDIUM AND PROGRAM PRODUCT
Applicants
Huawei Technologies Co., Ltd.
Inventors
JIANG, Yu, ZHANG, Yaokun
Abstract
This application provides a method and network device for managing a MAC table, a storage medium, and a program product, and the method belongs to the field of communications technologies. The method includes: A control plane of a network device obtains a first MAC entry, and sends the first MAC entry and a first identifier to a forwarding plane of the network device. The forwarding plane stores the first MAC entry in a first MAC table, and a state of the first MAC entry is set to a valid state. After the first MAC entry is stored in the forwarding plane, the forwarding plane changes the state of the first MAC entry to an invalid state after first preset duration elapses and when a first preset condition is met, and sets invalid duration for the first MAC entry. The first preset condition is that the forwarding plane does not receive traffic corresponding to a first MAC address within the first preset duration after storing the first MAC entry. The first MAC address is a MAC address stored in the first MAC entry.
IPC Classifications
Designated States
AL, AT, BE, BG, CH, CY, CZ, DE, DK, EE, ES, FI, FR, GB, GR, HR, HU, IE, IS, IT, LI, LT, LU, LV, MC, MK, MT, NL, NO, PL, PT, RO, RS, SE, SI, SK, SM, TR