摘要 |
Disclosed are a method for performing dynamic tunnel message forwarding and a switch thereof. The switch is located at the edge of an Internet protocol version 6 (IPv6) network and includes a central processing unit (CPU) and an application specific integrated circuit (ASIC) switching chip; the method includes: the convergence routing table item of a dynamic tunnel in an ASIC hardware forwarding table of a layer-3 switch which is located at the edge of the IPv6 network is predefined to be pointing to the CPU; after receiving an IPv6 message, if the switch judges that the message points to the dynamic tunnel according to IPv6 routing lookup, it transmits the message to the CPU upward according to the convergence routing table item; after receiving the message, the CPU stores the correspondence between the obtained layer-2 information and the network prefix of the IPv6 destination address of the message, synchronizes the correspondence to the ASIC hardware forwarding table and forwards the message out of the output port corresponding to the layer-2 information. The present invention can adequately utilize ASIC forwarding resources and improves the efficiency of the routing lookup. |