主权项 |
1. A method for interoperating between a switch line card and a programmable line card, comprising:
receiving a packet through an external interface of the switch line card, when a corresponding forward information base (FIB) entry is searched out in a FIB table of a switch chip of the switch line card, searching for, by the switch chip, an adjacency table entry and an egress interface entry, which are respectively a pseudo-adjacency table entry and a pseudo-egress interface entry when a downlink forwarding line card is a programmable line card; encapsulating, by the switch chip, an inter-board forwarding header and an Ethernet Layer 2 header for the packet, based on the adjacency table entry and the egress interface entry searched out, and forwarding the packet encapsulated to the downlink forwarding line card through a backboard, wherein the Ethernet Layer 2 header is a pseudo-Layer 2 header when the downlink forwarding line card is the programmable line card; identifying, by a programmable chip of the programmable line card the packet comes from an uplink switch line card, searching for a corresponding adjacency table entry and a corresponding egress interface entry; re-encapsulating, by the programmable chip, a Layer 2 header of a corresponding interface type for the packet, and transmitting the packet encapsulated through a corresponding external interface of the programmable line card. |