摘要 |
<p>A high performance network interface parses one or more headers of a packet received from a network to determine whether the packet conforms to a predetermined protocol. A packet conforming to a particular protocol may be more completely parsed than a packet conforming to another protocol. Instructions for parsing a packet to determine a protocol and to extract useful data are stored in a writeable random-access memory. The parsing instructions may be replaced, modified or supplemented according to the composition of network traffic and/or the protocols selected for enhanced processing. A parsing instruction may be executed by a micro-sequencer to extract a value from a header and compare it to a test value. If the comparison succeeds, parsing continues along a first branch; if the comparison succeeds it continues along a second branch. An offset to a parsing position within the packet is updated as the packet is parsed.</p> |