Abstract:
The present application discloses a packet forwarding method and apparatus. An access device receives a first packet, where the first packet is an Ethernet packet, searches an equal-cost multi-path forwarding entry for a matched equal-cost path according to a destination MAC address of the Ethernet packet, where the equal-cost multi-path forwarding entry includes: a virtual MAC address corresponding to a gateway aggregation group, an identifier of each gateway device in the gateway aggregation group, and an outbound interface corresponding to the identifier of each gateway device, where the identifier is used to uniquely identify a gateway device in a large layer 2 network; and if N matched equal-cost paths are found, encapsulates the first packet into a second packet according to a first path in the N matched equal-cost paths, and forwards the second packet according to an outbound interface of the first path.
Abstract:
A port number extension method and a switch are provided. A first switch determines bits for identifying the first switch in a Media Access Control (MAC) address in an identifier (ID) of a specified bridge; calculates a bit for port number extension according to the bits for identifying the first switch; and combines the bit for port number extension and original bits for specifying a port, to obtain new bits for specifying a port. In this way, a problem that Spanning Tree Protocol (STP) port numbers are insufficient in a super virtual fabric with a massive quantity of ports is resolved.
Abstract:
A method for packet forwarding based on equal-cost multi-path and a network device, in order to resolve problems that are caused by inconsistent forwarding paths for packets in two directions of a same service flow in an equal-cost multi-path scenario. A first network device performs calculation on characteristic information in a packet using a hash algorithm to obtain a hash value, determines, according to a correspondence between hash values and path identifiers that is acquired in advance, a path identifier corresponding to the hash value, and forwards the packet to a second network device through a path that corresponds to the path identifier, where the path is one of the N equal-cost paths. There exist N equal-cost paths for packet forwarding between the first network device and the second network device. The same hash algorithm is configured on the two network devices respectively.
Abstract:
A gateway receives a link state packet (LSP) that includes a network identifier of a Layer 2 virtual network and a multicast address and that is sent by each routing bridge (RB) that is on the Transparent Interconnection of Lots of Links (TRILL) network; separately performs calculation on the network identifier and the multicast address that are in each LSP, to obtain a calculation result corresponding to each combination of the network identifier and the multicast address; if the gateway determines that information preconfigured on the gateway matches a calculation result corresponding to a combination of the network identifier and the multicast address, sends a notification message including the network identifier and the multicast address that are in the matched combination to each RB; receives from at least one RB, a multicast packet corresponding to the multicast address in the matched combination, and forwards the multicast packet.