US 11,943,141 B2
Method and network device for managing MAC table, storage medium, and program product
Yu Jiang, Beijing (CN); and Yaokun Zhang, Beijing (CN)
Assigned to Huawei Technologies Co., Ltd., Shenzhen (CN)
Filed by Huawei Technologies Co., Ltd., Shenzhen (CN)
Filed on Oct. 20, 2021, as Appl. No. 17/451,514.
Application 17/451,514 is a continuation of application No. PCT/CN2019/119930, filed on Nov. 21, 2019.
Claims priority of application No. 201910323657.4 (CN), filed on Apr. 22, 2019.
Prior Publication US 2022/0038373 A1, Feb. 3, 2022
Int. Cl. H04L 45/745 (2022.01); H04L 101/622 (2022.01)
CPC H04L 45/745 (2013.01) [H04L 2101/622 (2022.05)] 20 Claims
OG exemplary drawing
 
1. A method, comprising:
storing, by a forwarding plane of a network device, in a first media access control (MAC) table, a first MAC entry sent by a control plane, wherein a state of the first MAC entry is set in the first MAC table to a valid state; and
after a first preset duration elapses and in response to a first preset condition being met, changing, by the forwarding plane, the state of the first MAC entry in the first MAC table from the valid state to an invalid state by setting a state flag in the first MAC entry, and setting an invalid duration for the first MAC entry,
wherein:
the first preset condition is that the forwarding plane does not receive any traffic corresponding to a first MAC address within the first preset duration after storing the first MAC entry in the first MAC table, and the first MAC address is comprised in the first MAC entry, and
the first MAC entry, comprising the state flag indicating the invalid state, remains in the first MAC table after being changed to the invalid state.