MLAG link failure switching method and apparatus
AssigneeHuawei Technologies Co., Ltd.
InventorShuming Liu
Life of this patent
Estimating the term…
Abstract
This application discloses an MLAG link failure switching apparatus and method. The apparatus includes a chip. The chip is configured to: generate a forwarding database, and forward a packet based on the forwarding database, where the forwarding database includes a first forwarding database, a second forwarding database, and a third forwarding database. The apparatus switches a faulty MLAG link by modifying a value of an active-standby switching flag corresponding to the faulty link in the first forwarding database, thereby reducing a link switching time and improving link switching efficiency.
Claims20
A network device, comprising:
- a chip configured to:
- generate a forwarding database;
- and
- forward a received packet based on the forwarding database;
- wherein the forwarding database comprises a first forwarding database, a second forwarding database, and a third forwarding database;
- wherein the first forwarding database stores a mapping from at least one multi-chassis link aggregation group (MLAG) member interface to at least one active-standby switching flag;
- wherein the second forwarding database stores a mapping from at least one physical port to the at least one MLAG member interface;
- and
- wherein the third forwarding database stores a mapping from a media access control (MAC) address to a first MLAG member interface of the at least one MLAG member interface.
A multi-chassis link aggregation group (MLAG) link switching method, comprising:
- updating, by a network device, a value of an active-standby switching flag corresponding to a first MLAG member interface in a first forwarding database to a backup flag based on an MLAG link of the network device is faulty, wherein the backup flag instructs the network device to send a packet pointing to the first MLAG member interface through a peer-link, wherein the first MLAG member interface corresponds to a first physical port of the MLAG link according to a second forwarding database, wherein the network device comprises the first forwarding database and the second forwarding database, wherein the first forwarding database stores a mapping from at least one MLAG member interface to at least one active-standby switching flag, and wherein the second forwarding database stores a mapping from at least one physical port to the at least one MLAG member interface.
A network device, comprising:
- a chip configured to:
- generate a forwarding database;
- and
- forward a received packet based on the forwarding database;
- wherein the forwarding database comprises a first forwarding database, a second forwarding database, and a third forwarding database;
- wherein the first forwarding database stores a mapping from at least one multi-chassis link aggregation group (MLAG) member interface to at least one active-standby switching flag;
- wherein the second forwarding database stores a mapping from at least one physical port to the at least one MLAG member interface;
- wherein the third forwarding database stores a mapping from a media access control (MAC) address to a first MLAG member interface of the at least one MLAG member interface;
- and
- wherein the chip is further configured to:
- based on an MLAG link being faulty, update a value of an active-standby switching flag corresponding to a third MLAG member interface in the first forwarding database to a backup flag;
- and
- based on the MLAG link being recovered, update the value of the active-standby switching flag corresponding to the third MLAG member interface to a primary flag based on the first forwarding database and the second forwarding database.
Dependencies are inferred from the claim text.