Network buffer caching
AssigneeHewlett-Packard Development Company, L.P.
InventorRakesh Saha
Life of this patent
Estimating the term…
Abstract
One embodiment relates to a method of processing packets by a network stack. A first data packet is received from a client via a network, and a network buffer is allocated for the data packet. An indication is given that the data packet is ready for reading by an application. In addition, the network buffer is cached in a network buffer cache. Subsequently, response data may be received from the application, and the network buffer may be re-used from the network buffer cache. The response data may be sent in a second data packet to the client via the network. Finally, the network buffer may be freed. Other embodiments, aspects, and features are also disclosed.
Claims20
A method of processing packets by a network stack, the method comprising:
- receiving a first data packet from a client via a network;
- allocating a network buffer for the data packet and copying the data packet into the network buffer;
- giving an indication that the data packet is ready for reading by an application;
- and
- caching the network buffer in a network buffer cache.
A method of processing packets by a network stack, the method comprising:
- receiving data from an application;
- allocating a network buffer for the data and copying the data into the network buffer;
- processing the data and sending the data in a first data packet to a client via a network;
- caching the network buffer in a network buffer cache.
An apparatus configured to interface with a network, the apparatus comprising:
- a device driver configured to receive a first data packet from a client via the network, to allocate a network buffer for the data packet, and to copy the data packet into the network buffer;
- an operating system interface configured to give an indication that the data packet is ready for reading by an application;
- a network buffer cache;
- and
- a socket layer configured to cache the network buffer in the network buffer cache.
An apparatus configured to interface with a network, the apparatus comprising:
- an operating system interface configured to receive data from an application;
- an socket layer configured to allocate a network buffer for the data packet and copy the data packet into the network buffer;
- a network buffer cache;
- and
- a device driver configured to send the data in a first data packet to a client via a network and to cache the network buffer in the network buffer cache.
Dependencies are inferred from the claim text.