Forwarding packet in stacking system
AssigneeHewlett Packard Enterprise Development LP
InventorsDong Wang, Hongyuan Wang
Life of this patent
Estimating the term…
Abstract
A first Virtual Device (VD) of a first member device connects to a first VD of a second member device via a stacking link that is established between the first member device and the second member device. A VD number of the first VD in the first member device is the same as that of the first VD in the second member device. When a unicast packet is received via a service port, the first VD of the first member device searches in a forwarding table of the first VD in the first member device. When the unicast packet is to be forwarded to another member device the search of the forwarding table, the first VD of the first member device forwards the unicast packet via the stacking link.
Claims18
A method for forwarding a packet in a stacking system comprising at least two member devices, wherein each member device comprises at least two Virtual Devices (VDs), a first VD of a first member device connects with a first VD of a second member device via a stacking link that is established between the first member device and the second member device, a VD number of the first VD in the first member device is the same as that of the first VD in the second member device, the method comprising:
- when a unicast packet is received via a service port, searching, by the first VD of the first member device, in a forwarding table of the first VD of the first member device;
- determining, by the first VD of the first member device, if the unicast packet is to be forwarded to another member device based on said searching;
- when the unicast packet is to be forwarded to another member device, forwarding, by the first VD of the first member device, the unicast packet via the stacking link;
- when the unicast packet is forwarded via the stacking link, adding, by the first VD of the first member device, a descriptor to the unicast packet, wherein the descriptor comprises the VD number of the first VD of the first member device;
- when the unicast packet is received via a stacking port of the stacking link and the unicast packet is delivered to the first VD of the second member device based on the VD number carried in the descriptor, searching, by the first VD of the second member device, in a forwarding table of the first VD of the second device for a corresponding destination port number based on a destination MAC address and a destination VLAN ID carried in the unicast packet, and determining if the destination port number is one of member port numbers of the second member device;
- and
- when the destination port number is one of the member port numbers of the second member device, removing, by the first VD of the second member device, the descriptor from the unicast packet and forwarding the unicast packet via a port corresponding to the destination port number;
- when the destination port number is not one of the member port numbers of the second member device, determining, by the first VD of the second member device, a stacking link destined for a destination member device based on the destination port number and forwarding the unicast packet via the stacking link destined for the destination member device.
A device to implement a Virtual Device (VD) of a member device in a stacking system, wherein the stacking system comprises at least two member devices, each member device comprises at least two VDs, the device comprises at least a non-transitory computer readable memory and a processor in communication with the memory, wherein the memory stores instructions that are executable by the processor comprising:
- a configuring instruction to connect a first VD of a first member device to a first VD of a second member device via a stacking link that is established between the first member device and the second member device, a VD number of the first VD in the first member device being the same as that of the first VD in the second member device;
- a receiving instruction to receive a unicast packet via a service port;
- a searching instruction to search in a forwarding table for a corresponding destination port number based on a destination Media Access Control (MAC) address and a destination Virtual Local Area Network (VLAN) Identifier (ID) carried in the unicast packet when the unicast packet is received based on the receiving instruction, the searching instruction is to determine that the unicast packet is to be forwarded to another member device via the stacking link when the destination port number is not one of the member port numbers of the member device;
- a determining instruction is to determine if the destination port number is one of member port numbers of a member device;
- and
- a forwarding instruction to forward the unicast packet via the stacking link configured based on the configuring instruction when the unicast packet is to be forwarded to another member device based on a search result of the searching instruction, the forwarding instruction further indicates to add a descriptor to the unicast packet, wherein the descriptor comprises the destination port number and a VD number of a VD forwarding the unicast packet when the unicast packet is to be forwarded to another member device via the stacking link.
A non-transitory machine readable storage medium comprising instructions executable by a physical processor to implement a Virtual Device (VD) of a member device in a stacking system, wherein the stacking system comprises at least two member devices, each member device comprises at least two VDs, the machine-readable storage medium comprising:
- a configuring instruction to connect a first VD of a first member device to a first VD of a second member device via a stacking link that is established between the first member device and the second member device, a VD number of the first VD in the first member device being the same as that of the first VD in the second member device;
- a receiving instruction to receive a unicast packet via a service port;
- a searching instruction to search in a forwarding table for a corresponding destination port number based on a destination Media Access Control (MAC) address and a destination Virtual Local Area Network (VLAN) Identifier (ID) carried in the unicast packet when the unicast packet is received based on the receiving instruction, the searching instruction is to determine that the unicast packet is to be forwarded to another member device via the stacking link when the destination port number is not one of the member port numbers of the member device;
- a determining instruction is to determine if the destination port number is one of member port numbers of a member device;
- and
- a forwarding instruction to forward the unicast packet via the stacking link configured based on the configuring instruction when the unicast packet is to be forwarded to another member device based on a search result of the searching instruction, the forwarding instruction further indicates to add a descriptor to the unicast packet, wherein the descriptor comprises the destination port number and a VD number of a VD forwarding the unicast packet when the unicast packet is to be forwarded to another member device via the stacking link.
Dependencies are inferred from the claim text.