Patent ID: 11943141
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Digital communication (Electrical engineering)
Classification: CPC H | IPC H

Claim 5:
6. A network device, comprising:
a non-transitory memory, wherein the non-transitory memory stores computer-readable instructions; and
one or more processors connected to the non-transitory memory, wherein the one or more processors are configured to execute the computer-readable instructions, and executing the computer-readable instructions causes the network device to implement a forwarding plane configured to:
store, 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 to a valid state in the first MAC table; 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.