Techniques for customizing forwarding decisions via a hardware lookup result
申请公布号:US9419895(B2)
申请号:US201313871777
申请日期:2013.04.26
申请公布日期:2016.08.16
发明人:Liu Jian;Yeung Wing-Keung Adam
分类号:H04L12/741;H04L12/761
主分类号:H04L12/741
代理人:Fountainhead Law Group P.C.
地址:San Jose CA US
摘要:Techniques for customizing forwarding decisions in a network device via a hardware lookup table result are provided. In one embodiment, a network processor of the network device can perform a lookup into a lookup table based on one or more sections of a received packet. The network processor can then determine, based on the lookup, an entry in the lookup table and retrieve, using a pointer included in the lookup table entry, a mode value from a results table. The mode value can identify an operational flow (e.g., a series of forwarding decisions) to be carried out by the network processor for forwarding the received packet.
主权项:1. A method comprising: performing, by a network processor of a network device, a lookup into a first lookup table based on one or more sections of a received multicast data packet, the received multicast data packet implementing one of a plurality of Protocol Independent Multicast (PIM) types that include PIM Sparse Mode (PIM-SM), PIM Dense Mode (PIM-DM), Bidirectional PIM (PIM-BIDIR), and PIM Source-Specific Multicast (PIM-SSM); determining, by the network processor based on the lookup into the first lookup table, a first lookup table entry matching the one or more sections of the received multicast data packet; retrieving, by the network processor based on a pointer included in the first lookup table entry, a mode value from a results table, wherein the mode value identifies an operational flow to be carried out by the network processor for forwarding the received multicast data packet, and wherein the mode value differs based upon the PIM type implemented by the received multicast data packet and a (destination address (DA), source address (SA)) key of the first lookup table, the DA corresponding to one or more multicast group addresses associated with the PIM type; and forwarding, by the network processor, the received multicast packet in accordance with the operational flow identified by the mode value.