Method and system for processing network information

Method and system for processing packets received from a network is provided. The system includes an adapter having a processing module that separates a header of a network packet from data, forwards the header to a host system and stores data associated with the network packet in a memory device of the network adapter. The host system processes the header and determines a destination for the network packet data. The method includes determining header boundary in a network packet, wherein an adapter coupled to a host system determines the header boundary; ending header information to the host system; and storing data associated with the network packet in a memory device of the adapter.

BACKGROUND

1. Field of the Invention

The present invention relates to computing systems, and more particularly, to processing network information.

2. Background of the Invention

Conventional computing systems typically include several functional components. These components may include a central processing unit (CPU), main memory, input/output (“I/O”) devices, and streaming storage devices (for example, tape drives). In conventional systems, the main memory is coupled to the CPU via a system bus or a local memory bus. The main memory is used to provide the CPU access to data and/or program information that is stored in main memory at execution time. Typically, the main memory is composed of random access memory (RAM) circuits. A computing system is often referred to as a host system. The term computing system/host system as used throughout this specification, includes network servers.

Host systems (or servers) are used in various applications and environments, including networks and storage area networks (“SAN”). Servers typically communicate with each other using networks. SANs are commonly used to store and access data. SAN is a high-speed sub-network of shared storage devices, for example, disks and tape drives.

Host systems often communicate with other devices via network adapters (may also be referred to as “controllers”). The network adapters can be coupled to a host system via an interface (or by other means), for example, the “PCI” (or PCI-X/PCI-Express) bus interface, or the Hyper Transport interface. The standard bus specifications are incorporated herein by reference in their entirety. Different types of adapters are currently used by host systems, for example, host channel adapters (HCAs) and host bus adapters (HBAs).

Traditionally adapters have been either very simplistic in design or very complex. The simplistic design has been used where the adapter simply moves all the network information (i.e. header and data) to a host and performs very little analysis except in some cases, checking cyclic redundancy codes (CRCs).

In complex designs, adapters have been designed to offload most host processing. The complex design adapters often have one or more processor or complex state machines. The adapters can process network packets and need minimal host supervision. The goal for the complex adapter design is to save host processor cycles and power. However, host processors are becoming very powerful and with emergence of multi-core/multi-threaded processors, the need to save host processor cycles has diminished.

Therefore, what is needed is an optimum adapter design/process that can efficiently process network packets.

SUMMARY OF THE PRESENT INVENTION

In one aspect of the present invention, a network adapter for processing packets received from a network is provided. The adapter includes a processing module that separates a header of a network packet from data, forwards the header to a host system and stores data associated with the network packet in a memory device of the network adapter. The host system processes the header and determines a destination for the network packet data.

In another aspect of the present invention, a network system is provided. The network system comprising a host system with a central processing unit and an adapter for processing packets received from a network, wherein the adapter includes a processing module that separates a header of a network packet from data, forwards the header to the host system and stores data associated with the network packet in a memory device of the network adapter. The host system processes the header and determines a destination for the network packet data. The host system initializes a direct memory access module in the adapter to transfer data from the memory device to the destination.

In yet another aspect of the present invention, a method for processing network packets received from a network is provided. The method comprising, determining header boundary in a network packet, wherein an adapter coupled to a host system determines the header boundary; sending header information to the host system; and storing data associated with the network packet in a memory device of the adapter. The host system processes the header and determines a destination for the data stored in the memory device.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

System Overview

To facilitate an understanding of the preferred embodiment, the general architecture and operation of a network system will be described. The specific architecture and operation of the preferred embodiment will then be described with reference to the general architecture.

FIG. 1shows a block diagram of a networked system100. System100includes a host computing system (may also be referred to as host system)100A with a central processing unit101that executes program instructions out of memory102that may be random access memory (RAM). Read only memory103is also provided to store invariant instruction sequences such as start-up instruction sequences or basic input/output operating system (BIOS). Other devices (shown as104) for example, a display device, mouse, and/or keyboard are also attached to an internal bus105.

CPU101interfaces with a network adapter106. Adapter106receives data/sends data to other networked devices (not shown) via link/connection109. It is noteworthy that network adapter interface108is simply shown to illustrate a connection mechanism for network adapter106. This may be achieved using different implementations, for example, an input/output bus (PCI-Express and others) or Hyper Transport Interface. These standard interface specifications are incorporated herein by reference in their entirety. The adaptive aspects of the present invention are not limited to any type of bus/inter-connect mechanism.

Storage107, which may include a hard-drive, zip drive or any other storage media, to store programs, applications and data.

It is also noteworthy that the adaptive aspects of the present invention are not limited to the generic architecture of system100, as shown inFIG. 1. For example, instead of system bus105, different components may interconnect/interface with each other without system bus105. The adaptive aspects of the present invention are not limited by the interface/inter-connect means of the various components shown inFIG. 1.

Fabric Adapter110is used to connect to other network fabrics, as might be the case if the host system provides gateway or router services.

Various standard protocols can be used facilitate host system100A communication with networked devices. Fibre Channel, InfiniBand, Ethernet, iSCSI. IWARP, SRP, iSER, SDP, IPoIB, RDS are examples of such industry standards and are incorporated in their entirety by reference. It is noteworthy that the adaptive aspects of the present invention are not limited to any particular protocol or standard.

Network Adapter

FIG. 2Ashows a block diagram of adapter106, according to one aspect of the present invention. Adapter106includes network interface201to receive information and send information (201A) from/to networked devices. Network interface201structure will depend on the overall network environment. For example, if host system100A is operating in an Ethernet/Fibre Channel environment, then network interface201will include the logic to handle Fibre Channel frames/packets/information (used interchangeably throughout this specification). If host system100A is operating in an InfiniBand environment, then network interface201includes logic to accept/send InfiniBand packets.

Network packet201A is received from a networked device/system.FIG. 2Bshows an example of a typical network packet201A. A packet includes start of frame packet identifier209, a header206, data (or payload)207and an indicator, for example, end of frame/packet208that indicates the end of network packet201A.

Turning back toFIG. 2A, adapter106includes a processing module200that receives network packets201A. Processing module200receives the incoming packet201A, and after performing initial verification separates header206from data207. Header206and associated packet status information is sent to host system100A via host interface204and bus/link205. Data207is stored in memory buffer202.

Data payloads (207) may be coalesced with the header (206) and delivered as single unit, or separately delivered to a designated data payload area in host memory. The data load size may be programmable.

If memory buffer202overflows, then data payloads may be directed to pre-designated locations in host memory to avoid dropping incoming packets.

Host interface204will depend on link205. For example, if205is a PCI-Express bus, then host interface204includes logic to perform process steps to comply with PCI-Express specifications.

Host system100A processes header206and determines where data207should be placed in host memory. Based on that, host100A initializes a direct memory access (“DMA”) module203. DMA module203then moves data stored in memory buffer202to host memory (102).

Data may be moved directly to other fabric adapters110rather than to host memory. This permits efficient construction of gateway and router solutions.

DMA module203is used to perform transfers between memory locations, or between memory locations and an input/output port. After a DMA operation is completed, status information (indicators) are available for CPU101. A DMA module functions asynchronously with respect to the host CPU101after initialization of control registers in the DMA module with transfer control information. The transfer control information generally includes source address (the address of the beginning of a block of data to be transferred), the destination address, and the size of the data block. The transfer control information may be in the form of a scatter-gather list that is used for moving data to physically non-contiguous memory locations.

The adaptive aspects of the present invention are not limited to any particular implementation or format for using the control information.

FIG. 3shows a process flow diagram for processing network packets as received by adapter106, according to one aspect of the present invention. The process starts in step S300, when a network packet(s) is received.

In step S302, processing module200analyzes the network packet and determines the header boundary.

In step S304, header206is sent to host system100A and data (207) is stored in memory buffer202. Furthermore, status information regarding a packet may also be stored in step S304. Status information includes packet length, type of packet, address where the payload is located and whether the packet was valid or not.

In step S306, CPU101performs all upper layer protocols and determines the destination of the received network packet in host system memory102.

In step S308, host system100A (i.e. CPU101) initializes DMA module203to move data (207) from memory buffer202to host memory102(or to any other location). In step S310, data is transferred from memory buffer202to host memory102or to any other location within host system100A. Thereafter, status information is sent to host system100.

In one aspect of the present invention, since data is moved only once from memory buffer202to host memory102(or to any other location), additional copying operations are not performed.

In another aspect, adapter106is designed optimally so that it can separate header processing from data payload. This is optimum use of CPU101capabilities without a significant performance penalty.

In yet another aspect of the present invention, network fabric adapters that are mostly “stateless” are provided. The stateless adapters may provide comparable performance to “state full” adapters. The term stateless, as used herein means that the host maintains network connection state information. The term “state full” means that an adapter maintains network connection state information.

Although the present invention has been described with reference to specific embodiments, these embodiments are illustrative only and not limiting. Many other applications and embodiments of the present invention will be apparent in light of this disclosure and the following claims.