主权项 |
1. A network device comprising:
an input port for receiving multicast packets; a plurality of output ports, a first number of said plurality of output ports configured to form a link aggregation protocol (LAG) port; multicast spraying logic coupled to said input port and said plurality of output ports including said LAG port, said multicast spraying logic including:
a lookup engine coupled to said input port which examines the received multicast packet and develops a multicast group ID of the multicast packet;a link expansion vector table coupled to said lookup engine and including a plurality of link bitmaps, the link bitmap indicating which of the plurality of output ports the packet is to be provided to, said link expansion table selecting one of the plurality of link bitmaps for each received multicast packet according to the received multicast group ID value;a hash engine coupled to said input port which examines the received multicast packet and develops a hash from the received multicast packet;a hash spray table coupled to said hash engine and containing a plurality of enable vectors, the enable vectors enabling a variety of output ports in the LAG port, said hash spray table selecting an enable vector according to the applied hash value; andcombining logic coupled to said link expansion vector table and said hash spray table to form a logical AND of said selected link bitmap and selected enable vector for at least the output ports of the LAG port, the output of said combining logic indicating which of the output ports of the LAG port is to be used for that packet. |