PACKET FORWARDING METHOD AND DEVICE
Embodiments of the present invention provide a method and an apparatus for forwarding a packet, where the method for forwarding a packet includes: receiving, by a first NVE, a first packet sent by a first TES, where a destination IP address of the first packet is an IP address of a second TES, a des...
Gespeichert in:
Hauptverfasser: | , , , |
---|---|
Format: | Patent |
Sprache: | eng ; fre ; ger |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | Embodiments of the present invention provide a method and an apparatus for forwarding a packet, where the method for forwarding a packet includes: receiving, by a first NVE, a first packet sent by a first TES, where a destination IP address of the first packet is an IP address of a second TES, a destination MAC address of the first packet is a gateway MAC address corresponding to the first NVE, and the first TES and the second TES belong to a same layer 3 VPN; acquiring, by the first NVE, an access VN ID of the first TES according to at least one of information about a port receiving the first packet and the first packet, and acquiring a layer 3 VPN instance identifier of the first TES; performing, by the first NVE, layer 2 termination on the first packet, searching a routing and forwarding table corresponding to the layer 3 VPN instance identifier of the first TES, to obtain an entry corresponding to the IP address of the second TES, and encapsulating the first packet into an NVO3 packet according to the entry; and forwarding, by the first NVE, the NVO3 packet to a second NVE by using layer 3, where the second TES is connected to the second NVE. |
---|