发明申请

FORWARDING PACKET
摘要:
A method for forwarding a packet and a switch are provided. The switch receives a packet via a port; when the packet is a layer-2 packet, determines a VSI based on an ID of a MDC to which the port belongs and an ID of a VLAN of the packet, searches for a layer-2 entry stored in a chip where the port is located and matching with the VSI and a destination MAC address of the packet, and forwards the packet based on the layer-2 entry; when the packet is a layer-3 packet, determines a second VRF based on the ID of the MDC and an ID of a first VRF to which the packet belongs, searches for a layer-3 entry stored in the chip and matching with the second VRF and a destination IP address of the packet, and forwards the packet based on the layer-3 entry.
公开/授权文献
信息查询
0/0