Network traffic is transmitted over a network, such as the Internet, from a host (e.g., a device capable of receiving data over a network) to another host. Each host uses a specialized piece of hardware commonly referred to as a network interface card (NIC) to access the network. The NIC is a piece of hardware found in a typical computer system that includes functionality to send and receive network traffic. Typically, network traffic is transmitted in the form of packets, where each packet includes a header and a payload. The header includes information regarding the source address, destination address, size, transport protocol used to transmit the packet, and various other identification information associated with the packet of data. The payload includes the actual data to be transmitted from the network to the receiving system. The contents and transmission of the aforementioned packets on the network are typically governed by Transmission Control Protocol (TCP) and Internet Protocol (IP).
Processing network traffic requires significant host resources. To decrease the amount of processing required by the host, specialized hardware has been developed to process packets. The specialized hardware is external to the processor, which initially processes the packet, and typically only supports single threaded processing (i.e., packets are typically not processed in parallel). The specialized hardware typically includes functionality to obtain packets from the processor, perform specific functions on the packet (e.g., calculate checksum, decrypt packet, encrypt packet, and perform processing required by TCP or IP, etc.), and return the processed packets to the processor. In order to use the specialized hardware, two or more additional I/O operations are typically required in order to transfer packets to the specialized hardware and received the processed packets from the specialized hardware.
In general, embodiments of the invention relate to a method for processing packets. The method includes receiving a first packet by a network interface card (NIC) operatively connected to a host, classifying the first packet using a classifier, sending the first packet to a first one of a plurality of receive rings based on a classification of the first packet by the classifier, sending the first packet from the first one of the plurality of receive rings to a first virtual network interface card (VNIC), wherein the first VNIC is located on the host, determining, using a first policy associated with the first VNIC, whether to process the first packet using offload hardware, when the first packet is to be processed using the offload hardware, sending the first packet to the offload hardware and receiving a first processed packet from the offload hardware by the first VNIC, when the first packet is not to be processed using the offload hardware, processing the first packet using at least one onload resource to obtain the first processed packet, and sending the first processed packet from the first VNIC to a first packet destination associated with the first VNIC.
In general, embodiments of the invention relate to a method for processing packets. The method includes receiving a packet by a network interface card (NIC) operatively connected to a host, classifying the packet using a classifier, sending the packet to one of a plurality of receive rings based on a classification of the packet by the classifier, sending the packet from the one of the plurality of receive rings to a virtual network interface card (VNIC), wherein the VNIC is located on the host, sending the packet to onload resources bound to the VNIC, processing the packet using the onload resources to obtain the processed packet, and sending the processed packet from the VNIC to a packet destination associated with the VNIC.
In general, embodiments of the invention relate to a system. The system includes offload hardware, at least onload resource, and a network interface card (NIC). The NIC includes a first plurality of receive rings and a hardware classifier and wherein the NIC is configured to: receive a first packet, classify the first packet using the hardware classifier, and send the first packet to a first one of a plurality of receive rings based on a classification of the first packet. The host is operatively connected to the NIC and the offload hardware, and includes a first virtual network interface card (VNIC). The first VNIC is configured to: receive the second packet from the second one of the plurality of receive rings, determine, using a first policy associated with the first VNIC, whether to process the first packet using the offload hardware, send the first packet to the offload hardware, when the first packet is to be processed using the offload hardware and receive a first processed packet from the offload hardware, send the first packet to the at least one onload resource, when the first packet is not to be processed using the offload hardware and receive the first processed packet from the onload resource, and send the first processed packet from the first VNIC to a first packet destination associated with the first VNIC.
Other aspects of the invention will be apparent from the following description and the appended claims.
Specific embodiments of the invention will now be described in detail with reference to the accompanying figures. Like elements in the various figures are denoted by like reference numerals for consistency.
In the following detailed description of embodiments of the invention, numerous specific details are set forth in order to provide a more thorough understanding of the invention. However, it will be apparent to one of ordinary skill in the art that the invention may be practiced without these specific details. In other instances, well-known features have not been described in detail to avoid unnecessarily complicating the description.
In general, embodiments of the invention provide a method and system for onloading network services. More specifically, embodiments of the invention provide a method and system for binding onload resources and offload hardware on a per-VNIC basis and then using a policy engine to determine when to use the onload resources and when to use the offload hardware to process packets received by the VNIC.
In one embodiment of the invention, the hardware classifier (104) is configured to analyze the incoming network traffic, typically in the form of packets, received from the network (not shown). In one embodiment of the invention, analyzing individual packets includes determining to which of the HRRs (106, 108) each packet is sent. In one embodiment of the invention, analyzing the packets by the hardware classifier (104) includes analyzing one or more fields in each of the packets to determine to which of the HRRs (106, 108) the packets are sent. As an alternative, the hardware classifier (104) may use the contents of one or more fields in each packet as an index into a data structure that includes information necessary to determine to which HRR (106, 108) that packet is sent.
The hardware classifier (104) may be implemented entirely in hardware (i.e., the hardware classifier (104) may be a separate microprocessor embedded on the NIC (102)). Alternatively, the hardware classifier (104) may be implemented in software stored in memory (e.g., firmware, etc.) on the NIC (102) and executed by a microprocessor on the NIC (102).
In one embodiment of the invention, the host (100) may include the following components: a device driver (114), one or more virtual network interface cards (VNICs) (116, 118), one or more virtual network stacks (VNSs) (124), one or more packet destinations (132), one or more interfaces (126), one or more virtual machines (140), and a policy engine (112). Each of the aforementioned components is described below.
In one embodiment of the invention, the device driver (114) provides an interface between the HRRs (106, 108) and the host (100). More specifically, the device driver (114) exposes the HRRs (106, 108) to the host (100) such that the host (100) (or, more specifically, a process executing on the host) may obtain packets from the HRRs (106, 108).
Though not shown in
Continuing with the discussion of
Each of the VNICs (116, 118) may be operatively connected to a corresponding VNS (124). In one embodiment of the invention, each VNS (124) includes functionality to process packets in accordance with various protocols used to send and receive packets (e.g., Transmission Communication Protocol (TCP), Internet Protocol (IP), User Datagram Protocol (UDP), etc.). Further, each VNS (124) may also include functionality, as needed, to perform additional processing on the incoming and outgoing packets. This additional processing may include, but is not limited to, cryptographic processing, firewall routing, etc.
In one embodiment of the invention, each VNS (124) includes network layer and transport layer functionality. In one embodiment of the invention, network layer functionality corresponds to functionality to manage packet addressing and delivery on a network (e.g., functionality to support IP, Address Resolution Protocol (ARP), Internet Control Message Protocol, etc.). In one embodiment of the invention, transport layer functionality corresponds to functionality to manage the transfer of packets on the network (e.g., functionality to support TCP, UDP, Stream Control Transmission Protocol (SCTP), etc.). The structure and functionality of the VNSs (124) is discussed in
As discussed above, the host (100) includes one or more packet destinations (132). In one embodiment of the invention, the packet destination(s) (132) corresponds to any process (or group of processes) executing on the host that is configured to send and/or receive network traffic. Further, the packet destination(s) (132) does not include an internal network stack (i.e., there is no network stack within the packet destination); rather, the packet destination (132) is associated with a VNS (124).
Examples of packet destinations (132) include, but are not limited to containers and services (e.g., web server) executing on the host (100). As shown in
In one embodiment of the invention, each VNS (124) is associated with a bandwidth allocation. Those skilled in the art will appreciate that if there is only one VNS (124) bound to the packet destination (132), then the bandwidth allocation of the VNS (124) corresponds to the bandwidth allocated to the packet destination (132). In one embodiment of the invention, the bandwidth allocation corresponds to the number of packets the packet destination may receive in a given time interval (e.g., megabytes per seconds). The bandwidth allocation for a given packet destination is enforced by the VNS operating in polling mode (discussed in
In one embodiment of the invention, the VNIC (116, 118) may be bound to a virtual machine (140, 142, 144) (e.g., Xen Domain) instead of a packet destination (124). In such cases, the VNIC is bound to an interface (126) (e.g., a Xen interface), where the interface enables the VNIC to communicate to with the virtual machine. In one embodiment of the invention, each of the aforementioned virtual machines includes its own network stack (e.g., 134) and includes its own operating system (OS) instance, which may be different than the OS executing on the host. In one embodiment of the invention, each virtual machine (140) is associated with its own MAC address and IP address (which may be static or obtained using Dynamic Host Configuration Protocol (DHCP)). Further, the VNIC associated with the virtual machine (e.g., VNIC 2 (118) is associated with VM 1 (140) in
In one embodiment of the invention, the host (100) is operatively connected to one or more processors (e.g., processor A (120A, processor N (120N)) and offload hardware (122A, 122P). The processors (120A, 120N) may be configured to process multithreads in parallel. In one embodiment of the invention, the multi-threading functionality is provided by a Chip Multi Threading (CMT) architecture. Further, one or more processors (120A, 120N) may be organized into processor groups.
In one embodiment of the invention, onload resources correspond to general purpose processors (120A, 120N) operatively connected to the host (100). Further, onload resources may include memory or on-chip hardware associated with the aforementioned processors (e.g., on-chip cache, etc.). In addition, the onload resources may include software for performing specialized functions using the aforementioned processors. Examples of the functions include, but are not limited to, encrypting and decrypting packets (or portions thereof) or performing other specialized mathematical functions (e.g., calculating checksums, compression, etc.), parsing eXtensible Mark-up Language (XML), packet processing in accordance with TCP, and caching data received over the network (e.g., network layer 7 caching). The software may be configured to utilize the multi-threading functionality provided by the aforementioned processors.
In one embodiment of the invention, the offload hardware (122A, 122P) correspond specialized hardware that is distinct from the processors (120A, 120N). The offload hardware (122A, 122P) may be accessed via corresponding device drivers (not shown) executing on the host (100). Examples of offload hardware (122A, 122P) include, but are not limited to, cryptographic accelerators for encrypting and decrypting packets (or portions thereof) or performing other specialized mathematical functions (e.g., calculating checksums, compression, etc.), eXtensible Mark-up Language (XML) parsers, specialized offload hardware to supporting packet processing in accordance with TCP (e.g., TCP offload engines), and specialized hardware for caching data received over the network. In one embodiment of the invention, each VNIC (116, 118) may be associated with specific offload hardware (122A, 122P) and specific onload resources.
In one embodiment of the invention, the policy engine (112) is configured to store one or more policies. Further, the policy engine (112) is configured to enforce the policies stored within the policy engine (112). In another embodiment of the invention, the policies are stored in a location accessible by the policy engine (as opposed to within the policy engine).
In one embodiment of the invention, each policy specifies how to process packets received by one or more VNICs. More specifically, the policy specifics whether a given packet received by a VNIC should be processed using onload resources associated with the VNIC or offload resources associated with the VNIC. For example, the policy may specify that the VNIC should always use offload hardware to process packets that require cryptographic processing (e.g., encryption or decryption). The same policy may also specify that processing packets pursuant to TCP should be performed using the offload hardware if the offload hardware is available and should be performed using the onload resources when the offload hardware is not available (e.g., because the offload hardware is currently in use or the offload hardware has failed). In one embodiment of the invention, the policy engine (112) may include a global policy that is used by all VNICs. Alternatively, each VNIC (or a subset of VNICs) may be associated with a policy.
In one embodiment, the IP layer (202) is configured to receive packets from the VNIC associated with the VNS (204) (e.g., VNS (124) receives packets from VNIC 1 (116) in
Continuing with the discussion of
In one embodiment of the invention, the transport layer (206) is configured to process inbound and outbound packets in accordance with Transmission Control Protocol (TCP), User Datagram Protocol (UDP), or both UDP and TCP. Other protocols may be supported by the transport layer (206).
In one embodiment of the invention, the outbound VSQ (208) is a queue data structure configured to receive packets from the packet destination (e.g., 132) with which the VNS (204) is associated. Further, the outbound VSQ (208) is configured to store packets prior to sending the received packets to the transport layer (206). In one embodiment of the invention, the outbound VSQ (208) is also configured to control the flow of packets from the packet destination (e.g., 132) associated with the VNS (204) to the VNS (200). In one embodiment of the invention, the outbound VSQ (208) (or a related process) is configured to block an application for sending packets to the outbound VSQ (208), if the packet destination (e.g., 132) is attempting to issue packets at a higher rate than the outbound bandwidth allocated to the packet destination (e.g., 132). Further, the outbound VSQ (208) (or a related process) is configured to notify the packet destination (e.g., 132) when it is no longer blocked from issuing packets to the VNS (200).
In one embodiment of the invention, the inbound VSQ (204) and outbound VSQ (208) are each configured to enforce the manner in which packets are processed. Specifically, the inbound VSQ (204) and outbound VSQ (208) may be configured to enforce the resource requirements imposed by the transport layer (206). For example, TCP requires serial processing of packets. Thus, the inbound VSQ (204) and outbound VSQ (208) may require all threads accessing the inbound VSQ (204) and outbound VSQ (208) to conform to a mutual exclusion policy. In one embodiment of the invention, the mutual exclusion policy requires that only one thread may access the VSQ (inbound or outbound) at a time. Thus, if two threads are attempting to access a given VSQ (inbound or outbound), one thread must wait until the other thread has finished accessing the VSQ (inbound or outbound).
Alternatively, if the transport layer (206) only supports UDP, then the inbound VSQ (204) and outbound VSQ (208) may be configured to allow concurrent access. Said another way, two or more threads may concurrently access the VSQ (inbound or outbound). In one embodiment of the invention, if the transport layer (206) is configured to process both TCP and UDP packets, then the inbound VSQ (204) and outbound VSQ (208) are configured to conform to the more stringent standard (e.g., TCP if the transport layer supports both TCP and UDP).
In one embodiment of the invention, the inbound VSQ (204) and the outbound VSQ (208) are implemented as a single bi-directional VSQ. In such cases, the bi-directional VSQ includes a single set of configuration parameters (discussed above) to enforce the manner in which packets are processed. Further, the enforcement of the configuration parameters is performed on a VSQ-basis (as opposed to a per-direction basis). For example, if the bi-directional VSQ enforces a mutual exclusion policy, then only one thread may access the bi-directional VSQ at a time.
Continuing with the discussion of
In Step 305, the device driver subsequently obtains hardware information from the NIC. In one embodiment of the invention, hardware information corresponds to information about the hardware resources on the NIC. The hardware resources may include, but are not limited to, hardware receive rings (HRRs) (e.g., 106 in
In Step 405, onload resource information is obtained. In one embodiment of the invention, the onload resource information may include, but is not limited to, the number of processors available to the host, whether chip multithreading is supported, whether processors groups have been established, whether the host support processor groups, caching capabilities of the processors and/or host (e.g., is network layer 7 caching supported), and information about specialized functions the software supports.
In Step 407, packet destination and/or VM resource requirements are obtained. In one embodiment of the invention, the resource requirements may include, but are not limited to, a number of threads required by the packet destination or VM, a specialized mathematical function to be applied to packets destined for the packet destination or VM, and a performance requirement (e.g., latency between sending request for packets and receiving packets).
In Step 409, VNICs are created on the host. In Step 411, onload resources and/or offload resources are assigned to the VNICs based on the resource requirements obtained in Step 407. For example, if the resource requirements for a packet destination specify a performance requirement and the packet destination is implementing IPSec, the VNIC associated with the packet destination may be associated with onload resources that support to network layer 7 caching and offload hardware that supports cryptographic acceleration. Further, the packet destination may also be associated with onload resources that support cryptographic processing, which may be used in the event the offload hardware is unavailable or fails.
In another example, the resource requirements for a packet destination indicate that the packet destination (or a process executing therein) requires multiple threads, where each thread is associated with a separate kernel-level remote procedure call (RPC) (e.g., RPC calls issued by the Network File System daemon (NFSd)). In such cases, the packet destination is associated with onload resources that support chip multi-threading, where the magnitude of the onload resources associated with the packet destination are sufficient to support the chip multi-threading (and other processing power) required by the packet destination.
Continuing with the discussion of
In one embodiment of the invention, programming the hardware classifier includes specifying that all packets for a specific packet destination or virtual machine are sent to a specific HRR. In one embodiment of the invention, the hardware classifier is programmed using the MAC address and, optionally, the IP address associated with the virtual machines. Thus, all packets with a specific MAC address (and optionally an IP address) are sent to a specific HRR. As discussed, the HRRs are bound to VNICs or software rings. Thus, packets sent to specific HRRs are subsequently sent to the appropriate VNIC or software ring.
In the case where the packets are sent to the software ring, the software classifier in the software ring performs additional classification. In one embodiment of the invention, the software classifier includes the same functionality as the hardware classifier and is programmed using the same criteria (e.g., MAC addresses, IP addresses, etc.) as the hardware classifier.
In one embodiment of the invention, VNICs are preferably bound to an HRR if an HRR is available and the hardware classifier in the NIC is configured to perform the level of classification required by the host. In such cases, one HRR is bound to a software ring and the other HRRs are bound to VNICs. In one embodiment of the invention, each of the aforementioned VNICs is associated with a virtual network stack (VNS). Further, each VNS is associated with a bandwidth allocation.
As stated above, software rings can be arbitrarily created on top of HRR or SRRs. As a result, different structures involving software rings can be created to handle the same number of VNICs using the method shown in
Continuing with the discussion of
In Step 507, a determination is made about whether the receive ring is associated with a virtual machine or a packet destination. The HRR is associated with the virtual machine if the HRR sends (via a VNIC) received packets to an interface, which in turn sends packets to a virtual machine. Similarly, the HRR is associated with a packet destination if the HRR (via a VNIC) sends packets to a VNS, which in turn sends packets to a packet destination.
If the HRR is associated with a packet destination, the process proceeds to Step 509. Alternatively, if the HRR is associated with a virtual machine, then the process proceeds to Step 513. With respect to Step 512, a determination is made about whether the VSQ associated with the VNS is operating in polling mode or interrupt mode.
If the VSQ is operating in polling mode, then the packets remain in the HRR until the VSQ requests a specified number of packets from the HRR (Step 511). In one embodiment of the invention, the VSQ does not request any packets when there are packets already queued on the VSQ. In one or more embodiments of the invention, the VSQ retrieves all packets from the HRR when a request is made for packets.
Those skilled in the art will appreciate that the HRRs store a finite number of packets. Thus, if the HRRs receive packets at a faster rate than the rate at which the corresponding VSQ requests the packets, the HRRs will eventually fill completely with packets and packets received after this point are dropped until packets on the HRks are requested and processed. In one embodiment of the invention, the rate at which packets are requested from the HRR and the number of packets requested is determined by the bandwidth allocation of the VNS bound to the HRR. In one embodiment of the invention, a function entry point associated with the HRR is used to poll the specific HRR.
Alternatively, if the VSQ is operating in interrupt mode or the VNIC is associated with a virtual machine, then an interrupt is issued to a processor (i.e., a processor bound to the VSQ that is bound to the VNS associated with the HRR or to a processor bound to a virtual machine) (Step 513). The packets are then sent to the VNIC (Step 515). In one embodiment of the invention, if the VSQ is operating polling mode, then the VSQ, which includes the function entry point, uses the function entry point to obtain the packet from the HRR and place it in the appropriate VNIC. Alternatively, if the VSQ is operating in interrupt mode, then the device driver (or NIC) executes the function entry point to send the packet from the HRR to the appropriate VNIC.
In Step 515, a determination is made about whether the packet should be processed using offload hardware. In one embodiment of the invention, this determination is made by the policy engine using the policy associated with the VNIC (i.e., the VNIC to which the packet was sent in Step 515). In addition, the policy engine may also take into account the availability of the offload hardware when determining whether to use the offload hardware. If the packet is to be processed using offload hardware, the packet is processed by the offload hardware (Step 519). Processing the packet by the offload hardware includes issuing the necessary requests to the offload hardware (including performing the necessary I/O commands) and receiving the processed packet from the offload hardware. In one embodiment of the invention, the offload hardware provides the processed packet to the VNIC.
Alternatively, if the packet is to be processed using onload resources, the packet is processed by the onload resources (Step 521). Step 521 may include invoking various specialized software routines to perform the necessary processing. Further, Step 521 may include utilizing specialized on-chip hardware and chip multi-threading functionality.
In Step 523, the processed packet (received from Step 519 or Step 521) is sent to the appropriate VNS or Interface, where the packets are processed and then sent to the packet destination or virtual machine (Step 525). In one embodiment of the invention, processing the packet by the interface includes flipping the content of the packet such that the most significant bit becomes the least significant bit. Once the packet has been processed by the interface, it is placed in the address space associated with the virtual machine. In one embodiment of the invention, processing the packet by the VNS is described in
In one embodiment of the invention, the method described in
Turning to
Using the system shown in
An embodiment of the invention may be implemented on virtually any type of computer regardless of the platform being used. For example, as shown in
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of this disclosure, will appreciate that other embodiments can be devised which do not depart from the scope of the invention as disclosed herein. Accordingly, the scope of the invention should be limited only by the attached claims.
The present application contains subject matter that may be related to the subject matter in the following U.S. applications filed on Apr. 22, 2005, and assigned to the assignee of the present application: “Method and Apparatus for Managing and Accounting for Bandwidth Utilization Within A Computing System” with U.S. application Ser. No. 11/112,367 (Attorney Docket No. 03226/643001; SUN050681); “Method and Apparatus for Consolidating Available Computing Resources on Different Computing Devices” with U.S. application Ser. No. 11/112,368 (Attorney Docket No. 03226/644001; SUN050682); “Assigning Higher Priority to Transactions Based on Subscription Level” with U.S. application Ser. No. 11/112,947 (Attorney Docket No. 03226/645001; SUN050589); “Method and Apparatus for Dynamically Isolating Affected Services Under Denial of Service Attack” with U.S. application Ser. No. 11/112,158 (Attorney Docket No. 03226/646001; SUN050587); “Method and Apparatus for Improving User Experience for Legitimate Traffic of a Service Impacted by Denial of Service Attack” with U.S. application Ser. No. 11/112,629 (Attorney Docket No. 03226/647001; SUN050590); “Method and Apparatus for Limiting Denial of Service Attack by Limiting Traffic for Hosts” with U.S. application Ser. No. 11/112,328 (Attorney Docket No. 03226/648001; SUN050591); “Hardware-Based Network Interface Per-Ring Resource Accounting” with U.S. application Ser. No. 11/112,222 (Attorney Docket No. 03226/649001; SUN050593); “Dynamic Hardware Classification Engine Updating for a Network Interface” with U.S. application Ser. No. 11/112,934 (Attorney Docket No. 03226/650001; SUN050592); “Network Interface Card Resource Mapping to Virtual Network Interface Cards” with U.S. application Ser. No. 11/112,063 (Attorney Docket No. 03226/651001; SUN050588); “Network Interface Decryption and Classification Technique” with U.S. application Ser. No. 11/112,436 (Attorney Docket No. 03226/652001; SUN050596); “Method and Apparatus for Enforcing Resource Utilization of a Container” with U.S. application Ser. No. 11/112,910 (Attorney Docket No. 03226/653001; SUN050595); “Method and Apparatus for Enforcing Packet Destination Specific Priority Using Threads” with U.S. application Ser. No. 11/112,584 (Attorney Docket No. 03226/654001; SUN050597); “Method and Apparatus for Processing Network Traffic Associated with Specific Protocols” with U.S. application Ser. No. 11/112,228 (Attorney Docket No. 03226/655001; SUN050598). The present application contains subject matter that may be related to the subject matter in the following U.S. applications filed on Oct. 21, 2005, and assigned to the assignee of the present application: “Method and Apparatus for Defending Against Denial of Service Attacks” with U.S. application Ser. No. 11/255,366 (Attorney Docket No. 03226/688001; SUN050966); “Router Based Defense Against Denial of Service Attacks Using Dynamic Feedback from Attacked Host” with U.S. application Ser. No. 11/256,254 (Attorney Docket No. 03226/689001; SUN050969); and “Method and Apparatus for Monitoring Packets at High Data Rates” with U.S. application Ser. No. 11/226,790 (Attorney Docket No. 03226/690001; SUN050972). The present application contains subject matter that may be related to the subject matter in the following U.S. applications filed on Jun. 30, 2006, and assigned to the assignee of the present application: “Network Interface Card Virtualization Based On Hardware Resources and Software Rings” with U.S. application Ser. No. 11/479,046 (Attorney Docket No. 03226/870001; SUN061020); “Method and System for Controlling Virtual Machine Bandwidth” with U.S. application Ser. No. 11/480,000 (Attorney Docket No. 03226/871001; SUN061021); “Virtual Switch” with U.S. Application Serial No. 11/480,261 (Attorney Docket No. 03226/873001; SUN061023); “System and Method for Virtual Network Interface Cards Based on Internet Protocol Addresses” with U.S. application Ser. No. 11/479,997 (Attorney Docket No. 03226/874001; SUN061024); “Virtual Network Interface Card Loopback Fastpath” with U.S. application Ser. No. 11/479,946 (Attorney Docket No. 03226/876001; SUN061027); “Bridging Network Components” with U.S. application Ser. No. 11/479,948 (Attorney Docket No. 03226/877001; SUN061028); “Reflecting the Bandwidth Assigned to a Virtual Network Interface Card Through Its Link Speed” with U.S. application Ser. No. 11/479,161 (Attorney Docket No. 03226/878001; SUN061029); “Method and Apparatus for Containing a Denial of Service Attack Using Hardware Resources on a Virtual Network Interface Card” with U.S. application Ser. No. 11/480,100 (Attorney Docket No. 03226/879001; SUN061033); “Virtual Network Interface Cards with VLAN Functionality” with U.S. application Ser. No. 11/479,998 (Attorney Docket No. 03226/882001; SUN061037); “Method and Apparatus for Dynamic Assignment of Network Interface Card Resources” with U.S. application Ser. No. 11/479,817 (Attorney Docket No. 03226/883001; SUN061038); “Generalized Serialization Queue Framework for Protocol Processing” with U.S. application Ser. No. 11/479,947 (Attorney Docket No. 03226/884001; SUN061039); “Serialization Queue Framework for Transmitting Packets” with U.S. application Ser. No. 11/479,143 (Attorney Docket No. 03226/885001; SUN061040). The present application contains subject matter that may be related to the subject matter in the following U.S. applications filed on Jul. 20, 2006, and assigned to the assignee of the present application: “Low Impact Network Debugging” with U.S. application Ser. No. 11/489,926 (Attorney Docket No. 03226/829001; SUN060545); “Reflecting Bandwidth and Priority in Network Attached Storage I/O” with U.S. application Ser. No. 11/489,936 (Attorney Docket No. 03226/830001; SUN060587); “Priority and Bandwidth Specification at Mount Time of NAS Device Volume” with U.S. application Ser. No. 11/489,934 (Attorney Docket No. 03226/831001; SUN060588); “Notifying Network Applications of Receive Overflow Conditions” with U.S. application Ser. No. 11/490,821 (Attorney Docket No. 03226/869001; SUN060913); “Host Operating System Bypass for Packets Destined for a Virtual Machine” with U.S. application Ser. No. 11/489,943 (Attorney Docket No. 03226/872001; SUN061022); “Multi-Level Packet Classification” with U.S. application Ser. No. 11/490,745 (Attorney Docket No. 03226/875001; SUN061026); “Method and System for Automatically Reflecting Hardware Resource Allocation Modifications” with U.S. application Ser. No. 11/490,582 (Attorney Docket No. 03226/881001; SUN061036); “Multiple Virtual Network Stack Instances Using Virtual Network Interface Cards” with U.S. application Ser. No. 11/489,942 (Attorney Docket No. 03226/888001; SUN061041); “Method and System for Network Configuration for Containers” with U.S. application Ser. No. 11/490,479 (Attorney Docket No. 03226/889001; SUN061044); “Network Memory Pools for Packet Destinations and Virtual Machines” with U.S. application Ser. No. 11/490,486 (Attorney Docket No. 03226/890001; SUN061062); “Method and System for Network Configuration for Virtual Machines” with U.S. application Ser. No. 11/489,923 (Attorney Docket No. 03226/893001; SUN061171); and “Shared and Separate Network Stack Instances” with U.S. application Ser. No. 11/489,933 (Attorney Docket No. 03226/898001; SUN061200). The present application contains subject matter that may be related to the subject matter in the following U.S. applications filed on Nov. 28, 2006, and assigned to the assignee of the present application: “Virtual Network Testing and Deployment using Network Stack Instances and Containers” with U.S. application Ser. No. 11/605,114 (Attorney Docket No. 03226/892001; SUN061072) and “Method and System for Creating A Demilitarized Zone using Network Stack Instances” with U.S. application Ser. No. 11/642,427 (Attorney Docket No. 03226/891001; SUN061071) filed on Dec. 20, 2006. The present application contains subject matter that may be related to the subject matter in the following U.S. application filed on Dec. 20, 2006, and assigned to the assignee of the present application: “Network Stack Instance Architecture with Selection of Transport Layers” with U.S. application Ser. No. 11/642,490 (Attorney Docket No. 03226/854001; SUN061184); “Method and System for Virtual Routing Using Containers” with U.S. application Ser. No. 11/642,756 (Attorney Docket No. 03226/897001; SUN061199). The present application contains subject matter that may be related to the subject matter in the following U.S. applications filed on Mar. 30, 2007, and assigned to the assignee of the present application: “Method and System for Security Protocol Partitioning and Virtualization” with U.S. application Ser. No. 11/731,601 (Attorney Docket No. 03227/015001; SUN070042); “Method and System for Inheritance of Network Interface Card Capabilities” with U.S. application Ser. No. 11/731,458 (Attorney Docket No, 03227/016001; SUN070022). The present application contains subject matter that may be related to the subject matter in the following U.S. applications filed on Apr. 24, 2007, and assigned to the assignee of the present application: “Method and System for Virtualization of Packet Encryption Offload and Onload” with U.S. application Ser. No. 11/789,337 (Attorney Docket No. 03227/029001; SUN070411) and “Method and System for Combined Security Protocol and Packet Filter Offload and Onload” with U.S. application Ser. No. 11/789,337 (Attorney Docket No. 03227/030001; SUN070413).