Two-stage port-channel resolution in a multistage fabric switch
In some embodiments, a data packet may be received at a leaf switch. A port-channel associated with a destination port for the data packet may be identified, and the data packet may be transmitted to the destination port via the identified port-channel.
1. A method comprising:
receiving a data packet on a source port wherein the data packet comprises a header value comprising a global index;
determining whether the global index maps to a local index associated with a port-channel;
in response to determining that the global index maps to the local index:
identifying a local port associated with the port-channel according to the local index, and
transmitting the data packet on the local port;
determining whether a Layer 2 forwarding table comprises an entry associating a MAC address with the source port; and
in response to determining that the Layer 2 forwarding table does not comprise the entry associating the MAC address with the source port, creating an entry in the Layer 2 forwarding table associating the MAC address with the source port.
2. The method of claim 1 , further comprising, in response to determining that the global index does not map to the local index:
identifying the local port associated with the port-channel according to the global index, and
transmitting the data packet on the local port.
3. A system comprising:
a memory storage; and
a processing unit coupled to the memory storage, wherein the processing unit is operative to:
receive a data packet on a source port wherein the data packet comprises a header value comprising a global index;
determine whether the global index maps to a local index associated with a port-channel;
in response to determining that the global index maps to the local index:
identify a local port associated with the port-channel according to the local index, and
transmit the data packet on the local port;
determine whether a Layer 2 forwarding table comprises an entry associating a MAC address with the source port; and
in response to determining that the Layer 2 forwarding table does not comprise the entry associating the MAC address with the source port, create an entry in the Layer 2 forwarding table associating the MAC address with the source port.
4. The system of claim 3 , wherein the processing unit is further operative to, in response to determining that the global index does not map to the local index:
identify the local port associated with the port-channel according to the global index, and
transmit the data packet on the local port.
5. A non-transitory computer-readable medium that stores a set of instructions which when executed by a computer processor perform a method comprising:
receiving a data packet on a source port wherein the data packet comprises a header value comprising a global index;
determining whether the global index maps to a local index associated with a port-channel;
in response to determining that the global index maps to the local index:
identifying a local port associated with the port-channel according to the local index, and
transmitting the data packet on the local port;
determining whether a Layer 2 forwarding table comprises an entry associating a MAC address with the source port; and
in response to determining that the Layer 2 forwarding table does not comprise the entry associating the MAC address with the source port, creating an entry in the Layer 2 forwarding table associating the MAC address with the source port.
6. The non-transitory computer-readable medium of claim 5 , further comprising, in response to determining that the global index does not map to the local index:
identifying the local port associated with the port-channel according to the global index, and
transmitting the data packet on the local port.