An interface card for a network or other communication channel, with limited intelligence, is implemented using a relatively slower, and lower cost embedded processor, supported by dedicated hardware logic for the purposes of intercepting certain packets being received via the network or communication channel. The interface comprises the first port on which incoming data is received at the data transfer rate of the network, a buffer coupled to the port that stores received packets, and a second port coupled with the buffer through which transfer of packets to the host is executed. packet filters are coupled to the first port which identifies packets being stored in the buffer that have one of the plurality of variant formats. A processor is coupled with the buffer as well, and is responsive to the packet filter to process identified packets in the buffer. The pattern match logic includes mask logic circuits, circuits to generate a hash in response to bytes selected by the mask, and a comparator which compares the output of the hash logic with an expected hash. If a match is detected, then the processor is signaled that the packet being received is, or may be, suitable for processing on the network interface card. The mask logic uses the mask modifier in response to the packet format, so that variations of a particular format can be handled with a single set of pattern match logic circuits.
|
21. An interface to a network in which packets are received having a plurality of variant formats, and transferred to a host system, comprising:
a medium access control (MAC) unit on which incoming data is received at a data transfer rate; a buffer, coupled to the MAC unit, storing received packets; a port, coupled with the buffer, through which transfer of packets to the host is executed; a packet filter, coupled to the MAC unit, which identifies packets being stored in the buffer having one of the plurality of variant formats; and a processor coupled with the buffer, and responsive to the packet filter that executes instructions to read data in the identified packets from the buffer and process the read data to produce a data value, prior to transfer of the identified packets from the buffer to the host.
16. An interface in which packets are received having a plurality of variant formats, and transferred to a host system, comprising:
a first port on which incoming data is received at a data transfer rate; a buffer, coupled to the first port, storing received packets; a second port, coupled with the buffer, through which transfer of packets to the host is executed; a packet filter, coupled to the first port, which identifies packets being stored in the buffer having one of the plurality of variant formats; and first logic coupled with the buffer, and responsive to the packet filter to process data in the identified packets; and second logic to manage the buffer which associates a control field with packets being stored in the buffer, and wherein the packet filter sets a variable in the control field to indicate whether the packet has one of the plurality of variant formats.
1. An interface in which packets are received having a plurality of variant formats, and transferred to a host system, comprising:
a first port on which incoming data is received at a data transfer rate; a buffer, coupled to the first port, storing received packets; a second port, coupled with the buffer, through which transfer of packets to the host is executed; a packet filter, coupled to the first port, which identifies packets being stored in the buffer having one of the plurality of variant formats; first logic coupled with the buffer and the second port, to transfer packets from the buffer to the second port; and second logic coupled with the buffer, and responsive to the packet filter to read and process data in the identified packets from the buffer, and to produce a data value dependent on contents of the packet prior to transfer of the identified packets to the second port by the first logic.
40. An integrated circuit for an interface to a network in which packets are received having a plurality of variant formats, and transferred to an active host system, the integrated circuit comprising:
an ethernet medium access control (MAC) unit on which incoming data is received at a data transfer rate of 100 Mbits per second or higher; a first-In-first-Out (FIFO) buffer, coupled to the MAC unit, storing received packets; a port, coupled with the FIFO buffer, through which transfer of packets to the host is executed; a packet filter, coupled to the MAC unit, comprising a plurality of pattern match circuits, each pattern match circuit in the plurality including mask logic circuits storing a mask identifying selected bytes within a packet of a particular format in the plurality of variant formats; hash logic to generate a hash in response to the selected bytes; compare logic to compare the hash generated with an expected hash for the particular format; and logic to identify packets in response to the packet filter and generate an interrupt signal before the identified packets are transferred from the buffer to the host; and a processor coupled with the buffer, and responsive to the interrupt signal from the packet filter that executes instructions to read and process data in the identified packets. 3. The interface of
5. The interface of
6. The interface of
7. The interface of
8. The interface of
mask logic circuits; hash logic to generate a hash in response to the packet and the mask logic circuits; and compare logic to compare the hash generated with an expected hash for one of the plurality of variant formats.
9. The interface of
mask logic circuits, having a mask and a mask modifier logic to modify the mask using the mask modifier in response to the packet; hash logic to generate a hash in response to the packet and the mask; and compare logic to compare the hash generated with an expected hash for one of the plurality of variant formats.
10. The interface of
mask logic circuits storing a mask identifying selected bytes within a packet of a particular format in the plurality of variant formats; hash logic to generate a hash in response to the selected bytes; and compare logic to compare the hash generated with an expected hash for the particular format.
11. The interface of
12. The interface of
13. The interface of
14. The interface of
15. The interface of
17. The interface of
18. The interface of
19. The interface of
20. The interface of
22. The interface of
23. The interface of
25. The interface of
26. The interface of
27. The interface of
28. The interface of
29. The interface of
30. The interface of
31. The interface of
mask logic circuits; hash logic to generate a hash in response to the packet and the mask logic; and compare logic to compare the hash generated with an expected hash for one of the plurality of variant formats.
32. The interface of
mask logic circuits, having a mask and a mask modifier logic to modify the mask using the mask modifier in response to the packet; hash logic to generate a hash in response to the packet and the mask; and compare logic to compare the hash generated with an expected hash for one of the plurality of variant formats.
33. The interface of
mask logic circuits storing a mask identifying selected bytes within a packet of a particular format in the plurality of variant formats; hash logic to generate a hash in response to the selected bytes; and compare logic to compare the hash generated with an expected hash for the particular format.
34. The interface of
mask logic circuits, having a mask for the particular format, and a mask modifier logic to modify the mask depending on detection, or not, of the optional field in the packet; hash logic to generate a hash in response to the packet and the mask; and compare logic to compare the hash generated with an expected hash for the particular format.
35. The interface of
36. The interface of
37. The interface of
38. The interface of
39. The interface of
41. The integrated circuit of
42. The integrated circuit of
43. The integrated circuit of
44. The integrated circuit of
45. The integrated circuit of
46. The integrated circuit of
|
1. Field of the Invention
The present invention relates to network interface devices for interconnecting host processors with a communication network, and more particularly to the processing of specific types of packets at the network interface.
2. Description of Related Art
Management of computer networks is accomplished in many systems by a central network management station which has access to end stations in the network for management functions. Several specialized control packets have been developed, which are transmitted to the end stations in support of these management functions. Some of these control packets are suitable for processing at the network interface, rather than after delivery to the host system on which the network interface is attached.
In one prior art system, network interface devices are configured to capture packets while the host system is not active, including "wake up" packets using resources on the interface card. See, NIC Device-Class Power Management Specification, Version 1.0a, Nov. 21, 1997; Microsoft Corporation. (See, http://www.microsoft.com/hwdev/specs/PMref/PMnetwork.htm). The NIC Device-Class Power Management Specification handles the situation in which a host processor running Windows or another operating system OS wants to go to sleep, yet allow others to access any shared directories or devices it might have offered to the network. So the host OS passes the adapter a set of filters (filter=bit mask to specify which bytes are interesting and a byte string for comparing the interesting bytes) which the adapter should use. If a packet comes in matches the filters, then the adapter wakes up, and signals power management resources in the host system.
As the speed and complexity of networks increase, more types of packets are suitable for being handled by processors in the smart interface cards. In order for a processor to react to the contents of packets, it must have resources to read the relevant part of the packet, and execute the appropriate instructions, as data is passing through the network interface card. If the processor cannot keep up with the network, then packets will be dropped and network throughput will suffer. Relatively powerful processors by today's standards are required to keep up with fast networks, such as 100 Megabit per second or Gigabit per second Ethernet. However, such powerful processors add significant cost to the network interface cards. This imbalance in the cost of processing power and network speed is likely to continue to arise in a variety of settings as technology advances on both fronts.
Accordingly, it is desirable to provide a network interface capable of handling certain specialized packets, without incurring the increased costs associated with powerful on chip, or on-board, processors.
The present invention provides a network interface card, or an interface to other types of communication channels, with limited intelligence, implemented using a relatively slower, and lower cost embedded processor, supported by dedicated hardware logic for the purposes of intercepting certain packets being received via the network. In particular, the present invention provides an interface that comprises the first port on which incoming data is received at the data transfer rate of the network, a buffer coupled to the port that stores received packets, and a second port coupled with the buffer through which transfer of packets to the host is executed. Packet filters are coupled to the first port which identifies packets being stored in the buffer that have one of the plurality of variant formats. A processor is coupled with the buffer as well, and is responsive to the packet filter to process identified packets in the buffer. In this manner, the processor is able to operate at a slower speed, such that the processing time for a typical packet is greater than the amount of time that is consumed by storing a typical packet in the buffer. Because the processor is only required to handle packets identified by the dedicated packet filter logic, it need not have the capability to keep up with the entire data stream.
In various embodiments, the packets intercepted according to the present invention include a remote control packet allowing a management console to remotely reboot the targetted computer. Such a packet would simply be discarded by the interface processor and an action performed to reboot the computer, such as by sending a command to the host using a management interface like the SMBus (See, Smart Battery System Specifications--System Management Bus Specification, Rev. 1.0, (1995) Benchmarq Microelectronics, Inc., et al.).
In another embodiment the intercept technique of the present invention is used for tracking the host computer's IP address. The processor on the interface card might need to know the local internet protocol IP address of its host This can be complicated if Dynlamnic Host Configuration Protocol DHCP, or another protocol for assigning dynamic IP addresses to devices on a network, is in use by which the IP address might change over time. By trapping the DHCP packets and examining them before passing them to the host, the interface card can track the changes in the IP address as they happen, and do it without adding any extra instructions to the critical code paths on the host which might increase CPU utilization or reduce performance. The invention is particularly suited to environments in which the host system is actively handling communications and other processing tasks, and in which the adapter is able to take over some specialized tasks without interfering with the active processing in the host system.
For example, in one embodiment the first port comprises a medium access control unit configured for network having a data rate of 100 Mbps or higher. In this example, a simple RISC processor operating with a processor clock of 25 MHz, and an effective rate of executing instructions of less than 25 MHz, is provided on the network interface card.
According to various aspects of the invention, the packet filter comprises one or more match logic circuits. The match logic circuits comprise mask logic circuits that store a mask identifying selected bytes within a packet of a particular format in the plurality of variant formats. Logic circuits to generate a hash in response to the selected bytes, such as cyclical redundancy code CRC hash logic, are coupled to the incoming port on the device. A comparator compares the output of the hash logic with an expected hash. If a match is detected, then the processor is signaled that the packet being received is, or may be, suitable for processing on the network interface card. The hash used by be imperfect, so that occasional packets that need not be processed by the local processor are trapped.
According to another aspect of the invention, the mask logic within the pattern match logic includes a mask and a mask modifier. The mask logic uses the mask modifier in response to the packet format, so that variations of a particular format can be handled with a single set of pattern match logic circuits. For example, certain packets may have a format accommodating optional fields. The mask modifier is applied to account for the presence or absence of data in the optional fields, while selecting the bytes for input to the hash logic. For example the mask is modified by logic which causes certain bytes to be skipped by the mask and hash generator.
According to various embodiments of the invention, the buffer comprises a First-In-First-Out (FIFO) buffer, a page mode RAM buffer, or other memory on or off the chip. As packets are supplied to the buffer, logic on the network interface card inserts a control field, such as a header, in the buffer. The results of the pattern match logic are written as a flag, or flags, in the control field to indicate whether the packet has a particular one of the plurality of variant formats. When a particular packet in the FIFO buffer reaches a stage for upload to the host computer, the logic on the network interface card issues an interrupt to the processor on the network interface card if a flag is set. In response to the interrupt, the packet in the FIFO buffer is processed locally on the network interface card. If the FIFO buffer overflows during the processing of the packet, then packets may be lost. However, because of the relatively small number of packets to be processed by the local processor, very few packets will be lost in the typical network.
According to yet another aspect of the invention, a single integrated circuit for an Ethernet network interface card comprises an Ethernet medium access control (MAC) unit on which incoming data is received at a data transfer rate of 100 Mbps or higher. A FIFO buffer is coupled to the MAC unit. A host port is coupled with the FIFO buffer through which transfer of packets to the host is executed. Packet filters are included on the chip as discussed above with mask logic, hash logic and a comparator used for signaling an on chip processor that a packet having a particular format is being stored in the FIFO buffer. At least a particular format in the plurality of variant formats supports packets having an optional field as mentioned before. Mask modifier logic is included to modify the mask to account for the optional field. The optional field comprises in various embodiments a virtual local area network (VLAN) tag or a subnetwork attachment point (SNAP) header.
Accordingly, an integrated circuit network interface device for a high speed network medium is provided with the relatively slow, low-cost embedded processor. Hardware pattern matching logic supports pattern matching at the speed of the incoming packet stream, and signals the embedded processor when a packet having one of the plurality of variant formats is detected. Further, the embedded pattern matching logic uses minimum space on the chip, by for example, including logic to handle optional fields in particular packet formats in a single pattern matching engine.
Other aspects and advantages of the present invention can be seen upon review of the figures, the detailed description and the claims which follow.
A detailed description of embodiments of the present invention is provided with respect to
The integrated circuit 101 includes a media interface 110 which provides physical layer interface functions for the network. A medium access control unit 111 is coupled to the media interface circuitry 110. Together the medium access control unit 111 and the media interface circuit 110 act as a port to a network medium through the connector 102. The interface 104 is coupled to bus control logic 112, in this example PCI bus control logic. The PCI bus control logic 112 and interface 104 act as a port to the host system.
A transmit path comprises the port 112, a download engine 113, a transmit FIFO 114, and the medium access control unit 111. A receive path comprises the medium access control unit 111, a receive FIFO 115, and a load engine 116 coupled to the PCI bus control logic 112.
A set of receive filters 117 is coupled to the receive path, in this example at the input to the receive FIFO 115. The receive filters 117 may be coupled to the receive path in a variety of configurations as suits a particular implementation. The set of receive filters 117 include hardware pattern matching logic for identifying incoming packets that have one of a plurality of variant formats. Implementations of the hardware pattern matching logic of the receive filters 117 are described in more detail below.
An embedded processor 118 is also coupled to the receive path, and to other components on the ASIC 101. The embedded processor 118 is coupled to the on-board memory 103 via interface 119. The processor executes instructions stored in the memory 103, in order to process identified packets in the receive path.
In one embodiment, the processor 118 comprises a RISC processor operating with a processor clock of 25 MHz, such as for example an ARM7 embedded processor subsystem commercially available from ARM Ltd., of Cambridge, England. The effective instruction execution rate of the processor in this example is less than 25 MHz, because of the limitations imposed by the speed of the on-board memory 103.
The medium access control unit 111 and the media interface circuitry 110 in this example are adapted for a 100 Mb Ethernet network. The processor 118 in this example may not be capable of reading every packet to determine whether to pass, modify or discard the packet, and to perform such additional processing as might be required in response to such packet at the data rate of the receive path.
Other processor modules, such as 16-bit or 32-bit RISC processors having clock speeds in the range of 20 Mhz to 50 MHz, could be used in various preferred embodiments designed for a low cost 100 Mb Ethernet interface chips. For higher speed interfaces, higher speed processors could be used, while benefitting from the present invention. For example, a 125 MHz ARM processor might be used for support of a Gigabit Ethernet interface chip.
The CRC generator is one example hash logic. Other examples include byte wide summing networks, syndrome generators and logical function generators. The result of the hash logic may be truncated or not for various embodiments prior to comparison with the stored value.
Instead of multiple mask registers, another embodiment of the mask modifier logic uses additional control logic which causes certain bytes to be skipped over or ignored by the mask/checksum operation. For example, on detection of a VLAN ID starting at the 13th byte, the logic skips over four bytes as if they weren't there, causing the mask/checksum logic to see only bytes 1 . . . 12, 17-N. Similarly control logic looks for variants of the standard IP header (0800h in the Ethernet Length field) and makes them look like the standard IP header to the mask/checksum logic, by skipping over most of the SNAP header. In this manner, the interface chip may have only one 128-bit filter store and one checksum register, saving tremendously in gate count on the device, over the multiple mask register approach described above.
The CRC generator 213 produces a hash from the selected bytes which is supplied to a result register 214. Other types of hash logic, or other types of hash generating logic, are also suitable alternatives to the CRC generator 213. The CRC generator 213 is a convenient module for generation of the hash for network interface cards, because of the use of similar CRC generators in other aspects of the device.
An expected hash value is stored in a hash register 215. The contents of the result register 214 and the value in the hash register 215 are compared at comparator 216. The result is supplied on line 217 to receive FIFO control logic 218.
The pattern match modules 204, 205 and 206 are implemented with a similar architecture to that of pattern match module 203. Alternative embodiments eliminate the package classify logic 210, and store a single mask in place of the mask register 211 having a mask modifier.
The receive FIFO control logic 218 writes a flag in a packet header which is maintained at the lead of each packet as it passes through the receive FIFO 201. The flag indicates results from each of the four pattern match engines for the packet. When a packet reaches the top of the receive FIFO 201, the receive FIFO control logic 218 generates an interrupt on line 219 to the processor 220. The processor accesses the packet from the receive FIFO 201 for processing.
In an alternative embodiment, the packet is supplied in parallel to a RAM buffer which is independent of the receive FIFO 201. The preferred embodiment utilizes the FIFO in combination with the header carrying the pattern match flags, in order to save chip area.
Alternative implementations are possible here. For example, the system could issue an interrupt to the processor as soon as the match is detected, rather than waiting for the packet to get to the top of the FIFO. An immediate interrupt could result in more than one packet interrupting the processor and require some kind of stack or other control construct to specify where the corresponding packets were. Interrupts could be issued to the processor before the packet was completely received. In this case, because the CRC used for error checking is found at the end of the Ethernet packet, the interrupt would occur whether the packet is any good or not. So an interrupt could occur on a bad packet that should simply be discarded. For example, the packet might be a runt due to an underrun, and it would be better to wait for the retransmission rather than looking at this packet. Also, it may not be necessary to stall the upload engine. You could have an implementation where the embedded CPU simply has to get to the packet before it gets uploaded/discarded, or else it would miss the packet. Also, the host might upload the packet but not be able to discard it until the adapter had looked at it, so the packet could still cause an overflow at the interface chip if the embedded processor did not act quickly enough.
In one preferred embodiment, four pattern matching engines running in parallel with the MAC receive state machine are supported. These engines are designed to examine the incoming packets for pattern matches using registers configured by the ARM7 processor during initialization. Since the data information of interest will be detectable via fields within the low-level headers of the packet, the number of bytes into the packet these engines can examine is limited to no more than 128 bytes. These 128 bytes contain MAC addresses, Ethernet type, VLAN tags, IP header, and TCP headers. Each pattern matching engine operates off a 128-bit mask, specifying which bytes in each packet should be examined for a match. It will also have a 4-byte CRC value, computed from the interesting bytes of a potential match. If the CRC of the masked bytes in the incoming packet matches the expected CRC value stored for this engine, a received packet match has occurred.
This match algorithm is imperfect because packets which do not actually match the desired bytes may still match the expected CRC value. The assumption made here is that a few false triggers are acceptable and the probability of false CRC match is very low according to the comprehensive CRC generating algorithm. For each match, the processor does the final qualification to determine whether this is a packet having a target format. This process should reduce the incoming data rate to the processor from the wire by many orders of magnitude, compared with embodiments having no such hardware pattern matching assistance.
Since only a limited number of these engines can be designed into hardware of an ASIC, functional enhancements have been made to allow some additional flexibility. These enhancements deal with the fact that the matching engines can only match from the first byte of the packet in a fixed way. One problem is that Ethernet packets can now optionally contain VLAN tags, including a VLAN ID or packet priority information. It will not be possible to know ahead of time whether a packet involved in pattern matching will have such a tag or not, and matching both a packet with and a packet without such a tag would take twice as many engines. The simplification of the present invention is that an engine can be configured to optionally ignore VLAN tags, acting as if they were not present in the packet. A 4-byte VLAN tag is inserted at offset 12 in the packet, and has a fixed 16-bit unique EtherType to represent it. Implementation of the hardware to modify the mask based on the presence or absence of this tag and to ignore the presence of such a tag for pattern matching purposes is straight forward. This allows the hardware to match both tagged and untagged packets with a single engine.
Also, there are several ways to encapsulate the IP protocol on top of Ethernet. The two byte length/type field of Ethernet frame takes on two meanings, depending on the numeric value of the field. For numerical evaluation, the first byte is the most significant byte of the field. If the value of this field is less than or equal to the value of the maximum size packet 0x5FFh, then the length/type field indicates the number of MAC data bytes contained in the subsequent data field of the frame. This packet type is classified as IEEE 802.3. If the value of this field is greater than or equal to 0x0600h, then the length/type field indicates the nature of the MAC protocol. In this case, the packet type is classified as Ethernet. The length and type interpretations of this field are mutually exclusive.
IEEE 802.3 alone does not have a mechanism to provide multiprotocol operation. Multiprotocol operation is handled by IEEE 802.2 LLC. The LLC header contains an 8-bit destination service access point (DSAP) address, an 8-bit source service access point (SSAP) address and 8-bit control field. When the DSAP and SSAP are each equal to 0xAAh and the control field is equal to 0x03h, a subnetwork attachment point (SNAP) header follows the LLC header. When the three bytes of the organizational code of the SNAP header, following the control field, are equal to 0x00h, the following two bytes are used for the type code field. For example, if the EtherType code is equal to 0x0800h, an IP packet follows.
Based on the packet classification, there are two typical ways to identify the offset of IP header. One way is to use a special EtherType of 0x0800h at offset 12 in the packet. The IP header then follows those bytes. Another way is to use the SNAP header as described in the IEEE 802.3 packet definition, where the EtherType field is actually a packet length (0x0-0x5FFh) and is followed by a special header, AA AA 03 00 00 00 then the standard EtherType 0x0800h. Again, it is desirable for the pattern matching engines to have an optional capability to treat an incoming SNAP encapsulated IP packet as if it were an EtherType encapsulation. For this type of packet, the SNAP header is ignored in the pattern matching process.
These two enhancements allow hardware to handle certain packet-type pattern matching with one engine where otherwise it would require four engines, which should make the limited number of engines more useful and save logic gates.
The hardware architecture in one preferred embodiment defines a receive FIFO of 2 K bytes, which can hold the maximum size packet temporarily. During the pattern matching process, the engines tag the packet as having matched by setting a bit in its frame start header. Once the packet advances to the front of the FIFO, an interrupt is generated to the ARM7 processor specifying that a packet pattern match has occurred and which engine has the match. The ARM7 processor reads a read pointer register, which controls the receive FIFO upload operation, for the starting address of the matched packet in the receive FIFO. During the processing of the matched packet, the ARM7 processor has a limited amount of time to decide what to do with the matched packet, such as copy certain fields, discard it, or leave it for the host to examine. After examining the matched packet, the ARM7 processor can instruct the upload state machine to either transfer the packet to the host or to discard it. All packets behind the matched packet will not be uploaded to the host until the ARM7 processor has completely processed the matched packet. If the processor takes too long to process the matched packet, and other incoming packets continue to be received off the network, the overflow condition may occur in the receive FIFO and result in dropping incoming packets. The expectation is that this problem can be avoided under most reasonable network traffic conditions since most of the packets the ARM7 processor needs to examine are short, and a block 2 K bytes of receive FIFO provides about 160 us at 100 Mbps for the processor to make the final decision. Once the processor has decided what to do with the packet, it can discard or configure the upload state machine to send the matched packet to the host.
For the pattern matching CRC calculation of the incoming packets, the data rate of the incoming network data stream, such as a 100 Mbit Ethernet network, provides the worst case functional timing requirements. The pattern matching engines are preferably designed to operate with the worst case timing constraint. Therefore, the following analysis is based on the 100 Mbit network traffic. The design also works for any network traffic less than 100 Mbit. For each word received from the 100 Mbit incoming packet, processing takes 320 ns. At 25 Mhz, which is the operating clock speed for the pattern matching engines, 320 ns is equivalent to 8 clock cycles. To be both silicon gate count and implementation efficient in ASIC design, a 8-bit CRC generator is used to accumulate the actual 32-bit CRC results. One 40 ns clock cycle is needed to calculate and store one byte of data for the actual CRC result. So for one word of data, four clock cycles are required to complete the CRC calculation and store the intermediate results for one matching engine. During the 320 ns time slot, before a next valid data word occurs, one 8-bit CRC generator is sufficient to support one pattern matching engine. To implement the four engines specified for this project, four parallel 8-bit CRC generators are required to implement the completed functionality. In general, for every pattern matching engine, one 8-bit CRC generator is required to support the evaluation.
The MAC receive state machine asserts the data valid signal for every word of a incoming packet. The VLAN and packet type identifications are supported by the receive state machine. If VLAN tags or IEEE 802.3 SNAP headers are present in the packet, the receive state machine holds the data valid signal inactive during the transfer of those data words into the receive FIFO. To implement the identification of Ethernet and IEEE 802.3 packets, a two pipeline design in the receive state machine is used to buffer up enough incoming data in order to identify the correct packet types. The pattern matching engines can be individually disabled by setting the appropriate control bits in a receive command register.
The pattern matching mask registers are implemented with SRAM block for smaller die size than the regular flip-flops. For the purpose of register accesses, the ARM7 processor simply reads and writes to a particular address location to retrieve and store data. To simplify the logic design, logic verification, and gate counts, this small block of SRAM does not contain a self-testing BIST controller. It is the responsibility of the hardware diagnostics to perform a soft BIST test for 100 percent fault coverage. The required coverage is achieved by constructing ARM7 code to access all memory bits according to the algorithms specified by each ASIC vendors.
The ARM7 processor can set the appropriate bits in the receive command register to enable the pattern matching engines to filter out the VLAN tags and/or filter out the SNAP headers to limit the number of patterns stored in the ASIC.
To begin processing data for a pattern matched packet, the ARM7 gets an interrupt indicating a pattern matched packet is at the top of the receive FIFO. The ARM7 then reads the status register for the packet to determine the status of the packet. If the packet has been completely received, a dynamic bit in the register will be low.
To read the packet data, the ARM7 must determine where the start and end of the data is. The address of the first word of packet data for the packet at the top of the receive FIFO is contained in a pointer register associated with the FIFO. The end of the current packet is determined by reading another pointer register, which points to the first byte after the last valid byte in the packet at the top of the receive FIFO. The data in the FIFO can then be read.
When the ARM7 is done processing the data, it can flush the packet from the FIFO by issuing either an discard command or an continue command via the Command register. The former command discards the packet while the latter command lets the packet continue to the host.
When pattern matching is enabled, the ARM7 may wish to examine the contents of the packet which was matched. To do this it must read the data out of the receive FIFO.
When a pattern has been matched in a packet, the ARM7 gets a pattern match interrupt. This interrupt, however, will not be generated until that particular packet is at the top of the receive FIFO. At that point the packet has been completely received.
Accordingly, present invention provides an improved network interface suitable for efficient implementation on a single integrated circuit, and having local processing resources for handling the processing of incoming packets. Such processing can be used for a variety of purposes in support of remote network control. For example, the processor may pull out data such as IP addresses or other data used at the interface, or the processor may initiate an action such as re-boot or power up of the host processor, or resetting the interface card. The invention is also applicable to other environments, including environments that do not involve network interfaces, but rather involve any type of interface in which a communication channel is supplying data packets at a high-speed relative to the processing power used for handling selected packets in the channel.
Also, the pattern matching techniques of the present mention have been applied for each interrupt to an on chip general-purpose processor. These pattern matching techniques are also suitable for signaling specialized logic, such as logic used to wake up a personal computer, on or in communication with the network interface card, from a low-power mode.
While the present invention is disclosed by reference to the preferred embodiments and examples detailed above, it is to be understood that these examples are intended in an illustrative rather than in a limiting sense, as it is contemplated that modifications and combinations will readily occur to those skilled in the art, which modifications and combinations will be within the spirit of the invention and the scope of the appended claims.
Connery, Glenn William, Cross, Patricia
Patent | Priority | Assignee | Title |
10554513, | Jun 30 2018 | Intel Corporation | Technologies for filtering network packets on ingress |
6757746, | Oct 14 1997 | ALACRITECH, INC | Obtaining a destination address so that a network interface device can write network data without headers directly into host memory |
6874036, | Feb 08 2001 | International Business Machines Corporation | Network management server combining PDUs to minimize bandwidth consumption at data link layer |
6925085, | Jun 07 2000 | GLOBALFOUNDRIES U S INC | Packet classification using hash key signatures generated from interrupted hash function |
6963565, | Aug 14 2000 | GLOBALFOUNDRIES U S INC | Apparatus and method for identifying data packet at wire rate on a network switch port |
7046680, | Nov 28 2000 | Verizon Patent and Licensing Inc | Network access system including a programmable access device having distributed service control |
7062595, | Apr 24 2001 | AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE LIMITED | Integrated gigabit ethernet PCI-X controller |
7120858, | Aug 21 2002 | Oracle America, Inc | Method and device for off-loading message digest calculations |
7191258, | Mar 04 2003 | Samsung Electronics Co., Ltd. | Packet forwarding system having a control packet processor which allocates the bandwidth for a control packet adaptively and processing method thereof |
7219211, | Nov 19 2002 | Juniper Networks, Inc. | Precompute logic for software packet processing |
7280541, | Mar 15 2002 | AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE LIMITED | Packet filtering based on conditional expression table |
7337241, | Sep 27 2002 | ALACRITECH, INC | Fast-path apparatus for receiving data corresponding to a TCP connection |
7346701, | Aug 30 2002 | AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE LIMITED | System and method for TCP offload |
7360142, | Mar 03 2004 | MARVELL ISRAEL M I S L LTD | Methods, architectures, circuits, software and systems for CRC determination |
7421515, | Jan 17 2002 | Hewlett Packard Enterprise Development LP | Method and system for communications network |
7423975, | Mar 05 2002 | AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE LIMITED | Method, apparatus and computer program product for performing data packet classification |
7434150, | Mar 03 2004 | MARVELL ISRAEL M I S L LTD | Methods, circuits, architectures, software and systems for determining a data transmission error and/or checking or confirming such error determinations |
7444455, | Apr 24 2001 | AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE LIMITED | Integrated gigabit ethernet PCI-X controller |
7461160, | Oct 14 1997 | ALACRITECH, INC | Obtaining a destination address so that a network interface device can write network data without headers directly into host memory |
7472156, | Oct 14 1997 | ALACRITECH, INC | Transferring control of a TCP connection between devices |
7474893, | Dec 29 2004 | SILICON LABORATORIES, INC | System including a communication apparatus having a digital audio interface for audio testing with radio isolation |
7496689, | Apr 22 2002 | ALACRITECH, INC | TCP/IP offload device |
7499458, | Nov 28 2000 | Verizon Patent and Licensing Inc | Network access system including a programmable access device having distributed service control |
7502869, | Oct 14 1997 | ALACRITECH, INC | Intelligent network interface system and method for accelerated protocol processing |
7543087, | Apr 22 2002 | ALACRITECH, INC | Freeing transmit memory on a network interface device prior to receiving an acknowledgement that transmit data has been received by a remote device |
7584260, | Oct 14 1997 | ALACRITECH, INC | Method to synchronize and upload an offloaded network stack connection with a network stack |
7602712, | Jun 08 2004 | Oracle America, Inc | Switch method and apparatus with cut-through routing for use in a communications network |
7620726, | Oct 14 1997 | ALACRITECH, INC | Zero copy method for receiving data by a network interface |
7627001, | Oct 14 1997 | ALACRITECH, INC | Protocol stack that offloads a TCP connection from a host computer to a network interface device |
7627684, | Oct 14 1997 | ALACRITECH, INC | Network interface device that can offload data transfer processing for a TCP connection from a host CPU |
7639616, | Jun 08 2004 | Oracle America, Inc | Adaptive cut-through algorithm |
7640364, | Mar 07 2001 | ALACRITECH, INC | Port aggregation for network connections that are offloaded to network interface devices |
7644147, | Mar 25 2005 | CAVIUM INTERNATIONAL; MARVELL ASIA PTE, LTD | Remote network device management |
7657628, | Nov 28 2000 | Verizon Patent and Licensing Inc | External processor for a distributed network access system |
7664868, | Nov 07 2001 | ALACRITECH, INC | TCP/IP offload network interface device |
7664883, | Aug 28 1998 | ALACRITECH, INC | Network interface device that fast-path processes solicited session layer read commands |
7673072, | Oct 14 1997 | ALACRITECH, INC | Fast-path apparatus for transmitting data corresponding to a TCP connection |
7694024, | Oct 14 1997 | ALACRITECH, INC | TCP/IP offload device with fast-path TCP ACK generating and transmitting mechanism |
7719980, | Feb 19 2002 | AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE LIMITED | Method and apparatus for flexible frame processing and classification engine |
7733855, | Jun 08 2004 | Oracle America, Inc | Community separation enforcement |
7738500, | Dec 14 2005 | ALACRITECH, INC | TCP timestamp synchronization for network connections that are offloaded to network interface devices |
7809847, | Oct 14 1997 | ALACRITECH, INC | Network interface device that can transfer control of a TCP connection to a host CPU |
7844743, | Oct 14 1997 | ALACRITECH, INC | Protocol stack that offloads a TCP connection from a host computer to a network interface device |
7849208, | Aug 30 2002 | AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE LIMITED | System and method for TCP offload |
7853723, | Oct 14 1997 | ALACRITECH, INC | TCP/IP offload network interface device |
7856015, | Sep 20 2000 | AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE LIMITED | Network switch having port blocking capability |
7860096, | Jun 08 2004 | Oracle America, Inc | Switching method and apparatus for use in a communications network |
7873045, | Sep 15 2003 | Exar Corporation | Generating an encapsulating header based on encapsulated information provided at protocol-dependent locations |
7941498, | Oct 30 2003 | International Business Machines Corporation | Method and system for internet transport acceleration without protocol offload |
7945699, | Oct 14 1997 | ALACRITECH, INC | Obtaining a destination address so that a network interface device can write network data without headers directly into host memory |
7966620, | Nov 07 2008 | Microsoft Technology Licensing, LLC | Secure network optimizations when receiving data directly in a virtual machine's memory address space |
8019901, | Sep 29 2000 | ALACRITECH, INC | Intelligent network storage interface system |
8045564, | Sep 12 2005 | Microsoft Technology Licensing, LLC | Protocol-level filtering |
8090901, | May 14 2009 | RUCKUS IP HOLDINGS LLC | TCAM management approach that minimize movements |
8131853, | Nov 28 2000 | Verizon Patent and Licensing Inc | External processor for a distributed network access system |
8131880, | Oct 14 1997 | ALACRITECH, INC | Intelligent network interface device and system for accelerated communication |
8149839, | Sep 26 2007 | Extreme Networks, Inc | Selection of trunk ports and paths using rotation |
8149866, | Oct 14 2005 | Dell Products L P | System and method for filtering communications at a network interface controller |
8161188, | May 04 2008 | Check Point Software Technologies, Ltd | Devices and methods for providing network access control utilizing traffic-regulation hardware |
8170044, | May 06 2002 | AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE LIMITED | Pipeline method and system for switching packets |
8180870, | Nov 28 2000 | Verizon Patent and Licensing Inc | Programmable access device for a distributed network access system |
8185615, | Nov 28 2000 | Verizon Patent and Licensing Inc | Message, control and reporting interface for a distributed network access system |
8194666, | May 06 2002 | AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE LIMITED | Flexible method for processing data packets in a network routing system for enhanced efficiency and monitoring capability |
8238255, | Nov 22 2006 | BISON PATENT LICENSING, LLC | Recovering from failures without impact on data traffic in a shared bus architecture |
8248939, | Oct 08 2004 | Alacritech, Inc. | Transferring control of TCP connections between hierarchy of processing mechanisms |
8271859, | Jul 18 2007 | AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE LIMITED | Segmented CRC design in high speed networks |
8296404, | Nov 28 2000 | Verizon Patent and Licensing Inc | External processor for a distributed network access system |
8301745, | Mar 25 2005 | CAVIUM INTERNATIONAL; MARVELL ASIA PTE, LTD | Remote network device management |
8312362, | Mar 03 2004 | MARVELL ISRAEL M I S L LTD | Determining data transmission error and/or checking or confirming such error determinations |
8341286, | Jul 31 2008 | Alacritech, Inc. | TCP offload send optimization |
8353003, | Oct 01 2004 | Harris Corporation | System and method for controlling a flow of data a network interface controller to a host processor |
8395996, | Jan 11 2007 | Extreme Networks, Inc | Techniques for processing incoming failure detection protocol packets |
8447803, | Oct 14 1997 | ALACRITECH, INC | Method and apparatus for distributing network traffic processing on a multiprocessor computer |
8448162, | Dec 28 2005 | AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE LIMITED | Hitless software upgrades |
8463256, | Dec 29 2004 | Silicon Laboratories, Inc. | System including a communication apparatus having a digital audio interface for audio testing with radio isolation |
8493988, | Mar 26 2004 | AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE LIMITED | Method and apparatus for aggregating input data streams |
8509236, | Sep 26 2007 | Extreme Networks, Inc | Techniques for selecting paths and/or trunk ports for forwarding traffic flows |
8539112, | Oct 14 1997 | ALACRITECH, INC | TCP/IP offload device |
8539513, | Apr 01 2008 | Alacritech, Inc. | Accelerating data transfer in a virtual computer system with tightly coupled TCP connections |
8599850, | Sep 21 2009 | AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE LIMITED | Provisioning single or multistage networks using ethernet service instances (ESIs) |
8621101, | Sep 29 2000 | ALACRITECH, INC | Intelligent network storage interface device |
8631140, | Oct 14 1997 | ALACRITECH, INC | Intelligent network interface system and method for accelerated protocol processing |
8671219, | May 06 2002 | AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE LIMITED | Method and apparatus for efficiently processing data packets in a computer network |
8682996, | Nov 30 2009 | SOCIONEXT INC | Apparatus for handling message reception |
8718051, | May 15 2003 | AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE LIMITED | System and method for high speed packet transmission |
8730961, | Apr 26 2004 | AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE LIMITED | System and method for optimizing router lookup |
8782199, | Oct 14 1997 | ALACRITECH, INC | Parsing a packet header |
8805948, | Oct 14 1997 | ALACRITECH, INC | Intelligent network interface system and method for protocol processing |
8811390, | May 15 2003 | AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE LIMITED | System and method for high speed packet transmission |
8850089, | Jun 18 2010 | Integrated Device Technology, Inc. | Method and apparatus for unified final buffer with pointer-based and page-based scheme for traffic optimization |
8856379, | Oct 14 1997 | ALACRITECH, INC | Intelligent network interface system and method for protocol processing |
8893159, | Apr 01 2008 | Alacritech, Inc. | Accelerating data transfer in a virtual computer system with tightly coupled TCP connections |
8964547, | Jun 08 2004 | Sun Microsystems, Inc | Credit announcement |
8964754, | Nov 17 2000 | AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE LIMITED | Backplane interface adapter with error control and redundant fabric |
8989202, | May 06 2002 | AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE LIMITED | Pipeline method and system for switching packets |
9009223, | Oct 14 1997 | ALACRITECH, INC | Method and apparatus for processing received network packets on a network interface for a computer |
9030943, | Nov 22 2006 | BISON PATENT LICENSING, LLC | Recovering from failures without impact on data traffic in a shared bus architecture |
9055104, | Apr 22 2002 | ALACRITECH, INC | Freeing transmit memory on a network interface device prior to receiving an acknowledgment that transmit data has been received by a remote device |
9112780, | Jan 11 2007 | Extreme Networks, Inc | Techniques for processing incoming failure detection protocol packets |
9137090, | Sep 07 2010 | Intel Corporation | Device, system and method of communicating upper-layer protocol information |
9166818, | Sep 21 2009 | AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE LIMITED | Provisioning single or multistage networks using ethernet service instances (ESIs) |
9306793, | Oct 22 2008 | ALACRITECH, INC | TCP offload device that batches session layer headers to reduce interrupts as well as CPU copies |
9338100, | Mar 26 2004 | AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE LIMITED | Method and apparatus for aggregating input data streams |
9378005, | Dec 28 2005 | AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE LIMITED | Hitless software upgrades |
9413788, | Jul 31 2008 | Alacritech, Inc. | TCP offload send optimization |
9461940, | May 15 2003 | AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE LIMITED | System and method for high speed packet transmission |
9667729, | Jul 31 2008 | Alacritech, Inc. | TCP offload send optimization |
9788170, | Sep 07 2010 | Intel Corporation | Device, system and method of communicating upper-layer protocol information |
9826369, | Sep 07 2010 | Intel Corporation | Device, system and method of communicating upper-layer protocol information |
Patent | Priority | Assignee | Title |
4500990, | Apr 14 1982 | NEC Corporation | Data communication device including circuitry responsive to an overflow of an input packet buffer for causing a collision |
5473607, | Aug 09 1993 | Cisco Technology, Inc | Packet filtering for data networks |
5530703, | Sep 23 1994 | HEWLETT-PACKARD DEVELOPMENT COMPANY, L P | Remote communication server with automatic filtering |
5615340, | Jul 21 1994 | ALLIED TELESIS, INC | Network interfacing apparatus and method using repeater and cascade interface with scrambling |
5909686, | Jun 30 1997 | Oracle America, Inc | Hardware-assisted central processing unit access to a forwarding database |
6108713, | Feb 11 1997 | SECURE AXCESS LLC | Media access control architectures and network management systems |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Oct 22 1999 | CONNERY, GLENN W | 3Com Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 010382 | /0162 | |
Nov 01 1999 | CROSS, PATRICIA | 3Com Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 010382 | /0162 | |
Nov 05 1999 | 3Com Corporation | (assignment on the face of the patent) | / | |||
Jan 31 2003 | Hewlett-Packard Company | HEWLETT-PACKARD DEVELOPMENT COMPANY, L P | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 027329 | /0044 | |
Apr 28 2010 | 3Com Corporation | Hewlett-Packard Company | MERGER SEE DOCUMENT FOR DETAILS | 024630 | /0820 | |
Apr 28 2010 | 3Com Corporation | Hewlett-Packard Company | CORRECTIVE ASSIGNMENT TO CORRECT THE SEE ATTACHED | 025039 | /0844 | |
Oct 10 2011 | Hewlett-Packard Company | HEWLETT-PACKARD DEVELOPMENT COMPANY, L P | CORRECTIVE ASSIGNMENT PREVIUOSLY RECORDED ON REEL 027329 FRAME 0001 AND 0044 | 028911 | /0846 | |
Oct 27 2015 | HEWLETT-PACKARD DEVELOPMENT COMPANY, L P | Hewlett Packard Enterprise Development LP | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 037079 | /0001 |
Date | Maintenance Fee Events |
Nov 27 2006 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
May 17 2007 | ASPN: Payor Number Assigned. |
Nov 29 2010 | M1552: Payment of Maintenance Fee, 8th Year, Large Entity. |
Oct 23 2014 | M1553: Payment of Maintenance Fee, 12th Year, Large Entity. |
Date | Maintenance Schedule |
May 27 2006 | 4 years fee payment window open |
Nov 27 2006 | 6 months grace period start (w surcharge) |
May 27 2007 | patent expiry (for year 4) |
May 27 2009 | 2 years to revive unintentionally abandoned end. (for year 4) |
May 27 2010 | 8 years fee payment window open |
Nov 27 2010 | 6 months grace period start (w surcharge) |
May 27 2011 | patent expiry (for year 8) |
May 27 2013 | 2 years to revive unintentionally abandoned end. (for year 8) |
May 27 2014 | 12 years fee payment window open |
Nov 27 2014 | 6 months grace period start (w surcharge) |
May 27 2015 | patent expiry (for year 12) |
May 27 2017 | 2 years to revive unintentionally abandoned end. (for year 12) |