1. Technical Field
The present invention relates generally to offloading functions to improve processor performance. Still more particularly, the present invention offloads functions in a single LAN adapter in order to improve processor performance.
2. Description of Related Art
In the relatively short time since computers were first connected together, Local area network (LAN) technologies and performance have improved substantially. The earliest Ethernet networks were constructed from a single length of coaxial cable that was tapped once for each network device. This style of interconnection appeared in the early 1980s, when computer networking was accomplished with Thicknet (known now as 10BASE-5) and later using IEEE 802.3 standards. The mechanical process of interconnecting computers improved slightly with the adoption of Thinnet (known now as 10BASE-2) which eliminated the need to tap cable. Although interconnecting devices was much easier with Thinnet's coaxial connectors, this technology continued to string network devices together on a single length of coaxial cable. Layer 2 packets transmitted between devices utilizing either of these standards are received by all other devices on the cable. The group of devices (also called a segment) which can receive transmissions from all other connected devices is called a collision domain. A packet transmission protocol, CSMA/CD for these standards, was necessary to control the orderly transmission of information over a single collision domain. In this overview, the group of devices (segment) which can receive a Layer 2 broadcast is referred to as a broadcast domain. Additionally, the group of devices (segment) that can receive unicast Layer 2 packets not directly addressed to the device is referred to as a repeated segment.
Over time the single wire implementations were replaced by Ethernet repeated segment HUBs and RJ-45 style cabling (10BASE-T). The change to modular 10BASE-T components provided a huge improvement in the methods used to interconnect LAN devices, but the performance limitations of single broadcast domains and CSMA/CD remained. Local area networks grew to port densities where hundreds of computers would be sharing the same 10Mb broadcast domain. LAN administrators quickly discovered that large broadcast domains were inconsistent with network performance and data privacy.
Layer 2 Ethernet bridges and Ethernet switches do not forward unicast packets out a port unless the destination device is located behind the port. Because of this feature, bridging and switching were two of the first methods used to limit the size of collision domains and repeated LAN segments. The deployment of switches and bridges brought increases in LAN performance and data privacy. As the price of Layer 2 switching technology decreased and port densities on these switches increased, LAN administrators started to deploy switches to the very edge of the network. Although repeated hubs can still be found in smaller networks and SOHO applications, Ethernet switches have almost entirely replaced repeated hub devices in modern LANs.
Over the past 10 years, LAN technology, Ethernet in particular, has improved the media speed tenfold every 3 to 4 years. By contrast, the central processing unit (CPU) speed doubles every other year. Consequently, the CPUs are becoming the bottleneck at a rapid rate in high I/O performance systems. To alleviate this lag in processor performance, an increasing number of native host functions can be offloaded to I/O adapters. Offloading functions reduces the host CPU workload and has the added benefit of improving the I/O adapter throughput. However, care must be exercised in selecting the functions to be offloaded because customers require different sets of offload functions depending on applications. Currently, I/O adapter vendors attempt to address these customer needs by customizing their I/O solutions with specific offload functions they feel customers would want. This “hit and miss” approach turns out to be an expensive proposition due to the cost of testing and maintaining several versions of adapters. Even with multi-level offload functions (more than one) for the same type of adapter, the solution is far from perfect.
Another problem with using the current approach is that the same offload function occurs when all of the applications use the same adapter. This creates a problem because some applications may not need or do not perform well with the offloaded functions. For example, in a TCP/IP environment, applications that send and receive only small packet sizes may not perform well with the offloaded checksum function because the process to prepare offloads may be more CPU intensive than simply calculating the checksum.
Thus, it would be advantageous to have a single LAN adapter that would provide for offloading of functions to other connected devices.
The present invention provides a method, apparatus and computer program product for offloading functions to improve processor performance. The exemplary aspect of the present invention provides a single LAN adapter that allows for predefined functions to be offloaded to other devices. Three ways of offloading functions are provided. First, is for users and applications to pick and choose, on demand, only the functions that are to be offloaded. Second, is for the scheduling of functions to be offloaded through a predetermined scheduler. Third, is for a heuristic or learning of those functions that can be offloaded through a knowledge database.
The novel features believed characteristic of the invention are set forth in the appended claims. The invention itself, however, as well as a preferred mode of use, further objectives and advantages thereof, will best be understood by reference to the following detailed description of an illustrative embodiment when read in conjunction with the accompanying drawings, wherein:
With reference now to the figures and in particular with reference to
With reference now to
In the depicted example, local area network (LAN) adapter 210, small computer system interface SCSI host bus adapter 212, and expansion bus interface 214 are connected to PCI local bus 206 by direct component connection. In contrast, audio adapter 216, graphics adapter 218, and audio/video adapter 219 are connected to PCI local bus 206 by add-in boards inserted into expansion slots. Expansion bus interface 214 provides a connection for a keyboard and mouse adapter 220, modem 222, and additional memory 224. SCSI host bus adapter 212 provides a connection for hard disk drive 226, tape drive 228, and CD-ROM drive 230. Typical PCI local bus implementations will support three or four PCI expansion slots or add-in connectors.
An operating system runs on processor 202 and is used to coordinate and provide control of various components within data processing system 200 in
Those of ordinary skill in the art will appreciate that the hardware in
For example, data processing system 200, if optionally configured as a network computer, may not include SCSI host bus adapter 212, hard disk drive 226, tape drive 228, and CD-ROM 230. In that case, the computer, to be properly called a client computer, includes some type of network communication interface, such as LAN adapter 210, modem 222, or the like. As another example, data processing system 200 may be a stand-alone system configured to be bootable without relying on some type of network communication interface, whether or not data processing system 200 comprises some type of network communication interface. As a further example, data processing system 200 may be a personal digital assistant (PDA), which is configured with ROM and/or flash ROM to provide non-volatile memory for storing operating system files and/or user-generated data.
The depicted example in
The processes of the present invention are performed by processor 202 using computer implemented instructions, which may be located in a memory such as, for example, main memory 204, memory 224, or in one or more peripheral devices 226-230.
The present invention provides for offloading functions to improve processor performance. A single LAN adapter is described that allows for predefined functions to be offloaded to other devices. Three different means are described through which functions may be defined for offloading. First, a user or application may pick and choose, on demand, only the functions that are to be offloaded. Second, scheduling of those functions to be offloaded may defined in a scheduler. Third, heuristic or learning capabilities are provided where an offloading of functions may be stored in a knowledge database.
The exemplary aspects of the present invention are best described using an example. The present invention uses a TCP/IP protocol function for illustration purposes only. This exemplary description does not limit the scope of this invention as any function may be offloaded using the features described.
In this example, all I/O adapters have offload functions enabled as a default. A combination of IP address, TCP socket port number, and an access control key are used to control the type of offload function that is made available to users and/or applications. Therefore, two different users and/or applications may share the same IP address to communicate to a network, but may not have the same offload functions available. Access to offload functions for a particular socket port number may be controlled via special keys issued to users and/or applications. This key is then used by TCP/IP stacks to identify which offload functions are allowed for each socket port. Some well known applications, such as, “FTP” can be pre-enabled to certain default offload functions.
This type of offloading would improve processor performance and improve I/O adapter performance. Using this approach saves I/O adapter suppliers time and money by simplifying their supply chain because they only need to release a single part number with a super set of offload functions. End users also save money because they only need to activate and pay for the function(s) they need. This solution saves suppliers money and meet customers' needs by providing them with the flexibility afforded by on-demand offload functions.
Turning now to
Turning now to
Socket layer function 414 determines the type of function that is requested and sends the function at the appropriate protocol. Offload function enable table 402 is initialized by an operating system during initial program load (IPL). Offload function enable table 402 is either manually or automatically updated via interface 434 by either adding or deleting offload functions on the system during run time. The examples of interface 434 are described later with respect to
The operating system enforces access controls on the offload hardware by enabling offload attributes on per-TCP connection basis. When offload capability is set in offload function enable table 402, connection is offloaded to I/O adapter 430, otherwise standard Ethernet NIC interface is used. This methodology enables use of offload on a per TCP connection basis which is associated with a particular system user and/or application. Furthermore, it makes offload usage accounting on with a system user and/or application.
Further, socket layer function 414 sends user datagram protocol (UDP) packets to upd_usrreq 416 which is converted and sent out of udp_output 418. However, the UDP function call would be sent over the standard Ethernet NIC interface since the UDP function is not listed in the offload function enable table 402. Socket layer function 414 also sends transmission control protocol (TCP) packets to tcp_usrreq 420 which is converted and sent out of tcp_output 422. Then, tcp_output 422 which is part of TCP/IP stack 436 queries the data on offload function enable table 402 and interfaces the call to device driver 426 for the selected offload functions.
Socket layer function 414 also sends transmission control protocol (UDP) packets to udp_usrreq 416 which is converted and sent out of udp_output 418. Then, udp_output 418 which is part of UDP/IP stack 438 queries the data on offload function enable table 402 and interfaces the call to device driver 426 for the selected offload functions.
Socket layer function 414 also sends internet protocol (IP) and internet control message protocol (ICMP) packets directly to internet protocol (IP) and internet control message protocol (ICMP) queue 424. However, the IP/ICMP function call would be sent over the standard Ethernet NIC interface.
Turning to
These offload features may be enabled or disabled via a predetermined scheduler based on events listed in schedule event table 606. Administrative or CRON interface 604 may be any type of scheduler such as a batch, CRON or a script. These functions are added or deleted to offload function enable table 602 which is similar to offload function enable table 402 in
In most of the network installations, although the workloads are predetermined, they may vary due to the changing demands or seasonal variation. These changes can be monitored, analyzed and posted in knowledge database 706. Several tools exist to analyze the data from the database and characterize the application workload with respect to time of day. Workloads such as transaction processing may require certain offload functions like IPsec, SSL, etc. But the same work load may not be benefited much from TCP/IP checksum offload due to the small packets. For applications involving large packet transfers such as back-up and FTP, offload features such as TCP/IP checksum, TCP/IP offload etc are beneficial.
These offload features may be enabled or disabled via heuristic scheduler based on events listed in knowledge database 706. Administrative or CRON interface 704 may be any type of scheduler such as a batch, CRON or a script. These functions are added or deleted to offload function enable table 702 which is similar to offload function enable table 402 in
In
Thus, the present invention provides a method, apparatus and computer instructions for offloading functions to improve processor performance. A single LAN adapter is provided that allows for predefined functions to be offloaded to other devices. The methods described allows for functions to be offloaded in three different ways. First, a user or application may pick and choose, on demand, only the functions that are to be offloaded. Second, scheduling of those functions to be offloaded may defined in a scheduler. Third, heuristic or learning capabilities are provided where an offloading of functions may be stored in a knowledge database.
This type of offloading would improve processor performance and improve I/O adapter performance. Using this approach saves I/O adapter suppliers time and money by simplifying their supply chain because they only need to release a single part number with a super set of offload functions. End users also save money because they only need to activate and pay for the function(s) they need. This solution saves suppliers money and meet customers' needs by providing them with the flexibility afforded by on-demand offload functions.
It is important to note that while the present invention has been described in the context of a fully functioning data processing system, those of ordinary skill in the art will appreciate that the processes of the present invention are capable of being distributed in the form of a computer readable medium of instructions and a variety of forms and that the present invention applies equally regardless of the particular type of signal bearing media actually used to carry out the distribution. Examples of computer readable media include recordable-type media, such as a floppy disk, a hard disk drive, a RAM, CD-ROMs, DVD-ROMs, and transmission-type media, such as digital and analog communications links, wired or wireless communications links using transmission forms, such as, for example, radio frequency and light wave transmissions. The computer readable media may take the form of coded formats that are decoded for actual use in a particular data processing system.
The description of the present invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiment was chosen and described in order to best explain the principles of the invention, the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.